From e22b525e9ccfacd8b55c515b4f0249e2988ac4a0 Mon Sep 17 00:00:00 2001 From: catlog22 Date: Thu, 15 Jan 2026 13:00:50 +0800 Subject: [PATCH] feat: add Post-Completion Expansion to execution commands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 执行命令完成后询问用户是否扩展为issue(test/enhance/refactor/doc),选中项调用 /issue:new --- .claude/commands/workflow/debug.md | 6 ++++++ .claude/commands/workflow/execute.md | 4 ++++ .claude/commands/workflow/lite-execute.md | 4 ++++ .claude/commands/workflow/lite-lite-lite.md | 4 ++++ .claude/commands/workflow/review-fix.md | 4 ++++ .claude/commands/workflow/test-cycle-execute.md | 4 ++++ 6 files changed, 26 insertions(+) diff --git a/.claude/commands/workflow/debug.md b/.claude/commands/workflow/debug.md index 83bf321d..230829c6 100644 --- a/.claude/commands/workflow/debug.md +++ b/.claude/commands/workflow/debug.md @@ -311,6 +311,12 @@ Output: └─ .workflow/.debug/DBG-{slug}-{date}/debug.log ``` +## Post-Completion Expansion + +完成后询问用户是否扩展为issue(test/enhance/refactor/doc),选中项调用 `/issue:new "{summary} - {dimension}"` + +--- + ## Error Handling | Situation | Action | diff --git a/.claude/commands/workflow/execute.md b/.claude/commands/workflow/execute.md index 7529f321..febee6ef 100644 --- a/.claude/commands/workflow/execute.md +++ b/.claude/commands/workflow/execute.md @@ -275,6 +275,10 @@ AskUserQuestion({ - **"Enter Review"**: Execute `/workflow:review` - **"Complete Session"**: Execute `/workflow:session:complete` +### Post-Completion Expansion + +完成后询问用户是否扩展为issue(test/enhance/refactor/doc),选中项调用 `/issue:new "{summary} - {dimension}"` + ## Execution Strategy (IMPL_PLAN-Driven) ### Strategy Priority diff --git a/.claude/commands/workflow/lite-execute.md b/.claude/commands/workflow/lite-execute.md index 7f99d4f7..7f47c9a3 100644 --- a/.claude/commands/workflow/lite-execute.md +++ b/.claude/commands/workflow/lite-execute.md @@ -664,6 +664,10 @@ Collected after each execution call completes: Appended to `previousExecutionResults` array for context continuity in multi-execution scenarios. +## Post-Completion Expansion + +完成后询问用户是否扩展为issue(test/enhance/refactor/doc),选中项调用 `/issue:new "{summary} - {dimension}"` + **Fixed ID Pattern**: `${sessionId}-${groupId}` enables predictable lookup without auto-generated timestamps. **Resume Usage**: If `status` is "partial" or "failed", use `fixedCliId` to resume: diff --git a/.claude/commands/workflow/lite-lite-lite.md b/.claude/commands/workflow/lite-lite-lite.md index 75513f89..977b4368 100644 --- a/.claude/commands/workflow/lite-lite-lite.md +++ b/.claude/commands/workflow/lite-lite-lite.md @@ -420,6 +420,10 @@ TodoWrite({ todos: [ | **Analysis Modes** | 5 modes with --resume | Fixed synthesis rounds | | **Best For** | Quick analysis, adversarial validation | Complex multi-step implementations | +## Post-Completion Expansion + +完成后询问用户是否扩展为issue(test/enhance/refactor/doc),选中项调用 `/issue:new "{summary} - {dimension}"` + ## Related Commands ```bash diff --git a/.claude/commands/workflow/review-fix.md b/.claude/commands/workflow/review-fix.md index f4d2edb2..eb2ca9c9 100644 --- a/.claude/commands/workflow/review-fix.md +++ b/.claude/commands/workflow/review-fix.md @@ -585,6 +585,10 @@ TodoWrite({ - Mark completed immediately after each group finishes - Update parent phase status when all child items complete +## Post-Completion Expansion + +完成后询问用户是否扩展为issue(test/enhance/refactor/doc),选中项调用 `/issue:new "{summary} - {dimension}"` + ## Best Practices 1. **Trust AI Planning**: Planning agent's grouping and execution strategy are based on dependency analysis diff --git a/.claude/commands/workflow/test-cycle-execute.md b/.claude/commands/workflow/test-cycle-execute.md index a6f9c505..b3aa6aa5 100644 --- a/.claude/commands/workflow/test-cycle-execute.md +++ b/.claude/commands/workflow/test-cycle-execute.md @@ -491,6 +491,10 @@ The orchestrator automatically creates git commits at key checkpoints to enable **Note**: Final session completion creates additional commit with full summary. +## Post-Completion Expansion + +完成后询问用户是否扩展为issue(test/enhance/refactor/doc),选中项调用 `/issue:new "{summary} - {dimension}"` + ## Best Practices 1. **Default Settings Work**: 10 iterations sufficient for most cases