claude-code-workflow 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/action-planning-agent.md +778 -0
- package/.claude/agents/cli-execution-agent.md +270 -0
- package/.claude/agents/cli-explore-agent.md +182 -0
- package/.claude/agents/cli-lite-planning-agent.md +396 -0
- package/.claude/agents/cli-planning-agent.md +558 -0
- package/.claude/agents/code-developer.md +310 -0
- package/.claude/agents/conceptual-planning-agent.md +308 -0
- package/.claude/agents/context-search-agent.md +582 -0
- package/.claude/agents/doc-generator.md +330 -0
- package/.claude/agents/memory-bridge.md +94 -0
- package/.claude/agents/test-context-search-agent.md +399 -0
- package/.claude/agents/test-fix-agent.md +343 -0
- package/.claude/agents/ui-design-agent.md +593 -0
- package/.claude/agents/universal-executor.md +131 -0
- package/.claude/commands/cli/cli-init.md +440 -0
- package/.claude/commands/enhance-prompt.md +93 -0
- package/.claude/commands/memory/code-map-memory.md +687 -0
- package/.claude/commands/memory/docs-full-cli.md +471 -0
- package/.claude/commands/memory/docs-related-cli.md +386 -0
- package/.claude/commands/memory/docs.md +615 -0
- package/.claude/commands/memory/load-skill-memory.md +182 -0
- package/.claude/commands/memory/load.md +240 -0
- package/.claude/commands/memory/skill-memory.md +525 -0
- package/.claude/commands/memory/style-skill-memory.md +396 -0
- package/.claude/commands/memory/tech-research.md +477 -0
- package/.claude/commands/memory/update-full.md +332 -0
- package/.claude/commands/memory/update-related.md +332 -0
- package/.claude/commands/memory/workflow-skill-memory.md +517 -0
- package/.claude/commands/task/breakdown.md +204 -0
- package/.claude/commands/task/create.md +152 -0
- package/.claude/commands/task/execute.md +270 -0
- package/.claude/commands/task/replan.md +437 -0
- package/.claude/commands/version.md +254 -0
- package/.claude/commands/workflow/action-plan-verify.md +447 -0
- package/.claude/commands/workflow/brainstorm/api-designer.md +585 -0
- package/.claude/commands/workflow/brainstorm/artifacts.md +452 -0
- package/.claude/commands/workflow/brainstorm/auto-parallel.md +443 -0
- package/.claude/commands/workflow/brainstorm/data-architect.md +220 -0
- package/.claude/commands/workflow/brainstorm/product-manager.md +200 -0
- package/.claude/commands/workflow/brainstorm/product-owner.md +200 -0
- package/.claude/commands/workflow/brainstorm/scrum-master.md +200 -0
- package/.claude/commands/workflow/brainstorm/subject-matter-expert.md +200 -0
- package/.claude/commands/workflow/brainstorm/synthesis.md +398 -0
- package/.claude/commands/workflow/brainstorm/system-architect.md +387 -0
- package/.claude/commands/workflow/brainstorm/ui-designer.md +221 -0
- package/.claude/commands/workflow/brainstorm/ux-expert.md +221 -0
- package/.claude/commands/workflow/execute.md +460 -0
- package/.claude/commands/workflow/init.md +164 -0
- package/.claude/commands/workflow/lite-execute.md +686 -0
- package/.claude/commands/workflow/lite-fix.md +621 -0
- package/.claude/commands/workflow/lite-plan.md +592 -0
- package/.claude/commands/workflow/plan.md +551 -0
- package/.claude/commands/workflow/replan.md +515 -0
- package/.claude/commands/workflow/review-fix.md +646 -0
- package/.claude/commands/workflow/review-module-cycle.md +795 -0
- package/.claude/commands/workflow/review-session-cycle.md +805 -0
- package/.claude/commands/workflow/review.md +291 -0
- package/.claude/commands/workflow/session/complete.md +500 -0
- package/.claude/commands/workflow/session/list.md +96 -0
- package/.claude/commands/workflow/session/resume.md +61 -0
- package/.claude/commands/workflow/session/start.md +200 -0
- package/.claude/commands/workflow/status.md +352 -0
- package/.claude/commands/workflow/tdd-plan.md +460 -0
- package/.claude/commands/workflow/tdd-verify.md +386 -0
- package/.claude/commands/workflow/test-cycle-execute.md +498 -0
- package/.claude/commands/workflow/test-fix-gen.md +699 -0
- package/.claude/commands/workflow/test-gen.md +529 -0
- package/.claude/commands/workflow/tools/conflict-resolution.md +680 -0
- package/.claude/commands/workflow/tools/context-gather.md +434 -0
- package/.claude/commands/workflow/tools/task-generate-agent.md +291 -0
- package/.claude/commands/workflow/tools/task-generate-tdd.md +518 -0
- package/.claude/commands/workflow/tools/tdd-coverage-analysis.md +309 -0
- package/.claude/commands/workflow/tools/test-concept-enhanced.md +163 -0
- package/.claude/commands/workflow/tools/test-context-gather.md +235 -0
- package/.claude/commands/workflow/tools/test-task-generate.md +256 -0
- package/.claude/commands/workflow/ui-design/animation-extract.md +1150 -0
- package/.claude/commands/workflow/ui-design/codify-style.md +652 -0
- package/.claude/commands/workflow/ui-design/design-sync.md +454 -0
- package/.claude/commands/workflow/ui-design/explore-auto.md +678 -0
- package/.claude/commands/workflow/ui-design/generate.md +504 -0
- package/.claude/commands/workflow/ui-design/imitate-auto.md +745 -0
- package/.claude/commands/workflow/ui-design/import-from-code.md +537 -0
- package/.claude/commands/workflow/ui-design/layout-extract.md +788 -0
- package/.claude/commands/workflow/ui-design/reference-page-generator.md +356 -0
- package/.claude/commands/workflow/ui-design/style-extract.md +773 -0
- package/.claude/scripts/classify-folders.sh +35 -0
- package/.claude/scripts/convert_tokens_to_css.sh +225 -0
- package/.claude/scripts/detect_changed_modules.sh +157 -0
- package/.claude/scripts/discover-design-files.sh +83 -0
- package/.claude/scripts/extract-animations.js +243 -0
- package/.claude/scripts/extract-computed-styles.js +118 -0
- package/.claude/scripts/extract-layout-structure.js +411 -0
- package/.claude/scripts/generate_module_docs.sh +713 -0
- package/.claude/scripts/get_modules_by_depth.sh +166 -0
- package/.claude/scripts/ui-generate-preview.sh +391 -0
- package/.claude/scripts/ui-instantiate-prototypes.sh +811 -0
- package/.claude/scripts/update_module_claude.sh +333 -0
- package/.claude/skills/command-guide/SKILL.md +388 -0
- package/.claude/skills/command-guide/UPDATE-GUIDELINE.md +592 -0
- package/.claude/skills/command-guide/guides/cli-tools-guide.md +410 -0
- package/.claude/skills/command-guide/guides/examples.md +537 -0
- package/.claude/skills/command-guide/guides/getting-started.md +242 -0
- package/.claude/skills/command-guide/guides/implementation-details.md +1010 -0
- package/.claude/skills/command-guide/guides/index-structure.md +326 -0
- package/.claude/skills/command-guide/guides/troubleshooting.md +92 -0
- package/.claude/skills/command-guide/guides/ui-design-workflow-guide.md +316 -0
- package/.claude/skills/command-guide/guides/workflow-patterns.md +662 -0
- package/.claude/skills/command-guide/index/all-commands.json +783 -0
- package/.claude/skills/command-guide/index/by-category.json +811 -0
- package/.claude/skills/command-guide/index/by-use-case.json +797 -0
- package/.claude/skills/command-guide/index/command-relationships.json +307 -0
- package/.claude/skills/command-guide/index/essential-commands.json +123 -0
- package/.claude/skills/command-guide/reference/agents/action-planning-agent.md +722 -0
- package/.claude/skills/command-guide/reference/agents/cli-execution-agent.md +270 -0
- package/.claude/skills/command-guide/reference/agents/cli-explore-agent.md +182 -0
- package/.claude/skills/command-guide/reference/agents/cli-lite-planning-agent.md +396 -0
- package/.claude/skills/command-guide/reference/agents/cli-planning-agent.md +558 -0
- package/.claude/skills/command-guide/reference/agents/code-developer.md +310 -0
- package/.claude/skills/command-guide/reference/agents/conceptual-planning-agent.md +328 -0
- package/.claude/skills/command-guide/reference/agents/context-search-agent.md +577 -0
- package/.claude/skills/command-guide/reference/agents/doc-generator.md +330 -0
- package/.claude/skills/command-guide/reference/agents/memory-bridge.md +94 -0
- package/.claude/skills/command-guide/reference/agents/test-context-search-agent.md +399 -0
- package/.claude/skills/command-guide/reference/agents/test-fix-agent.md +343 -0
- package/.claude/skills/command-guide/reference/agents/ui-design-agent.md +593 -0
- package/.claude/skills/command-guide/reference/agents/universal-executor.md +131 -0
- package/.claude/skills/command-guide/reference/commands/cli/cli-init.md +440 -0
- package/.claude/skills/command-guide/reference/commands/enhance-prompt.md +93 -0
- package/.claude/skills/command-guide/reference/commands/memory/code-map-memory.md +687 -0
- package/.claude/skills/command-guide/reference/commands/memory/docs-full-cli.md +471 -0
- package/.claude/skills/command-guide/reference/commands/memory/docs-related-cli.md +386 -0
- package/.claude/skills/command-guide/reference/commands/memory/docs.md +610 -0
- package/.claude/skills/command-guide/reference/commands/memory/load-skill-memory.md +182 -0
- package/.claude/skills/command-guide/reference/commands/memory/load.md +240 -0
- package/.claude/skills/command-guide/reference/commands/memory/skill-memory.md +525 -0
- package/.claude/skills/command-guide/reference/commands/memory/style-skill-memory.md +396 -0
- package/.claude/skills/command-guide/reference/commands/memory/tech-research.md +477 -0
- package/.claude/skills/command-guide/reference/commands/memory/update-full.md +332 -0
- package/.claude/skills/command-guide/reference/commands/memory/update-related.md +332 -0
- package/.claude/skills/command-guide/reference/commands/memory/workflow-skill-memory.md +517 -0
- package/.claude/skills/command-guide/reference/commands/task/breakdown.md +204 -0
- package/.claude/skills/command-guide/reference/commands/task/create.md +152 -0
- package/.claude/skills/command-guide/reference/commands/task/execute.md +270 -0
- package/.claude/skills/command-guide/reference/commands/task/replan.md +437 -0
- package/.claude/skills/command-guide/reference/commands/version.md +254 -0
- package/.claude/skills/command-guide/reference/commands/workflow/action-plan-verify.md +447 -0
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/api-designer.md +585 -0
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/artifacts.md +604 -0
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/auto-parallel.md +466 -0
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/data-architect.md +220 -0
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/product-manager.md +200 -0
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/product-owner.md +200 -0
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/scrum-master.md +200 -0
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/subject-matter-expert.md +200 -0
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/synthesis.md +496 -0
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/system-architect.md +387 -0
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/ui-designer.md +221 -0
- package/.claude/skills/command-guide/reference/commands/workflow/brainstorm/ux-expert.md +221 -0
- package/.claude/skills/command-guide/reference/commands/workflow/execute.md +460 -0
- package/.claude/skills/command-guide/reference/commands/workflow/init.md +164 -0
- package/.claude/skills/command-guide/reference/commands/workflow/lite-execute.md +634 -0
- package/.claude/skills/command-guide/reference/commands/workflow/lite-fix.md +602 -0
- package/.claude/skills/command-guide/reference/commands/workflow/lite-plan.md +582 -0
- package/.claude/skills/command-guide/reference/commands/workflow/plan.md +551 -0
- package/.claude/skills/command-guide/reference/commands/workflow/replan.md +515 -0
- package/.claude/skills/command-guide/reference/commands/workflow/review-fix.md +646 -0
- package/.claude/skills/command-guide/reference/commands/workflow/review-module-cycle.md +795 -0
- package/.claude/skills/command-guide/reference/commands/workflow/review-session-cycle.md +805 -0
- package/.claude/skills/command-guide/reference/commands/workflow/review.md +291 -0
- package/.claude/skills/command-guide/reference/commands/workflow/session/complete.md +500 -0
- package/.claude/skills/command-guide/reference/commands/workflow/session/list.md +96 -0
- package/.claude/skills/command-guide/reference/commands/workflow/session/resume.md +61 -0
- package/.claude/skills/command-guide/reference/commands/workflow/session/start.md +180 -0
- package/.claude/skills/command-guide/reference/commands/workflow/status.md +352 -0
- package/.claude/skills/command-guide/reference/commands/workflow/tdd-plan.md +460 -0
- package/.claude/skills/command-guide/reference/commands/workflow/tdd-verify.md +386 -0
- package/.claude/skills/command-guide/reference/commands/workflow/test-cycle-execute.md +498 -0
- package/.claude/skills/command-guide/reference/commands/workflow/test-fix-gen.md +699 -0
- package/.claude/skills/command-guide/reference/commands/workflow/test-gen.md +529 -0
- package/.claude/skills/command-guide/reference/commands/workflow/tools/conflict-resolution.md +680 -0
- package/.claude/skills/command-guide/reference/commands/workflow/tools/context-gather.md +434 -0
- package/.claude/skills/command-guide/reference/commands/workflow/tools/task-generate-agent.md +151 -0
- package/.claude/skills/command-guide/reference/commands/workflow/tools/task-generate-tdd.md +518 -0
- package/.claude/skills/command-guide/reference/commands/workflow/tools/tdd-coverage-analysis.md +309 -0
- package/.claude/skills/command-guide/reference/commands/workflow/tools/test-concept-enhanced.md +163 -0
- package/.claude/skills/command-guide/reference/commands/workflow/tools/test-context-gather.md +235 -0
- package/.claude/skills/command-guide/reference/commands/workflow/tools/test-task-generate.md +256 -0
- package/.claude/skills/command-guide/reference/commands/workflow/ui-design/animation-extract.md +1150 -0
- package/.claude/skills/command-guide/reference/commands/workflow/ui-design/codify-style.md +652 -0
- package/.claude/skills/command-guide/reference/commands/workflow/ui-design/design-sync.md +454 -0
- package/.claude/skills/command-guide/reference/commands/workflow/ui-design/explore-auto.md +678 -0
- package/.claude/skills/command-guide/reference/commands/workflow/ui-design/generate.md +504 -0
- package/.claude/skills/command-guide/reference/commands/workflow/ui-design/imitate-auto.md +745 -0
- package/.claude/skills/command-guide/reference/commands/workflow/ui-design/import-from-code.md +537 -0
- package/.claude/skills/command-guide/reference/commands/workflow/ui-design/layout-extract.md +788 -0
- package/.claude/skills/command-guide/reference/commands/workflow/ui-design/reference-page-generator.md +356 -0
- package/.claude/skills/command-guide/reference/commands/workflow/ui-design/style-extract.md +773 -0
- package/.claude/skills/command-guide/scripts/analyze_commands.py +502 -0
- package/.claude/skills/command-guide/scripts/update-index.sh +130 -0
- package/.claude/skills/command-guide/templates/issue-bug.md +104 -0
- package/.claude/skills/command-guide/templates/issue-diagnosis.md +275 -0
- package/.claude/skills/command-guide/templates/issue-feature.md +97 -0
- package/.claude/skills/command-guide/templates/issue-question.md +141 -0
- package/.claude/skills/prompt-enhancer/SKILL.md +124 -0
- package/.claude/workflows/_template-compare-matrix.html +692 -0
- package/.claude/workflows/cli-templates/fix-plan-template.json +75 -0
- package/.claude/workflows/cli-templates/fix-progress-template.json +48 -0
- package/.claude/workflows/cli-templates/memory/style-skill-memory/skill-md-template.md +299 -0
- package/.claude/workflows/cli-templates/planning-roles/data-architect.md +120 -0
- package/.claude/workflows/cli-templates/planning-roles/product-manager.md +119 -0
- package/.claude/workflows/cli-templates/planning-roles/product-owner.md +261 -0
- package/.claude/workflows/cli-templates/planning-roles/scrum-master.md +186 -0
- package/.claude/workflows/cli-templates/planning-roles/subject-matter-expert.md +281 -0
- package/.claude/workflows/cli-templates/planning-roles/synthesis-role.md +414 -0
- package/.claude/workflows/cli-templates/planning-roles/system-architect.md +106 -0
- package/.claude/workflows/cli-templates/planning-roles/test-strategist.md +124 -0
- package/.claude/workflows/cli-templates/planning-roles/ui-designer.md +379 -0
- package/.claude/workflows/cli-templates/planning-roles/ux-expert.md +240 -0
- package/.claude/workflows/cli-templates/prompts/analysis/01-diagnose-bug-root-cause.txt +127 -0
- package/.claude/workflows/cli-templates/prompts/analysis/01-trace-code-execution.txt +115 -0
- package/.claude/workflows/cli-templates/prompts/analysis/02-analyze-code-patterns.txt +37 -0
- package/.claude/workflows/cli-templates/prompts/analysis/02-analyze-technical-document.txt +33 -0
- package/.claude/workflows/cli-templates/prompts/analysis/02-review-architecture.txt +29 -0
- package/.claude/workflows/cli-templates/prompts/analysis/02-review-code-quality.txt +28 -0
- package/.claude/workflows/cli-templates/prompts/analysis/03-analyze-performance.txt +29 -0
- package/.claude/workflows/cli-templates/prompts/analysis/03-assess-security-risks.txt +29 -0
- package/.claude/workflows/cli-templates/prompts/analysis/03-review-quality-standards.txt +29 -0
- package/.claude/workflows/cli-templates/prompts/development/02-generate-tests.txt +70 -0
- package/.claude/workflows/cli-templates/prompts/development/02-implement-component-ui.txt +55 -0
- package/.claude/workflows/cli-templates/prompts/development/02-implement-feature.txt +58 -0
- package/.claude/workflows/cli-templates/prompts/development/02-refactor-codebase.txt +55 -0
- package/.claude/workflows/cli-templates/prompts/development/03-debug-runtime-issues.txt +55 -0
- package/.claude/workflows/cli-templates/prompts/documentation/api.txt +15 -0
- package/.claude/workflows/cli-templates/prompts/documentation/folder-navigation.txt +27 -0
- package/.claude/workflows/cli-templates/prompts/documentation/module-readme.txt +49 -0
- package/.claude/workflows/cli-templates/prompts/documentation/project-architecture.txt +41 -0
- package/.claude/workflows/cli-templates/prompts/documentation/project-examples.txt +35 -0
- package/.claude/workflows/cli-templates/prompts/documentation/project-readme.txt +35 -0
- package/.claude/workflows/cli-templates/prompts/memory/02-document-module-structure.txt +165 -0
- package/.claude/workflows/cli-templates/prompts/planning/01-plan-architecture-design.txt +109 -0
- package/.claude/workflows/cli-templates/prompts/planning/02-breakdown-task-steps.txt +30 -0
- package/.claude/workflows/cli-templates/prompts/planning/02-design-component-spec.txt +28 -0
- package/.claude/workflows/cli-templates/prompts/planning/03-evaluate-concept-feasibility.txt +127 -0
- package/.claude/workflows/cli-templates/prompts/planning/03-plan-migration-strategy.txt +30 -0
- package/.claude/workflows/cli-templates/prompts/tech/tech-module-format.txt +359 -0
- package/.claude/workflows/cli-templates/prompts/tech/tech-skill-index.txt +185 -0
- package/.claude/workflows/cli-templates/prompts/test/test-concept-analysis.txt +179 -0
- package/.claude/workflows/cli-templates/prompts/universal/00-universal-creative-style.txt +95 -0
- package/.claude/workflows/cli-templates/prompts/universal/00-universal-rigorous-style.txt +92 -0
- package/.claude/workflows/cli-templates/prompts/verification/codex-technical.txt +28 -0
- package/.claude/workflows/cli-templates/prompts/verification/cross-validation.txt +28 -0
- package/.claude/workflows/cli-templates/prompts/verification/gemini-strategic.txt +27 -0
- package/.claude/workflows/cli-templates/prompts/workflow/analysis-results-structure.txt +224 -0
- package/.claude/workflows/cli-templates/prompts/workflow/codex-feasibility-validation.txt +176 -0
- package/.claude/workflows/cli-templates/prompts/workflow/gemini-solution-design.txt +131 -0
- package/.claude/workflows/cli-templates/prompts/workflow/impl-plan-template.txt +286 -0
- package/.claude/workflows/cli-templates/prompts/workflow/skill-aggregation.txt +172 -0
- package/.claude/workflows/cli-templates/prompts/workflow/skill-conflict-patterns.txt +98 -0
- package/.claude/workflows/cli-templates/prompts/workflow/skill-index.txt +224 -0
- package/.claude/workflows/cli-templates/prompts/workflow/skill-lessons-learned.txt +98 -0
- package/.claude/workflows/cli-templates/prompts/workflow/skill-sessions-timeline.txt +53 -0
- package/.claude/workflows/cli-templates/prompts/workflow/task-json-agent-mode.txt +123 -0
- package/.claude/workflows/cli-templates/prompts/workflow/task-json-cli-mode.txt +182 -0
- package/.claude/workflows/cli-templates/schemas/diagnosis-json-schema.json +234 -0
- package/.claude/workflows/cli-templates/schemas/explore-json-schema.json +124 -0
- package/.claude/workflows/cli-templates/schemas/fix-plan-json-schema.json +273 -0
- package/.claude/workflows/cli-templates/schemas/plan-json-schema.json +219 -0
- package/.claude/workflows/cli-templates/schemas/project-json-schema.json +221 -0
- package/.claude/workflows/cli-templates/schemas/review-deep-dive-results-schema.json +82 -0
- package/.claude/workflows/cli-templates/schemas/review-dimension-results-schema.json +51 -0
- package/.claude/workflows/cli-templates/tech-stacks/go-dev.md +91 -0
- package/.claude/workflows/cli-templates/tech-stacks/java-dev.md +107 -0
- package/.claude/workflows/cli-templates/tech-stacks/javascript-dev.md +58 -0
- package/.claude/workflows/cli-templates/tech-stacks/python-dev.md +79 -0
- package/.claude/workflows/cli-templates/tech-stacks/react-dev.md +103 -0
- package/.claude/workflows/cli-templates/tech-stacks/typescript-dev.md +83 -0
- package/.claude/workflows/cli-templates/ui-design/systems/animation-tokens.json +247 -0
- package/.claude/workflows/cli-templates/ui-design/systems/design-tokens.json +342 -0
- package/.claude/workflows/cli-templates/ui-design/systems/layout-templates.json +145 -0
- package/.claude/workflows/context-search-strategy.md +77 -0
- package/.claude/workflows/intelligent-tools-strategy.md +662 -0
- package/.claude/workflows/review-directory-specification.md +336 -0
- package/.claude/workflows/task-core.md +214 -0
- package/.claude/workflows/tool-strategy.md +71 -0
- package/.claude/workflows/workflow-architecture.md +942 -0
- package/.codex/AGENTS.md +330 -0
- package/.gemini/GEMINI.md +164 -0
- package/.qwen/QWEN.md +164 -0
- package/CLAUDE.md +91 -0
- package/LICENSE +21 -0
- package/README.md +219 -0
- package/ccw/README.md +121 -0
- package/ccw/bin/ccw.js +10 -0
- package/ccw/src/cli.js +100 -0
- package/ccw/src/commands/install.js +324 -0
- package/ccw/src/commands/list.js +37 -0
- package/ccw/src/commands/serve.js +67 -0
- package/ccw/src/commands/uninstall.js +238 -0
- package/ccw/src/commands/upgrade.js +307 -0
- package/ccw/src/commands/view.js +14 -0
- package/ccw/src/core/dashboard-generator-patch.js +29 -0
- package/ccw/src/core/dashboard-generator.js +667 -0
- package/ccw/src/core/data-aggregator.js +409 -0
- package/ccw/src/core/lite-scanner.js +290 -0
- package/ccw/src/core/manifest.js +201 -0
- package/ccw/src/core/server.js +1327 -0
- package/ccw/src/core/server.js.bak +385 -0
- package/ccw/src/core/server_original.bak +385 -0
- package/ccw/src/core/session-scanner.js +235 -0
- package/ccw/src/index.js +9 -0
- package/ccw/src/templates/dashboard-js/api.js +200 -0
- package/ccw/src/templates/dashboard-js/components/_conflict_tab.js +112 -0
- package/ccw/src/templates/dashboard-js/components/_exp_helpers.js +54 -0
- package/ccw/src/templates/dashboard-js/components/_review_tab.js +640 -0
- package/ccw/src/templates/dashboard-js/components/carousel.js +398 -0
- package/ccw/src/templates/dashboard-js/components/flowchart.js +493 -0
- package/ccw/src/templates/dashboard-js/components/hook-manager.js +273 -0
- package/ccw/src/templates/dashboard-js/components/mcp-manager.js +506 -0
- package/ccw/src/templates/dashboard-js/components/modals.js +260 -0
- package/ccw/src/templates/dashboard-js/components/navigation.js +239 -0
- package/ccw/src/templates/dashboard-js/components/notifications.js +194 -0
- package/ccw/src/templates/dashboard-js/components/sidebar.js +31 -0
- package/ccw/src/templates/dashboard-js/components/tabs-context.js +1093 -0
- package/ccw/src/templates/dashboard-js/components/tabs-other.js +273 -0
- package/ccw/src/templates/dashboard-js/components/task-drawer-core.js +477 -0
- package/ccw/src/templates/dashboard-js/components/task-drawer-renderers.js +447 -0
- package/ccw/src/templates/dashboard-js/components/theme.js +21 -0
- package/ccw/src/templates/dashboard-js/main.js +57 -0
- package/ccw/src/templates/dashboard-js/state.js +37 -0
- package/ccw/src/templates/dashboard-js/utils.js +153 -0
- package/ccw/src/templates/dashboard-js/views/fix-session.js +180 -0
- package/ccw/src/templates/dashboard-js/views/home.js +193 -0
- package/ccw/src/templates/dashboard-js/views/hook-manager.js +387 -0
- package/ccw/src/templates/dashboard-js/views/lite-tasks.js +390 -0
- package/ccw/src/templates/dashboard-js/views/mcp-manager.js +271 -0
- package/ccw/src/templates/dashboard-js/views/project-overview.js +246 -0
- package/ccw/src/templates/dashboard-js/views/review-session.js +711 -0
- package/ccw/src/templates/dashboard-js/views/session-detail.js +770 -0
- package/ccw/src/templates/dashboard.css +7660 -0
- package/ccw/src/templates/dashboard.html +630 -0
- package/ccw/src/templates/dashboard_tailwind.html +42 -0
- package/ccw/src/templates/dashboard_test.html +37 -0
- package/ccw/src/templates/review-cycle-dashboard.html +1930 -0
- package/ccw/src/templates/tailwind-base.css +212 -0
- package/ccw/src/templates/workflow-dashboard.html +401 -0
- package/ccw/src/utils/browser-launcher.js +49 -0
- package/ccw/src/utils/file-utils.js +48 -0
- package/ccw/src/utils/path-resolver.js +279 -0
- package/ccw/src/utils/ui.js +148 -0
- package/package.json +66 -0
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: replan
|
|
3
|
+
description: Update task JSON with new requirements or batch-update multiple tasks from verification report, tracks changes in task-changes.json
|
|
4
|
+
argument-hint: "task-id [\"text\"|file.md] | --batch [verification-report.md]"
|
|
5
|
+
allowed-tools: Read(*), Write(*), Edit(*), TodoWrite(*), Glob(*), Bash(*)
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Task Replan Command (/task:replan)
|
|
9
|
+
|
|
10
|
+
> **⚠️ DEPRECATION NOTICE**: This command is maintained for backward compatibility. For new workflows, use `/workflow:replan` which provides:
|
|
11
|
+
> - Session-level replanning with comprehensive artifact updates
|
|
12
|
+
> - Interactive boundary clarification
|
|
13
|
+
> - Updates to IMPL_PLAN.md, TODO_LIST.md, and session metadata
|
|
14
|
+
> - Better integration with workflow sessions
|
|
15
|
+
>
|
|
16
|
+
> **Migration**: Replace `/task:replan IMPL-1 "changes"` with `/workflow:replan IMPL-1 "changes"`
|
|
17
|
+
|
|
18
|
+
## Overview
|
|
19
|
+
Replans individual tasks or batch processes multiple tasks with change tracking and backup management.
|
|
20
|
+
|
|
21
|
+
**Modes**:
|
|
22
|
+
- **Single Task Mode**: Replan one task with specific changes
|
|
23
|
+
- **Batch Mode**: Process multiple tasks from action-plan verification report
|
|
24
|
+
|
|
25
|
+
## Key Features
|
|
26
|
+
- **Single/Batch Operations**: Single task or multiple tasks from verification report
|
|
27
|
+
- **Multiple Input Sources**: Text, files, or verification report
|
|
28
|
+
- **Backup Management**: Automatic backup of previous versions
|
|
29
|
+
- **Change Documentation**: Track all modifications
|
|
30
|
+
- **Progress Tracking**: TodoWrite integration for batch operations
|
|
31
|
+
|
|
32
|
+
**CRITICAL**: Validates active session before replanning
|
|
33
|
+
|
|
34
|
+
## Operation Modes
|
|
35
|
+
|
|
36
|
+
### Single Task Mode
|
|
37
|
+
|
|
38
|
+
#### Direct Text (Default)
|
|
39
|
+
```bash
|
|
40
|
+
/task:replan IMPL-1 "Add OAuth2 authentication support"
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
#### File-based Input
|
|
44
|
+
```bash
|
|
45
|
+
/task:replan IMPL-1 updated-specs.md
|
|
46
|
+
```
|
|
47
|
+
Supports: .md, .txt, .json, .yaml
|
|
48
|
+
|
|
49
|
+
#### Interactive Mode
|
|
50
|
+
```bash
|
|
51
|
+
/task:replan IMPL-1 --interactive
|
|
52
|
+
```
|
|
53
|
+
Guided step-by-step modification process with validation
|
|
54
|
+
|
|
55
|
+
### Batch Mode
|
|
56
|
+
|
|
57
|
+
#### From Verification Report
|
|
58
|
+
```bash
|
|
59
|
+
/task:replan --batch ACTION_PLAN_VERIFICATION.md
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**Workflow**:
|
|
63
|
+
1. Parse verification report to extract replan recommendations
|
|
64
|
+
2. Create TodoWrite task list for all modifications
|
|
65
|
+
3. Process each task sequentially with confirmation
|
|
66
|
+
4. Track progress and generate summary report
|
|
67
|
+
|
|
68
|
+
**Auto-detection**: If input file contains "Action Plan Verification Report" header, automatically enters batch mode
|
|
69
|
+
|
|
70
|
+
## Replanning Process
|
|
71
|
+
|
|
72
|
+
### Single Task Process
|
|
73
|
+
|
|
74
|
+
1. **Load & Validate**: Read task JSON and validate session
|
|
75
|
+
2. **Parse Input**: Process changes from input source
|
|
76
|
+
3. **Create Backup**: Save previous version to backup folder
|
|
77
|
+
4. **Update Task**: Modify JSON structure and relationships
|
|
78
|
+
5. **Save Changes**: Write updated task and increment version
|
|
79
|
+
6. **Update Session**: Reflect changes in workflow stats
|
|
80
|
+
|
|
81
|
+
### Batch Process
|
|
82
|
+
|
|
83
|
+
1. **Parse Verification Report**: Extract all replan recommendations
|
|
84
|
+
2. **Initialize TodoWrite**: Create task list for tracking
|
|
85
|
+
3. **For Each Task**:
|
|
86
|
+
- Mark todo as in_progress
|
|
87
|
+
- Load and validate task JSON
|
|
88
|
+
- Create backup
|
|
89
|
+
- Apply recommended changes
|
|
90
|
+
- Save updated task
|
|
91
|
+
- Mark todo as completed
|
|
92
|
+
4. **Generate Summary**: Report all changes and backup locations
|
|
93
|
+
|
|
94
|
+
## Backup Management
|
|
95
|
+
|
|
96
|
+
### Backup Tracking
|
|
97
|
+
Tasks maintain backup history:
|
|
98
|
+
```json
|
|
99
|
+
{
|
|
100
|
+
"id": "IMPL-1",
|
|
101
|
+
"version": "1.2",
|
|
102
|
+
"replan_history": [
|
|
103
|
+
{
|
|
104
|
+
"version": "1.2",
|
|
105
|
+
"reason": "Add OAuth2 support",
|
|
106
|
+
"input_source": "direct_text",
|
|
107
|
+
"backup_location": ".task/backup/IMPL-1-v1.1.json",
|
|
108
|
+
"timestamp": "2025-10-17T10:30:00Z"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
**Complete schema**: See @~/.claude/workflows/task-core.md
|
|
115
|
+
|
|
116
|
+
### File Structure
|
|
117
|
+
```
|
|
118
|
+
.task/
|
|
119
|
+
├── IMPL-1.json # Current version
|
|
120
|
+
├── backup/
|
|
121
|
+
│ ├── IMPL-1-v1.0.json # Original version
|
|
122
|
+
│ ├── IMPL-1-v1.1.json # Previous backup
|
|
123
|
+
│ └── IMPL-1-v1.2.json # Latest backup
|
|
124
|
+
└── [new subtasks as needed]
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
**Backup Naming**: `{task-id}-v{version}.json`
|
|
128
|
+
|
|
129
|
+
## Implementation Updates
|
|
130
|
+
|
|
131
|
+
### Change Detection
|
|
132
|
+
Tracks modifications to:
|
|
133
|
+
- Files in implementation.files array
|
|
134
|
+
- Dependencies and affected modules
|
|
135
|
+
- Risk assessments and performance notes
|
|
136
|
+
- Logic flows and code locations
|
|
137
|
+
|
|
138
|
+
### Analysis Triggers
|
|
139
|
+
May require gemini re-analysis when:
|
|
140
|
+
- New files need code extraction
|
|
141
|
+
- Function locations change
|
|
142
|
+
- Dependencies require re-evaluation
|
|
143
|
+
|
|
144
|
+
## Document Updates
|
|
145
|
+
|
|
146
|
+
### Planning Document
|
|
147
|
+
May update IMPL_PLAN.md sections when task structure changes significantly
|
|
148
|
+
|
|
149
|
+
### TODO List Sync
|
|
150
|
+
If TODO_LIST.md exists, synchronizes:
|
|
151
|
+
- New subtasks (with [ ] checkbox)
|
|
152
|
+
- Modified tasks (marked as updated)
|
|
153
|
+
- Removed subtasks (deleted from list)
|
|
154
|
+
|
|
155
|
+
## Change Documentation
|
|
156
|
+
|
|
157
|
+
### Change Summary
|
|
158
|
+
Generates brief change log with:
|
|
159
|
+
- Version increment (1.1 → 1.2)
|
|
160
|
+
- Input source and reason
|
|
161
|
+
- Key modifications made
|
|
162
|
+
- Files updated/created
|
|
163
|
+
- Backup location
|
|
164
|
+
|
|
165
|
+
## Session Updates
|
|
166
|
+
|
|
167
|
+
Updates workflow-session.json with:
|
|
168
|
+
- Modified task tracking
|
|
169
|
+
- Task count changes (if subtasks added/removed)
|
|
170
|
+
- Last modification timestamps
|
|
171
|
+
|
|
172
|
+
## Rollback Support
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
/task:replan IMPL-1 --rollback v1.1
|
|
176
|
+
|
|
177
|
+
Rollback to version 1.1:
|
|
178
|
+
- Restore task from backup/.../IMPL-1-v1.1.json
|
|
179
|
+
- Remove new subtasks if any
|
|
180
|
+
- Update session stats
|
|
181
|
+
|
|
182
|
+
# Use AskUserQuestion for confirmation
|
|
183
|
+
AskUserQuestion({
|
|
184
|
+
questions: [{
|
|
185
|
+
question: "Are you sure you want to roll back this task to a previous version?",
|
|
186
|
+
header: "Confirm",
|
|
187
|
+
options: [
|
|
188
|
+
{ label: "Yes, rollback", description: "Restore the task from the selected backup." },
|
|
189
|
+
{ label: "No, cancel", description: "Keep the current version of the task." }
|
|
190
|
+
],
|
|
191
|
+
multiSelect: false
|
|
192
|
+
}]
|
|
193
|
+
})
|
|
194
|
+
|
|
195
|
+
User selected: "Yes, rollback"
|
|
196
|
+
|
|
197
|
+
Task rolled back to version 1.1
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
## Batch Processing with TodoWrite
|
|
201
|
+
|
|
202
|
+
### Progress Tracking
|
|
203
|
+
When processing multiple tasks, automatically creates TodoWrite task list:
|
|
204
|
+
|
|
205
|
+
```markdown
|
|
206
|
+
**Batch Replan Progress**:
|
|
207
|
+
- [x] IMPL-002: Add FR-12 draft saving acceptance criteria
|
|
208
|
+
- [x] IMPL-003: Add FR-14 history tracking acceptance criteria
|
|
209
|
+
- [ ] IMPL-004: Add FR-09 response surface explicit coverage
|
|
210
|
+
- [ ] IMPL-008: Add NFR performance validation steps
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### Batch Report
|
|
214
|
+
After completion, generates summary:
|
|
215
|
+
```markdown
|
|
216
|
+
## Batch Replan Summary
|
|
217
|
+
|
|
218
|
+
**Total Tasks**: 4
|
|
219
|
+
**Successful**: 3
|
|
220
|
+
**Failed**: 1
|
|
221
|
+
**Skipped**: 0
|
|
222
|
+
|
|
223
|
+
### Changes Made
|
|
224
|
+
- IMPL-002 v1.0 → v1.1: Added FR-12 acceptance criteria
|
|
225
|
+
- IMPL-003 v1.0 → v1.1: Added FR-14 acceptance criteria
|
|
226
|
+
- IMPL-004 v1.0 → v1.1: Added FR-09 explicit coverage
|
|
227
|
+
|
|
228
|
+
### Backups Created
|
|
229
|
+
- .task/backup/IMPL-002-v1.0.json
|
|
230
|
+
- .task/backup/IMPL-003-v1.0.json
|
|
231
|
+
- .task/backup/IMPL-004-v1.0.json
|
|
232
|
+
|
|
233
|
+
### Errors
|
|
234
|
+
- IMPL-008: File not found (task may have been renamed)
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
## Examples
|
|
238
|
+
|
|
239
|
+
### Single Task - Text Input
|
|
240
|
+
```bash
|
|
241
|
+
/task:replan IMPL-1 "Add OAuth2 authentication support"
|
|
242
|
+
|
|
243
|
+
Processing changes...
|
|
244
|
+
Proposed updates:
|
|
245
|
+
+ Add OAuth2 integration
|
|
246
|
+
+ Update authentication flow
|
|
247
|
+
|
|
248
|
+
# Use AskUserQuestion for confirmation
|
|
249
|
+
AskUserQuestion({
|
|
250
|
+
questions: [{
|
|
251
|
+
question: "Do you want to apply these changes to the task?",
|
|
252
|
+
header: "Apply",
|
|
253
|
+
options: [
|
|
254
|
+
{ label: "Yes, apply", description: "Create new version with these changes." },
|
|
255
|
+
{ label: "No, cancel", description: "Discard changes and keep current version." }
|
|
256
|
+
],
|
|
257
|
+
multiSelect: false
|
|
258
|
+
}]
|
|
259
|
+
})
|
|
260
|
+
|
|
261
|
+
User selected: "Yes, apply"
|
|
262
|
+
|
|
263
|
+
Version 1.2 created
|
|
264
|
+
Context updated
|
|
265
|
+
Backup saved to .task/backup/IMPL-1-v1.1.json
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
### Single Task - File Input
|
|
269
|
+
```bash
|
|
270
|
+
/task:replan IMPL-2 requirements.md
|
|
271
|
+
|
|
272
|
+
Loading requirements.md...
|
|
273
|
+
Applying specification changes...
|
|
274
|
+
|
|
275
|
+
Task updated with new requirements
|
|
276
|
+
Version 1.1 created
|
|
277
|
+
Backup saved to .task/backup/IMPL-2-v1.0.json
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
### Batch Mode - From Verification Report
|
|
281
|
+
```bash
|
|
282
|
+
/task:replan --batch .workflow/active/WFS-{session}/.process/ACTION_PLAN_VERIFICATION.md
|
|
283
|
+
|
|
284
|
+
Parsing verification report...
|
|
285
|
+
Found 4 tasks requiring replanning:
|
|
286
|
+
- IMPL-002: Add FR-12 draft saving acceptance criteria
|
|
287
|
+
- IMPL-003: Add FR-14 history tracking acceptance criteria
|
|
288
|
+
- IMPL-004: Add FR-09 response surface explicit coverage
|
|
289
|
+
- IMPL-008: Add NFR performance validation steps
|
|
290
|
+
|
|
291
|
+
Creating task tracking list...
|
|
292
|
+
|
|
293
|
+
Processing IMPL-002...
|
|
294
|
+
Backup created: .task/backup/IMPL-002-v1.0.json
|
|
295
|
+
Updated to v1.1
|
|
296
|
+
|
|
297
|
+
Processing IMPL-003...
|
|
298
|
+
Backup created: .task/backup/IMPL-003-v1.0.json
|
|
299
|
+
Updated to v1.1
|
|
300
|
+
|
|
301
|
+
Processing IMPL-004...
|
|
302
|
+
Backup created: .task/backup/IMPL-004-v1.0.json
|
|
303
|
+
Updated to v1.1
|
|
304
|
+
|
|
305
|
+
Processing IMPL-008...
|
|
306
|
+
Backup created: .task/backup/IMPL-008-v1.0.json
|
|
307
|
+
Updated to v1.1
|
|
308
|
+
|
|
309
|
+
Batch replan completed: 4/4 successful
|
|
310
|
+
Summary report saved
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
### Batch Mode - Auto-detection
|
|
314
|
+
```bash
|
|
315
|
+
# If file contains "Action Plan Verification Report", auto-enters batch mode
|
|
316
|
+
/task:replan ACTION_PLAN_VERIFICATION.md
|
|
317
|
+
|
|
318
|
+
Detected verification report format
|
|
319
|
+
Entering batch mode...
|
|
320
|
+
[same as above]
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
## Error Handling
|
|
324
|
+
|
|
325
|
+
### Single Task Errors
|
|
326
|
+
```bash
|
|
327
|
+
# Task not found
|
|
328
|
+
Task IMPL-5 not found
|
|
329
|
+
Check task ID with /workflow:status
|
|
330
|
+
|
|
331
|
+
# Task completed
|
|
332
|
+
Task IMPL-1 is completed (cannot replan)
|
|
333
|
+
Create new task for additional work
|
|
334
|
+
|
|
335
|
+
# File not found
|
|
336
|
+
File requirements.md not found
|
|
337
|
+
Check file path
|
|
338
|
+
|
|
339
|
+
# No input provided
|
|
340
|
+
Please specify changes needed
|
|
341
|
+
Provide text, file, or verification report
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
### Batch Mode Errors
|
|
345
|
+
```bash
|
|
346
|
+
# Invalid verification report
|
|
347
|
+
File does not contain valid verification report format
|
|
348
|
+
Check report structure or use single task mode
|
|
349
|
+
|
|
350
|
+
# Partial failures
|
|
351
|
+
Batch completed with errors: 3/4 successful
|
|
352
|
+
Review error details in summary report
|
|
353
|
+
|
|
354
|
+
# No replan recommendations found
|
|
355
|
+
Verification report contains no replan recommendations
|
|
356
|
+
Check report content or use /workflow:action-plan-verify first
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
## Batch Mode Integration
|
|
360
|
+
|
|
361
|
+
### Input Format Expectations
|
|
362
|
+
Batch mode parses verification reports looking for:
|
|
363
|
+
|
|
364
|
+
1. **Required Actions Section**: Commands like `/task:replan IMPL-X "changes"`
|
|
365
|
+
2. **Findings Table**: Task IDs with recommendations
|
|
366
|
+
3. **Next Actions Section**: Specific replan commands
|
|
367
|
+
|
|
368
|
+
**Example Patterns**:
|
|
369
|
+
```markdown
|
|
370
|
+
#### 1. HIGH Priority - Address FR Coverage Gaps
|
|
371
|
+
/task:replan IMPL-004 "
|
|
372
|
+
Add explicit acceptance criteria:
|
|
373
|
+
- FR-09: Response surface 3D visualization
|
|
374
|
+
"
|
|
375
|
+
|
|
376
|
+
#### 2. MEDIUM Priority - Enhance NFR Coverage
|
|
377
|
+
/task:replan IMPL-008 "
|
|
378
|
+
Add performance testing:
|
|
379
|
+
- NFR-01: Load test API endpoints
|
|
380
|
+
"
|
|
381
|
+
```
|
|
382
|
+
|
|
383
|
+
### Extraction Logic
|
|
384
|
+
1. Scan for `/task:replan` commands in report
|
|
385
|
+
2. Extract task ID and change description
|
|
386
|
+
3. Group by priority (HIGH, MEDIUM, LOW)
|
|
387
|
+
4. Process in priority order with TodoWrite tracking
|
|
388
|
+
|
|
389
|
+
### Confirmation Behavior
|
|
390
|
+
- **Default**: Confirm each task before applying
|
|
391
|
+
- **With `--auto-confirm`**: Apply all changes without prompting
|
|
392
|
+
```bash
|
|
393
|
+
/task:replan --batch report.md --auto-confirm
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
## Implementation Details
|
|
397
|
+
|
|
398
|
+
### Backup Management
|
|
399
|
+
```typescript
|
|
400
|
+
// Backup file naming convention
|
|
401
|
+
const backupPath = `.task/backup/${taskId}-v${previousVersion}.json`;
|
|
402
|
+
|
|
403
|
+
// Backup metadata in task JSON
|
|
404
|
+
{
|
|
405
|
+
"replan_history": [
|
|
406
|
+
{
|
|
407
|
+
"version": "1.2",
|
|
408
|
+
"timestamp": "2025-10-17T10:30:00Z",
|
|
409
|
+
"reason": "Add FR-09 explicit coverage",
|
|
410
|
+
"input_source": "batch_verification_report",
|
|
411
|
+
"backup_location": ".task/backup/IMPL-004-v1.1.json"
|
|
412
|
+
}
|
|
413
|
+
]
|
|
414
|
+
}
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
### TodoWrite Integration
|
|
418
|
+
```typescript
|
|
419
|
+
// Initialize tracking for batch mode
|
|
420
|
+
TodoWrite({
|
|
421
|
+
todos: taskList.map(task => ({
|
|
422
|
+
content: `${task.id}: ${task.changeDescription}`,
|
|
423
|
+
status: "pending",
|
|
424
|
+
activeForm: `Replanning ${task.id}`
|
|
425
|
+
}))
|
|
426
|
+
});
|
|
427
|
+
|
|
428
|
+
// Update progress during processing
|
|
429
|
+
TodoWrite({
|
|
430
|
+
todos: updateTaskStatus(taskId, "in_progress")
|
|
431
|
+
});
|
|
432
|
+
|
|
433
|
+
// Mark completed
|
|
434
|
+
TodoWrite({
|
|
435
|
+
todos: updateTaskStatus(taskId, "completed")
|
|
436
|
+
});
|
|
437
|
+
```
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: version
|
|
3
|
+
description: Display Claude Code version information and check for updates
|
|
4
|
+
allowed-tools: Bash(*)
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Version Command (/version)
|
|
8
|
+
|
|
9
|
+
## Purpose
|
|
10
|
+
Display local and global installation versions, check for the latest updates from GitHub, and provide upgrade recommendations.
|
|
11
|
+
|
|
12
|
+
## Execution Flow
|
|
13
|
+
1. **Local Version Check**: Read version information from `./.claude/version.json` if it exists.
|
|
14
|
+
2. **Global Version Check**: Read version information from `~/.claude/version.json` if it exists.
|
|
15
|
+
3. **Fetch Remote Versions**: Use GitHub API to get the latest stable release tag and the latest commit hash from the main branch.
|
|
16
|
+
4. **Compare & Suggest**: Compare installed versions with the latest remote versions and provide upgrade suggestions if applicable.
|
|
17
|
+
|
|
18
|
+
## Step 1: Check Local Version
|
|
19
|
+
|
|
20
|
+
### Check if local version.json exists
|
|
21
|
+
```bash
|
|
22
|
+
bash(test -f ./.claude/version.json && echo "found" || echo "not_found")
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Read local version (if exists)
|
|
26
|
+
```bash
|
|
27
|
+
bash(cat ./.claude/version.json)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Extract version with jq (preferred)
|
|
31
|
+
```bash
|
|
32
|
+
bash(cat ./.claude/version.json | grep -o '"version": *"[^"]*"' | cut -d'"' -f4)
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Extract installation date
|
|
36
|
+
```bash
|
|
37
|
+
bash(cat ./.claude/version.json | grep -o '"installation_date_utc": *"[^"]*"' | cut -d'"' -f4)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**Output Format**:
|
|
41
|
+
```
|
|
42
|
+
Local Version: 3.2.1
|
|
43
|
+
Installed: 2025-10-03T12:00:00Z
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Step 2: Check Global Version
|
|
47
|
+
|
|
48
|
+
### Check if global version.json exists
|
|
49
|
+
```bash
|
|
50
|
+
bash(test -f ~/.claude/version.json && echo "found" || echo "not_found")
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Read global version
|
|
54
|
+
```bash
|
|
55
|
+
bash(cat ~/.claude/version.json)
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Extract version
|
|
59
|
+
```bash
|
|
60
|
+
bash(cat ~/.claude/version.json | grep -o '"version": *"[^"]*"' | cut -d'"' -f4)
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Extract installation date
|
|
64
|
+
```bash
|
|
65
|
+
bash(cat ~/.claude/version.json | grep -o '"installation_date_utc": *"[^"]*"' | cut -d'"' -f4)
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**Output Format**:
|
|
69
|
+
```
|
|
70
|
+
Global Version: 3.2.1
|
|
71
|
+
Installed: 2025-10-03T12:00:00Z
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Step 3: Fetch Latest Stable Release
|
|
75
|
+
|
|
76
|
+
### Call GitHub API for latest release (with timeout)
|
|
77
|
+
```bash
|
|
78
|
+
bash(curl -fsSL "https://api.github.com/repos/catlog22/Claude-Code-Workflow/releases/latest" 2>/dev/null, timeout: 30000)
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Extract tag name (version)
|
|
82
|
+
```bash
|
|
83
|
+
bash(curl -fsSL "https://api.github.com/repos/catlog22/Claude-Code-Workflow/releases/latest" 2>/dev/null | grep -o '"tag_name": *"[^"]*"' | head -1 | cut -d'"' -f4, timeout: 30000)
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Extract release name
|
|
87
|
+
```bash
|
|
88
|
+
bash(curl -fsSL "https://api.github.com/repos/catlog22/Claude-Code-Workflow/releases/latest" 2>/dev/null | grep -o '"name": *"[^"]*"' | head -1 | cut -d'"' -f4, timeout: 30000)
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Extract published date
|
|
92
|
+
```bash
|
|
93
|
+
bash(curl -fsSL "https://api.github.com/repos/catlog22/Claude-Code-Workflow/releases/latest" 2>/dev/null | grep -o '"published_at": *"[^"]*"' | cut -d'"' -f4, timeout: 30000)
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
**Output Format**:
|
|
97
|
+
```
|
|
98
|
+
Latest Stable: v3.2.2
|
|
99
|
+
Release: v3.2.2: Independent Test-Gen Workflow with Cross-Session Context
|
|
100
|
+
Published: 2025-10-03T04:10:08Z
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Step 4: Fetch Latest Main Branch
|
|
104
|
+
|
|
105
|
+
### Call GitHub API for latest commit on main (with timeout)
|
|
106
|
+
```bash
|
|
107
|
+
bash(curl -fsSL "https://api.github.com/repos/catlog22/Claude-Code-Workflow/commits/main" 2>/dev/null, timeout: 30000)
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Extract commit SHA (short)
|
|
111
|
+
```bash
|
|
112
|
+
bash(curl -fsSL "https://api.github.com/repos/catlog22/Claude-Code-Workflow/commits/main" 2>/dev/null | grep -o '"sha": *"[^"]*"' | head -1 | cut -d'"' -f4 | cut -c1-7, timeout: 30000)
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Extract commit message (first line only)
|
|
116
|
+
```bash
|
|
117
|
+
bash(curl -fsSL "https://api.github.com/repos/catlog22/Claude-Code-Workflow/commits/main" 2>/dev/null | grep '"message":' | cut -d'"' -f4 | cut -d'\' -f1, timeout: 30000)
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Extract commit date
|
|
121
|
+
```bash
|
|
122
|
+
bash(curl -fsSL "https://api.github.com/repos/catlog22/Claude-Code-Workflow/commits/main" 2>/dev/null | grep -o '"date": *"[^"]*"' | head -1 | cut -d'"' -f4, timeout: 30000)
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
**Output Format**:
|
|
126
|
+
```
|
|
127
|
+
Latest Dev: a03415b
|
|
128
|
+
Message: feat: Add version tracking and upgrade check system
|
|
129
|
+
Date: 2025-10-03T04:46:44Z
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## Step 5: Compare Versions and Suggest Upgrade
|
|
133
|
+
|
|
134
|
+
### Normalize versions (remove 'v' prefix)
|
|
135
|
+
```bash
|
|
136
|
+
bash(echo "v3.2.1" | sed 's/^v//')
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Compare two versions
|
|
140
|
+
```bash
|
|
141
|
+
bash(printf "%s\n%s" "3.2.1" "3.2.2" | sort -V | tail -n 1)
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Check if versions are equal
|
|
145
|
+
```bash
|
|
146
|
+
# If equal: Up to date
|
|
147
|
+
# If remote newer: Upgrade available
|
|
148
|
+
# If local newer: Development version
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
**Output Scenarios**:
|
|
152
|
+
|
|
153
|
+
**Scenario 1: Up to date**
|
|
154
|
+
```
|
|
155
|
+
You are on the latest stable version (3.2.1)
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
**Scenario 2: Upgrade available**
|
|
159
|
+
```
|
|
160
|
+
A newer stable version is available: v3.2.2
|
|
161
|
+
Your version: 3.2.1
|
|
162
|
+
|
|
163
|
+
To upgrade:
|
|
164
|
+
PowerShell: iex (iwr -useb https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1)
|
|
165
|
+
Bash: bash <(curl -fsSL https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.sh)
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
**Scenario 3: Development version**
|
|
169
|
+
```
|
|
170
|
+
You are running a development version (3.4.0-dev)
|
|
171
|
+
This is newer than the latest stable release (v3.3.0)
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
## Simple Bash Commands
|
|
175
|
+
|
|
176
|
+
### Basic Operations
|
|
177
|
+
```bash
|
|
178
|
+
# Check local version file
|
|
179
|
+
bash(test -f ./.claude/version.json && cat ./.claude/version.json)
|
|
180
|
+
|
|
181
|
+
# Check global version file
|
|
182
|
+
bash(test -f ~/.claude/version.json && cat ~/.claude/version.json)
|
|
183
|
+
|
|
184
|
+
# Extract version from JSON
|
|
185
|
+
bash(cat version.json | grep -o '"version": *"[^"]*"' | cut -d'"' -f4)
|
|
186
|
+
|
|
187
|
+
# Extract date from JSON
|
|
188
|
+
bash(cat version.json | grep -o '"installation_date_utc": *"[^"]*"' | cut -d'"' -f4)
|
|
189
|
+
|
|
190
|
+
# Fetch latest release (with timeout)
|
|
191
|
+
bash(curl -fsSL "https://api.github.com/repos/catlog22/Claude-Code-Workflow/releases/latest" 2>/dev/null, timeout: 30000)
|
|
192
|
+
|
|
193
|
+
# Extract tag name
|
|
194
|
+
bash(curl -fsSL "https://api.github.com/repos/catlog22/Claude-Code-Workflow/releases/latest" 2>/dev/null | grep -o '"tag_name": *"[^"]*"' | cut -d'"' -f4, timeout: 30000)
|
|
195
|
+
|
|
196
|
+
# Extract release name
|
|
197
|
+
bash(curl -fsSL "https://api.github.com/repos/catlog22/Claude-Code-Workflow/releases/latest" 2>/dev/null | grep -o '"name": *"[^"]*"' | head -1 | cut -d'"' -f4, timeout: 30000)
|
|
198
|
+
|
|
199
|
+
# Fetch latest commit (with timeout)
|
|
200
|
+
bash(curl -fsSL "https://api.github.com/repos/catlog22/Claude-Code-Workflow/commits/main" 2>/dev/null, timeout: 30000)
|
|
201
|
+
|
|
202
|
+
# Extract commit SHA
|
|
203
|
+
bash(curl -fsSL "https://api.github.com/repos/catlog22/Claude-Code-Workflow/commits/main" 2>/dev/null | grep -o '"sha": *"[^"]*"' | head -1 | cut -d'"' -f4 | cut -c1-7, timeout: 30000)
|
|
204
|
+
|
|
205
|
+
# Extract commit message (first line)
|
|
206
|
+
bash(curl -fsSL "https://api.github.com/repos/catlog22/Claude-Code-Workflow/commits/main" 2>/dev/null | grep '"message":' | cut -d'"' -f4 | cut -d'\' -f1, timeout: 30000)
|
|
207
|
+
|
|
208
|
+
# Compare versions
|
|
209
|
+
bash(printf "%s\n%s" "3.2.1" "3.2.2" | sort -V | tail -n 1)
|
|
210
|
+
|
|
211
|
+
# Remove 'v' prefix
|
|
212
|
+
bash(echo "v3.2.1" | sed 's/^v//')
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
## Error Handling
|
|
216
|
+
|
|
217
|
+
### No installation found
|
|
218
|
+
```
|
|
219
|
+
WARNING: Claude Code Workflow not installed
|
|
220
|
+
Install using:
|
|
221
|
+
PowerShell: iex (iwr -useb https://raw.githubusercontent.com/catlog22/Claude-Code-Workflow/main/install-remote.ps1)
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
### Network error
|
|
225
|
+
```
|
|
226
|
+
ERROR: Could not fetch latest version from GitHub
|
|
227
|
+
Check your network connection
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
### Invalid version.json
|
|
231
|
+
```
|
|
232
|
+
ERROR: version.json is invalid or corrupted
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
## Design Notes
|
|
236
|
+
|
|
237
|
+
- Uses simple, direct bash commands instead of complex functions
|
|
238
|
+
- Each step is independent and can be executed separately
|
|
239
|
+
- Fallback to grep/sed for JSON parsing (no jq dependency required)
|
|
240
|
+
- Network calls use curl with error suppression and 30-second timeout
|
|
241
|
+
- Version comparison uses `sort -V` for accurate semantic versioning
|
|
242
|
+
- Use `/commits/main` API instead of `/branches/main` for more reliable commit info
|
|
243
|
+
- Extract first line of commit message using `cut -d'\' -f1` to handle JSON escape sequences
|
|
244
|
+
|
|
245
|
+
## API Endpoints
|
|
246
|
+
|
|
247
|
+
### GitHub API Used
|
|
248
|
+
- **Latest Release**: `https://api.github.com/repos/catlog22/Claude-Code-Workflow/releases/latest`
|
|
249
|
+
- Fields: `tag_name`, `name`, `published_at`
|
|
250
|
+
- **Latest Commit**: `https://api.github.com/repos/catlog22/Claude-Code-Workflow/commits/main`
|
|
251
|
+
- Fields: `sha`, `commit.message`, `commit.author.date`
|
|
252
|
+
|
|
253
|
+
### Timeout Configuration
|
|
254
|
+
All network calls should use `timeout: 30000` (30 seconds) to handle slow connections.
|