diff --git a/.claude/commands/issue/convert-to-plan.md b/.claude/commands/issue/convert-to-plan.md index 48057bfc..51ef2e33 100644 --- a/.claude/commands/issue/convert-to-plan.md +++ b/.claude/commands/issue/convert-to-plan.md @@ -55,7 +55,7 @@ Converts various planning artifact formats into issue workflow solutions with in | Get issue | `ccw issue status --json` | Read issues.jsonl directly | | Create issue | `ccw issue init --title "..."` | Write to issues.jsonl | | Bind solution | `ccw issue bind ` | Edit issues.jsonl | -| List solutions | `ccw issue solutions --issue --brief` | Read solutions/*.jsonl | +| List solutions | `ccw issue solution --brief` | Read solutions/*.jsonl | ## Solution Schema Reference diff --git a/.claude/skills/issue-manage/SKILL.md b/.claude/skills/issue-manage/SKILL.md index 3eec207a..4aa840f6 100644 --- a/.claude/skills/issue-manage/SKILL.md +++ b/.claude/skills/issue-manage/SKILL.md @@ -33,6 +33,12 @@ ccw issue task --title "..." # Add task ccw issue bind # Bind solution ccw issue update --status completed # Complete & auto-archive +# Solution queries +ccw issue solution # List solutions for a single issue +ccw issue solution --brief # Brief: solution_id, files_touched, task_count +ccw issue solutions # Batch list all bound solutions +ccw issue solutions --status planned --brief # Filter by issue status + # Queue management ccw issue queue # List current queue ccw issue queue add # Add to queue diff --git a/.claude/skills/team-planex/roles/executor.md b/.claude/skills/team-planex/roles/executor.md index 2fe6e2c3..39368e39 100644 --- a/.claude/skills/team-planex/roles/executor.md +++ b/.claude/skills/team-planex/roles/executor.md @@ -61,9 +61,9 @@ | CLI Command | Purpose | |-------------|---------| | `ccw issue status --json` | 查看 issue 状态 | -| `ccw issue solutions --json` | 加载 bound solution | -| `ccw issue update --status in-progress` | 更新 issue 状态为进行中 | -| `ccw issue update --status resolved` | 标记 issue 已解决 | +| `ccw issue solution --json` | 加载单个 issue 的 bound solution(需要 issue ID) | +| `ccw issue update --status executing` | 更新 issue 状态为执行中 | +| `ccw issue update --status completed` | 标记 issue 已完成 | ## Execution Method Resolution @@ -166,7 +166,7 @@ if (!issueId) { } // Load solution plan -const solJson = Bash(`ccw issue solutions ${issueId} --json`) +const solJson = Bash(`ccw issue solution ${issueId} --json`) const solution = JSON.parse(solJson) if (!solution.bound) { @@ -190,7 +190,7 @@ const executor = resolveExecutor(task.description, taskCount) const codeReview = resolveCodeReview(task.description) // Update issue status -Bash(`ccw issue update ${issueId} --status in-progress`) +Bash(`ccw issue update ${issueId} --status executing`) ``` ### Phase 3: Implementation (Multi-Backend Routing) @@ -297,7 +297,7 @@ if (codeReview !== 'Skip') { } // Update issue status to resolved -Bash(`ccw issue update ${issueId} --status resolved`) +Bash(`ccw issue update ${issueId} --status completed`) ``` ### Code Review (Optional) diff --git a/.claude/skills/team-planex/roles/planner.md b/.claude/skills/team-planex/roles/planner.md index cfca5792..b712e0ba 100644 --- a/.claude/skills/team-planex/roles/planner.md +++ b/.claude/skills/team-planex/roles/planner.md @@ -48,9 +48,10 @@ | CLI Command | Purpose | |-------------|---------| -| `ccw issue new --text '...' --json` | 从文本创建 issue | +| `ccw issue create --data '{"title":"..."}' --json` | 从文本创建 issue | | `ccw issue status --json` | 查看 issue 状态 | -| `ccw issue solutions --json` | 查看已绑定 solution | +| `ccw issue solution --json` | 查看单个 issue 的 solutions(需要 issue ID) | +| `ccw issue solutions --status planned --brief` | 批量列出所有已绑定 solutions(跨 issue) | | `ccw issue bind ` | 绑定 solution 到 issue | ### Skill Capabilities diff --git a/ccw/src/commands/issue.ts b/ccw/src/commands/issue.ts index fae8a222..3778a663 100644 --- a/ccw/src/commands/issue.ts +++ b/ccw/src/commands/issue.ts @@ -3120,6 +3120,8 @@ export async function issueCommand( console.log(chalk.gray(' solution List solutions for issue')); console.log(chalk.gray(' solution --brief Brief: solution_id, files_touched, task_count')); console.log(chalk.gray(' solution --data \'{...}\' Create solution (auto-generates ID)')); + console.log(chalk.gray(' solutions [--status ] [--brief] Batch list bound solutions across issues')); + console.log(chalk.gray(' task [task-id] --title Add or update task in solution')); console.log(chalk.gray(' bind [sol-id] Bind solution')); console.log(chalk.gray(' update --status Update issue status')); console.log(chalk.gray(' update --from-queue [queue-id] Sync statuses from queue (default: active)'));