From 73fc68a1870bd7dc9f327e60b6a83893c9e4541c Mon Sep 17 00:00:00 2001 From: catlog22 Date: Mon, 29 Dec 2025 19:31:00 +0800 Subject: [PATCH] refactor(issue/plan): remove redundant file specs from command doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Agent (issue-plan-agent.md) handles file generation. Command doc should only describe input/output behavior. Removed: Generate Files, Storage Structure, Completion Criteria Kept: Command Output JSON format, Behavior summary 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .claude/commands/issue/plan.md | 37 ++++++---------------------------- 1 file changed, 6 insertions(+), 31 deletions(-) diff --git a/.claude/commands/issue/plan.md b/.claude/commands/issue/plan.md index d6a6baf7..33eb0b8d 100644 --- a/.claude/commands/issue/plan.md +++ b/.claude/commands/issue/plan.md @@ -11,45 +11,20 @@ allowed-tools: TodoWrite(*), Task(*), SlashCommand(*), AskUserQuestion(*), Bash( Unified planning command using **issue-plan-agent** that combines exploration and planning into a single closed-loop workflow. -## Output Requirements +## Command Output -**Generate Files:** -1. `.workflow/issues/solutions/{issue-id}.jsonl` - Solution with tasks for each issue - -**Return Summary:** ```json { "bound": [{ "issue_id": "...", "solution_id": "...", "task_count": N }], "pending_selection": [{ "issue_id": "...", "solutions": [...] }], - "conflicts": [{ "file": "...", "issues": [...] }] + "conflicts": [{ "type": "...", "summary": "..." }] } ``` -**Completion Criteria:** -- [ ] Solution file generated for each issue -- [ ] Single solution → auto-bound via `ccw issue bind` -- [ ] Multiple solutions → returned for user selection -- [ ] Tasks conform to schema: `cat .claude/workflows/cli-templates/schemas/solution-schema.json` -- [ ] Each task has quantified `acceptance.criteria` - -## Core Capabilities - -- **Closed-loop agent**: issue-plan-agent combines explore + plan -- Batch processing: 1 agent processes 1-3 issues -- ACE semantic search integrated into planning -- Solution with executable tasks and delivery criteria -- Automatic solution registration and binding - -## Storage Structure (Flat JSONL) - -``` -.workflow/issues/ -├── issues.jsonl # All issues (one per line) -├── queue.json # Execution queue -└── solutions/ - ├── {issue-id}.jsonl # Solutions for issue (one per line) - └── ... -``` +**Behavior:** +- Single solution per issue → auto-bind +- Multiple solutions → return for user selection +- Agent handles file generation (see `issue-plan-agent.md`) ## Usage