cokit-cli 1.2.7 → 1.3.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/README.md +8 -31
- package/agents/brainstormer.agent.md +28 -14
- package/agents/code-reviewer.agent.md +101 -67
- package/agents/code-simplifier.agent.md +36 -41
- package/agents/debugger.agent.md +29 -24
- package/agents/docs-manager.agent.md +15 -23
- package/agents/fullstack-developer.agent.md +16 -6
- package/agents/git-manager.agent.md +0 -3
- package/agents/planner.agent.md +16 -34
- package/agents/project-manager.agent.md +24 -0
- package/agents/researcher.agent.md +15 -13
- package/agents/tester.agent.md +43 -20
- package/agents/ui-ux-designer.agent.md +16 -49
- package/docs/README.md +8 -9
- package/docs/Skills Orchestration Layer - Training Slides - en.pdf +0 -0
- package/docs/Skills Orchestration Layer - Training Slides - vi.pdf +0 -0
- package/docs/code-standards.md +1 -2
- package/docs/codebase-summary.md +35 -66
- package/docs/cokit-commands-usage-guide.md +27 -73
- package/docs/cokit-comprehensive-mapping-guide.md +8 -10
- package/docs/cokit-slides.md +2 -5
- package/docs/cokit-sync-and-maintenance-guide.md +42 -190
- package/docs/cokit-team-presentation.md +6 -9
- package/docs/copilot-processing-flow.md +3 -3
- package/docs/migration-guide.md +14 -14
- package/docs/project-overview-pdr.md +5 -6
- package/docs/project-roadmap.md +12 -14
- package/docs/skills-and-orchestration-layer-en.md +404 -0
- package/docs/skills-and-orchestration-layer-vi.md +404 -0
- package/docs/system-architecture.md +13 -17
- package/docs/{claudekit-porting-rules.md → upstream-porting-rules.md} +15 -16
- package/package.json +3 -4
- package/prompts/ck-ask.prompt.md +0 -1
- package/prompts/ck-bootstrap.prompt.md +0 -3
- package/prompts/ck-brainstorm.prompt.md +0 -1
- package/prompts/ck-cook.prompt.md +0 -1
- package/prompts/ck-debug.prompt.md +0 -1
- package/prompts/ck-deploy.prompt.md +22 -0
- package/prompts/ck-docs.prompt.md +0 -1
- package/prompts/ck-frontend.prompt.md +20 -0
- package/prompts/ck-help.prompt.md +0 -1
- package/prompts/ck-plan-fast.prompt.md +0 -3
- package/prompts/ck-plan-hard.prompt.md +0 -3
- package/prompts/ck-plan.prompt.md +0 -3
- package/prompts/ck-project.prompt.md +20 -0
- package/prompts/ck-review.prompt.md +0 -3
- package/prompts/ck-scout.prompt.md +0 -1
- package/prompts/ck-security.prompt.md +22 -0
- package/prompts/ck-ship.prompt.md +22 -0
- package/prompts/ck-test.prompt.md +0 -2
- package/prompts/ck-watzup.prompt.md +0 -1
- package/skills/agent-browser/SKILL.md +11 -8
- package/skills/agent-browser/references/agent-browser-vs-chrome-devtools.md +112 -0
- package/skills/bootstrap/SKILL.md +102 -0
- package/skills/bootstrap/references/shared-phases.md +59 -0
- package/skills/bootstrap/references/workflow-auto.md +52 -0
- package/skills/bootstrap/references/workflow-fast.md +50 -0
- package/skills/bootstrap/references/workflow-full.md +60 -0
- package/skills/bootstrap/references/workflow-parallel.md +59 -0
- package/skills/brainstorm/SKILL.md +63 -15
- package/skills/code-review/SKILL.md +138 -135
- package/skills/code-review/references/adversarial-review.md +223 -0
- package/skills/code-review/references/checklist-workflow.md +100 -0
- package/skills/code-review/references/checklists/api.md +52 -0
- package/skills/code-review/references/checklists/base.md +100 -0
- package/skills/code-review/references/checklists/web-app.md +54 -0
- package/skills/code-review/references/code-review-reception.md +48 -144
- package/skills/code-review/references/codebase-scan-workflow.md +30 -0
- package/skills/code-review/references/edge-case-scouting.md +119 -0
- package/skills/code-review/references/input-mode-resolution.md +135 -0
- package/skills/code-review/references/parallel-review-workflow.md +76 -0
- package/skills/code-review/references/requesting-code-review.md +115 -104
- package/skills/code-review/references/spec-compliance-review.md +43 -0
- package/skills/code-review/references/task-management-reviews.md +155 -0
- package/skills/common/README.md +2 -12
- package/skills/common/api_key_helper.py +7 -37
- package/skills/context-engineering/SKILL.md +4 -3
- package/skills/context-engineering/references/context-degradation.md +2 -2
- package/skills/context-engineering/references/runtime-awareness.md +5 -47
- package/skills/cook/README.md +13 -13
- package/skills/cook/SKILL.md +86 -58
- package/skills/cook/references/intent-detection.md +7 -7
- package/skills/cook/references/review-cycle.md +2 -2
- package/skills/cook/references/subagent-patterns.md +75 -0
- package/skills/cook/references/workflow-steps.md +75 -23
- package/skills/databases/SKILL.md +3 -30
- package/skills/databases/db-design.md +1 -1
- package/skills/debug/SKILL.md +47 -105
- package/skills/debug/references/frontend-verification.md +103 -0
- package/skills/debug/references/investigation-methodology.md +101 -0
- package/skills/debug/references/log-and-ci-analysis.md +97 -0
- package/skills/debug/references/performance-diagnostics.md +113 -0
- package/skills/debug/references/reporting-standards.md +122 -0
- package/skills/debug/references/task-management-debugging.md +155 -0
- package/skills/deploy/SKILL.md +154 -0
- package/skills/deploy/references/platform-config-templates.md +35 -0
- package/skills/deploy/references/platforms/aws.md +58 -0
- package/skills/deploy/references/platforms/cloudflare.md +41 -0
- package/skills/deploy/references/platforms/coolify.md +32 -0
- package/skills/deploy/references/platforms/digitalocean.md +45 -0
- package/skills/deploy/references/platforms/dokploy.md +29 -0
- package/skills/deploy/references/platforms/flyio.md +54 -0
- package/skills/deploy/references/platforms/gcp.md +45 -0
- package/skills/deploy/references/platforms/github-pages.md +56 -0
- package/skills/deploy/references/platforms/heroku.md +31 -0
- package/skills/deploy/references/platforms/netlify.md +39 -0
- package/skills/deploy/references/platforms/railway.md +38 -0
- package/skills/deploy/references/platforms/render.md +39 -0
- package/skills/deploy/references/platforms/tose.md +35 -0
- package/skills/deploy/references/platforms/vercel.md +37 -0
- package/skills/deploy/references/platforms/vultr.md +27 -0
- package/skills/devops/SKILL.md +6 -12
- package/skills/docs-seeker/SKILL.md +2 -1
- package/skills/docs-seeker/references/context7-patterns.md +4 -0
- package/skills/docs-seeker/scripts/fetch-docs.js +1 -2
- package/skills/docs-seeker/scripts/utils/env-loader.js +4 -4
- package/skills/docs-seeker/workflows/library-search.md +1 -0
- package/skills/fix/SKILL.md +141 -44
- package/skills/fix/references/complexity-assessment.md +21 -9
- package/skills/fix/references/diagnosis-protocol.md +133 -0
- package/skills/fix/references/mode-selection.md +27 -11
- package/skills/fix/references/parallel-exploration.md +35 -12
- package/skills/fix/references/prevention-gate.md +87 -0
- package/skills/fix/references/review-cycle.md +3 -3
- package/skills/fix/references/skill-activation-matrix.md +64 -31
- package/skills/fix/references/task-orchestration.md +110 -0
- package/skills/fix/references/workflow-deep.md +110 -47
- package/skills/fix/references/workflow-logs.md +46 -10
- package/skills/fix/references/workflow-quick.md +43 -20
- package/skills/fix/references/workflow-standard.md +75 -41
- package/skills/fix/references/workflow-test.md +49 -10
- package/skills/fix/references/workflow-ui.md +56 -18
- package/skills/frontend-design/SKILL.md +109 -77
- package/skills/frontend-design/references/ai-multimodal-overview.md +165 -0
- package/skills/frontend-design/references/anti-slop-rules.md +103 -0
- package/skills/frontend-design/references/asset-generation.md +284 -108
- package/skills/frontend-design/references/bento-motion-engine.md +142 -0
- package/skills/frontend-design/references/magicui-components.md +129 -0
- package/skills/frontend-design/references/performance-guardrails.md +169 -0
- package/skills/frontend-design/references/premium-design-patterns.md +93 -0
- package/skills/frontend-design/references/redesign-audit-checklist.md +114 -0
- package/skills/frontend-design/references/visual-analysis-overview.md +1 -1
- package/skills/frontend-design/references/workflow-3d.md +98 -0
- package/skills/frontend-design/references/workflow-describe.md +4 -3
- package/skills/frontend-design/references/workflow-immersive.md +82 -0
- package/skills/frontend-design/references/workflow-quick.md +10 -12
- package/skills/frontend-design/references/workflow-screenshot.md +9 -8
- package/skills/frontend-design/references/workflow-video.md +74 -0
- package/skills/frontend-development/SKILL.md +400 -0
- package/skills/frontend-development/resources/common-patterns.md +331 -0
- package/skills/frontend-development/resources/complete-examples.md +872 -0
- package/skills/frontend-development/resources/component-patterns.md +502 -0
- package/skills/frontend-development/resources/data-fetching.md +767 -0
- package/skills/frontend-development/resources/file-organization.md +502 -0
- package/skills/frontend-development/resources/loading-and-error-states.md +501 -0
- package/skills/frontend-development/resources/performance.md +406 -0
- package/skills/frontend-development/resources/routing-guide.md +364 -0
- package/skills/frontend-development/resources/styling-guide.md +428 -0
- package/skills/frontend-development/resources/typescript-standards.md +418 -0
- package/skills/git/SKILL.md +18 -4
- package/skills/git/references/commit-standards.md +3 -3
- package/skills/git/references/workflow-commit.md +3 -3
- package/skills/git/references/workflow-merge.md +1 -1
- package/skills/git/references/workflow-pr.md +1 -1
- package/skills/git/references/workflow-push.md +1 -1
- package/skills/mcp-management/README.md +18 -18
- package/skills/mcp-management/SKILL.md +16 -15
- package/skills/mcp-management/references/configuration.md +4 -4
- package/skills/mcp-management/references/gemini-cli-integration.md +12 -12
- package/skills/mcp-management/scripts/.env.example +2 -2
- package/skills/mcp-management/scripts/dist/mcp-client.js +1 -1
- package/skills/mcp-management/scripts/mcp-client.ts +1 -1
- package/skills/mermaidjs-v11/SKILL.md +1 -0
- package/skills/planning/SKILL.md +122 -91
- package/skills/planning/references/archive-workflow.md +53 -0
- package/skills/planning/references/codebase-understanding.md +1 -1
- package/skills/planning/references/output-standards.md +17 -13
- package/skills/planning/references/plan-organization.md +52 -30
- package/skills/planning/references/red-team-personas.md +69 -0
- package/skills/planning/references/red-team-workflow.md +77 -0
- package/skills/planning/references/scope-challenge.md +90 -0
- package/skills/planning/references/task-management.md +134 -0
- package/skills/planning/references/validate-question-framework.md +80 -0
- package/skills/planning/references/validate-workflow.md +65 -0
- package/skills/planning/references/workflow-modes.md +154 -0
- package/skills/problem-solving/SKILL.md +1 -0
- package/skills/project-management/SKILL.md +133 -0
- package/skills/project-management/references/documentation-triggers.md +60 -0
- package/skills/project-management/references/hydration-workflow.md +89 -0
- package/skills/project-management/references/progress-tracking.md +120 -0
- package/skills/project-management/references/reporting-patterns.md +94 -0
- package/skills/project-management/references/task-operations.md +87 -0
- package/skills/repomix/SKILL.md +3 -2
- package/skills/repomix/references/usage-patterns.md +2 -2
- package/skills/repomix/scripts/README.md +1 -1
- package/skills/repomix/scripts/repomix_batch.py +2 -2
- package/skills/research/SKILL.md +7 -4
- package/skills/scout/SKILL.md +24 -24
- package/skills/scout/references/external-scouting.md +17 -17
- package/skills/scout/references/internal-scouting.md +9 -9
- package/skills/scout/references/task-management-scouting.md +125 -0
- package/skills/security/SKILL.md +139 -0
- package/skills/security/references/stride-owasp-checklist.md +128 -0
- package/skills/sequential-thinking/README.md +3 -3
- package/skills/sequential-thinking/SKILL.md +2 -0
- package/skills/sequential-thinking/package.json +1 -1
- package/skills/ship/SKILL.md +116 -0
- package/skills/ship/references/auto-detect.md +103 -0
- package/skills/ship/references/pr-template.md +90 -0
- package/skills/ship/references/ship-workflow.md +241 -0
- package/skills/test/SKILL.md +111 -0
- package/skills/test/references/report-format.md +58 -0
- package/skills/test/references/test-execution-workflow.md +103 -0
- package/skills/test/references/ui-testing-workflow.md +65 -0
- package/skills/ui-styling/SKILL.md +2 -0
- package/skills/web-testing/SKILL.md +8 -60
- package/templates/repo/.github/agents/brainstormer.agent.md +28 -14
- package/templates/repo/.github/agents/code-reviewer.agent.md +101 -67
- package/templates/repo/.github/agents/code-simplifier.agent.md +36 -41
- package/templates/repo/.github/agents/debugger.agent.md +29 -24
- package/templates/repo/.github/agents/docs-manager.agent.md +15 -23
- package/templates/repo/.github/agents/fullstack-developer.agent.md +16 -6
- package/templates/repo/.github/agents/git-manager.agent.md +0 -3
- package/templates/repo/.github/agents/planner.agent.md +16 -34
- package/templates/repo/.github/agents/project-manager.agent.md +24 -0
- package/templates/repo/.github/agents/researcher.agent.md +15 -13
- package/templates/repo/.github/agents/tester.agent.md +43 -20
- package/templates/repo/.github/agents/ui-ux-designer.agent.md +16 -49
- package/templates/repo/.github/prompts/ck-ask.prompt.md +0 -1
- package/templates/repo/.github/prompts/ck-bootstrap.prompt.md +0 -3
- package/templates/repo/.github/prompts/ck-brainstorm.prompt.md +0 -1
- package/templates/repo/.github/prompts/ck-cook.prompt.md +0 -1
- package/templates/repo/.github/prompts/ck-debug.prompt.md +0 -1
- package/templates/repo/.github/prompts/ck-deploy.prompt.md +22 -0
- package/templates/repo/.github/prompts/ck-docs.prompt.md +0 -1
- package/templates/repo/.github/prompts/ck-frontend.prompt.md +20 -0
- package/templates/repo/.github/prompts/ck-help.prompt.md +0 -1
- package/templates/repo/.github/prompts/ck-plan-fast.prompt.md +0 -3
- package/templates/repo/.github/prompts/ck-plan-hard.prompt.md +0 -3
- package/templates/repo/.github/prompts/ck-plan.prompt.md +0 -3
- package/templates/repo/.github/prompts/ck-project.prompt.md +20 -0
- package/templates/repo/.github/prompts/ck-review.prompt.md +0 -3
- package/templates/repo/.github/prompts/ck-scout.prompt.md +0 -1
- package/templates/repo/.github/prompts/ck-security.prompt.md +22 -0
- package/templates/repo/.github/prompts/ck-ship.prompt.md +22 -0
- package/templates/repo/.github/prompts/ck-test.prompt.md +0 -2
- package/templates/repo/.github/prompts/ck-watzup.prompt.md +0 -1
- package/templates/repo/.github/skills/agent-browser/SKILL.md +11 -8
- package/templates/repo/.github/skills/agent-browser/references/agent-browser-vs-chrome-devtools.md +112 -0
- package/templates/repo/.github/skills/bootstrap/SKILL.md +102 -0
- package/templates/repo/.github/skills/bootstrap/references/shared-phases.md +59 -0
- package/templates/repo/.github/skills/bootstrap/references/workflow-auto.md +52 -0
- package/templates/repo/.github/skills/bootstrap/references/workflow-fast.md +50 -0
- package/templates/repo/.github/skills/bootstrap/references/workflow-full.md +60 -0
- package/templates/repo/.github/skills/bootstrap/references/workflow-parallel.md +59 -0
- package/templates/repo/.github/skills/brainstorm/SKILL.md +63 -15
- package/templates/repo/.github/skills/code-review/SKILL.md +138 -135
- package/templates/repo/.github/skills/code-review/references/adversarial-review.md +223 -0
- package/templates/repo/.github/skills/code-review/references/checklist-workflow.md +100 -0
- package/templates/repo/.github/skills/code-review/references/checklists/api.md +52 -0
- package/templates/repo/.github/skills/code-review/references/checklists/base.md +100 -0
- package/templates/repo/.github/skills/code-review/references/checklists/web-app.md +54 -0
- package/templates/repo/.github/skills/code-review/references/code-review-reception.md +48 -144
- package/templates/repo/.github/skills/code-review/references/codebase-scan-workflow.md +30 -0
- package/templates/repo/.github/skills/code-review/references/edge-case-scouting.md +119 -0
- package/templates/repo/.github/skills/code-review/references/input-mode-resolution.md +135 -0
- package/templates/repo/.github/skills/code-review/references/parallel-review-workflow.md +76 -0
- package/templates/repo/.github/skills/code-review/references/requesting-code-review.md +19 -8
- package/templates/repo/.github/skills/code-review/references/spec-compliance-review.md +43 -0
- package/templates/repo/.github/skills/code-review/references/task-management-reviews.md +155 -0
- package/templates/repo/.github/skills/common/README.md +2 -12
- package/templates/repo/.github/skills/common/api_key_helper.py +7 -37
- package/templates/repo/.github/skills/context-engineering/SKILL.md +4 -3
- package/templates/repo/.github/skills/context-engineering/references/context-degradation.md +2 -2
- package/templates/repo/.github/skills/context-engineering/references/runtime-awareness.md +5 -47
- package/templates/repo/.github/skills/cook/README.md +13 -13
- package/templates/repo/.github/skills/cook/SKILL.md +86 -58
- package/templates/repo/.github/skills/cook/references/intent-detection.md +7 -7
- package/templates/repo/.github/skills/cook/references/review-cycle.md +2 -2
- package/templates/repo/.github/skills/cook/references/subagent-patterns.md +75 -0
- package/templates/repo/.github/skills/cook/references/workflow-steps.md +75 -23
- package/templates/repo/.github/skills/databases/SKILL.md +3 -30
- package/templates/repo/.github/skills/databases/db-design.md +1 -1
- package/templates/repo/.github/skills/debug/SKILL.md +47 -105
- package/templates/repo/.github/skills/debug/references/frontend-verification.md +103 -0
- package/templates/repo/.github/skills/debug/references/investigation-methodology.md +101 -0
- package/templates/repo/.github/skills/debug/references/log-and-ci-analysis.md +97 -0
- package/templates/repo/.github/skills/debug/references/performance-diagnostics.md +113 -0
- package/templates/repo/.github/skills/debug/references/reporting-standards.md +122 -0
- package/templates/repo/.github/skills/debug/references/task-management-debugging.md +155 -0
- package/templates/repo/.github/skills/deploy/SKILL.md +154 -0
- package/templates/repo/.github/skills/deploy/references/platform-config-templates.md +35 -0
- package/templates/repo/.github/skills/deploy/references/platforms/aws.md +58 -0
- package/templates/repo/.github/skills/deploy/references/platforms/cloudflare.md +41 -0
- package/templates/repo/.github/skills/deploy/references/platforms/coolify.md +32 -0
- package/templates/repo/.github/skills/deploy/references/platforms/digitalocean.md +45 -0
- package/templates/repo/.github/skills/deploy/references/platforms/dokploy.md +29 -0
- package/templates/repo/.github/skills/deploy/references/platforms/flyio.md +54 -0
- package/templates/repo/.github/skills/deploy/references/platforms/gcp.md +45 -0
- package/templates/repo/.github/skills/deploy/references/platforms/github-pages.md +56 -0
- package/templates/repo/.github/skills/deploy/references/platforms/heroku.md +31 -0
- package/templates/repo/.github/skills/deploy/references/platforms/netlify.md +39 -0
- package/templates/repo/.github/skills/deploy/references/platforms/railway.md +38 -0
- package/templates/repo/.github/skills/deploy/references/platforms/render.md +39 -0
- package/templates/repo/.github/skills/deploy/references/platforms/tose.md +35 -0
- package/templates/repo/.github/skills/deploy/references/platforms/vercel.md +37 -0
- package/templates/repo/.github/skills/deploy/references/platforms/vultr.md +27 -0
- package/templates/repo/.github/skills/devops/SKILL.md +6 -12
- package/templates/repo/.github/skills/docs-seeker/SKILL.md +2 -1
- package/templates/repo/.github/skills/docs-seeker/references/context7-patterns.md +4 -0
- package/templates/repo/.github/skills/docs-seeker/scripts/fetch-docs.js +1 -2
- package/templates/repo/.github/skills/docs-seeker/scripts/utils/env-loader.js +4 -4
- package/templates/repo/.github/skills/docs-seeker/workflows/library-search.md +1 -0
- package/templates/repo/.github/skills/fix/SKILL.md +141 -44
- package/templates/repo/.github/skills/fix/references/complexity-assessment.md +21 -9
- package/templates/repo/.github/skills/fix/references/diagnosis-protocol.md +133 -0
- package/templates/repo/.github/skills/fix/references/mode-selection.md +27 -11
- package/templates/repo/.github/skills/fix/references/parallel-exploration.md +35 -12
- package/templates/repo/.github/skills/fix/references/prevention-gate.md +87 -0
- package/templates/repo/.github/skills/fix/references/review-cycle.md +3 -3
- package/templates/repo/.github/skills/fix/references/skill-activation-matrix.md +64 -31
- package/templates/repo/.github/skills/fix/references/task-orchestration.md +110 -0
- package/templates/repo/.github/skills/fix/references/workflow-deep.md +110 -47
- package/templates/repo/.github/skills/fix/references/workflow-logs.md +46 -10
- package/templates/repo/.github/skills/fix/references/workflow-quick.md +43 -20
- package/templates/repo/.github/skills/fix/references/workflow-standard.md +75 -41
- package/templates/repo/.github/skills/fix/references/workflow-test.md +49 -10
- package/templates/repo/.github/skills/fix/references/workflow-ui.md +56 -18
- package/templates/repo/.github/skills/frontend-design/SKILL.md +49 -17
- package/templates/repo/.github/skills/frontend-design/references/ai-multimodal-overview.md +165 -0
- package/templates/repo/.github/skills/frontend-design/references/anti-slop-rules.md +103 -0
- package/templates/repo/.github/skills/frontend-design/references/asset-generation.md +284 -108
- package/templates/repo/.github/skills/frontend-design/references/bento-motion-engine.md +142 -0
- package/templates/repo/.github/skills/frontend-design/references/magicui-components.md +129 -0
- package/templates/repo/.github/skills/frontend-design/references/performance-guardrails.md +169 -0
- package/templates/repo/.github/skills/frontend-design/references/premium-design-patterns.md +93 -0
- package/templates/repo/.github/skills/frontend-design/references/redesign-audit-checklist.md +114 -0
- package/templates/repo/.github/skills/frontend-design/references/visual-analysis-overview.md +1 -1
- package/templates/repo/.github/skills/frontend-design/references/workflow-3d.md +98 -0
- package/templates/repo/.github/skills/frontend-design/references/workflow-describe.md +4 -3
- package/templates/repo/.github/skills/frontend-design/references/workflow-immersive.md +82 -0
- package/templates/repo/.github/skills/frontend-design/references/workflow-quick.md +10 -12
- package/templates/repo/.github/skills/frontend-design/references/workflow-screenshot.md +9 -8
- package/templates/repo/.github/skills/frontend-design/references/workflow-video.md +74 -0
- package/templates/repo/.github/skills/frontend-development/SKILL.md +400 -0
- package/templates/repo/.github/skills/frontend-development/resources/common-patterns.md +331 -0
- package/templates/repo/.github/skills/frontend-development/resources/complete-examples.md +872 -0
- package/templates/repo/.github/skills/frontend-development/resources/component-patterns.md +502 -0
- package/templates/repo/.github/skills/frontend-development/resources/data-fetching.md +767 -0
- package/templates/repo/.github/skills/frontend-development/resources/file-organization.md +502 -0
- package/templates/repo/.github/skills/frontend-development/resources/loading-and-error-states.md +501 -0
- package/templates/repo/.github/skills/frontend-development/resources/performance.md +406 -0
- package/templates/repo/.github/skills/frontend-development/resources/routing-guide.md +364 -0
- package/templates/repo/.github/skills/frontend-development/resources/styling-guide.md +428 -0
- package/templates/repo/.github/skills/frontend-development/resources/typescript-standards.md +418 -0
- package/templates/repo/.github/skills/git/SKILL.md +18 -4
- package/templates/repo/.github/skills/git/references/commit-standards.md +3 -3
- package/templates/repo/.github/skills/git/references/workflow-commit.md +3 -3
- package/templates/repo/.github/skills/git/references/workflow-merge.md +1 -1
- package/templates/repo/.github/skills/git/references/workflow-pr.md +1 -1
- package/templates/repo/.github/skills/git/references/workflow-push.md +1 -1
- package/templates/repo/.github/skills/mcp-management/README.md +18 -18
- package/templates/repo/.github/skills/mcp-management/SKILL.md +16 -15
- package/templates/repo/.github/skills/mcp-management/references/configuration.md +4 -4
- package/templates/repo/.github/skills/mcp-management/references/gemini-cli-integration.md +12 -12
- package/templates/repo/.github/skills/mcp-management/scripts/.env.example +2 -2
- package/templates/repo/.github/skills/mcp-management/scripts/mcp-client.ts +1 -1
- package/templates/repo/.github/skills/mermaidjs-v11/SKILL.md +1 -0
- package/templates/repo/.github/skills/planning/SKILL.md +122 -91
- package/templates/repo/.github/skills/planning/references/archive-workflow.md +53 -0
- package/templates/repo/.github/skills/planning/references/codebase-understanding.md +1 -1
- package/templates/repo/.github/skills/planning/references/output-standards.md +17 -13
- package/templates/repo/.github/skills/planning/references/plan-organization.md +52 -30
- package/templates/repo/.github/skills/planning/references/red-team-personas.md +69 -0
- package/templates/repo/.github/skills/planning/references/red-team-workflow.md +77 -0
- package/templates/repo/.github/skills/planning/references/scope-challenge.md +90 -0
- package/templates/repo/.github/skills/planning/references/task-management.md +134 -0
- package/templates/repo/.github/skills/planning/references/validate-question-framework.md +80 -0
- package/templates/repo/.github/skills/planning/references/validate-workflow.md +65 -0
- package/templates/repo/.github/skills/planning/references/workflow-modes.md +154 -0
- package/templates/repo/.github/skills/problem-solving/SKILL.md +1 -0
- package/templates/repo/.github/skills/project-management/SKILL.md +133 -0
- package/templates/repo/.github/skills/project-management/references/documentation-triggers.md +60 -0
- package/templates/repo/.github/skills/project-management/references/hydration-workflow.md +89 -0
- package/templates/repo/.github/skills/project-management/references/progress-tracking.md +120 -0
- package/templates/repo/.github/skills/project-management/references/reporting-patterns.md +94 -0
- package/templates/repo/.github/skills/project-management/references/task-operations.md +87 -0
- package/templates/repo/.github/skills/repomix/SKILL.md +3 -2
- package/templates/repo/.github/skills/repomix/references/usage-patterns.md +2 -2
- package/templates/repo/.github/skills/repomix/scripts/README.md +1 -1
- package/templates/repo/.github/skills/repomix/scripts/repomix_batch.py +2 -2
- package/templates/repo/.github/skills/research/SKILL.md +7 -4
- package/templates/repo/.github/skills/scout/SKILL.md +24 -24
- package/templates/repo/.github/skills/scout/references/external-scouting.md +17 -17
- package/templates/repo/.github/skills/scout/references/internal-scouting.md +9 -9
- package/templates/repo/.github/skills/scout/references/task-management-scouting.md +125 -0
- package/templates/repo/.github/skills/security/SKILL.md +139 -0
- package/templates/repo/.github/skills/security/references/stride-owasp-checklist.md +128 -0
- package/templates/repo/.github/skills/sequential-thinking/README.md +3 -3
- package/templates/repo/.github/skills/sequential-thinking/SKILL.md +2 -0
- package/templates/repo/.github/skills/sequential-thinking/package-lock.json +3652 -0
- package/templates/repo/.github/skills/sequential-thinking/package.json +1 -1
- package/templates/repo/.github/skills/ship/SKILL.md +116 -0
- package/templates/repo/.github/skills/ship/references/auto-detect.md +103 -0
- package/templates/repo/.github/skills/ship/references/pr-template.md +90 -0
- package/templates/repo/.github/skills/ship/references/ship-workflow.md +241 -0
- package/templates/repo/.github/skills/test/SKILL.md +111 -0
- package/templates/repo/.github/skills/test/references/report-format.md +58 -0
- package/templates/repo/.github/skills/test/references/test-execution-workflow.md +103 -0
- package/templates/repo/.github/skills/test/references/ui-testing-workflow.md +65 -0
- package/templates/repo/.github/skills/ui-styling/SKILL.md +2 -0
- package/templates/repo/.github/skills/web-testing/SKILL.md +8 -60
- package/docs/guide-next-steps-speckit-cokit-implementation.md +0 -187
- package/prompts/ck-spec-analyze.prompt.md +0 -201
- package/prompts/ck-spec-checklist.prompt.md +0 -308
- package/prompts/ck-spec-clarify.prompt.md +0 -190
- package/prompts/ck-spec-constitution.prompt.md +0 -92
- package/prompts/ck-spec-implement.prompt.md +0 -157
- package/prompts/ck-spec-plan.prompt.md +0 -95
- package/prompts/ck-spec-specify.prompt.md +0 -261
- package/prompts/ck-spec-tasks.prompt.md +0 -181
- package/templates/repo/.github/AGENTS.md +0 -103
- package/templates/repo/.github/prompts/ck-spec-analyze.prompt.md +0 -201
- package/templates/repo/.github/prompts/ck-spec-checklist.prompt.md +0 -308
- package/templates/repo/.github/prompts/ck-spec-clarify.prompt.md +0 -190
- package/templates/repo/.github/prompts/ck-spec-constitution.prompt.md +0 -92
- package/templates/repo/.github/prompts/ck-spec-implement.prompt.md +0 -157
- package/templates/repo/.github/prompts/ck-spec-plan.prompt.md +0 -95
- package/templates/repo/.github/prompts/ck-spec-specify.prompt.md +0 -261
- package/templates/repo/.github/prompts/ck-spec-tasks.prompt.md +0 -181
- package/templates/repo/.github/skills/databases/stacks/bigquery.md +0 -231
- package/templates/repo/.github/skills/databases/stacks/d1_cloudflare.md +0 -137
- package/templates/repo/.github/skills/databases/stacks/mysql.md +0 -216
- package/templates/repo/.github/skills/databases/stacks/postgres.md +0 -235
- package/templates/repo/.github/skills/databases/stacks/sqlite.md +0 -244
- package/templates/repo/.github/skills/mcp-management/assets/tools.json +0 -3146
- package/templates/repo/.github/skills/mcp-management/scripts/dist/analyze-tools.js +0 -70
- package/templates/repo/.github/skills/mcp-management/scripts/dist/cli.js +0 -160
- package/templates/repo/.github/skills/mcp-management/scripts/dist/mcp-client.js +0 -183
- package/templates/repo/.github/skills/ui-styling/LICENSE.txt +0 -202
- package/templates/repo/.github/spec-kit/memory/constitution.md +0 -50
- package/templates/repo/.github/spec-kit/scripts/bash/check-prerequisites.sh +0 -166
- package/templates/repo/.github/spec-kit/scripts/bash/common.sh +0 -156
- package/templates/repo/.github/spec-kit/scripts/bash/create-new-feature.sh +0 -297
- package/templates/repo/.github/spec-kit/scripts/bash/setup-plan.sh +0 -61
- package/templates/repo/.github/spec-kit/scripts/bash/update-agent-context.sh +0 -799
- package/templates/repo/.github/spec-kit/scripts/powershell/check-prerequisites.ps1 +0 -148
- package/templates/repo/.github/spec-kit/scripts/powershell/common.ps1 +0 -137
- package/templates/repo/.github/spec-kit/scripts/powershell/create-new-feature.ps1 +0 -283
- package/templates/repo/.github/spec-kit/scripts/powershell/setup-plan.ps1 +0 -61
- package/templates/repo/.github/spec-kit/scripts/powershell/update-agent-context.ps1 +0 -448
- package/templates/repo/.github/spec-kit/templates/agent-file-template.md +0 -28
- package/templates/repo/.github/spec-kit/templates/checklist-template.md +0 -40
- package/templates/repo/.github/spec-kit/templates/commands/analyze.md +0 -187
- package/templates/repo/.github/spec-kit/templates/commands/checklist.md +0 -297
- package/templates/repo/.github/spec-kit/templates/commands/clarify.md +0 -184
- package/templates/repo/.github/spec-kit/templates/commands/constitution.md +0 -82
- package/templates/repo/.github/spec-kit/templates/commands/implement.md +0 -138
- package/templates/repo/.github/spec-kit/templates/commands/plan.md +0 -95
- package/templates/repo/.github/spec-kit/templates/commands/specify.md +0 -261
- package/templates/repo/.github/spec-kit/templates/commands/tasks.md +0 -140
- package/templates/repo/.github/spec-kit/templates/commands/taskstoissues.md +0 -33
- package/templates/repo/.github/spec-kit/templates/plan-template.md +0 -104
- package/templates/repo/.github/spec-kit/templates/spec-template.md +0 -115
- package/templates/repo/.github/spec-kit/templates/tasks-phase-template.md +0 -42
- package/templates/repo/.github/spec-kit/templates/tasks-template.md +0 -268
- package/templates/repo/.github/spec-kit/templates/vscode-settings.json +0 -14
package/skills/fix/SKILL.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fix
|
|
3
|
-
description: ALWAYS activate this skill before fixing ANY bug, error, test failure, CI/CD issue, type error, lint, log error, UI issue, code problem.
|
|
3
|
+
description: "ALWAYS activate this skill before fixing ANY bug, error, test failure, CI/CD issue, type error, lint, log error, UI issue, code problem."
|
|
4
|
+
argument-hint: "[issue] --auto|--review|--quick|--parallel"
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
# Fixing
|
|
@@ -12,28 +13,97 @@ Unified skill for fixing issues of any complexity with intelligent routing.
|
|
|
12
13
|
- `--auto` - Activate autonomous mode (**default**)
|
|
13
14
|
- `--review` - Activate human-in-the-loop review mode
|
|
14
15
|
- `--quick` - Activate quick mode
|
|
15
|
-
- `--parallel` -
|
|
16
|
+
- `--parallel` - Activate parallel mode: route to parallel `fullstack-developer` agents per issue
|
|
17
|
+
|
|
18
|
+
<HARD-GATE>
|
|
19
|
+
Do NOT propose or implement fixes before completing Steps 1-2 (Scout + Diagnose).
|
|
20
|
+
Symptom fixes are failure. Find the cause first through structured analysis, NEVER guessing.
|
|
21
|
+
If 3+ fix attempts fail, STOP and question the architecture — discuss with user before attempting more.
|
|
22
|
+
User override: `--quick` mode allows fast scout→diagnose→fix cycle for trivial issues (lint, type errors).
|
|
23
|
+
</HARD-GATE>
|
|
24
|
+
|
|
25
|
+
## Anti-Rationalization
|
|
26
|
+
|
|
27
|
+
| Thought | Reality |
|
|
28
|
+
|---------|---------|
|
|
29
|
+
| "I can see the problem, let me fix it" | Seeing symptoms ≠ understanding root cause. Scout first. |
|
|
30
|
+
| "Quick fix for now, investigate later" | "Later" never comes. Fix properly now. |
|
|
31
|
+
| "Just try changing X" | Random fixes waste time and create new bugs. Diagnose first. |
|
|
32
|
+
| "It's probably X" | "Probably" = guessing. Use structured diagnosis. Verify first. |
|
|
33
|
+
| "One more fix attempt" (after 2+) | 3+ failures = wrong approach. Question architecture. |
|
|
34
|
+
| "Emergency, no time for process" | Systematic diagnosis is FASTER than guess-and-check. |
|
|
35
|
+
| "I already know the codebase" | Knowledge decays. Scout to verify assumptions before acting. |
|
|
36
|
+
| "The fix is done, tests pass" | Without prevention, same bug class will recur. Add guards. |
|
|
37
|
+
|
|
38
|
+
## Process Flow (Authoritative)
|
|
39
|
+
|
|
40
|
+
```mermaid
|
|
41
|
+
flowchart TD
|
|
42
|
+
A[Issue Input] --> B[Step 0: Mode Selection]
|
|
43
|
+
B --> C[Step 1: Scout - Understand Context]
|
|
44
|
+
C --> D[Step 2: Diagnose - Structured Root Cause Analysis]
|
|
45
|
+
D --> E[Step 3: Complexity Assessment + Task Orchestration]
|
|
46
|
+
E -->|Simple| F[Quick Workflow]
|
|
47
|
+
E -->|Moderate| G[Standard Workflow]
|
|
48
|
+
E -->|Complex| H[Deep Workflow]
|
|
49
|
+
E -->|Parallel| I[Multi-Agent Fix]
|
|
50
|
+
F --> J[Step 4: Fix Implementation]
|
|
51
|
+
G --> J
|
|
52
|
+
H --> J
|
|
53
|
+
I --> J
|
|
54
|
+
J --> K[Step 5: Verify + Prevent]
|
|
55
|
+
K -->|Pass + Prevention in place| L[Step 6: Finalize]
|
|
56
|
+
K -->|Fail, <3 attempts| D
|
|
57
|
+
K -->|Fail, 3+ attempts| M[Question Architecture]
|
|
58
|
+
M --> N[Discuss with User]
|
|
59
|
+
L --> O[Report + Docs + Journal]
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**This diagram is the authoritative workflow.** If prose conflicts with this flow, follow the diagram.
|
|
16
63
|
|
|
17
64
|
## Workflow
|
|
18
65
|
|
|
19
|
-
### Step
|
|
66
|
+
### Step 0: Mode Selection
|
|
20
67
|
|
|
21
|
-
**First action:** If there is no "auto" keyword in the request, ask the user
|
|
68
|
+
**First action:** If there is no "auto" keyword in the request, ask the user to determine workflow mode:
|
|
22
69
|
|
|
23
70
|
| Option | Recommend When | Behavior |
|
|
24
71
|
|--------|----------------|----------|
|
|
25
72
|
| **Autonomous** (default) | Simple/moderate issues | Auto-approve if score >= 9.5 & 0 critical |
|
|
26
73
|
| **Human-in-the-loop Review** | Critical/production code | Pause for approval at each step |
|
|
27
|
-
| **Quick** | Type errors, lint, trivial bugs | Fast
|
|
74
|
+
| **Quick** | Type errors, lint, trivial bugs | Fast scout → diagnose → fix → review cycle |
|
|
75
|
+
|
|
76
|
+
See `references/mode-selection.md` for asking the user format.
|
|
77
|
+
|
|
78
|
+
### Step 1: Scout (MANDATORY — never skip)
|
|
79
|
+
|
|
80
|
+
**Purpose:** Understand the affected codebase BEFORE forming any hypotheses.
|
|
81
|
+
|
|
82
|
+
**Mandatory skill chain:**
|
|
83
|
+
1. Activate `scout` skill OR launch 2-3 parallel `Explore` subagents
|
|
84
|
+
2. Discover: affected files, dependencies, related tests, recent changes (`git log`)
|
|
85
|
+
3. Read `./docs` for project context if unfamiliar
|
|
86
|
+
|
|
87
|
+
**Quick mode:** Minimal scout — locate affected file(s) and their direct dependencies only.
|
|
88
|
+
**Standard/Deep mode:** Full scout — map module boundaries, test coverage, call chains.
|
|
89
|
+
|
|
90
|
+
**Output:** `✓ Step 1: Scouted - [N] files mapped, [M] dependencies, [K] tests found`
|
|
28
91
|
|
|
29
|
-
|
|
92
|
+
### Step 2: Diagnose (MANDATORY — never skip)
|
|
30
93
|
|
|
31
|
-
|
|
94
|
+
**Purpose:** Structured root cause analysis. NO guessing. Evidence-based only.
|
|
32
95
|
|
|
33
|
-
|
|
34
|
-
-
|
|
35
|
-
|
|
36
|
-
-
|
|
96
|
+
**Mandatory skill chain:**
|
|
97
|
+
1. **Capture pre-fix state:** Record exact error messages, failing test output, stack traces, log snippets. This becomes the baseline for Step 5 verification.
|
|
98
|
+
2. Activate `debug` skill (systematic-debugging + root-cause-tracing techniques).
|
|
99
|
+
3. Activate `sequential-thinking` skill — form hypotheses through structured reasoning, NOT guessing.
|
|
100
|
+
4. Spawn parallel `Explore` subagents to test each hypothesis against codebase evidence.
|
|
101
|
+
5. If 2+ hypotheses fail → auto-activate `problem-solving` skill for alternative approaches.
|
|
102
|
+
6. Create diagnosis report: confirmed root cause, evidence chain, affected scope.
|
|
103
|
+
|
|
104
|
+
See `references/diagnosis-protocol.md` for full methodology.
|
|
105
|
+
|
|
106
|
+
**Output:** `✓ Step 2: Diagnosed - Root cause: [summary], Evidence: [brief], Scope: [N files]`
|
|
37
107
|
|
|
38
108
|
### Step 3: Complexity Assessment & Task Orchestration
|
|
39
109
|
|
|
@@ -44,65 +114,92 @@ Classify before routing. See `references/complexity-assessment.md`.
|
|
|
44
114
|
| **Simple** | Single file, clear error, type/lint | `references/workflow-quick.md` |
|
|
45
115
|
| **Moderate** | Multi-file, root cause unclear | `references/workflow-standard.md` |
|
|
46
116
|
| **Complex** | System-wide, architecture impact | `references/workflow-deep.md` |
|
|
47
|
-
| **Parallel** | 2+ independent issues | Parallel `fullstack-developer` agents |
|
|
117
|
+
| **Parallel** | 2+ independent issues OR `--parallel` flag | Parallel `fullstack-developer` agents |
|
|
118
|
+
|
|
119
|
+
**Task Orchestration (Moderate+ only):** After classifying, create native Tasks for all phases upfront with dependencies. See `references/task-orchestration.md`.
|
|
120
|
+
- Skip for Quick workflow (< 3 steps, overhead exceeds benefit)
|
|
121
|
+
- Use `TaskCreate` with `addBlockedBy` for dependency chains
|
|
122
|
+
- Update via `TaskUpdate` as each phase completes
|
|
123
|
+
- For Parallel: create separate task trees per independent issue
|
|
124
|
+
- **Fallback:** Task tools (`TaskCreate`/`TaskUpdate`/`TaskGet`/`TaskList`) are CLI-only — unavailable in VSCode extension. If they error, use `TodoWrite` for progress tracking. Fix workflow remains fully functional without them.
|
|
125
|
+
|
|
126
|
+
### Step 4: Fix Implementation
|
|
48
127
|
|
|
49
|
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
128
|
+
- Implement fix per selected workflow, updating Tasks as phases complete.
|
|
129
|
+
- Follow diagnosis findings — fix the ROOT CAUSE, not symptoms.
|
|
130
|
+
- Minimal changes only. Follow existing patterns.
|
|
52
131
|
|
|
53
|
-
|
|
132
|
+
### Step 5: Verify + Prevent (MANDATORY — never skip)
|
|
54
133
|
|
|
55
|
-
|
|
134
|
+
**Purpose:** Prove the fix works AND prevent the same bug class from recurring.
|
|
56
135
|
|
|
57
|
-
|
|
58
|
-
-
|
|
59
|
-
|
|
60
|
-
|
|
136
|
+
**Mandatory skill chain:**
|
|
137
|
+
1. **Verify (iron-law):** Run the EXACT commands from pre-fix state capture. Compare output. NO claims without fresh evidence.
|
|
138
|
+
2. **Regression test:** Add or update test(s) that specifically cover the fixed issue. The test MUST fail without the fix and pass with it.
|
|
139
|
+
3. **Prevention gate:** Apply defense-in-depth validation where applicable. See `references/prevention-gate.md`.
|
|
140
|
+
4. **Parallel verification:** Launch `Bash` agents for typecheck + lint + build + test.
|
|
61
141
|
|
|
62
|
-
|
|
142
|
+
**If verification fails:** Loop back to Step 2 (re-diagnose). After 3 failures → question architecture, discuss with user.
|
|
63
143
|
|
|
64
|
-
|
|
144
|
+
See `references/prevention-gate.md` for prevention requirements.
|
|
65
145
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
146
|
+
**Output:** `✓ Step 5: Verified + Prevented - [before/after comparison], [N] tests added, [M] guards added`
|
|
147
|
+
|
|
148
|
+
### Step 6: Finalize (MANDATORY — never skip)
|
|
149
|
+
|
|
150
|
+
1. Report summary: confidence score, root cause, changes, files, prevention measures
|
|
151
|
+
2. `docs-manager` subagent → update `./docs` if changes warrant (NON-OPTIONAL)
|
|
152
|
+
3. `TaskUpdate` → mark ALL Tasks `completed` (skip if Task tools unavailable)
|
|
153
|
+
4. Ask user if they want to commit via `git-manager` subagent
|
|
154
|
+
5. Run `/ck-journal` to write a concise technical journal entry upon completion
|
|
70
155
|
|
|
71
156
|
---
|
|
72
157
|
|
|
73
|
-
## IMPORTANT: Skill/
|
|
158
|
+
## IMPORTANT: Skill/Subagent Activation Matrix
|
|
74
159
|
|
|
75
160
|
See `references/skill-activation-matrix.md` for complete matrix.
|
|
76
161
|
|
|
77
|
-
**Always activate
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
162
|
+
**Always activate (ALL workflows):**
|
|
163
|
+
- `scout` (Step 1) — understand before diagnosing
|
|
164
|
+
- `debug` (Step 2) — systematic root cause investigation
|
|
165
|
+
- `sequential-thinking` (Step 2) — structured hypothesis formation
|
|
166
|
+
|
|
167
|
+
**Conditional:**
|
|
168
|
+
- `problem-solving` — auto-triggers when 2+ hypotheses fail in Step 2
|
|
169
|
+
- `brainstorm` — multiple valid approaches, architecture decision (Deep only)
|
|
170
|
+
- `context-engineering` — fixing AI/LLM/agent code
|
|
171
|
+
- `project-management` — moderate+ for task hydration/sync-back
|
|
172
|
+
|
|
173
|
+
**Subagents:** `debugger`, `researcher`, `planner`, `code-reviewer`, `tester`, `Bash`
|
|
174
|
+
**Parallel:** Multiple `Explore` agents for scouting, `Bash` agents for verification
|
|
81
175
|
|
|
82
176
|
## Output Format
|
|
83
177
|
|
|
84
178
|
Unified step markers:
|
|
85
179
|
```
|
|
86
|
-
✓ Step 0: [Mode] selected
|
|
87
|
-
✓ Step 1:
|
|
88
|
-
✓ Step 2:
|
|
89
|
-
✓ Step 3:
|
|
90
|
-
✓ Step 4:
|
|
91
|
-
✓ Step 5:
|
|
180
|
+
✓ Step 0: [Mode] selected
|
|
181
|
+
✓ Step 1: Scouted - [N] files, [M] deps
|
|
182
|
+
✓ Step 2: Diagnosed - Root cause: [summary]
|
|
183
|
+
✓ Step 3: [Complexity] detected - [workflow] selected
|
|
184
|
+
✓ Step 4: Fixed - [N] files changed
|
|
185
|
+
✓ Step 5: Verified + Prevented - [tests added], [guards added]
|
|
186
|
+
✓ Step 6: Complete - [action taken]
|
|
92
187
|
```
|
|
93
188
|
|
|
94
189
|
## References
|
|
95
190
|
|
|
96
191
|
Load as needed:
|
|
97
|
-
- `references/mode-selection.md` -
|
|
192
|
+
- `references/mode-selection.md` - asking the user format for mode
|
|
193
|
+
- `references/diagnosis-protocol.md` - Structured diagnosis methodology (NEW)
|
|
194
|
+
- `references/prevention-gate.md` - Prevention requirements after fix (NEW)
|
|
98
195
|
- `references/complexity-assessment.md` - Classification criteria
|
|
99
|
-
- `references/task-orchestration.md` -
|
|
100
|
-
- `references/workflow-quick.md` - Quick:
|
|
101
|
-
- `references/workflow-standard.md` - Standard: full pipeline
|
|
102
|
-
- `references/workflow-deep.md` - Deep: research + brainstorm + plan
|
|
196
|
+
- `references/task-orchestration.md` - Native Task patterns for moderate+ workflows
|
|
197
|
+
- `references/workflow-quick.md` - Quick: scout → diagnose → fix → verify+prevent → review
|
|
198
|
+
- `references/workflow-standard.md` - Standard: full pipeline with Tasks
|
|
199
|
+
- `references/workflow-deep.md` - Deep: research + brainstorm + plan with Tasks
|
|
103
200
|
- `references/review-cycle.md` - Review logic (autonomous vs HITL)
|
|
104
201
|
- `references/skill-activation-matrix.md` - When to activate each skill
|
|
105
|
-
- `references/parallel-exploration.md` - Parallel
|
|
202
|
+
- `references/parallel-exploration.md` - Parallel Explore/Bash/Task coordination patterns
|
|
106
203
|
|
|
107
204
|
**Specialized Workflows:**
|
|
108
205
|
- `references/workflow-ci.md` - GitHub Actions/CI failures
|
|
@@ -1,38 +1,42 @@
|
|
|
1
1
|
# Complexity Assessment
|
|
2
2
|
|
|
3
|
-
Classify issue complexity before routing to workflow.
|
|
3
|
+
Classify issue complexity before routing to workflow. Assessment happens AFTER Step 1 (Scout) and Step 2 (Diagnose).
|
|
4
4
|
|
|
5
5
|
## Classification Criteria
|
|
6
6
|
|
|
7
|
-
### Simple (→ workflow-quick.md)
|
|
7
|
+
### Simple (→ workflow-quick.md) — No Tasks
|
|
8
8
|
|
|
9
9
|
**Indicators:**
|
|
10
10
|
- Single file affected
|
|
11
11
|
- Clear error message (type error, syntax, lint)
|
|
12
12
|
- Keywords: `type`, `typescript`, `tsc`, `lint`, `eslint`, `syntax`
|
|
13
13
|
- Obvious fix location
|
|
14
|
-
-
|
|
14
|
+
- Root cause confirmed by diagnosis (not assumed)
|
|
15
|
+
|
|
16
|
+
**Task usage:** Skip. < 3 steps, overhead exceeds benefit.
|
|
15
17
|
|
|
16
18
|
**Examples:**
|
|
17
19
|
- "Fix type error in auth.ts"
|
|
18
20
|
- "ESLint errors after upgrade"
|
|
19
21
|
- "Syntax error in config file"
|
|
20
22
|
|
|
21
|
-
### Moderate (→ workflow-standard.md)
|
|
23
|
+
### Moderate (→ workflow-standard.md) — Use Tasks (6 phases)
|
|
22
24
|
|
|
23
25
|
**Indicators:**
|
|
24
26
|
- 2-5 files affected
|
|
25
|
-
- Root cause
|
|
26
|
-
- Needs
|
|
27
|
+
- Root cause identified but fix spans multiple files
|
|
28
|
+
- Needs investigation to confirm diagnosis
|
|
27
29
|
- Keywords: `bug`, `broken`, `not working`, `fails sometimes`
|
|
28
|
-
- Test failures with
|
|
30
|
+
- Test failures with root cause traced
|
|
31
|
+
|
|
32
|
+
**Task usage:** Create 6 phase tasks with dependencies. See `references/task-orchestration.md`.
|
|
29
33
|
|
|
30
34
|
**Examples:**
|
|
31
35
|
- "Login sometimes fails"
|
|
32
36
|
- "API returns wrong data"
|
|
33
37
|
- "Component not rendering correctly"
|
|
34
38
|
|
|
35
|
-
### Complex (→ workflow-deep.md)
|
|
39
|
+
### Complex (→ workflow-deep.md) — Use Tasks with Dependency Chains (9 phases)
|
|
36
40
|
|
|
37
41
|
**Indicators:**
|
|
38
42
|
- System-wide impact (5+ files)
|
|
@@ -41,13 +45,19 @@ Classify issue complexity before routing to workflow.
|
|
|
41
45
|
- Keywords: `architecture`, `refactor`, `system-wide`, `design issue`
|
|
42
46
|
- Performance/security vulnerabilities
|
|
43
47
|
- Multiple interacting components
|
|
48
|
+
- Root cause spans multiple layers/modules
|
|
49
|
+
|
|
50
|
+
**Task usage:** Create 9 phase tasks. Steps 1+2+3 run parallel (scout+diagnose+research). Full dependency chains. See `references/task-orchestration.md`.
|
|
44
51
|
|
|
45
52
|
**Examples:**
|
|
46
53
|
- "Memory leak in production"
|
|
47
54
|
- "Database deadlocks under load"
|
|
48
55
|
- "Security vulnerability in auth flow"
|
|
49
56
|
|
|
50
|
-
### Parallel (→ multiple fullstack-developer agents)
|
|
57
|
+
### Parallel (→ multiple fullstack-developer agents) — Use Task Trees
|
|
58
|
+
|
|
59
|
+
**Triggers:**
|
|
60
|
+
- `--parallel` flag explicitly passed (activate parallel routing regardless of auto-classification)
|
|
51
61
|
|
|
52
62
|
**Indicators:**
|
|
53
63
|
- 2+ independent issues mentioned
|
|
@@ -55,6 +65,8 @@ Classify issue complexity before routing to workflow.
|
|
|
55
65
|
- No dependencies between issues
|
|
56
66
|
- Keywords: list of issues, "and", "also", multiple error types
|
|
57
67
|
|
|
68
|
+
**Task usage:** Create separate task trees per independent issue (each with scout+diagnose+fix+verify). Spawn `fullstack-developer` agent per tree. See `references/task-orchestration.md`.
|
|
69
|
+
|
|
58
70
|
**Examples:**
|
|
59
71
|
- "Fix type errors AND update UI styling"
|
|
60
72
|
- "Auth bug + payment integration issue"
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# Diagnosis Protocol
|
|
2
|
+
|
|
3
|
+
Structured root cause analysis methodology. Replaces ad-hoc guessing with evidence-based investigation.
|
|
4
|
+
|
|
5
|
+
## Core Principle
|
|
6
|
+
|
|
7
|
+
**NEVER guess root causes.** Form hypotheses through structured reasoning and test them against evidence.
|
|
8
|
+
|
|
9
|
+
## Pre-Diagnosis: Capture State (MANDATORY)
|
|
10
|
+
|
|
11
|
+
Before any investigation, capture the current broken state as baseline:
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
1. Record exact error messages (copy-paste, not paraphrase)
|
|
15
|
+
2. Record failing test output (full command + output)
|
|
16
|
+
3. Record relevant stack traces
|
|
17
|
+
4. Record relevant log snippets with timestamps
|
|
18
|
+
5. Record git status / recent changes: git log --oneline -10
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
This baseline is required for Step 5 (Verify) — you MUST compare before/after.
|
|
22
|
+
|
|
23
|
+
## Diagnosis Chain (Follow in Order)
|
|
24
|
+
|
|
25
|
+
### Phase 1: Observe — What is actually happening?
|
|
26
|
+
|
|
27
|
+
Read, don't assume. Use `debug` (systematic-debugging Phase 1).
|
|
28
|
+
|
|
29
|
+
- What is the exact error message?
|
|
30
|
+
- Where does it occur? (file, line, function)
|
|
31
|
+
- When did it start? (check `git log`, `git bisect`)
|
|
32
|
+
- Can it be reproduced consistently?
|
|
33
|
+
- What is the expected vs actual behavior?
|
|
34
|
+
|
|
35
|
+
### Phase 2: Hypothesize — Why might this happen?
|
|
36
|
+
|
|
37
|
+
Activate `sequential-thinking` skill. Form hypotheses through structured reasoning.
|
|
38
|
+
|
|
39
|
+
**Structured hypothesis formation:**
|
|
40
|
+
```
|
|
41
|
+
For each hypothesis:
|
|
42
|
+
1. State the hypothesis clearly
|
|
43
|
+
2. What evidence would CONFIRM it?
|
|
44
|
+
3. What evidence would REFUTE it?
|
|
45
|
+
4. How to test it quickly?
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
**Common hypothesis categories:**
|
|
49
|
+
- Recent code change introduced regression (`git log`, `git diff`)
|
|
50
|
+
- Data/state mismatch (wrong input, stale cache, race condition)
|
|
51
|
+
- Environment difference (deps version, config, platform)
|
|
52
|
+
- Missing validation (null check, type guard, boundary)
|
|
53
|
+
- Incorrect assumption (API contract, data shape, ordering)
|
|
54
|
+
|
|
55
|
+
### Phase 3: Test — Verify hypotheses against evidence
|
|
56
|
+
|
|
57
|
+
Spawn parallel `Explore` subagents to test each hypothesis simultaneously:
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
// Launch in SINGLE message — max 3 parallel agents
|
|
61
|
+
Task("Explore", "Test hypothesis A: [specific search/check]", "Verify H-A")
|
|
62
|
+
Task("Explore", "Test hypothesis B: [specific search/check]", "Verify H-B")
|
|
63
|
+
Task("Explore", "Test hypothesis C: [specific search/check]", "Verify H-C")
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
**For each hypothesis result:**
|
|
67
|
+
- CONFIRMED: Evidence supports this as root cause → proceed to root cause tracing
|
|
68
|
+
- REFUTED: Evidence contradicts → discard, note why
|
|
69
|
+
- INCONCLUSIVE: Need more data → refine hypothesis or gather more evidence
|
|
70
|
+
|
|
71
|
+
### Phase 4: Trace — Follow the root cause chain
|
|
72
|
+
|
|
73
|
+
Use `debug` (root-cause-tracing technique). Trace backward:
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
Symptom (where error appears)
|
|
77
|
+
↑ Immediate cause (what triggered the error)
|
|
78
|
+
↑ Contributing factor (what set up the bad state)
|
|
79
|
+
↑ ROOT CAUSE (the original trigger that must be fixed)
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
**Rule:** NEVER fix where the error appears. Trace back to the source.
|
|
83
|
+
|
|
84
|
+
### Phase 5: Escalate — When hypotheses fail
|
|
85
|
+
|
|
86
|
+
If 2+ hypotheses are REFUTED:
|
|
87
|
+
1. Auto-activate `problem-solving` skill
|
|
88
|
+
2. Apply Inversion Exercise: "What would CAUSE this bug intentionally?"
|
|
89
|
+
3. Apply Scale Game: "Does this fail with 1 item? 100? 10000?"
|
|
90
|
+
4. Consider environmental factors (timing, concurrency, platform)
|
|
91
|
+
|
|
92
|
+
If 3+ fix attempts fail after diagnosis:
|
|
93
|
+
1. STOP immediately
|
|
94
|
+
2. Question the architecture — is the design fundamentally flawed?
|
|
95
|
+
3. Discuss with user before attempting more
|
|
96
|
+
|
|
97
|
+
## Diagnosis Report Format
|
|
98
|
+
|
|
99
|
+
```markdown
|
|
100
|
+
## Diagnosis Report
|
|
101
|
+
|
|
102
|
+
**Issue:** [one-line description]
|
|
103
|
+
**Pre-fix state captured:** Yes/No
|
|
104
|
+
|
|
105
|
+
### Root Cause
|
|
106
|
+
[Clear explanation of the root cause, traced back to origin]
|
|
107
|
+
|
|
108
|
+
### Evidence Chain
|
|
109
|
+
1. [Observation] → led to hypothesis [X]
|
|
110
|
+
2. [Test result] → confirmed/refuted [X]
|
|
111
|
+
3. [Trace] → root cause at [file:line]
|
|
112
|
+
|
|
113
|
+
### Affected Scope
|
|
114
|
+
- Files: [list]
|
|
115
|
+
- Functions: [list]
|
|
116
|
+
- Dependencies: [list]
|
|
117
|
+
|
|
118
|
+
### Recommended Fix
|
|
119
|
+
[What to change and why — addressing root cause, not symptoms]
|
|
120
|
+
|
|
121
|
+
### Prevention Needed
|
|
122
|
+
[What guards/tests to add to prevent recurrence]
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## Quick Mode Diagnosis
|
|
126
|
+
|
|
127
|
+
For trivial issues (type errors, lint, syntax), abbreviated diagnosis:
|
|
128
|
+
|
|
129
|
+
1. Read error message
|
|
130
|
+
2. Locate affected file(s) via scout results
|
|
131
|
+
3. Identify root cause (usually obvious for simple issues)
|
|
132
|
+
4. Skip parallel hypothesis testing
|
|
133
|
+
5. Still capture pre-fix state for verification
|
|
@@ -1,16 +1,32 @@
|
|
|
1
1
|
# Mode Selection
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
Use asking the user at start of fixing workflow.
|
|
4
|
+
|
|
5
|
+
## asking the user Format
|
|
6
|
+
|
|
7
|
+
```json
|
|
8
|
+
{
|
|
9
|
+
"questions": [{
|
|
10
|
+
"question": "How should I handle the fix workflow?",
|
|
11
|
+
"header": "Fix Mode",
|
|
12
|
+
"options": [
|
|
13
|
+
{
|
|
14
|
+
"label": "Autonomous (Recommended)",
|
|
15
|
+
"description": "Auto-approve if quality high, only ask when stuck"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"label": "Human-in-the-loop",
|
|
19
|
+
"description": "Pause for approval at each major step"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"label": "Quick fix",
|
|
23
|
+
"description": "Fast debug-fix-review cycle for simple issues"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"multiSelect": false
|
|
27
|
+
}]
|
|
28
|
+
}
|
|
29
|
+
```
|
|
14
30
|
|
|
15
31
|
## Mode Recommendations
|
|
16
32
|
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
# Parallel Exploration
|
|
2
2
|
|
|
3
|
-
Patterns for launching multiple
|
|
3
|
+
Patterns for launching multiple subagents in parallel to scout codebase, verify implementation, and coordinate via native Tasks.
|
|
4
4
|
|
|
5
5
|
## Parallel Exploration (Scouting)
|
|
6
6
|
|
|
7
|
-
Launch multiple `Explore`
|
|
7
|
+
Launch multiple `Explore` subagents simultaneously when needing to find:
|
|
8
8
|
- Related files across different areas
|
|
9
9
|
- Similar implementations/patterns
|
|
10
10
|
- Dependencies and usage
|
|
11
11
|
|
|
12
12
|
**Pattern:**
|
|
13
13
|
```
|
|
14
|
-
Task(
|
|
15
|
-
Task(
|
|
16
|
-
Task(
|
|
14
|
+
Task(subagent_type="Explore", prompt="Find [X] in [area1]", description="Scout area1")
|
|
15
|
+
Task(subagent_type="Explore", prompt="Find [Y] in [area2]", description="Scout area2")
|
|
16
|
+
Task(subagent_type="Explore", prompt="Find [Z] in [area3]", description="Scout area3")
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
**Example - Multi-area scouting:**
|
|
@@ -26,12 +26,12 @@ Task("Explore", "Find test files for auth module", "Scout tests")
|
|
|
26
26
|
|
|
27
27
|
## Parallel Verification (Bash)
|
|
28
28
|
|
|
29
|
-
Launch multiple `Bash`
|
|
29
|
+
Launch multiple `Bash` subagents to verify implementation from different angles.
|
|
30
30
|
|
|
31
31
|
**Pattern:**
|
|
32
32
|
```
|
|
33
|
-
Task(
|
|
34
|
-
Task(
|
|
33
|
+
Task(subagent_type="Bash", prompt="Run [command1]", description="Verify X")
|
|
34
|
+
Task(subagent_type="Bash", prompt="Run [command2]", description="Verify Y")
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
**Example - Multi-verification:**
|
|
@@ -42,6 +42,27 @@ Task("Bash", "Run lint: bun run lint", "Verify lint")
|
|
|
42
42
|
Task("Bash", "Run build: bun run build", "Verify build")
|
|
43
43
|
```
|
|
44
44
|
|
|
45
|
+
## Task-Coordinated Parallel (Moderate+)
|
|
46
|
+
|
|
47
|
+
For multi-phase fixes, use native Tasks to coordinate parallel agents.
|
|
48
|
+
See `references/task-orchestration.md` for full patterns.
|
|
49
|
+
|
|
50
|
+
**Pattern - Parallel issue trees:**
|
|
51
|
+
```
|
|
52
|
+
// Create separate task trees per independent issue
|
|
53
|
+
T_A1 = TaskCreate(subject="[Issue A] Debug", activeForm="Debugging A")
|
|
54
|
+
T_A2 = TaskCreate(subject="[Issue A] Fix", activeForm="Fixing A", addBlockedBy=[T_A1])
|
|
55
|
+
T_B1 = TaskCreate(subject="[Issue B] Debug", activeForm="Debugging B")
|
|
56
|
+
T_B2 = TaskCreate(subject="[Issue B] Fix", activeForm="Fixing B", addBlockedBy=[T_B1])
|
|
57
|
+
T_final = TaskCreate(subject="Integration verify", addBlockedBy=[T_A2, T_B2])
|
|
58
|
+
|
|
59
|
+
// Spawn agents per issue tree
|
|
60
|
+
Task("fullstack-developer", "Fix Issue A. Claim tasks via TaskUpdate.", "Fix A")
|
|
61
|
+
Task("fullstack-developer", "Fix Issue B. Claim tasks via TaskUpdate.", "Fix B")
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Agents claim work via `TaskUpdate(status="in_progress")` and complete via `TaskUpdate(status="completed")`. Blocked tasks auto-unblock when dependencies resolve.
|
|
65
|
+
|
|
45
66
|
## When to Use Parallel
|
|
46
67
|
|
|
47
68
|
| Scenario | Parallel Strategy |
|
|
@@ -50,11 +71,12 @@ Task("Bash", "Run build: bun run build", "Verify build")
|
|
|
50
71
|
| Multi-module fix | Explore each module in parallel |
|
|
51
72
|
| After implementation | Bash agents for typecheck + lint + build |
|
|
52
73
|
| Before commit | Bash agents for test + build + lint |
|
|
74
|
+
| 2+ independent issues | Task trees per issue + fullstack-developer agents |
|
|
53
75
|
|
|
54
|
-
## Combining Explore + Bash
|
|
76
|
+
## Combining Explore + Tasks + Bash
|
|
55
77
|
|
|
56
78
|
**Step 1:** Parallel Explore to scout
|
|
57
|
-
**Step 2:** Sequential implementation
|
|
79
|
+
**Step 2:** Sequential implementation (update Tasks as phases complete)
|
|
58
80
|
**Step 3:** Parallel Bash to verify
|
|
59
81
|
|
|
60
82
|
```
|
|
@@ -62,7 +84,7 @@ Task("Bash", "Run build: bun run build", "Verify build")
|
|
|
62
84
|
Task("Explore", "Find payment handlers", "Scout payments")
|
|
63
85
|
Task("Explore", "Find order processors", "Scout orders")
|
|
64
86
|
|
|
65
|
-
// Wait for results, implement fix
|
|
87
|
+
// Wait for results, implement fix, TaskUpdate each phase
|
|
66
88
|
|
|
67
89
|
// Verify phase - parallel
|
|
68
90
|
Task("Bash", "Run tests: bun test", "Run tests")
|
|
@@ -73,5 +95,6 @@ Task("Bash", "Run build", "Verify build")
|
|
|
73
95
|
## Resource Limits
|
|
74
96
|
|
|
75
97
|
- Max 3 parallel agents recommended (system resources)
|
|
76
|
-
- Each
|
|
98
|
+
- Each subagent has 200K token context limit
|
|
77
99
|
- Keep prompts concise to avoid context bloat
|
|
100
|
+
- Use `TaskList()` to check for available unblocked work
|