diff --git a/90-install-docker-cli.sh b/90-install-docker-cli.sh new file mode 100755 index 0000000..3ee59eb --- /dev/null +++ b/90-install-docker-cli.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +sudo apt-get update +sudo apt-get install docker.io -y \ No newline at end of file diff --git a/agents/rui-create-issue.md b/agents/rui-create-issue.md index 113c4d2..8785ac6 100644 --- a/agents/rui-create-issue.md +++ b/agents/rui-create-issue.md @@ -43,7 +43,7 @@ Follow these steps in order. Do not skip or reorder steps. ### Step 1: Load project identity -Load the `rui-project-identity` skill. Extract these values (you will need them +Load the `rui-personal-identity` skill. Extract these values (you will need them in later steps): - Forgejo server URL (e.g. `https://git.cleverthis.com`) diff --git a/agents/rui-do-one-ticket.md b/agents/rui-do-one-ticket.md index c2ca3a0..69f3e83 100644 --- a/agents/rui-do-one-ticket.md +++ b/agents/rui-do-one-ticket.md @@ -6,7 +6,7 @@ permission: "*": allow edit: allow skill: - "rui-project-identity": allow + "rui-personal-identity": allow "rui-task-workflow": allow "rui-coding-standards": allow "rui-commit-standards": allow @@ -29,7 +29,7 @@ you work on. Do not look for or work on any other issues. Load these skills immediately before doing anything else: -1. `rui-project-identity` — Forgejo credentials, git identity, reference materials +1. `rui-personal-identity` — Forgejo credentials, git identity, reference materials 2. `rui-task-workflow` — The end-to-end execution lifecycle (Phases 1–5) 3. `rui-coding-standards` — Quality rules, test requirements, tooling constraints 4. `rui-commit-standards` — Commit message format, branch hygiene, atomic commits diff --git a/agents/rui-fix-pr.md b/agents/rui-fix-pr.md index e87ff9f..5294bef 100644 --- a/agents/rui-fix-pr.md +++ b/agents/rui-fix-pr.md @@ -7,7 +7,7 @@ permission: edit: allow ask: deny skill: - "rui-project-identity": allow + "rui-personal-identity": allow "rui-pr-fix-process": allow "rui-coding-standards": allow "rui-commit-standards": allow @@ -36,7 +36,7 @@ You will receive: Load these skills immediately before doing anything else: -1. `rui-project-identity` — Forgejo credentials, git identity, repo details +1. `rui-personal-identity` — Forgejo credentials, git identity, repo details 2. `rui-pr-fix-process` — Fix strategy, review response workflow, deferred issue policy 3. `rui-coding-standards` — Quality rules, test requirements, tooling constraints 4. `rui-commit-standards` — Commit message format, branch hygiene, atomic commits diff --git a/agents/rui-review-pr-focus.md b/agents/rui-review-pr-focus.md index 112ee60..d38dc01 100644 --- a/agents/rui-review-pr-focus.md +++ b/agents/rui-review-pr-focus.md @@ -7,7 +7,7 @@ permission: edit: deny ask: deny skill: - "rui-project-identity": allow + "rui-personal-identity": allow "rui-pr-review-process": allow "rui-coding-standards": allow "rui-commit-standards": allow @@ -37,7 +37,7 @@ Review the PR exclusively through that lens. Do not attempt to cover other areas Load these skills immediately before doing anything else: -1. `rui-project-identity` — Forgejo credentials, git identity, repo details +1. `rui-personal-identity` — Forgejo credentials, git identity, repo details 2. `rui-pr-review-process` — Review methodology, reporting format, verdict criteria 3. `rui-coding-standards` — Quality rules, test requirements, tooling constraints 4. `rui-commit-standards` — Commit message format, branch hygiene rules diff --git a/agents/rui-review-pr.md b/agents/rui-review-pr.md index 0f65fab..0af1501 100644 --- a/agents/rui-review-pr.md +++ b/agents/rui-review-pr.md @@ -7,7 +7,7 @@ permission: edit: deny ask: deny skill: - "rui-project-identity": allow + "rui-personal-identity": allow "rui-pr-review-process": allow "rui-coding-standards": deny "rui-commit-standards": deny @@ -32,7 +32,7 @@ You will receive a **PR number** and a **ticket number** on Forgejo. Load these skills immediately: -1. `rui-project-identity` — Forgejo credentials, git identity, repo details +1. `rui-personal-identity` — Forgejo credentials, git identity, repo details 2. `rui-pr-review-process` — Review methodology, multi-agent strategy, reporting format ## Step 1: Gather Context diff --git a/agents/rui-self-qa.md b/agents/rui-self-qa.md index 01bc82b..938fd16 100644 --- a/agents/rui-self-qa.md +++ b/agents/rui-self-qa.md @@ -6,7 +6,7 @@ permission: "*": allow edit: deny skill: - "rui-project-identity": allow + "rui-personal-identity": allow "rui-pr-review-process": deny "rui-pr-fix-process": deny "rui-coding-standards": deny @@ -31,7 +31,7 @@ You will receive a **PR number** and a **ticket number** on Forgejo. ## Startup -Load the `rui-project-identity` skill for Forgejo credentials and repo details. +Load the `rui-personal-identity` skill for Forgejo credentials and repo details. ## Loop Execution diff --git a/opencode.json b/opencode.json index 53d34ee..7059fd5 100644 --- a/opencode.json +++ b/opencode.json @@ -19,7 +19,7 @@ "sequential-thinking": { "type": "local", "command": ["npx", "@modelcontextprotocol/server-sequential-thinking"], - "enabled": true + "enabled": false }, "docker": { "type": "local", diff --git a/skills/rui-project-identity/SKILL.md b/skills/rui-personal-identity/SKILL.md similarity index 78% rename from skills/rui-project-identity/SKILL.md rename to skills/rui-personal-identity/SKILL.md index f65b27f..a8c1b9a 100644 --- a/skills/rui-project-identity/SKILL.md +++ b/skills/rui-personal-identity/SKILL.md @@ -1,6 +1,6 @@ --- -name: rui-project-identity -description: Project-specific configuration including role identity, Forgejo server details, git credentials, authentication setup, and reference materials for the current project. +name: rui-personal-identity +description: User's personal identity, including Forgejo server details, git credentials, authentication setup, and general reference materials for the project. --- ## Role @@ -10,7 +10,7 @@ Acting as **Rui Hu** (Forgejo username: `hurui200320`). ## Forgejo Setup - **Server:** `git.cleverthis.com` -- **Repository:** `cleverrouter/cleverrouter-core` +- **Repository:** Ask user. ## Git Identity @@ -56,9 +56,3 @@ Before implementing anything, thoroughly read: **Strictly adhere to the guidelines in `CONTRIBUTING.md` at all times.** These are the project's non-negotiable rules. - -## External scripts - -There are helper scripts outside of the project. They are located at `/external/opencode/scripts`. -If the folder doesn't exist, stop and warn user. The user may exit and recreate the container -with proper mounts. \ No newline at end of file diff --git a/skills/rui-search-issues/SKILL.md b/skills/rui-search-issues/SKILL.md index f4d6f44..0a0d814 100644 --- a/skills/rui-search-issues/SKILL.md +++ b/skills/rui-search-issues/SKILL.md @@ -10,7 +10,7 @@ fetched page by page from the API and matched client-side against title and body text. This avoids the unreliable server-side search and gives precise substring matching with AND/OR logic. -**Prerequisites:** Load the `rui-project-identity` skill first to get the Forgejo +**Prerequisites:** Load the `rui-personal-identity` skill first to get the Forgejo server URL, API token, and repository name needed for the required options. ## Script location diff --git a/start-dev-container-persist.bash b/start-dev-container-persist.bash index 4c52f69..1b4ae83 100755 --- a/start-dev-container-persist.bash +++ b/start-dev-container-persist.bash @@ -21,12 +21,15 @@ docker run -it --rm \ --network=host \ --name "cleverrouter_dev_persist" \ --user $(id -u):$(id -g) \ + --group-add 969 \ --volume "${WORKDIR}:/app:z" \ + --volume "/home/skyblond/opencode/90-install-docker-cli.sh:/docker-entrypoint.d/90-install-docker-cli.sh" \ --volume "/home/skyblond/cleverthis/cleverrouter/workspace:/workspace" \ --volume "/home/skyblond/opencode/agents:/home/devuser/.config/opencode/agents" \ --volume "/home/skyblond/opencode/skills:/home/devuser/.config/opencode/skills" \ --volume "/home/skyblond/opencode/opencode.json:/home/devuser/.config/opencode/opencode.json" \ --volume "/home/skyblond/opencode/scripts:/external/opencode/scripts" \ + --volume "/var/run/docker.sock:/var/run/docker.sock" \ --env "OPENROUTER_API_KEY=${OPENROUTER_API_KEY}" \ --env "OPENAI_API_KEY=${OPENAI_API_KEY}" \ --env "ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}" \