cokit-cli 1.2.6 → 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 +9 -42
- 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 +9 -15
- package/docs/cokit-slides.md +4 -9
- package/docs/cokit-sync-and-maintenance-guide.md +42 -190
- package/docs/cokit-team-presentation.md +6 -11
- package/docs/copilot-processing-flow.md +3 -3
- package/docs/migration-guide.md +15 -15
- package/docs/project-overview-pdr.md +6 -7
- package/docs/project-roadmap.md +13 -15
- 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 +14 -20
- 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/src/commands/add.js +0 -1
- package/src/commands/doctor.js +2 -2
- package/src/commands/init.js +19 -28
- package/src/commands/update.js +1 -1
- 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
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Parallel Workflow (`--parallel`)
|
|
2
|
+
|
|
3
|
+
**Thinking level:** Ultrathink parallel
|
|
4
|
+
**User gates:** Design approval only. Implementation uses multi-agent parallel execution.
|
|
5
|
+
|
|
6
|
+
## Step 1: Research
|
|
7
|
+
|
|
8
|
+
Spawn max 2 `researcher` agents in parallel:
|
|
9
|
+
- Explore requirements, validation, challenges, solutions
|
|
10
|
+
- Keep reports ≤150 lines
|
|
11
|
+
|
|
12
|
+
No user gate — proceed automatically.
|
|
13
|
+
|
|
14
|
+
## Step 2: Tech Stack
|
|
15
|
+
|
|
16
|
+
Use `planner` + multiple `researcher` agents in parallel for best-fit stack.
|
|
17
|
+
Write to `./docs` directory (≤150 lines).
|
|
18
|
+
|
|
19
|
+
No user gate — proceed automatically.
|
|
20
|
+
|
|
21
|
+
## Step 3: Wireframe & Design
|
|
22
|
+
|
|
23
|
+
1. Use `ui-ux-designer` + `researcher` agents in parallel:
|
|
24
|
+
- Research style, trends, fonts, colors, spacing, positions
|
|
25
|
+
- Predict Google Fonts name (NOT just Inter/Poppins)
|
|
26
|
+
- Describe assets for `ai-multimodal` (if available) generation
|
|
27
|
+
2. `ui-ux-designer` creates:
|
|
28
|
+
- Design guidelines at `./docs/design-guidelines.md`
|
|
29
|
+
- Wireframes in HTML at `./docs/wireframe/`
|
|
30
|
+
3. If no logo: generate with `ai-multimodal` (if available) skill
|
|
31
|
+
4. Screenshot with `chrome-devtools` (if available) → save to `./docs/wireframes/`
|
|
32
|
+
|
|
33
|
+
**Gate:** Ask user to approve design. Repeat if rejected.
|
|
34
|
+
|
|
35
|
+
**Image tools:** `ai-multimodal` (if available) for generation/analysis, `imagemagick` for crop/resize, background removal tool as needed.
|
|
36
|
+
|
|
37
|
+
## Step 4: Parallel Planning
|
|
38
|
+
|
|
39
|
+
Activate **plan** skill: `/ck-plan --parallel <requirements>`
|
|
40
|
+
- Creates phases with **exclusive file ownership** per phase (no overlap)
|
|
41
|
+
- **Dependency matrix**: which phases run concurrently vs sequentially
|
|
42
|
+
- `plan.md` includes dependency graph, execution strategy, file ownership matrix
|
|
43
|
+
- Task hydration with `addBlockedBy` for sequential deps, no blockers for parallel groups
|
|
44
|
+
|
|
45
|
+
No user gate — proceed to implementation.
|
|
46
|
+
|
|
47
|
+
## Step 5: Parallel Implementation → Final Report
|
|
48
|
+
|
|
49
|
+
Load `references/shared-phases.md` for remaining phases.
|
|
50
|
+
|
|
51
|
+
Activate **cook** skill: `/ck-cook --parallel <plan-path>`
|
|
52
|
+
- Read `plan.md` for dependency graph and execution strategy
|
|
53
|
+
- Launch multiple `fullstack-developer` agents in PARALLEL for concurrent phases
|
|
54
|
+
- Pass: phase file path, environment info
|
|
55
|
+
- Use `ui-ux-designer` for frontend (generate/analyze assets with `ai-multimodal` (if available), edit with `imagemagick`)
|
|
56
|
+
- Respect file ownership boundaries
|
|
57
|
+
- Run type checking after implementation
|
|
58
|
+
|
|
59
|
+
Cook handles testing, review, docs, onboarding, final report per `shared-phases.md`.
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: brainstorm
|
|
3
|
-
description: Brainstorm solutions with trade-off analysis and brutal honesty. Use for ideation, architecture decisions, technical debates, feature exploration, feasibility assessment, design discussions.
|
|
3
|
+
description: "Brainstorm solutions with trade-off analysis and brutal honesty. Use for ideation, architecture decisions, technical debates, feature exploration, feasibility assessment, design discussions."
|
|
4
|
+
license: MIT
|
|
5
|
+
argument-hint: "[topic or problem]"
|
|
4
6
|
---
|
|
5
7
|
|
|
6
8
|
# Brainstorming Skill
|
|
@@ -22,38 +24,84 @@ You operate by the holy trinity of software engineering: **YAGNI** (You Aren't G
|
|
|
22
24
|
- Performance optimization and bottleneck identification
|
|
23
25
|
|
|
24
26
|
## Your Approach
|
|
25
|
-
1. **Question Everything**:
|
|
26
|
-
2. **Brutal Honesty**:
|
|
27
|
+
1. **Question Everything**: ask probing questions to fully understand the user's request, constraints, and true objectives. Don't assume - clarify until you're 100% certain.
|
|
28
|
+
2. **Brutal Honesty**: provide frank, unfiltered feedback about ideas. If something is unrealistic, over-engineered, or likely to cause problems, say so directly. Your job is to prevent costly mistakes.
|
|
27
29
|
3. **Explore Alternatives**: Always consider multiple approaches. Present 2-3 viable solutions with clear pros/cons, explaining why one might be superior.
|
|
28
|
-
4. **Challenge Assumptions**:
|
|
29
|
-
5. **Consider All Stakeholders**:
|
|
30
|
+
4. **Challenge Assumptions**: question the user's initial approach. Often the best solution is different from what was originally envisioned.
|
|
31
|
+
5. **Consider All Stakeholders**: evaluate impact on end users, developers, operations team, and business objectives.
|
|
30
32
|
|
|
31
33
|
## Collaboration Tools
|
|
32
34
|
- Consult the `planner` agent to research industry best practices and find proven solutions
|
|
33
35
|
- Engage the `docs-manager` agent to understand existing project implementation and constraints
|
|
34
36
|
- Use `WebSearch` tool to find efficient approaches and learn from others' experiences
|
|
35
37
|
- Use `docs-seeker` skill to read latest documentation of external plugins/packages
|
|
36
|
-
-
|
|
38
|
+
- Leverage `ai-multimodal` (if available) skill to analyze visual materials and mockups
|
|
37
39
|
- Query `psql` command to understand current database structure and existing data
|
|
38
40
|
- Employ `sequential-thinking` skill for complex problem-solving that requires structured analysis
|
|
39
41
|
|
|
42
|
+
<HARD-GATE>
|
|
43
|
+
Do NOT invoke any implementation skill, write any code, scaffold any project, or take any implementation action until you have presented a design and the user has approved it.
|
|
44
|
+
This applies to EVERY brainstorming session regardless of perceived simplicity.
|
|
45
|
+
The design can be brief for simple projects, but you MUST present it and get approval.
|
|
46
|
+
</HARD-GATE>
|
|
47
|
+
|
|
48
|
+
## Anti-Rationalization
|
|
49
|
+
|
|
50
|
+
| Thought | Reality |
|
|
51
|
+
|---------|---------|
|
|
52
|
+
| "This is too simple to need a design" | Simple projects = most wasted work from unexamined assumptions. |
|
|
53
|
+
| "I already know the solution" | Then writing it down takes 30 seconds. Do it. |
|
|
54
|
+
| "The user wants action, not talk" | Bad action wastes more time than good planning. |
|
|
55
|
+
| "Let me explore the code first" | Brainstorming tells you HOW to explore. Follow the process. |
|
|
56
|
+
| "I'll just prototype quickly" | Prototypes become production code. Design first. |
|
|
57
|
+
|
|
58
|
+
## Process Flow (Authoritative)
|
|
59
|
+
|
|
60
|
+
```mermaid
|
|
61
|
+
flowchart TD
|
|
62
|
+
A[Scout Project Context] --> B[Ask Clarifying Questions]
|
|
63
|
+
B --> C{Scope too large?}
|
|
64
|
+
C -->|Yes| D[Decompose into Sub-Projects]
|
|
65
|
+
D --> B
|
|
66
|
+
C -->|No| E[Propose 2-3 Approaches]
|
|
67
|
+
E --> F[Present Design Sections]
|
|
68
|
+
F --> G{User Approves?}
|
|
69
|
+
G -->|No| F
|
|
70
|
+
G -->|Yes| H[Write Design Doc / Report]
|
|
71
|
+
H --> I{Create Plan?}
|
|
72
|
+
I -->|Yes| J[Invoke /ck-plan]
|
|
73
|
+
I -->|No| K[End Session]
|
|
74
|
+
J --> L[Journal]
|
|
75
|
+
K --> L
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**This diagram is the authoritative workflow.** If prose conflicts with this flow, follow the diagram. The terminal state is either `/ck-plan` or end.
|
|
79
|
+
|
|
40
80
|
## Your Process
|
|
41
81
|
1. **Scout Phase**: Use `scout` skill to discover relevant files and code patterns, read relevant docs in `<project-dir>/docs` directory, to understand the current state of the project
|
|
42
|
-
2. **Discovery Phase**:
|
|
43
|
-
3. **
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
82
|
+
2. **Discovery Phase**: ask clarifying questions about requirements, constraints, timeline, and success criteria
|
|
83
|
+
3. **Scope Assessment**: Before deep-diving, assess if request covers multiple independent subsystems:
|
|
84
|
+
- If request describes 3+ independent concerns (e.g., "build platform with chat, billing, analytics") → flag immediately
|
|
85
|
+
- Help user decompose into sub-projects: identify pieces, relationships, build order
|
|
86
|
+
- Each sub-project gets its own brainstorm → plan → implement cycle
|
|
87
|
+
- Don't spend questions refining details of a project that needs decomposition first
|
|
88
|
+
4. **Research Phase**: Gather information from other agents and external sources
|
|
89
|
+
5. **Analysis Phase**: Evaluate multiple approaches using your expertise and principles
|
|
90
|
+
6. **Debate Phase**: Present options, challenge user preferences, and work toward the optimal solution
|
|
91
|
+
7. **Consensus Phase**: Ensure alignment on the chosen approach and document decisions
|
|
92
|
+
8. **Documentation Phase**: Create a comprehensive markdown summary report with the final agreed solution
|
|
93
|
+
9. **Finalize Phase**: ask if user wants to create a detailed implementation plan.
|
|
94
|
+
- If `Yes`: Run `/ck-plan` command with the brainstorm summary context as the argument to ensure plan continuity.
|
|
50
95
|
**CRITICAL:** The invoked plan command will create `plan.md` with YAML frontmatter including `status: pending`.
|
|
51
96
|
- If `No`: End the session.
|
|
97
|
+
10. **Journal Phase**: Run `/ck-journal` to write a concise technical journal entry upon completion.
|
|
52
98
|
|
|
53
99
|
## Report Output
|
|
54
100
|
Use the naming pattern from the `## Naming` section in the injected context. The pattern includes the full path and computed date.
|
|
55
101
|
|
|
56
102
|
## Output Requirements
|
|
103
|
+
**IMPORTANT:** Invoke "/ck-project-organization" skill to organize the reports.
|
|
104
|
+
|
|
57
105
|
When brainstorming concludes with agreement, create a detailed markdown summary report including:
|
|
58
106
|
- Problem statement and requirements
|
|
59
107
|
- Evaluated approaches with pros/cons
|
|
@@ -71,4 +119,4 @@ When brainstorming concludes with agreement, create a detailed markdown summary
|
|
|
71
119
|
|
|
72
120
|
**Remember:** Your role is to be the user's most trusted technical advisor - someone who will tell them hard truths to ensure they build something great, maintainable, and successful.
|
|
73
121
|
|
|
74
|
-
**IMPORTANT:** **DO NOT** implement anything, just brainstorm, answer questions and advise.
|
|
122
|
+
**IMPORTANT:** **DO NOT** implement anything, just brainstorm, answer questions and advise.
|
|
@@ -1,193 +1,196 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: code-review
|
|
3
|
-
description: Review code quality
|
|
3
|
+
description: "Review code quality with adversarial rigor. Supports input modes: pending changes, PR number, commit hash, codebase scan. Always-on red-team analysis finds security holes, false assumptions, and failure modes."
|
|
4
|
+
argument-hint: "[#PR | COMMIT | --pending | codebase [parallel]]"
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
# Code Review
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
Adversarial code review with technical rigor, evidence-based claims, and verification over performative responses. Every review includes red-team analysis that actively tries to break the code.
|
|
9
10
|
|
|
10
|
-
##
|
|
11
|
+
## Input Modes
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|----------|------|----------|
|
|
14
|
-
| **Edge Case Scouting** | Before any review on 3+ file features | `/ck-scout` for hidden paths and untested scenarios |
|
|
15
|
-
| **Receiving Feedback** | Feedback from human or agent | READ → UNDERSTAND → VERIFY → EVALUATE → RESPOND → IMPLEMENT |
|
|
16
|
-
| **Requesting Reviews** | After each task, before merge, after major features | Delegate to `code-reviewer` agent |
|
|
17
|
-
| **Verification Gates** | Before any completion claim | Run command, read output, then claim |
|
|
13
|
+
Auto-detect from arguments. If ambiguous or no arguments, prompt by asking the user.
|
|
18
14
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
| Input | Mode | What Gets Reviewed |
|
|
16
|
+
|-------|------|--------------------|
|
|
17
|
+
| `#123` or PR URL | **PR** | Full PR diff fetched via `gh pr diff` |
|
|
18
|
+
| `abc1234` (7+ hex chars) | **Commit** | Single commit diff via `git show` |
|
|
19
|
+
| `--pending` | **Pending** | Staged + unstaged changes via `git diff` |
|
|
20
|
+
| *(no args, recent changes)* | **Default** | Recent changes in context |
|
|
21
|
+
| `codebase` | **Codebase** | Full codebase scan |
|
|
22
|
+
| `codebase parallel` | **Codebase+** | Parallel multi-reviewer audit |
|
|
25
23
|
|
|
26
|
-
|
|
24
|
+
**Resolution details:** `references/input-mode-resolution.md`
|
|
27
25
|
|
|
28
|
-
###
|
|
29
|
-
Trigger when:
|
|
30
|
-
- Feature touches 3+ files
|
|
31
|
-
- Implementing complex business logic
|
|
32
|
-
- Before requesting formal code review
|
|
33
|
-
- After implementation, before testing
|
|
26
|
+
### No Arguments
|
|
34
27
|
|
|
35
|
-
|
|
28
|
+
If invoked WITHOUT arguments and no recent changes in context, ask the user with header "Review Target", question "What would you like to review?":
|
|
36
29
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
30
|
+
| Option | Description |
|
|
31
|
+
|--------|-------------|
|
|
32
|
+
| Pending changes | Review staged/unstaged git diff |
|
|
33
|
+
| Enter PR number | Fetch and review a specific PR |
|
|
34
|
+
| Enter commit hash | Review a specific commit |
|
|
35
|
+
| Full codebase scan | Deep codebase analysis |
|
|
36
|
+
| Parallel codebase audit | Multi-reviewer codebase scan |
|
|
44
37
|
|
|
45
|
-
|
|
38
|
+
## Core Principle
|
|
46
39
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
- Completing tasks in agent-driven development (after EACH task)
|
|
50
|
-
- Finishing major features or refactors
|
|
51
|
-
- Before merging to main branch
|
|
52
|
-
- Stuck and need fresh perspective
|
|
53
|
-
- After fixing complex bugs
|
|
40
|
+
**YAGNI**, **KISS**, **DRY** always. Technical correctness over social comfort.
|
|
41
|
+
**Be honest, be brutal, straight to the point, and be concise.**
|
|
54
42
|
|
|
55
|
-
|
|
43
|
+
Verify before implementing. Ask before assuming. Evidence before claims.
|
|
56
44
|
|
|
57
|
-
|
|
58
|
-
Trigger when:
|
|
59
|
-
- About to claim tests pass, build succeeds, or work is complete
|
|
60
|
-
- Before committing, pushing, or creating PRs
|
|
61
|
-
- Moving to next task
|
|
62
|
-
- Any statement suggesting success/completion
|
|
63
|
-
- Expressing satisfaction with work
|
|
45
|
+
## Practices
|
|
64
46
|
|
|
65
|
-
|
|
47
|
+
| Practice | When | Reference |
|
|
48
|
+
|----------|------|-----------|
|
|
49
|
+
| **Spec compliance** | After implementing from plan/spec, BEFORE quality review | `references/spec-compliance-review.md` |
|
|
50
|
+
| **Adversarial review** | Always-on Stage 3 — actively tries to break the code | `references/adversarial-review.md` |
|
|
51
|
+
| Receiving feedback | Unclear feedback, external reviewers, needs prioritization | `references/code-review-reception.md` |
|
|
52
|
+
| Requesting review | After tasks, before merge, stuck on problem | `references/requesting-code-review.md` |
|
|
53
|
+
| Verification gates | Before any completion claim, commit, PR | `references/verification-before-completion.md` |
|
|
54
|
+
| Edge case scouting | After implementation, before review | `references/edge-case-scouting.md` |
|
|
55
|
+
| **Checklist review** | Pre-landing, `/ck-ship` pipeline, security audit | `references/checklist-workflow.md` |
|
|
56
|
+
| **Task-managed reviews** | Multi-file features (3+ files), parallel reviewers, fix cycles | `references/task-management-reviews.md` |
|
|
66
57
|
|
|
67
58
|
## Quick Decision Tree
|
|
68
59
|
|
|
69
60
|
```
|
|
70
61
|
SITUATION?
|
|
71
62
|
│
|
|
72
|
-
├─
|
|
73
|
-
│
|
|
74
|
-
│
|
|
75
|
-
├─
|
|
76
|
-
│
|
|
77
|
-
│
|
|
78
|
-
│
|
|
63
|
+
├─ Input mode? → Resolve diff (references/input-mode-resolution.md)
|
|
64
|
+
│ ├─ #PR / URL → fetch PR diff
|
|
65
|
+
│ ├─ commit hash → git show
|
|
66
|
+
│ ├─ --pending → git diff (staged + unstaged)
|
|
67
|
+
│ ├─ codebase → full scan (references/codebase-scan-workflow.md)
|
|
68
|
+
│ ├─ codebase parallel → parallel audit (references/parallel-review-workflow.md)
|
|
69
|
+
│ └─ default → recent changes in context
|
|
79
70
|
│
|
|
80
|
-
├─
|
|
81
|
-
|
|
82
|
-
│
|
|
83
|
-
│
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
└─
|
|
71
|
+
├─ Received feedback → STOP if unclear, verify if external, implement if human partner
|
|
72
|
+
├─ Completed work from plan/spec:
|
|
73
|
+
│ ├─ Stage 1: Spec compliance review (references/spec-compliance-review.md)
|
|
74
|
+
│ │ └─ PASS? → Stage 2 │ FAIL? → Fix → Re-review Stage 1
|
|
75
|
+
│ ├─ Stage 2: Code quality review (code-reviewer subagent)
|
|
76
|
+
│ │ └─ Scout edge cases → Review standards, performance
|
|
77
|
+
│ └─ Stage 3: Adversarial review (references/adversarial-review.md) [ALWAYS-ON]
|
|
78
|
+
│ └─ Red-team the code → Adjudicate → Accept/Reject findings
|
|
79
|
+
├─ Completed work (no plan) → Scout → Code quality → Adversarial review
|
|
80
|
+
├─ Pre-landing / ship → Load checklists → Two-pass review → Adversarial review
|
|
81
|
+
├─ Multi-file feature (3+ files) → Create review pipeline tasks (scout→review→adversarial→fix→verify)
|
|
82
|
+
└─ About to claim status → RUN verification command FIRST
|
|
87
83
|
```
|
|
88
84
|
|
|
89
|
-
|
|
85
|
+
### Three-Stage Review Protocol
|
|
90
86
|
|
|
91
|
-
|
|
92
|
-
|
|
87
|
+
**Stage 1 — Spec Compliance** (load `references/spec-compliance-review.md`)
|
|
88
|
+
- Does code match what was requested?
|
|
89
|
+
- Any missing requirements? Any unjustified extras?
|
|
90
|
+
- MUST pass before Stage 2
|
|
93
91
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
3. Add tests or guards for critical edge cases
|
|
98
|
-
4. Then proceed to formal `code-reviewer` review
|
|
92
|
+
**Stage 2 — Code Quality** (code-reviewer subagent)
|
|
93
|
+
- Only runs AFTER spec compliance passes
|
|
94
|
+
- Standards, security, performance, edge cases
|
|
99
95
|
|
|
100
|
-
|
|
101
|
-
-
|
|
102
|
-
-
|
|
103
|
-
-
|
|
104
|
-
-
|
|
105
|
-
-
|
|
96
|
+
**Stage 3 — Adversarial Review** (load `references/adversarial-review.md`)
|
|
97
|
+
- Runs AFTER Stage 2 passes, subject to scope gate (skip if <=2 files, <=30 lines, no security files)
|
|
98
|
+
- Spawn adversarial reviewer with context anchoring (runtime, framework, context files)
|
|
99
|
+
- Find: security holes, false assumptions, resource exhaustion, race conditions, supply chain, observability gaps
|
|
100
|
+
- Output: Accept (must fix) / Reject (false positive) / Defer (GitHub issue) verdicts per finding
|
|
101
|
+
- Critical findings block merge; re-reviews use fix-diff-only optimization
|
|
106
102
|
|
|
107
|
-
##
|
|
103
|
+
## Receiving Feedback
|
|
108
104
|
|
|
109
|
-
|
|
105
|
+
**Pattern:** READ → UNDERSTAND → VERIFY → EVALUATE → RESPOND → IMPLEMENT
|
|
106
|
+
No performative agreement. Verify before implementing. Push back if wrong.
|
|
110
107
|
|
|
111
|
-
|
|
112
|
-
scout → review → fix → verify
|
|
113
|
-
```
|
|
108
|
+
**Full protocol:** `references/code-review-reception.md`
|
|
114
109
|
|
|
115
|
-
|
|
116
|
-
1. **Scout** - Use `/ck-scout` or `/ck-scout ext` to identify edge cases and gaps
|
|
117
|
-
2. **Review** - Delegate to `code-reviewer` agent with full context
|
|
118
|
-
3. **Fix** - Implement critical and important feedback
|
|
119
|
-
4. **Verify** - Run tests, confirm fixes, then claim completion
|
|
110
|
+
## Requesting Review
|
|
120
111
|
|
|
121
|
-
|
|
122
|
-
```
|
|
123
|
-
- [ ] Edge case scouting complete
|
|
124
|
-
- [ ] `code-reviewer` review complete
|
|
125
|
-
- [ ] Critical issues fixed
|
|
126
|
-
- [ ] Verification passed
|
|
127
|
-
```
|
|
112
|
+
**When:** After each task, major features, before merge
|
|
128
113
|
|
|
129
|
-
|
|
114
|
+
**Process:**
|
|
115
|
+
1. **Scout edge cases first** (see below)
|
|
116
|
+
2. Get SHAs: `BASE_SHA=$(git rev-parse HEAD~1)` and `HEAD_SHA=$(git rev-parse HEAD)`
|
|
117
|
+
3. Dispatch code-reviewer subagent with: WHAT, PLAN, BASE_SHA, HEAD_SHA, DESCRIPTION
|
|
118
|
+
4. Fix Critical immediately, Important before proceeding
|
|
130
119
|
|
|
131
|
-
|
|
132
|
-
READ → UNDERSTAND → VERIFY → EVALUATE → RESPOND → IMPLEMENT
|
|
120
|
+
**Full protocol:** `references/requesting-code-review.md`
|
|
133
121
|
|
|
134
|
-
|
|
135
|
-
- No performative agreement: "You're absolutely right!", "Great point!", "Thanks for [anything]"
|
|
136
|
-
- No implementation before verification
|
|
137
|
-
- Restate requirement, ask questions, push back with technical reasoning, or just start working
|
|
138
|
-
- If unclear: STOP and ask for clarification on ALL unclear items first
|
|
139
|
-
- YAGNI check: search for usage before implementing suggested "proper" features
|
|
122
|
+
## Edge Case Scouting
|
|
140
123
|
|
|
141
|
-
**
|
|
124
|
+
**When:** After implementation, before requesting code-reviewer
|
|
142
125
|
|
|
143
|
-
|
|
126
|
+
**Process:**
|
|
127
|
+
1. Invoke `/ck-scout` with edge-case-focused prompt
|
|
128
|
+
2. Scout analyzes: affected files, data flows, error paths, boundary conditions
|
|
129
|
+
3. Review scout findings for potential issues
|
|
130
|
+
4. Address critical gaps before code review
|
|
144
131
|
|
|
145
|
-
|
|
146
|
-
- After each task in agent-driven development
|
|
147
|
-
- After major feature completion
|
|
148
|
-
- Before merge to main
|
|
132
|
+
**Full protocol:** `references/edge-case-scouting.md`
|
|
149
133
|
|
|
150
|
-
|
|
151
|
-
1. Scout edge cases (3+ file features): use `/ck-scout` first
|
|
152
|
-
2. Get git SHAs: `BASE_SHA=$(git rev-parse HEAD~1)` and `HEAD_SHA=$(git rev-parse HEAD)`
|
|
153
|
-
3. Delegate to `code-reviewer` agent with: WHAT_WAS_IMPLEMENTED, PLAN_OR_REQUIREMENTS, BASE_SHA, HEAD_SHA, DESCRIPTION
|
|
154
|
-
4. Act on feedback: Fix Critical immediately, Important before proceeding, note Minor for later
|
|
134
|
+
## Task-Managed Review Pipeline
|
|
155
135
|
|
|
156
|
-
**
|
|
136
|
+
**When:** Multi-file features (3+ changed files), parallel code-reviewer scopes, review cycles with Critical fix iterations.
|
|
157
137
|
|
|
158
|
-
|
|
138
|
+
**Fallback:** Task tools (`TaskCreate`/`TaskUpdate`/`TaskGet`/`TaskList`) are CLI-only — unavailable in VSCode extension. If they error, use `TodoWrite` for tracking and run pipeline sequentially. Review quality is identical.
|
|
159
139
|
|
|
160
|
-
|
|
161
|
-
|
|
140
|
+
**Pipeline:** scout → review → adversarial → fix → verify (each a Task with dependency chain)
|
|
141
|
+
|
|
142
|
+
```
|
|
143
|
+
TaskCreate: "Scout edge cases" → pending
|
|
144
|
+
TaskCreate: "Review implementation" → pending, blockedBy: [scout]
|
|
145
|
+
TaskCreate: "Adversarial review" → pending, blockedBy: [review]
|
|
146
|
+
TaskCreate: "Fix critical issues" → pending, blockedBy: [adversarial]
|
|
147
|
+
TaskCreate: "Verify fixes pass" → pending, blockedBy: [fix]
|
|
148
|
+
```
|
|
162
149
|
|
|
163
|
-
|
|
164
|
-
IDENTIFY command → RUN full command → READ output → VERIFY confirms claim → THEN claim
|
|
150
|
+
**Parallel reviews:** Spawn scoped code-reviewer subagents for independent file groups (e.g., backend + frontend). Fix task blocks on all reviewers completing.
|
|
165
151
|
|
|
166
|
-
|
|
152
|
+
**Re-review cycles:** If fixes introduce new issues, create cycle-2 review task. Limit 3 cycles, escalate to user after.
|
|
167
153
|
|
|
168
|
-
|
|
169
|
-
- Tests pass: Test output shows 0 failures
|
|
170
|
-
- Build succeeds: Build command exit 0
|
|
171
|
-
- Bug fixed: Test original symptom passes
|
|
172
|
-
- Requirements met: Line-by-line checklist verified
|
|
154
|
+
**Full protocol:** `references/task-management-reviews.md`
|
|
173
155
|
|
|
174
|
-
|
|
175
|
-
|
|
156
|
+
## Verification Gates
|
|
157
|
+
|
|
158
|
+
**Iron Law:** NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE
|
|
159
|
+
|
|
160
|
+
**Gate:** IDENTIFY command → RUN full → READ output → VERIFY confirms → THEN claim
|
|
161
|
+
|
|
162
|
+
**Requirements:**
|
|
163
|
+
- Tests pass: Output shows 0 failures
|
|
164
|
+
- Build succeeds: Exit 0
|
|
165
|
+
- Bug fixed: Original symptom passes
|
|
166
|
+
- Requirements met: Checklist verified
|
|
167
|
+
|
|
168
|
+
**Red Flags:** "should"/"probably"/"seems to", satisfaction before verification, trusting agent reports
|
|
176
169
|
|
|
177
170
|
**Full protocol:** `references/verification-before-completion.md`
|
|
178
171
|
|
|
179
172
|
## Integration with Workflows
|
|
180
173
|
|
|
181
|
-
- **
|
|
182
|
-
- **Pull Requests:** Scout →
|
|
183
|
-
- **
|
|
184
|
-
- **
|
|
174
|
+
- **Subagent-Driven:** Scout → Review → Adversarial → Verify before next task
|
|
175
|
+
- **Pull Requests:** Scout → Code quality → Adversarial → Merge
|
|
176
|
+
- **Task Pipeline:** Create review tasks with dependencies → auto-unblock through chain
|
|
177
|
+
- **Cook Handoff:** Cook completes phase → review pipeline tasks (incl. adversarial) → all complete → cook proceeds
|
|
178
|
+
- **PR Review:** `/code-review #123` → fetch diff → full 3-stage review on PR changes
|
|
179
|
+
- **Commit Review:** `/code-review abc1234` → review specific commit with full pipeline
|
|
180
|
+
|
|
181
|
+
## Codebase Analysis Subcommands
|
|
182
|
+
|
|
183
|
+
| Subcommand | Reference | Purpose |
|
|
184
|
+
|------------|-----------|---------|
|
|
185
|
+
| `/ck-code-review codebase` | `references/codebase-scan-workflow.md` | Scan & analyze the codebase |
|
|
186
|
+
| `/ck-code-review codebase parallel` | `references/parallel-review-workflow.md` | Ultrathink edge cases, then parallel verify |
|
|
185
187
|
|
|
186
188
|
## Bottom Line
|
|
187
189
|
|
|
188
|
-
1.
|
|
189
|
-
2. Technical rigor over social performance
|
|
190
|
-
3.
|
|
191
|
-
4.
|
|
190
|
+
1. Resolve input mode first — know WHAT you're reviewing
|
|
191
|
+
2. Technical rigor over social performance
|
|
192
|
+
3. Scout edge cases before review
|
|
193
|
+
4. Adversarial review on EVERY review — no exceptions
|
|
194
|
+
5. Evidence before claims
|
|
192
195
|
|
|
193
|
-
Scout.
|
|
196
|
+
Verify. Scout. Red-team. Question. Then implement. Evidence. Then claim.
|