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
|
@@ -1,209 +1,113 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: receiving-code-review
|
|
3
|
-
description: Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement
|
|
3
|
+
description: Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Code Review Reception
|
|
7
7
|
|
|
8
|
-
## Overview
|
|
9
|
-
|
|
10
|
-
Code review requires technical evaluation, not emotional performance.
|
|
11
|
-
|
|
12
8
|
**Core principle:** Verify before implementing. Ask before assuming. Technical correctness over social comfort.
|
|
13
9
|
|
|
14
|
-
##
|
|
10
|
+
## Response Pattern
|
|
15
11
|
|
|
16
12
|
```
|
|
17
|
-
WHEN receiving code review feedback:
|
|
18
|
-
|
|
19
13
|
1. READ: Complete feedback without reacting
|
|
20
|
-
2. UNDERSTAND: Restate requirement
|
|
14
|
+
2. UNDERSTAND: Restate requirement (or ask)
|
|
21
15
|
3. VERIFY: Check against codebase reality
|
|
22
16
|
4. EVALUATE: Technically sound for THIS codebase?
|
|
23
17
|
5. RESPOND: Technical acknowledgment or reasoned pushback
|
|
24
|
-
6. IMPLEMENT: One
|
|
18
|
+
6. IMPLEMENT: One at a time, test each
|
|
25
19
|
```
|
|
26
20
|
|
|
27
21
|
## Forbidden Responses
|
|
28
22
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
- "Great point!" / "Excellent feedback!" (performative)
|
|
32
|
-
- "Let me implement that now" (before verification)
|
|
23
|
+
❌ "You're absolutely right!" / "Great point!" / "Thanks for [anything]"
|
|
24
|
+
❌ "Let me implement that now" (before verification)
|
|
33
25
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
- Just start working (actions > words)
|
|
26
|
+
✅ Restate technical requirement
|
|
27
|
+
✅ Ask clarifying questions
|
|
28
|
+
✅ Push back with technical reasoning
|
|
29
|
+
✅ Just start working (actions > words)
|
|
39
30
|
|
|
40
31
|
## Handling Unclear Feedback
|
|
41
32
|
|
|
42
33
|
```
|
|
43
|
-
IF any item
|
|
44
|
-
STOP -
|
|
45
|
-
ASK for clarification on unclear items
|
|
34
|
+
IF any item unclear:
|
|
35
|
+
STOP - don't implement anything
|
|
36
|
+
ASK for clarification on ALL unclear items
|
|
46
37
|
|
|
47
38
|
WHY: Items may be related. Partial understanding = wrong implementation.
|
|
48
39
|
```
|
|
49
40
|
|
|
50
|
-
**Example:**
|
|
51
|
-
```
|
|
52
|
-
your human partner: "Fix 1-6"
|
|
53
|
-
You understand 1,2,3,6. Unclear on 4,5.
|
|
54
|
-
|
|
55
|
-
❌ WRONG: Implement 1,2,3,6 now, ask about 4,5 later
|
|
56
|
-
✅ RIGHT: "I understand items 1,2,3,6. Need clarification on 4 and 5 before proceeding."
|
|
57
|
-
```
|
|
58
|
-
|
|
59
41
|
## Source-Specific Handling
|
|
60
42
|
|
|
61
|
-
|
|
62
|
-
- **Trusted** - implement after understanding
|
|
63
|
-
- **Still ask** if scope unclear
|
|
64
|
-
- **No performative agreement**
|
|
65
|
-
- **Skip to action** or technical acknowledgment
|
|
43
|
+
**Human partner:** Trusted - implement after understanding, no performative agreement
|
|
66
44
|
|
|
67
|
-
|
|
45
|
+
**External reviewers:**
|
|
68
46
|
```
|
|
69
47
|
BEFORE implementing:
|
|
70
|
-
1.
|
|
71
|
-
2.
|
|
72
|
-
3.
|
|
73
|
-
4.
|
|
74
|
-
5. Check: Does reviewer understand full context?
|
|
75
|
-
|
|
76
|
-
IF suggestion seems wrong:
|
|
77
|
-
Push back with technical reasoning
|
|
78
|
-
|
|
79
|
-
IF can't easily verify:
|
|
80
|
-
Say so: "I can't verify this without [X]. Should I [investigate/ask/proceed]?"
|
|
48
|
+
1. Technically correct for THIS codebase?
|
|
49
|
+
2. Breaks existing functionality?
|
|
50
|
+
3. Reason for current implementation?
|
|
51
|
+
4. Works all platforms/versions?
|
|
81
52
|
|
|
82
|
-
IF
|
|
83
|
-
|
|
53
|
+
IF wrong: Push back with technical reasoning
|
|
54
|
+
IF can't verify: State limitation, ask direction
|
|
55
|
+
IF conflicts with partner's decisions: Stop, discuss first
|
|
84
56
|
```
|
|
85
57
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
## YAGNI Check for "Professional" Features
|
|
58
|
+
## YAGNI Check
|
|
89
59
|
|
|
90
60
|
```
|
|
91
61
|
IF reviewer suggests "implementing properly":
|
|
92
62
|
grep codebase for actual usage
|
|
93
|
-
|
|
94
|
-
IF
|
|
95
|
-
IF used: Then implement properly
|
|
63
|
+
IF unused: "This isn't called. Remove it (YAGNI)?"
|
|
64
|
+
IF used: Implement properly
|
|
96
65
|
```
|
|
97
66
|
|
|
98
|
-
**your human partner's rule:** "You and reviewer both report to me. If we don't need this feature, don't add it."
|
|
99
|
-
|
|
100
67
|
## Implementation Order
|
|
101
68
|
|
|
102
69
|
```
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
- Simple fixes (typos, imports)
|
|
108
|
-
- Complex fixes (refactoring, logic)
|
|
109
|
-
3. Test each fix individually
|
|
110
|
-
4. Verify no regressions
|
|
70
|
+
1. Clarify unclear items FIRST
|
|
71
|
+
2. Implement: blocking → simple → complex
|
|
72
|
+
3. Test each individually
|
|
73
|
+
4. Verify no regressions
|
|
111
74
|
```
|
|
112
75
|
|
|
113
76
|
## When To Push Back
|
|
114
77
|
|
|
115
|
-
|
|
116
|
-
- Suggestion breaks existing functionality
|
|
78
|
+
- Breaks existing functionality
|
|
117
79
|
- Reviewer lacks full context
|
|
118
80
|
- Violates YAGNI (unused feature)
|
|
119
|
-
- Technically incorrect for
|
|
120
|
-
- Legacy/compatibility reasons
|
|
121
|
-
- Conflicts with
|
|
81
|
+
- Technically incorrect for stack
|
|
82
|
+
- Legacy/compatibility reasons
|
|
83
|
+
- Conflicts with architectural decisions
|
|
122
84
|
|
|
123
|
-
**How
|
|
124
|
-
- Use technical reasoning, not defensiveness
|
|
125
|
-
- Ask specific questions
|
|
126
|
-
- Reference working tests/code
|
|
127
|
-
- Involve your human partner if architectural
|
|
128
|
-
|
|
129
|
-
**Signal if uncomfortable pushing back out loud:** "Strange things are afoot at the Circle K"
|
|
85
|
+
**How:** Technical reasoning, specific questions, reference working tests
|
|
130
86
|
|
|
131
87
|
## Acknowledging Correct Feedback
|
|
132
88
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
✅
|
|
136
|
-
✅ "Good catch - [specific issue]. Fixed in [location]."
|
|
137
|
-
✅ [Just fix it and show in the code]
|
|
138
|
-
|
|
139
|
-
❌ "You're absolutely right!"
|
|
140
|
-
❌ "Great point!"
|
|
141
|
-
❌ "Thanks for catching that!"
|
|
142
|
-
❌ "Thanks for [anything]"
|
|
143
|
-
❌ ANY gratitude expression
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
**Why no thanks:** Actions speak. Just fix it. The code itself shows you heard the feedback.
|
|
89
|
+
✅ "Fixed. [Brief description]"
|
|
90
|
+
✅ "Good catch - [issue]. Fixed in [location]."
|
|
91
|
+
✅ Just fix it (actions > words)
|
|
147
92
|
|
|
148
|
-
|
|
93
|
+
❌ ANY gratitude or performative expression
|
|
149
94
|
|
|
150
|
-
##
|
|
95
|
+
## Correcting Wrong Pushback
|
|
151
96
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
✅ "You were right - I checked [X] and it does [Y]. Implementing now."
|
|
155
|
-
✅ "Verified this and you're correct. My initial understanding was wrong because [reason]. Fixing."
|
|
97
|
+
✅ "You were right - checked [X], it does [Y]. Implementing."
|
|
98
|
+
❌ Long apology, defending, over-explaining
|
|
156
99
|
|
|
157
|
-
|
|
158
|
-
❌ Defending why you pushed back
|
|
159
|
-
❌ Over-explaining
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
State the correction factually and move on.
|
|
163
|
-
|
|
164
|
-
## Common Mistakes
|
|
100
|
+
## Quick Reference
|
|
165
101
|
|
|
166
102
|
| Mistake | Fix |
|
|
167
103
|
|---------|-----|
|
|
168
|
-
| Performative agreement | State requirement or
|
|
169
|
-
| Blind implementation | Verify against codebase
|
|
170
|
-
| Batch without testing | One at a time
|
|
171
|
-
| Assuming reviewer
|
|
104
|
+
| Performative agreement | State requirement or act |
|
|
105
|
+
| Blind implementation | Verify against codebase |
|
|
106
|
+
| Batch without testing | One at a time |
|
|
107
|
+
| Assuming reviewer right | Check if breaks things |
|
|
172
108
|
| Avoiding pushback | Technical correctness > comfort |
|
|
173
|
-
| Partial implementation | Clarify all items first |
|
|
174
|
-
| Can't verify, proceed anyway | State limitation, ask for direction |
|
|
175
|
-
|
|
176
|
-
## Real Examples
|
|
177
109
|
|
|
178
|
-
|
|
179
|
-
```
|
|
180
|
-
Reviewer: "Remove legacy code"
|
|
181
|
-
❌ "You're absolutely right! Let me remove that..."
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
**Technical Verification (Good):**
|
|
185
|
-
```
|
|
186
|
-
Reviewer: "Remove legacy code"
|
|
187
|
-
✅ "Checking... build target is 10.15+, this API needs 13+. Need legacy for backward compat. Current impl has wrong bundle ID - fix it or drop pre-13 support?"
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
**YAGNI (Good):**
|
|
191
|
-
```
|
|
192
|
-
Reviewer: "Implement proper metrics tracking with database, date filters, CSV export"
|
|
193
|
-
✅ "Grepped codebase - nothing calls this endpoint. Remove it (YAGNI)? Or is there usage I'm missing?"
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
**Unclear Item (Good):**
|
|
197
|
-
```
|
|
198
|
-
your human partner: "Fix items 1-6"
|
|
199
|
-
You understand 1,2,3,6. Unclear on 4,5.
|
|
200
|
-
✅ "Understand 1,2,3,6. Need clarification on 4 and 5 before implementing."
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
## The Bottom Line
|
|
204
|
-
|
|
205
|
-
**External feedback = suggestions to evaluate, not orders to follow.**
|
|
110
|
+
## Bottom Line
|
|
206
111
|
|
|
112
|
+
External feedback = suggestions to evaluate, not orders.
|
|
207
113
|
Verify. Question. Then implement.
|
|
208
|
-
|
|
209
|
-
No performative agreement. Technical rigor always.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Codebase Scan Workflow
|
|
2
|
+
|
|
3
|
+
Think harder to scan the codebase and analyze it follow the Orchestration Protocol, Core Responsibilities, Subagents Team and Development Rules:
|
|
4
|
+
<tasks>$ARGUMENTS</tasks>
|
|
5
|
+
|
|
6
|
+
## Role Responsibilities
|
|
7
|
+
- You are an elite software engineering expert who specializes in system architecture design and technical decision-making.
|
|
8
|
+
- You operate by: **YAGNI**, **KISS**, and **DRY**.
|
|
9
|
+
- Sacrifice grammar for concision. List unresolved questions at end.
|
|
10
|
+
|
|
11
|
+
## Workflow
|
|
12
|
+
|
|
13
|
+
### Research
|
|
14
|
+
* Use 2 `researcher` subagents in parallel to search up to 5 sources
|
|
15
|
+
* Keep every research report concise (≤150 lines)
|
|
16
|
+
* Use `/ck-scout` skill invocation to search the codebase
|
|
17
|
+
|
|
18
|
+
### Code Review
|
|
19
|
+
* Use multiple `code-reviewer` subagents in parallel to review code
|
|
20
|
+
* If issues found, ask main agent to improve and repeat until tests pass
|
|
21
|
+
* When complete, run adversarial review (see `adversarial-review.md`) — always-on, no exceptions
|
|
22
|
+
* Report combined quality + adversarial findings to user
|
|
23
|
+
|
|
24
|
+
### Plan
|
|
25
|
+
* Use `planner` subagent to analyze reports and create improvement plan
|
|
26
|
+
* Save overview at `plan.md`, phase files as `phase-XX-phase-name.md`
|
|
27
|
+
|
|
28
|
+
### Final Report
|
|
29
|
+
* Summary of changes, guide user to get started, suggest next steps
|
|
30
|
+
* Ask user if they want to commit and push
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: edge-case-scouting
|
|
3
|
+
description: Use after implementation, before code review to proactively find edge cases, side effects, and potential issues via scout skill - catches problems code-reviewer might miss
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Edge Case Scouting
|
|
7
|
+
|
|
8
|
+
Proactive detection of edge cases, side effects, and potential issues before code review.
|
|
9
|
+
|
|
10
|
+
## Purpose
|
|
11
|
+
|
|
12
|
+
Code reviews catch obvious issues but miss subtle side effects. Scout detects:
|
|
13
|
+
- Files affected by changes reviewer might not check
|
|
14
|
+
- Data flow paths that could break
|
|
15
|
+
- Boundary conditions and error paths
|
|
16
|
+
- Integration issues across modules
|
|
17
|
+
|
|
18
|
+
## When to Use
|
|
19
|
+
|
|
20
|
+
**Mandatory:** Multi-file features, shared utility refactors, complex bug fixes
|
|
21
|
+
**Optional:** Single-file changes, docs, config
|
|
22
|
+
|
|
23
|
+
## Process
|
|
24
|
+
|
|
25
|
+
### 1. Identify Changed Files
|
|
26
|
+
```bash
|
|
27
|
+
git diff --name-only HEAD~1
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### 2. Invoke Scout
|
|
31
|
+
```
|
|
32
|
+
/ck-scout edge cases for recent changes.
|
|
33
|
+
|
|
34
|
+
Changed: {files from git diff}
|
|
35
|
+
|
|
36
|
+
Find:
|
|
37
|
+
1. Files importing/depending on changed modules
|
|
38
|
+
2. Data flow paths through modified functions
|
|
39
|
+
3. Error handling paths not tested
|
|
40
|
+
4. Boundary conditions (null, empty, max)
|
|
41
|
+
5. Race conditions in async code
|
|
42
|
+
6. State management side effects
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### 3. Analyze & Act
|
|
46
|
+
|
|
47
|
+
| Finding | Action |
|
|
48
|
+
|---------|--------|
|
|
49
|
+
| Affected file not in scope | Add to review |
|
|
50
|
+
| Data flow risk | Verify or add test |
|
|
51
|
+
| Edge case | Add test or verify |
|
|
52
|
+
| Missing test | Add before review |
|
|
53
|
+
|
|
54
|
+
### 4. Document for Review
|
|
55
|
+
```
|
|
56
|
+
Scout findings:
|
|
57
|
+
- {issues found}
|
|
58
|
+
- Verified: {what checked}
|
|
59
|
+
- Addressed: {what fixed}
|
|
60
|
+
- Needs review: {remaining}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Scout Prompts
|
|
64
|
+
|
|
65
|
+
**Feature:**
|
|
66
|
+
```
|
|
67
|
+
Scout edge cases for {feature}.
|
|
68
|
+
Changed: {files}
|
|
69
|
+
Find: consumers, error states, untested inputs, performance, compatibility
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
**Bug fix:**
|
|
73
|
+
```
|
|
74
|
+
Scout side effects of fix in {file}.
|
|
75
|
+
Bug: {description}, Fix: {approach}
|
|
76
|
+
Find: other paths using logic, dependent features, similar bugs
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
**Refactor:**
|
|
80
|
+
```
|
|
81
|
+
Scout breaking changes in {module}.
|
|
82
|
+
Before: {old}, After: {new}
|
|
83
|
+
Find: importers, behavior diffs, removed functionality
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## What Scout Catches
|
|
87
|
+
|
|
88
|
+
| Issue | Why Missed | Scout Detects |
|
|
89
|
+
|-------|------------|---------------|
|
|
90
|
+
| Indirect deps | Not in diff | Traces imports |
|
|
91
|
+
| Race conditions | Hard static review | Analyzes flow |
|
|
92
|
+
| State mutations | Hidden side effects | Tracks data |
|
|
93
|
+
| Missing null checks | Assumed safe | Boundary analysis |
|
|
94
|
+
| Integration breaks | Out of scope | Cross-module search |
|
|
95
|
+
|
|
96
|
+
## Red Flags
|
|
97
|
+
|
|
98
|
+
- Shared utility changed but only one caller tested
|
|
99
|
+
- Error path leads to unhandled rejection
|
|
100
|
+
- State modified in place without notification
|
|
101
|
+
- Breaking change without migration
|
|
102
|
+
|
|
103
|
+
## Example
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
1. Done: Add cache to UserService.getUser()
|
|
107
|
+
2. Diff: src/services/user-service.ts
|
|
108
|
+
3. Scout: "edge cases for caching in getUser()"
|
|
109
|
+
4. Report:
|
|
110
|
+
- ProfileComponent expects fresh data on edit
|
|
111
|
+
- AdminPanel loops getUser() (memory risk)
|
|
112
|
+
- No cache clear on updateUser()
|
|
113
|
+
5. Fix: Add invalidation, maxSize
|
|
114
|
+
6. Document for code-reviewer
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## Bottom Line
|
|
118
|
+
|
|
119
|
+
Scout before review. Don't trust "simple changes" - scout them anyway.
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: input-mode-resolution
|
|
3
|
+
description: How to parse code-review arguments and resolve PR number, commit hash, pending changes, or default context into a reviewable diff
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Input Mode Resolution
|
|
7
|
+
|
|
8
|
+
Resolve `/code-review` arguments into a diff for the review pipeline.
|
|
9
|
+
|
|
10
|
+
## Auto-Detection Rules
|
|
11
|
+
|
|
12
|
+
Parse arguments left-to-right. First match wins.
|
|
13
|
+
|
|
14
|
+
| Pattern | Mode | Example |
|
|
15
|
+
|---------|------|---------|
|
|
16
|
+
| `#\d+` | PR | `#123`, `#45` |
|
|
17
|
+
| GitHub PR URL | PR | `https://github.com/org/repo/pull/123` |
|
|
18
|
+
| `[0-9a-f]{7,40}` | Commit | `abc1234`, full SHA |
|
|
19
|
+
| `--pending` | Pending | explicit flag |
|
|
20
|
+
| `codebase` | Codebase | existing mode |
|
|
21
|
+
| *(none + context)* | Default | recent changes |
|
|
22
|
+
| *(none + no context)* | Prompt | ask user by asking the user |
|
|
23
|
+
|
|
24
|
+
## Resolution Commands
|
|
25
|
+
|
|
26
|
+
### PR Mode
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# Extract PR number from argument
|
|
30
|
+
PR_NUM=$(echo "$ARG" | grep -oE '[0-9]+$')
|
|
31
|
+
|
|
32
|
+
# Fetch PR metadata
|
|
33
|
+
gh pr view "$PR_NUM" --json title,body,files,additions,deletions,baseRefName,headRefName
|
|
34
|
+
|
|
35
|
+
# Get the diff
|
|
36
|
+
gh pr diff "$PR_NUM"
|
|
37
|
+
|
|
38
|
+
# Get changed file list
|
|
39
|
+
gh pr diff "$PR_NUM" --name-only
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
**Context passed to reviewers:**
|
|
43
|
+
- PR title and description (intent)
|
|
44
|
+
- Base branch (what it merges into)
|
|
45
|
+
- Full diff
|
|
46
|
+
- Changed file list for scout
|
|
47
|
+
|
|
48
|
+
### Commit Mode
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
# Validate commit exists
|
|
52
|
+
git cat-file -t "$COMMIT_HASH"
|
|
53
|
+
|
|
54
|
+
# Get commit metadata
|
|
55
|
+
git log -1 --format="%H%n%s%n%b" "$COMMIT_HASH"
|
|
56
|
+
|
|
57
|
+
# Get the diff
|
|
58
|
+
git show "$COMMIT_HASH" --stat
|
|
59
|
+
git show "$COMMIT_HASH" -- # full diff
|
|
60
|
+
|
|
61
|
+
# Changed files
|
|
62
|
+
git show "$COMMIT_HASH" --name-only --format=""
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
**Context passed to reviewers:**
|
|
66
|
+
- Commit message (intent)
|
|
67
|
+
- Parent commit (what it changed from)
|
|
68
|
+
- Full diff
|
|
69
|
+
- Changed file list for scout
|
|
70
|
+
|
|
71
|
+
### Pending Mode
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
# Staged changes
|
|
75
|
+
git diff --cached
|
|
76
|
+
|
|
77
|
+
# Unstaged changes
|
|
78
|
+
git diff
|
|
79
|
+
|
|
80
|
+
# Combined (staged + unstaged vs HEAD)
|
|
81
|
+
git diff HEAD
|
|
82
|
+
|
|
83
|
+
# Changed files
|
|
84
|
+
git diff HEAD --name-only
|
|
85
|
+
|
|
86
|
+
# Status overview
|
|
87
|
+
git status --short
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
**Context passed to reviewers:**
|
|
91
|
+
- No commit message yet — ask user for brief intent description
|
|
92
|
+
- Combined diff (staged + unstaged)
|
|
93
|
+
- Changed file list for scout
|
|
94
|
+
|
|
95
|
+
### Default Mode
|
|
96
|
+
|
|
97
|
+
Use recent changes already in conversation context. If no changes apparent, fall back to Prompt mode.
|
|
98
|
+
|
|
99
|
+
### Prompt Mode
|
|
100
|
+
|
|
101
|
+
When no arguments and no recent context, ask the user:
|
|
102
|
+
- Header: "Review Target"
|
|
103
|
+
- Question: "What would you like to review?"
|
|
104
|
+
- Options: Pending changes, Enter PR number, Enter commit hash, Full codebase scan, Parallel codebase audit
|
|
105
|
+
|
|
106
|
+
For PR/commit options, follow up with second asking the user to get the number/hash.
|
|
107
|
+
|
|
108
|
+
### Codebase Mode
|
|
109
|
+
|
|
110
|
+
Codebase modes bypass diff resolution — they scan the full codebase instead.
|
|
111
|
+
- `codebase` → hand off to `references/codebase-scan-workflow.md`
|
|
112
|
+
- `codebase parallel` → hand off to `references/parallel-review-workflow.md`
|
|
113
|
+
|
|
114
|
+
Both workflows include adversarial review (always-on).
|
|
115
|
+
|
|
116
|
+
## Pipeline Handoff
|
|
117
|
+
|
|
118
|
+
After resolving the diff, pass to the review pipeline:
|
|
119
|
+
|
|
120
|
+
```
|
|
121
|
+
Resolved diff
|
|
122
|
+
├─ Changed files → Edge case scout
|
|
123
|
+
├─ Full diff → Stage 1 (Spec compliance, if plan exists)
|
|
124
|
+
├─ Full diff → Stage 2 (Code quality review)
|
|
125
|
+
└─ Full diff + findings → Stage 3 (Adversarial review)
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Error Handling
|
|
129
|
+
|
|
130
|
+
| Error | Action |
|
|
131
|
+
|-------|--------|
|
|
132
|
+
| PR not found | `gh pr view` fails → report "PR #N not found in this repo" |
|
|
133
|
+
| Commit not found | `git cat-file` fails → report "Commit not found — is it pushed?" |
|
|
134
|
+
| No pending changes | `git diff HEAD` empty → report "No pending changes to review" |
|
|
135
|
+
| Ambiguous input | Could be PR or commit → prefer PR (more common), note assumption |
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# Parallel Review Workflow
|
|
2
|
+
|
|
3
|
+
**Ultrathink** to exhaustively list ALL potential edge cases, then dispatch parallel `code-reviewer` agents to verify: <scope>$ARGUMENTS</scope>
|
|
4
|
+
|
|
5
|
+
**IMPORTANT:** Activate needed skills. Ensure token efficiency. Sacrifice grammar for concision.
|
|
6
|
+
|
|
7
|
+
## Workflow
|
|
8
|
+
|
|
9
|
+
### 1. Ultrathink Edge Cases
|
|
10
|
+
|
|
11
|
+
Main agent deeply analyzes the scope to LIST all potential edge cases FIRST:
|
|
12
|
+
- Read `codebase-summary.md` for context
|
|
13
|
+
- Use `/ck-scout` to find relevant files
|
|
14
|
+
- **Think exhaustively** about what could go wrong:
|
|
15
|
+
- Null/undefined scenarios
|
|
16
|
+
- Boundary conditions (off-by-one, empty, max values)
|
|
17
|
+
- Error handling gaps
|
|
18
|
+
- Race conditions, async edge cases
|
|
19
|
+
- Input validation holes
|
|
20
|
+
- Security vulnerabilities
|
|
21
|
+
- Resource leaks
|
|
22
|
+
- Untested code paths
|
|
23
|
+
|
|
24
|
+
**Output format:**
|
|
25
|
+
```markdown
|
|
26
|
+
## Edge Cases Identified
|
|
27
|
+
|
|
28
|
+
### Category: [scope-area]
|
|
29
|
+
1. [edge case description] → files: [file1, file2]
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### 2. Categorize & Assign
|
|
33
|
+
|
|
34
|
+
Group edge cases by similar scope for parallel verification:
|
|
35
|
+
- Each category → one `code-reviewer` agent
|
|
36
|
+
- Max 6 categories (merge small ones)
|
|
37
|
+
- Each reviewer gets specific edge cases to VERIFY, not discover
|
|
38
|
+
|
|
39
|
+
### 3. Parallel Verification
|
|
40
|
+
|
|
41
|
+
Launch N `code-reviewer` subagents simultaneously:
|
|
42
|
+
- Pass: category name, list of edge cases, relevant files
|
|
43
|
+
- Task: **VERIFY** if each edge case is properly handled in code
|
|
44
|
+
- Report: which edge cases are handled vs unhandled
|
|
45
|
+
|
|
46
|
+
### 4. Aggregate Results
|
|
47
|
+
|
|
48
|
+
```markdown
|
|
49
|
+
## Edge Case Verification Report
|
|
50
|
+
|
|
51
|
+
### Summary
|
|
52
|
+
- Total edge cases: X
|
|
53
|
+
- Handled: Y
|
|
54
|
+
- Unhandled: Z
|
|
55
|
+
- Partial: W
|
|
56
|
+
|
|
57
|
+
### Unhandled Edge Cases (Need Fix)
|
|
58
|
+
| # | Edge Case | File | Status |
|
|
59
|
+
|---|-----------|------|--------|
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### 5. Adversarial Review (Always-On)
|
|
63
|
+
|
|
64
|
+
After aggregation, spawn adversarial reviewer (see `adversarial-review.md`) on the full scope:
|
|
65
|
+
- Adversarial reviewer receives aggregated findings + unhandled edge cases as context
|
|
66
|
+
- Actively tries to break the code beyond what edge case verification found
|
|
67
|
+
- Adjudicate findings: Accept / Reject / Defer
|
|
68
|
+
|
|
69
|
+
### 6. Auto-Fix Pipeline
|
|
70
|
+
|
|
71
|
+
**IF** unhandled/partial edge cases found:
|
|
72
|
+
- Ask: "Found N unhandled edge cases. Fix with /ck-fix --parallel? [Y/n]"
|
|
73
|
+
|
|
74
|
+
### 7. Final Report
|
|
75
|
+
- Summary of verification
|
|
76
|
+
- Ask: "Commit? [Y/n]" → use `git-manager`
|