cokit-cli 1.2.7 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -31
- package/agents/brainstormer.agent.md +28 -14
- package/agents/code-reviewer.agent.md +101 -67
- package/agents/code-simplifier.agent.md +36 -41
- package/agents/debugger.agent.md +29 -24
- package/agents/docs-manager.agent.md +15 -23
- package/agents/fullstack-developer.agent.md +16 -6
- package/agents/git-manager.agent.md +0 -3
- package/agents/planner.agent.md +16 -34
- package/agents/project-manager.agent.md +24 -0
- package/agents/researcher.agent.md +15 -13
- package/agents/tester.agent.md +43 -20
- package/agents/ui-ux-designer.agent.md +16 -49
- package/docs/README.md +8 -9
- package/docs/Skills Orchestration Layer - Training Slides - en.pdf +0 -0
- package/docs/Skills Orchestration Layer - Training Slides - vi.pdf +0 -0
- package/docs/code-standards.md +1 -2
- package/docs/codebase-summary.md +35 -66
- package/docs/cokit-commands-usage-guide.md +27 -73
- package/docs/cokit-comprehensive-mapping-guide.md +8 -10
- package/docs/cokit-slides.md +2 -5
- package/docs/cokit-sync-and-maintenance-guide.md +42 -190
- package/docs/cokit-team-presentation.md +6 -9
- package/docs/copilot-processing-flow.md +3 -3
- package/docs/migration-guide.md +14 -14
- package/docs/project-overview-pdr.md +5 -6
- package/docs/project-roadmap.md +12 -14
- package/docs/skills-and-orchestration-layer-en.md +404 -0
- package/docs/skills-and-orchestration-layer-vi.md +404 -0
- package/docs/system-architecture.md +13 -17
- package/docs/{claudekit-porting-rules.md → upstream-porting-rules.md} +15 -16
- package/package.json +3 -4
- package/prompts/ck-ask.prompt.md +0 -1
- package/prompts/ck-bootstrap.prompt.md +0 -3
- package/prompts/ck-brainstorm.prompt.md +0 -1
- package/prompts/ck-cook.prompt.md +0 -1
- package/prompts/ck-debug.prompt.md +0 -1
- package/prompts/ck-deploy.prompt.md +22 -0
- package/prompts/ck-docs.prompt.md +0 -1
- package/prompts/ck-frontend.prompt.md +20 -0
- package/prompts/ck-help.prompt.md +0 -1
- package/prompts/ck-plan-fast.prompt.md +0 -3
- package/prompts/ck-plan-hard.prompt.md +0 -3
- package/prompts/ck-plan.prompt.md +0 -3
- package/prompts/ck-project.prompt.md +20 -0
- package/prompts/ck-review.prompt.md +0 -3
- package/prompts/ck-scout.prompt.md +0 -1
- package/prompts/ck-security.prompt.md +22 -0
- package/prompts/ck-ship.prompt.md +22 -0
- package/prompts/ck-test.prompt.md +0 -2
- package/prompts/ck-watzup.prompt.md +0 -1
- package/skills/agent-browser/SKILL.md +11 -8
- package/skills/agent-browser/references/agent-browser-vs-chrome-devtools.md +112 -0
- package/skills/bootstrap/SKILL.md +102 -0
- package/skills/bootstrap/references/shared-phases.md +59 -0
- package/skills/bootstrap/references/workflow-auto.md +52 -0
- package/skills/bootstrap/references/workflow-fast.md +50 -0
- package/skills/bootstrap/references/workflow-full.md +60 -0
- package/skills/bootstrap/references/workflow-parallel.md +59 -0
- package/skills/brainstorm/SKILL.md +63 -15
- package/skills/code-review/SKILL.md +138 -135
- package/skills/code-review/references/adversarial-review.md +223 -0
- package/skills/code-review/references/checklist-workflow.md +100 -0
- package/skills/code-review/references/checklists/api.md +52 -0
- package/skills/code-review/references/checklists/base.md +100 -0
- package/skills/code-review/references/checklists/web-app.md +54 -0
- package/skills/code-review/references/code-review-reception.md +48 -144
- package/skills/code-review/references/codebase-scan-workflow.md +30 -0
- package/skills/code-review/references/edge-case-scouting.md +119 -0
- package/skills/code-review/references/input-mode-resolution.md +135 -0
- package/skills/code-review/references/parallel-review-workflow.md +76 -0
- package/skills/code-review/references/requesting-code-review.md +115 -104
- package/skills/code-review/references/spec-compliance-review.md +43 -0
- package/skills/code-review/references/task-management-reviews.md +155 -0
- package/skills/common/README.md +2 -12
- package/skills/common/api_key_helper.py +7 -37
- package/skills/context-engineering/SKILL.md +4 -3
- package/skills/context-engineering/references/context-degradation.md +2 -2
- package/skills/context-engineering/references/runtime-awareness.md +5 -47
- package/skills/cook/README.md +13 -13
- package/skills/cook/SKILL.md +86 -58
- package/skills/cook/references/intent-detection.md +7 -7
- package/skills/cook/references/review-cycle.md +2 -2
- package/skills/cook/references/subagent-patterns.md +75 -0
- package/skills/cook/references/workflow-steps.md +75 -23
- package/skills/databases/SKILL.md +3 -30
- package/skills/databases/db-design.md +1 -1
- package/skills/debug/SKILL.md +47 -105
- package/skills/debug/references/frontend-verification.md +103 -0
- package/skills/debug/references/investigation-methodology.md +101 -0
- package/skills/debug/references/log-and-ci-analysis.md +97 -0
- package/skills/debug/references/performance-diagnostics.md +113 -0
- package/skills/debug/references/reporting-standards.md +122 -0
- package/skills/debug/references/task-management-debugging.md +155 -0
- package/skills/deploy/SKILL.md +154 -0
- package/skills/deploy/references/platform-config-templates.md +35 -0
- package/skills/deploy/references/platforms/aws.md +58 -0
- package/skills/deploy/references/platforms/cloudflare.md +41 -0
- package/skills/deploy/references/platforms/coolify.md +32 -0
- package/skills/deploy/references/platforms/digitalocean.md +45 -0
- package/skills/deploy/references/platforms/dokploy.md +29 -0
- package/skills/deploy/references/platforms/flyio.md +54 -0
- package/skills/deploy/references/platforms/gcp.md +45 -0
- package/skills/deploy/references/platforms/github-pages.md +56 -0
- package/skills/deploy/references/platforms/heroku.md +31 -0
- package/skills/deploy/references/platforms/netlify.md +39 -0
- package/skills/deploy/references/platforms/railway.md +38 -0
- package/skills/deploy/references/platforms/render.md +39 -0
- package/skills/deploy/references/platforms/tose.md +35 -0
- package/skills/deploy/references/platforms/vercel.md +37 -0
- package/skills/deploy/references/platforms/vultr.md +27 -0
- package/skills/devops/SKILL.md +6 -12
- package/skills/docs-seeker/SKILL.md +2 -1
- package/skills/docs-seeker/references/context7-patterns.md +4 -0
- package/skills/docs-seeker/scripts/fetch-docs.js +1 -2
- package/skills/docs-seeker/scripts/utils/env-loader.js +4 -4
- package/skills/docs-seeker/workflows/library-search.md +1 -0
- package/skills/fix/SKILL.md +141 -44
- package/skills/fix/references/complexity-assessment.md +21 -9
- package/skills/fix/references/diagnosis-protocol.md +133 -0
- package/skills/fix/references/mode-selection.md +27 -11
- package/skills/fix/references/parallel-exploration.md +35 -12
- package/skills/fix/references/prevention-gate.md +87 -0
- package/skills/fix/references/review-cycle.md +3 -3
- package/skills/fix/references/skill-activation-matrix.md +64 -31
- package/skills/fix/references/task-orchestration.md +110 -0
- package/skills/fix/references/workflow-deep.md +110 -47
- package/skills/fix/references/workflow-logs.md +46 -10
- package/skills/fix/references/workflow-quick.md +43 -20
- package/skills/fix/references/workflow-standard.md +75 -41
- package/skills/fix/references/workflow-test.md +49 -10
- package/skills/fix/references/workflow-ui.md +56 -18
- package/skills/frontend-design/SKILL.md +109 -77
- package/skills/frontend-design/references/ai-multimodal-overview.md +165 -0
- package/skills/frontend-design/references/anti-slop-rules.md +103 -0
- package/skills/frontend-design/references/asset-generation.md +284 -108
- package/skills/frontend-design/references/bento-motion-engine.md +142 -0
- package/skills/frontend-design/references/magicui-components.md +129 -0
- package/skills/frontend-design/references/performance-guardrails.md +169 -0
- package/skills/frontend-design/references/premium-design-patterns.md +93 -0
- package/skills/frontend-design/references/redesign-audit-checklist.md +114 -0
- package/skills/frontend-design/references/visual-analysis-overview.md +1 -1
- package/skills/frontend-design/references/workflow-3d.md +98 -0
- package/skills/frontend-design/references/workflow-describe.md +4 -3
- package/skills/frontend-design/references/workflow-immersive.md +82 -0
- package/skills/frontend-design/references/workflow-quick.md +10 -12
- package/skills/frontend-design/references/workflow-screenshot.md +9 -8
- package/skills/frontend-design/references/workflow-video.md +74 -0
- package/skills/frontend-development/SKILL.md +400 -0
- package/skills/frontend-development/resources/common-patterns.md +331 -0
- package/skills/frontend-development/resources/complete-examples.md +872 -0
- package/skills/frontend-development/resources/component-patterns.md +502 -0
- package/skills/frontend-development/resources/data-fetching.md +767 -0
- package/skills/frontend-development/resources/file-organization.md +502 -0
- package/skills/frontend-development/resources/loading-and-error-states.md +501 -0
- package/skills/frontend-development/resources/performance.md +406 -0
- package/skills/frontend-development/resources/routing-guide.md +364 -0
- package/skills/frontend-development/resources/styling-guide.md +428 -0
- package/skills/frontend-development/resources/typescript-standards.md +418 -0
- package/skills/git/SKILL.md +18 -4
- package/skills/git/references/commit-standards.md +3 -3
- package/skills/git/references/workflow-commit.md +3 -3
- package/skills/git/references/workflow-merge.md +1 -1
- package/skills/git/references/workflow-pr.md +1 -1
- package/skills/git/references/workflow-push.md +1 -1
- package/skills/mcp-management/README.md +18 -18
- package/skills/mcp-management/SKILL.md +16 -15
- package/skills/mcp-management/references/configuration.md +4 -4
- package/skills/mcp-management/references/gemini-cli-integration.md +12 -12
- package/skills/mcp-management/scripts/.env.example +2 -2
- package/skills/mcp-management/scripts/dist/mcp-client.js +1 -1
- package/skills/mcp-management/scripts/mcp-client.ts +1 -1
- package/skills/mermaidjs-v11/SKILL.md +1 -0
- package/skills/planning/SKILL.md +122 -91
- package/skills/planning/references/archive-workflow.md +53 -0
- package/skills/planning/references/codebase-understanding.md +1 -1
- package/skills/planning/references/output-standards.md +17 -13
- package/skills/planning/references/plan-organization.md +52 -30
- package/skills/planning/references/red-team-personas.md +69 -0
- package/skills/planning/references/red-team-workflow.md +77 -0
- package/skills/planning/references/scope-challenge.md +90 -0
- package/skills/planning/references/task-management.md +134 -0
- package/skills/planning/references/validate-question-framework.md +80 -0
- package/skills/planning/references/validate-workflow.md +65 -0
- package/skills/planning/references/workflow-modes.md +154 -0
- package/skills/problem-solving/SKILL.md +1 -0
- package/skills/project-management/SKILL.md +133 -0
- package/skills/project-management/references/documentation-triggers.md +60 -0
- package/skills/project-management/references/hydration-workflow.md +89 -0
- package/skills/project-management/references/progress-tracking.md +120 -0
- package/skills/project-management/references/reporting-patterns.md +94 -0
- package/skills/project-management/references/task-operations.md +87 -0
- package/skills/repomix/SKILL.md +3 -2
- package/skills/repomix/references/usage-patterns.md +2 -2
- package/skills/repomix/scripts/README.md +1 -1
- package/skills/repomix/scripts/repomix_batch.py +2 -2
- package/skills/research/SKILL.md +7 -4
- package/skills/scout/SKILL.md +24 -24
- package/skills/scout/references/external-scouting.md +17 -17
- package/skills/scout/references/internal-scouting.md +9 -9
- package/skills/scout/references/task-management-scouting.md +125 -0
- package/skills/security/SKILL.md +139 -0
- package/skills/security/references/stride-owasp-checklist.md +128 -0
- package/skills/sequential-thinking/README.md +3 -3
- package/skills/sequential-thinking/SKILL.md +2 -0
- package/skills/sequential-thinking/package.json +1 -1
- package/skills/ship/SKILL.md +116 -0
- package/skills/ship/references/auto-detect.md +103 -0
- package/skills/ship/references/pr-template.md +90 -0
- package/skills/ship/references/ship-workflow.md +241 -0
- package/skills/test/SKILL.md +111 -0
- package/skills/test/references/report-format.md +58 -0
- package/skills/test/references/test-execution-workflow.md +103 -0
- package/skills/test/references/ui-testing-workflow.md +65 -0
- package/skills/ui-styling/SKILL.md +2 -0
- package/skills/web-testing/SKILL.md +8 -60
- package/templates/repo/.github/agents/brainstormer.agent.md +28 -14
- package/templates/repo/.github/agents/code-reviewer.agent.md +101 -67
- package/templates/repo/.github/agents/code-simplifier.agent.md +36 -41
- package/templates/repo/.github/agents/debugger.agent.md +29 -24
- package/templates/repo/.github/agents/docs-manager.agent.md +15 -23
- package/templates/repo/.github/agents/fullstack-developer.agent.md +16 -6
- package/templates/repo/.github/agents/git-manager.agent.md +0 -3
- package/templates/repo/.github/agents/planner.agent.md +16 -34
- package/templates/repo/.github/agents/project-manager.agent.md +24 -0
- package/templates/repo/.github/agents/researcher.agent.md +15 -13
- package/templates/repo/.github/agents/tester.agent.md +43 -20
- package/templates/repo/.github/agents/ui-ux-designer.agent.md +16 -49
- package/templates/repo/.github/prompts/ck-ask.prompt.md +0 -1
- package/templates/repo/.github/prompts/ck-bootstrap.prompt.md +0 -3
- package/templates/repo/.github/prompts/ck-brainstorm.prompt.md +0 -1
- package/templates/repo/.github/prompts/ck-cook.prompt.md +0 -1
- package/templates/repo/.github/prompts/ck-debug.prompt.md +0 -1
- package/templates/repo/.github/prompts/ck-deploy.prompt.md +22 -0
- package/templates/repo/.github/prompts/ck-docs.prompt.md +0 -1
- package/templates/repo/.github/prompts/ck-frontend.prompt.md +20 -0
- package/templates/repo/.github/prompts/ck-help.prompt.md +0 -1
- package/templates/repo/.github/prompts/ck-plan-fast.prompt.md +0 -3
- package/templates/repo/.github/prompts/ck-plan-hard.prompt.md +0 -3
- package/templates/repo/.github/prompts/ck-plan.prompt.md +0 -3
- package/templates/repo/.github/prompts/ck-project.prompt.md +20 -0
- package/templates/repo/.github/prompts/ck-review.prompt.md +0 -3
- package/templates/repo/.github/prompts/ck-scout.prompt.md +0 -1
- package/templates/repo/.github/prompts/ck-security.prompt.md +22 -0
- package/templates/repo/.github/prompts/ck-ship.prompt.md +22 -0
- package/templates/repo/.github/prompts/ck-test.prompt.md +0 -2
- package/templates/repo/.github/prompts/ck-watzup.prompt.md +0 -1
- package/templates/repo/.github/skills/agent-browser/SKILL.md +11 -8
- package/templates/repo/.github/skills/agent-browser/references/agent-browser-vs-chrome-devtools.md +112 -0
- package/templates/repo/.github/skills/bootstrap/SKILL.md +102 -0
- package/templates/repo/.github/skills/bootstrap/references/shared-phases.md +59 -0
- package/templates/repo/.github/skills/bootstrap/references/workflow-auto.md +52 -0
- package/templates/repo/.github/skills/bootstrap/references/workflow-fast.md +50 -0
- package/templates/repo/.github/skills/bootstrap/references/workflow-full.md +60 -0
- package/templates/repo/.github/skills/bootstrap/references/workflow-parallel.md +59 -0
- package/templates/repo/.github/skills/brainstorm/SKILL.md +63 -15
- package/templates/repo/.github/skills/code-review/SKILL.md +138 -135
- package/templates/repo/.github/skills/code-review/references/adversarial-review.md +223 -0
- package/templates/repo/.github/skills/code-review/references/checklist-workflow.md +100 -0
- package/templates/repo/.github/skills/code-review/references/checklists/api.md +52 -0
- package/templates/repo/.github/skills/code-review/references/checklists/base.md +100 -0
- package/templates/repo/.github/skills/code-review/references/checklists/web-app.md +54 -0
- package/templates/repo/.github/skills/code-review/references/code-review-reception.md +48 -144
- package/templates/repo/.github/skills/code-review/references/codebase-scan-workflow.md +30 -0
- package/templates/repo/.github/skills/code-review/references/edge-case-scouting.md +119 -0
- package/templates/repo/.github/skills/code-review/references/input-mode-resolution.md +135 -0
- package/templates/repo/.github/skills/code-review/references/parallel-review-workflow.md +76 -0
- package/templates/repo/.github/skills/code-review/references/requesting-code-review.md +19 -8
- package/templates/repo/.github/skills/code-review/references/spec-compliance-review.md +43 -0
- package/templates/repo/.github/skills/code-review/references/task-management-reviews.md +155 -0
- package/templates/repo/.github/skills/common/README.md +2 -12
- package/templates/repo/.github/skills/common/api_key_helper.py +7 -37
- package/templates/repo/.github/skills/context-engineering/SKILL.md +4 -3
- package/templates/repo/.github/skills/context-engineering/references/context-degradation.md +2 -2
- package/templates/repo/.github/skills/context-engineering/references/runtime-awareness.md +5 -47
- package/templates/repo/.github/skills/cook/README.md +13 -13
- package/templates/repo/.github/skills/cook/SKILL.md +86 -58
- package/templates/repo/.github/skills/cook/references/intent-detection.md +7 -7
- package/templates/repo/.github/skills/cook/references/review-cycle.md +2 -2
- package/templates/repo/.github/skills/cook/references/subagent-patterns.md +75 -0
- package/templates/repo/.github/skills/cook/references/workflow-steps.md +75 -23
- package/templates/repo/.github/skills/databases/SKILL.md +3 -30
- package/templates/repo/.github/skills/databases/db-design.md +1 -1
- package/templates/repo/.github/skills/debug/SKILL.md +47 -105
- package/templates/repo/.github/skills/debug/references/frontend-verification.md +103 -0
- package/templates/repo/.github/skills/debug/references/investigation-methodology.md +101 -0
- package/templates/repo/.github/skills/debug/references/log-and-ci-analysis.md +97 -0
- package/templates/repo/.github/skills/debug/references/performance-diagnostics.md +113 -0
- package/templates/repo/.github/skills/debug/references/reporting-standards.md +122 -0
- package/templates/repo/.github/skills/debug/references/task-management-debugging.md +155 -0
- package/templates/repo/.github/skills/deploy/SKILL.md +154 -0
- package/templates/repo/.github/skills/deploy/references/platform-config-templates.md +35 -0
- package/templates/repo/.github/skills/deploy/references/platforms/aws.md +58 -0
- package/templates/repo/.github/skills/deploy/references/platforms/cloudflare.md +41 -0
- package/templates/repo/.github/skills/deploy/references/platforms/coolify.md +32 -0
- package/templates/repo/.github/skills/deploy/references/platforms/digitalocean.md +45 -0
- package/templates/repo/.github/skills/deploy/references/platforms/dokploy.md +29 -0
- package/templates/repo/.github/skills/deploy/references/platforms/flyio.md +54 -0
- package/templates/repo/.github/skills/deploy/references/platforms/gcp.md +45 -0
- package/templates/repo/.github/skills/deploy/references/platforms/github-pages.md +56 -0
- package/templates/repo/.github/skills/deploy/references/platforms/heroku.md +31 -0
- package/templates/repo/.github/skills/deploy/references/platforms/netlify.md +39 -0
- package/templates/repo/.github/skills/deploy/references/platforms/railway.md +38 -0
- package/templates/repo/.github/skills/deploy/references/platforms/render.md +39 -0
- package/templates/repo/.github/skills/deploy/references/platforms/tose.md +35 -0
- package/templates/repo/.github/skills/deploy/references/platforms/vercel.md +37 -0
- package/templates/repo/.github/skills/deploy/references/platforms/vultr.md +27 -0
- package/templates/repo/.github/skills/devops/SKILL.md +6 -12
- package/templates/repo/.github/skills/docs-seeker/SKILL.md +2 -1
- package/templates/repo/.github/skills/docs-seeker/references/context7-patterns.md +4 -0
- package/templates/repo/.github/skills/docs-seeker/scripts/fetch-docs.js +1 -2
- package/templates/repo/.github/skills/docs-seeker/scripts/utils/env-loader.js +4 -4
- package/templates/repo/.github/skills/docs-seeker/workflows/library-search.md +1 -0
- package/templates/repo/.github/skills/fix/SKILL.md +141 -44
- package/templates/repo/.github/skills/fix/references/complexity-assessment.md +21 -9
- package/templates/repo/.github/skills/fix/references/diagnosis-protocol.md +133 -0
- package/templates/repo/.github/skills/fix/references/mode-selection.md +27 -11
- package/templates/repo/.github/skills/fix/references/parallel-exploration.md +35 -12
- package/templates/repo/.github/skills/fix/references/prevention-gate.md +87 -0
- package/templates/repo/.github/skills/fix/references/review-cycle.md +3 -3
- package/templates/repo/.github/skills/fix/references/skill-activation-matrix.md +64 -31
- package/templates/repo/.github/skills/fix/references/task-orchestration.md +110 -0
- package/templates/repo/.github/skills/fix/references/workflow-deep.md +110 -47
- package/templates/repo/.github/skills/fix/references/workflow-logs.md +46 -10
- package/templates/repo/.github/skills/fix/references/workflow-quick.md +43 -20
- package/templates/repo/.github/skills/fix/references/workflow-standard.md +75 -41
- package/templates/repo/.github/skills/fix/references/workflow-test.md +49 -10
- package/templates/repo/.github/skills/fix/references/workflow-ui.md +56 -18
- package/templates/repo/.github/skills/frontend-design/SKILL.md +49 -17
- package/templates/repo/.github/skills/frontend-design/references/ai-multimodal-overview.md +165 -0
- package/templates/repo/.github/skills/frontend-design/references/anti-slop-rules.md +103 -0
- package/templates/repo/.github/skills/frontend-design/references/asset-generation.md +284 -108
- package/templates/repo/.github/skills/frontend-design/references/bento-motion-engine.md +142 -0
- package/templates/repo/.github/skills/frontend-design/references/magicui-components.md +129 -0
- package/templates/repo/.github/skills/frontend-design/references/performance-guardrails.md +169 -0
- package/templates/repo/.github/skills/frontend-design/references/premium-design-patterns.md +93 -0
- package/templates/repo/.github/skills/frontend-design/references/redesign-audit-checklist.md +114 -0
- package/templates/repo/.github/skills/frontend-design/references/visual-analysis-overview.md +1 -1
- package/templates/repo/.github/skills/frontend-design/references/workflow-3d.md +98 -0
- package/templates/repo/.github/skills/frontend-design/references/workflow-describe.md +4 -3
- package/templates/repo/.github/skills/frontend-design/references/workflow-immersive.md +82 -0
- package/templates/repo/.github/skills/frontend-design/references/workflow-quick.md +10 -12
- package/templates/repo/.github/skills/frontend-design/references/workflow-screenshot.md +9 -8
- package/templates/repo/.github/skills/frontend-design/references/workflow-video.md +74 -0
- package/templates/repo/.github/skills/frontend-development/SKILL.md +400 -0
- package/templates/repo/.github/skills/frontend-development/resources/common-patterns.md +331 -0
- package/templates/repo/.github/skills/frontend-development/resources/complete-examples.md +872 -0
- package/templates/repo/.github/skills/frontend-development/resources/component-patterns.md +502 -0
- package/templates/repo/.github/skills/frontend-development/resources/data-fetching.md +767 -0
- package/templates/repo/.github/skills/frontend-development/resources/file-organization.md +502 -0
- package/templates/repo/.github/skills/frontend-development/resources/loading-and-error-states.md +501 -0
- package/templates/repo/.github/skills/frontend-development/resources/performance.md +406 -0
- package/templates/repo/.github/skills/frontend-development/resources/routing-guide.md +364 -0
- package/templates/repo/.github/skills/frontend-development/resources/styling-guide.md +428 -0
- package/templates/repo/.github/skills/frontend-development/resources/typescript-standards.md +418 -0
- package/templates/repo/.github/skills/git/SKILL.md +18 -4
- package/templates/repo/.github/skills/git/references/commit-standards.md +3 -3
- package/templates/repo/.github/skills/git/references/workflow-commit.md +3 -3
- package/templates/repo/.github/skills/git/references/workflow-merge.md +1 -1
- package/templates/repo/.github/skills/git/references/workflow-pr.md +1 -1
- package/templates/repo/.github/skills/git/references/workflow-push.md +1 -1
- package/templates/repo/.github/skills/mcp-management/README.md +18 -18
- package/templates/repo/.github/skills/mcp-management/SKILL.md +16 -15
- package/templates/repo/.github/skills/mcp-management/references/configuration.md +4 -4
- package/templates/repo/.github/skills/mcp-management/references/gemini-cli-integration.md +12 -12
- package/templates/repo/.github/skills/mcp-management/scripts/.env.example +2 -2
- package/templates/repo/.github/skills/mcp-management/scripts/mcp-client.ts +1 -1
- package/templates/repo/.github/skills/mermaidjs-v11/SKILL.md +1 -0
- package/templates/repo/.github/skills/planning/SKILL.md +122 -91
- package/templates/repo/.github/skills/planning/references/archive-workflow.md +53 -0
- package/templates/repo/.github/skills/planning/references/codebase-understanding.md +1 -1
- package/templates/repo/.github/skills/planning/references/output-standards.md +17 -13
- package/templates/repo/.github/skills/planning/references/plan-organization.md +52 -30
- package/templates/repo/.github/skills/planning/references/red-team-personas.md +69 -0
- package/templates/repo/.github/skills/planning/references/red-team-workflow.md +77 -0
- package/templates/repo/.github/skills/planning/references/scope-challenge.md +90 -0
- package/templates/repo/.github/skills/planning/references/task-management.md +134 -0
- package/templates/repo/.github/skills/planning/references/validate-question-framework.md +80 -0
- package/templates/repo/.github/skills/planning/references/validate-workflow.md +65 -0
- package/templates/repo/.github/skills/planning/references/workflow-modes.md +154 -0
- package/templates/repo/.github/skills/problem-solving/SKILL.md +1 -0
- package/templates/repo/.github/skills/project-management/SKILL.md +133 -0
- package/templates/repo/.github/skills/project-management/references/documentation-triggers.md +60 -0
- package/templates/repo/.github/skills/project-management/references/hydration-workflow.md +89 -0
- package/templates/repo/.github/skills/project-management/references/progress-tracking.md +120 -0
- package/templates/repo/.github/skills/project-management/references/reporting-patterns.md +94 -0
- package/templates/repo/.github/skills/project-management/references/task-operations.md +87 -0
- package/templates/repo/.github/skills/repomix/SKILL.md +3 -2
- package/templates/repo/.github/skills/repomix/references/usage-patterns.md +2 -2
- package/templates/repo/.github/skills/repomix/scripts/README.md +1 -1
- package/templates/repo/.github/skills/repomix/scripts/repomix_batch.py +2 -2
- package/templates/repo/.github/skills/research/SKILL.md +7 -4
- package/templates/repo/.github/skills/scout/SKILL.md +24 -24
- package/templates/repo/.github/skills/scout/references/external-scouting.md +17 -17
- package/templates/repo/.github/skills/scout/references/internal-scouting.md +9 -9
- package/templates/repo/.github/skills/scout/references/task-management-scouting.md +125 -0
- package/templates/repo/.github/skills/security/SKILL.md +139 -0
- package/templates/repo/.github/skills/security/references/stride-owasp-checklist.md +128 -0
- package/templates/repo/.github/skills/sequential-thinking/README.md +3 -3
- package/templates/repo/.github/skills/sequential-thinking/SKILL.md +2 -0
- package/templates/repo/.github/skills/sequential-thinking/package-lock.json +3652 -0
- package/templates/repo/.github/skills/sequential-thinking/package.json +1 -1
- package/templates/repo/.github/skills/ship/SKILL.md +116 -0
- package/templates/repo/.github/skills/ship/references/auto-detect.md +103 -0
- package/templates/repo/.github/skills/ship/references/pr-template.md +90 -0
- package/templates/repo/.github/skills/ship/references/ship-workflow.md +241 -0
- package/templates/repo/.github/skills/test/SKILL.md +111 -0
- package/templates/repo/.github/skills/test/references/report-format.md +58 -0
- package/templates/repo/.github/skills/test/references/test-execution-workflow.md +103 -0
- package/templates/repo/.github/skills/test/references/ui-testing-workflow.md +65 -0
- package/templates/repo/.github/skills/ui-styling/SKILL.md +2 -0
- package/templates/repo/.github/skills/web-testing/SKILL.md +8 -60
- package/docs/guide-next-steps-speckit-cokit-implementation.md +0 -187
- package/prompts/ck-spec-analyze.prompt.md +0 -201
- package/prompts/ck-spec-checklist.prompt.md +0 -308
- package/prompts/ck-spec-clarify.prompt.md +0 -190
- package/prompts/ck-spec-constitution.prompt.md +0 -92
- package/prompts/ck-spec-implement.prompt.md +0 -157
- package/prompts/ck-spec-plan.prompt.md +0 -95
- package/prompts/ck-spec-specify.prompt.md +0 -261
- package/prompts/ck-spec-tasks.prompt.md +0 -181
- package/templates/repo/.github/AGENTS.md +0 -103
- package/templates/repo/.github/prompts/ck-spec-analyze.prompt.md +0 -201
- package/templates/repo/.github/prompts/ck-spec-checklist.prompt.md +0 -308
- package/templates/repo/.github/prompts/ck-spec-clarify.prompt.md +0 -190
- package/templates/repo/.github/prompts/ck-spec-constitution.prompt.md +0 -92
- package/templates/repo/.github/prompts/ck-spec-implement.prompt.md +0 -157
- package/templates/repo/.github/prompts/ck-spec-plan.prompt.md +0 -95
- package/templates/repo/.github/prompts/ck-spec-specify.prompt.md +0 -261
- package/templates/repo/.github/prompts/ck-spec-tasks.prompt.md +0 -181
- package/templates/repo/.github/skills/databases/stacks/bigquery.md +0 -231
- package/templates/repo/.github/skills/databases/stacks/d1_cloudflare.md +0 -137
- package/templates/repo/.github/skills/databases/stacks/mysql.md +0 -216
- package/templates/repo/.github/skills/databases/stacks/postgres.md +0 -235
- package/templates/repo/.github/skills/databases/stacks/sqlite.md +0 -244
- package/templates/repo/.github/skills/mcp-management/assets/tools.json +0 -3146
- package/templates/repo/.github/skills/mcp-management/scripts/dist/analyze-tools.js +0 -70
- package/templates/repo/.github/skills/mcp-management/scripts/dist/cli.js +0 -160
- package/templates/repo/.github/skills/mcp-management/scripts/dist/mcp-client.js +0 -183
- package/templates/repo/.github/skills/ui-styling/LICENSE.txt +0 -202
- package/templates/repo/.github/spec-kit/memory/constitution.md +0 -50
- package/templates/repo/.github/spec-kit/scripts/bash/check-prerequisites.sh +0 -166
- package/templates/repo/.github/spec-kit/scripts/bash/common.sh +0 -156
- package/templates/repo/.github/spec-kit/scripts/bash/create-new-feature.sh +0 -297
- package/templates/repo/.github/spec-kit/scripts/bash/setup-plan.sh +0 -61
- package/templates/repo/.github/spec-kit/scripts/bash/update-agent-context.sh +0 -799
- package/templates/repo/.github/spec-kit/scripts/powershell/check-prerequisites.ps1 +0 -148
- package/templates/repo/.github/spec-kit/scripts/powershell/common.ps1 +0 -137
- package/templates/repo/.github/spec-kit/scripts/powershell/create-new-feature.ps1 +0 -283
- package/templates/repo/.github/spec-kit/scripts/powershell/setup-plan.ps1 +0 -61
- package/templates/repo/.github/spec-kit/scripts/powershell/update-agent-context.ps1 +0 -448
- package/templates/repo/.github/spec-kit/templates/agent-file-template.md +0 -28
- package/templates/repo/.github/spec-kit/templates/checklist-template.md +0 -40
- package/templates/repo/.github/spec-kit/templates/commands/analyze.md +0 -187
- package/templates/repo/.github/spec-kit/templates/commands/checklist.md +0 -297
- package/templates/repo/.github/spec-kit/templates/commands/clarify.md +0 -184
- package/templates/repo/.github/spec-kit/templates/commands/constitution.md +0 -82
- package/templates/repo/.github/spec-kit/templates/commands/implement.md +0 -138
- package/templates/repo/.github/spec-kit/templates/commands/plan.md +0 -95
- package/templates/repo/.github/spec-kit/templates/commands/specify.md +0 -261
- package/templates/repo/.github/spec-kit/templates/commands/tasks.md +0 -140
- package/templates/repo/.github/spec-kit/templates/commands/taskstoissues.md +0 -33
- package/templates/repo/.github/spec-kit/templates/plan-template.md +0 -104
- package/templates/repo/.github/spec-kit/templates/spec-template.md +0 -115
- package/templates/repo/.github/spec-kit/templates/tasks-phase-template.md +0 -42
- package/templates/repo/.github/spec-kit/templates/tasks-template.md +0 -268
- package/templates/repo/.github/spec-kit/templates/vscode-settings.json +0 -14
|
@@ -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`
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: requesting-code-review
|
|
3
|
-
description: Use when completing tasks, implementing major features, or before merging to verify work meets requirements - dispatches code-reviewer
|
|
3
|
+
description: Use when completing tasks, implementing major features, or before merging to verify work meets requirements - dispatches code-reviewer subagent to review implementation against plan or requirements before proceeding
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Requesting Code Review
|
|
7
7
|
|
|
8
|
-
Dispatch code-reviewer
|
|
8
|
+
Dispatch code-reviewer subagent to catch issues before they cascade.
|
|
9
9
|
|
|
10
|
-
**Core principle:**
|
|
10
|
+
**Core principle:** Scout first, review often.
|
|
11
11
|
|
|
12
12
|
## When to Request Review
|
|
13
13
|
|
|
14
14
|
**Mandatory:**
|
|
15
|
-
- After each task in
|
|
15
|
+
- After each task in subagent-driven development
|
|
16
16
|
- After completing major feature
|
|
17
17
|
- Before merge to main
|
|
18
18
|
|
|
@@ -23,13 +23,24 @@ Dispatch code-reviewer agent to catch issues before they cascade.
|
|
|
23
23
|
|
|
24
24
|
## How to Request
|
|
25
25
|
|
|
26
|
+
**0. Scout edge cases first (NEW):**
|
|
27
|
+
```
|
|
28
|
+
Before dispatching code-reviewer, invoke /ck-scout to find:
|
|
29
|
+
- Files affected by changes (not just modified files)
|
|
30
|
+
- Data flow paths that could break
|
|
31
|
+
- Edge cases and boundary conditions
|
|
32
|
+
- Potential side effects
|
|
33
|
+
|
|
34
|
+
See: references/edge-case-scouting.md
|
|
35
|
+
```
|
|
36
|
+
|
|
26
37
|
**1. Get git SHAs:**
|
|
27
38
|
```bash
|
|
28
39
|
BASE_SHA=$(git rev-parse HEAD~1) # or origin/main
|
|
29
40
|
HEAD_SHA=$(git rev-parse HEAD)
|
|
30
41
|
```
|
|
31
42
|
|
|
32
|
-
**2. Dispatch code-reviewer
|
|
43
|
+
**2. Dispatch code-reviewer subagent:**
|
|
33
44
|
|
|
34
45
|
Use Task tool with `code-reviewer` type, fill template at `code-reviewer.md`
|
|
35
46
|
|
|
@@ -56,14 +67,14 @@ You: Let me request code review before proceeding.
|
|
|
56
67
|
BASE_SHA=$(git log --oneline | grep "Task 1" | head -1 | awk '{print $1}')
|
|
57
68
|
HEAD_SHA=$(git rev-parse HEAD)
|
|
58
69
|
|
|
59
|
-
[Dispatch code-reviewer
|
|
70
|
+
[Dispatch code-reviewer subagent]
|
|
60
71
|
WHAT_WAS_IMPLEMENTED: Verification and repair functions for conversation index
|
|
61
72
|
PLAN_OR_REQUIREMENTS: Task 2 from docs/plans/deployment-plan.md
|
|
62
73
|
BASE_SHA: a7981ec
|
|
63
74
|
HEAD_SHA: 3df7661
|
|
64
75
|
DESCRIPTION: Added verifyIndex() and repairIndex() with 4 issue types
|
|
65
76
|
|
|
66
|
-
[
|
|
77
|
+
[Subagent returns]:
|
|
67
78
|
Strengths: Clean architecture, real tests
|
|
68
79
|
Issues:
|
|
69
80
|
Important: Missing progress indicators
|
|
@@ -76,7 +87,7 @@ You: [Fix progress indicators]
|
|
|
76
87
|
|
|
77
88
|
## Integration with Workflows
|
|
78
89
|
|
|
79
|
-
**
|
|
90
|
+
**Subagent-Driven Development:**
|
|
80
91
|
- Review after EACH task
|
|
81
92
|
- Catch issues before they compound
|
|
82
93
|
- Fix before moving to next task
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: spec-compliance-review
|
|
3
|
+
description: First-pass review checking implementation matches spec/plan requirements before quality review
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Spec Compliance Review
|
|
7
|
+
|
|
8
|
+
## Purpose
|
|
9
|
+
|
|
10
|
+
Verify implementation matches what was requested BEFORE evaluating code quality.
|
|
11
|
+
Well-written code that doesn't match requirements is still wrong.
|
|
12
|
+
|
|
13
|
+
## When to Use
|
|
14
|
+
|
|
15
|
+
- After implementing features from a plan
|
|
16
|
+
- Before code quality review pass
|
|
17
|
+
- When plan/spec exists for the work being reviewed
|
|
18
|
+
|
|
19
|
+
## Process
|
|
20
|
+
|
|
21
|
+
1. **Load spec/plan** — Read the plan.md or phase file that defined this work
|
|
22
|
+
2. **List requirements** — Extract every requirement, acceptance criterion
|
|
23
|
+
3. **Check each requirement** against actual implementation:
|
|
24
|
+
- Present? → PASS
|
|
25
|
+
- Missing? → MISSING (must fix before quality review)
|
|
26
|
+
- Extra (not in spec)? → EXTRA (flag for removal unless justified)
|
|
27
|
+
4. **Verdict:**
|
|
28
|
+
- All requirements met, no unjustified extras → PASS → proceed to quality review
|
|
29
|
+
- Missing requirements → FAIL → implementer fixes → re-review
|
|
30
|
+
- Unjustified extras → WARN → discuss with user
|
|
31
|
+
|
|
32
|
+
## Checklist Template
|
|
33
|
+
|
|
34
|
+
| # | Requirement | Status | Notes |
|
|
35
|
+
|---|-------------|--------|-------|
|
|
36
|
+
| 1 | [from spec] | PASS/MISSING/EXTRA | [evidence] |
|
|
37
|
+
|
|
38
|
+
## Red Flags
|
|
39
|
+
|
|
40
|
+
- Skipping spec review because "code looks good"
|
|
41
|
+
- Accepting extra features without spec justification
|
|
42
|
+
- Treating spec review as optional
|
|
43
|
+
- Reviewing code quality before confirming spec compliance
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
# Review Task Management Patterns
|
|
2
|
+
|
|
3
|
+
Track review pipeline execution via Native Tasks (TaskCreate, TaskUpdate, TaskList).
|
|
4
|
+
|
|
5
|
+
## When to Create Tasks
|
|
6
|
+
|
|
7
|
+
| Review Scope | Tasks? | Rationale |
|
|
8
|
+
|--------------|--------|-----------|
|
|
9
|
+
| Single-file fix | No | Scout + review + done, overhead not worth it |
|
|
10
|
+
| Multi-file feature (3+ files) | Yes | Track scout → review → fix → verify chain |
|
|
11
|
+
| Parallel reviewers (2+ scopes) | Yes | Coordinate independent reviews |
|
|
12
|
+
| Review cycle with Critical fixes | Yes | Dependencies between fix → re-verify |
|
|
13
|
+
|
|
14
|
+
**3-Task Rule:** Skip task creation when review pipeline has <3 meaningful steps.
|
|
15
|
+
|
|
16
|
+
## Review Pipeline as Tasks
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
TaskCreate: "Scout edge cases" → pending
|
|
20
|
+
TaskCreate: "Review implementation" → pending, blockedBy: [scout]
|
|
21
|
+
TaskCreate: "Adversarial review" → pending, blockedBy: [review]
|
|
22
|
+
TaskCreate: "Fix critical issues" → pending, blockedBy: [adversarial]
|
|
23
|
+
TaskCreate: "Verify fixes pass" → pending, blockedBy: [fix]
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Dependency chain auto-unblocks: scout → review → adversarial → fix → verify.
|
|
27
|
+
|
|
28
|
+
## Task Schemas
|
|
29
|
+
|
|
30
|
+
### Scout Task
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
TaskCreate(
|
|
34
|
+
subject: "Scout edge cases for {feature}",
|
|
35
|
+
activeForm: "Scouting edge cases",
|
|
36
|
+
description: "Identify affected files, data flows, boundary conditions. Changed: {files}",
|
|
37
|
+
metadata: { reviewStage: "scout", feature: "{feature}",
|
|
38
|
+
changedFiles: "src/auth.ts,src/middleware.ts",
|
|
39
|
+
priority: "P2", effort: "3m" }
|
|
40
|
+
)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Review Task
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
TaskCreate(
|
|
47
|
+
subject: "Review {feature} implementation",
|
|
48
|
+
activeForm: "Reviewing {feature}",
|
|
49
|
+
description: "Code-reviewer subagent reviews {BASE_SHA}..{HEAD_SHA}. Plan: {plan_ref}",
|
|
50
|
+
metadata: { reviewStage: "review", feature: "{feature}",
|
|
51
|
+
baseSha: "{BASE_SHA}", headSha: "{HEAD_SHA}",
|
|
52
|
+
priority: "P1", effort: "10m" },
|
|
53
|
+
addBlockedBy: ["{scout-task-id}"]
|
|
54
|
+
)
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Adversarial Task
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
TaskCreate(
|
|
61
|
+
subject: "Adversarial review for {feature}",
|
|
62
|
+
activeForm: "Red-teaming {feature}",
|
|
63
|
+
description: "Spawn adversarial reviewer to break the code. See references/adversarial-review.md",
|
|
64
|
+
metadata: { reviewStage: "adversarial", feature: "{feature}",
|
|
65
|
+
priority: "P1", effort: "10m" },
|
|
66
|
+
addBlockedBy: ["{review-task-id}"]
|
|
67
|
+
)
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Fix Task (created after adversarial finds issues)
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
TaskCreate(
|
|
74
|
+
subject: "Fix {severity} issues from review",
|
|
75
|
+
activeForm: "Fixing {severity} review issues",
|
|
76
|
+
description: "Address: {issue_list}",
|
|
77
|
+
metadata: { reviewStage: "fix", severity: "critical",
|
|
78
|
+
issueCount: 3, priority: "P1", effort: "15m" },
|
|
79
|
+
addBlockedBy: ["{review-task-id}"]
|
|
80
|
+
)
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Verify Task
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
TaskCreate(
|
|
87
|
+
subject: "Verify fixes pass tests and build",
|
|
88
|
+
activeForm: "Verifying fixes",
|
|
89
|
+
description: "Run test suite, build, confirm 0 failures. Evidence before claims.",
|
|
90
|
+
metadata: { reviewStage: "verify", priority: "P1", effort: "5m" },
|
|
91
|
+
addBlockedBy: ["{fix-task-id}"]
|
|
92
|
+
)
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Parallel Review Coordination
|
|
96
|
+
|
|
97
|
+
For multi-scope reviews (e.g., backend + frontend changed independently):
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
// Create scoped review tasks — no blockedBy between them
|
|
101
|
+
TaskCreate(subject: "Review backend auth changes",
|
|
102
|
+
metadata: { reviewStage: "review", scope: "src/api/,src/middleware/",
|
|
103
|
+
agentIndex: 1, totalAgents: 2, priority: "P1" })
|
|
104
|
+
|
|
105
|
+
TaskCreate(subject: "Review frontend auth UI",
|
|
106
|
+
metadata: { reviewStage: "review", scope: "src/components/auth/",
|
|
107
|
+
agentIndex: 2, totalAgents: 2, priority: "P1" })
|
|
108
|
+
|
|
109
|
+
// Both run simultaneously via separate code-reviewer subagents
|
|
110
|
+
// Fix task blocks on BOTH completing:
|
|
111
|
+
TaskCreate(subject: "Fix all review issues",
|
|
112
|
+
addBlockedBy: ["{backend-review-id}", "{frontend-review-id}"])
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## Task Lifecycle
|
|
116
|
+
|
|
117
|
+
```
|
|
118
|
+
Scout: pending → in_progress → completed (scout report returned)
|
|
119
|
+
Review: pending → in_progress → completed (reviewer findings returned)
|
|
120
|
+
Adversarial: pending → in_progress → completed (red-team findings adjudicated)
|
|
121
|
+
Fix: pending → in_progress → completed (all Critical/Important fixed)
|
|
122
|
+
Verify: pending → in_progress → completed (tests pass, build clean)
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Handling Re-Reviews
|
|
126
|
+
|
|
127
|
+
When fixes introduce new issues → create new review cycle:
|
|
128
|
+
|
|
129
|
+
```
|
|
130
|
+
TaskCreate(subject: "Re-review after fixes",
|
|
131
|
+
addBlockedBy: ["{fix-task-id}"],
|
|
132
|
+
metadata: { reviewStage: "review", cycle: 2, priority: "P1" })
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
Limit to 3 cycles. If still failing after cycle 3 → escalate to user.
|
|
136
|
+
|
|
137
|
+
## Integration with Planning Tasks
|
|
138
|
+
|
|
139
|
+
Review tasks are **separate from** cook/planning phase tasks.
|
|
140
|
+
|
|
141
|
+
**When cook spawns review:**
|
|
142
|
+
1. Cook completes implementation phase → creates review pipeline tasks
|
|
143
|
+
2. Review pipeline executes (scout → review → adversarial → fix → verify)
|
|
144
|
+
3. All review tasks complete → cook marks phase as reviewed
|
|
145
|
+
4. Cook proceeds to next phase
|
|
146
|
+
|
|
147
|
+
Review tasks reference the phase but don't block it directly — the orchestrator manages handoff.
|
|
148
|
+
|
|
149
|
+
## Quality Check
|
|
150
|
+
|
|
151
|
+
After pipeline registration: `Registered [N] review tasks (scout → review → adversarial → fix → verify chain)`
|
|
152
|
+
|
|
153
|
+
## Error Handling
|
|
154
|
+
|
|
155
|
+
If `TaskCreate` fails: log warning, fall back to sequential review without task tracking. Review pipeline functions identically — tasks add visibility, not functionality.
|
|
@@ -36,19 +36,9 @@ The helper checks for `GEMINI_API_KEY` in this order:
|
|
|
36
36
|
echo 'GEMINI_API_KEY=your-api-key' > .env
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
3.
|
|
39
|
+
3. **Skill directory `.env` file**
|
|
40
40
|
```bash
|
|
41
|
-
echo 'GEMINI_API_KEY=your-api-key' >
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
4. **.copilot/skills/.env file** (shared across all Gemini skills)
|
|
45
|
-
```bash
|
|
46
|
-
echo 'GEMINI_API_KEY=your-api-key' > $HOME/.copilot/skills/.env
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
5. **Skill directory `.env` file**
|
|
50
|
-
```bash
|
|
51
|
-
echo 'GEMINI_API_KEY=your-api-key' > $HOME/.copilot/skills/your-skill/.env
|
|
41
|
+
echo 'GEMINI_API_KEY=your-api-key' > skills/your-skill/.env
|
|
52
42
|
```
|
|
53
43
|
|
|
54
44
|
### Vertex AI Support
|
|
@@ -7,9 +7,7 @@ Supports both Google AI Studio and Vertex AI endpoints.
|
|
|
7
7
|
API Key Detection Order:
|
|
8
8
|
1. Process environment variable
|
|
9
9
|
2. Project root .env file
|
|
10
|
-
3.
|
|
11
|
-
4. ./.copilot/skills/.env
|
|
12
|
-
5. Skill directory .env file
|
|
10
|
+
3. Skill directory .env file
|
|
13
11
|
|
|
14
12
|
Vertex AI Configuration:
|
|
15
13
|
- GEMINI_USE_VERTEX: Set to "true" to use Vertex AI endpoint
|
|
@@ -26,12 +24,10 @@ from typing import Optional, Dict, Any, List
|
|
|
26
24
|
|
|
27
25
|
def find_api_key(skill_dir: Optional[Path] = None) -> Optional[str]:
|
|
28
26
|
"""
|
|
29
|
-
Find GEMINI_API_KEY using
|
|
27
|
+
Find GEMINI_API_KEY using 3-step lookup:
|
|
30
28
|
1. Process environment
|
|
31
29
|
2. Project root .env
|
|
32
|
-
3.
|
|
33
|
-
4. ./.copilot/skills/.env
|
|
34
|
-
5. Skill directory .env
|
|
30
|
+
3. Skill directory .env
|
|
35
31
|
|
|
36
32
|
Args:
|
|
37
33
|
skill_dir: Path to skill directory (optional, auto-detected if None)
|
|
@@ -58,23 +54,7 @@ def find_api_key(skill_dir: Optional[Path] = None) -> Optional[str]:
|
|
|
58
54
|
print(f"✓ Using API key from {project_env}", file=sys.stderr)
|
|
59
55
|
return api_key
|
|
60
56
|
|
|
61
|
-
# Step 3: Check
|
|
62
|
-
config_env = project_dir / '.copilot' / '.env'
|
|
63
|
-
if config_env.exists():
|
|
64
|
-
api_key = load_env_file(config_env)
|
|
65
|
-
if api_key:
|
|
66
|
-
print(f"✓ Using API key from {config_env}", file=sys.stderr)
|
|
67
|
-
return api_key
|
|
68
|
-
|
|
69
|
-
# Step 4: Check ./.copilot/skills/.env
|
|
70
|
-
skills_config_env = project_dir / '.copilot' / 'skills' / '.env'
|
|
71
|
-
if skills_config_env.exists():
|
|
72
|
-
api_key = load_env_file(skills_config_env)
|
|
73
|
-
if api_key:
|
|
74
|
-
print(f"✓ Using API key from {skills_config_env}", file=sys.stderr)
|
|
75
|
-
return api_key
|
|
76
|
-
|
|
77
|
-
# Step 5: Check skill directory .env
|
|
57
|
+
# Step 3: Check skill directory .env
|
|
78
58
|
skill_env = skill_dir / '.env'
|
|
79
59
|
if skill_env.exists():
|
|
80
60
|
api_key = load_env_file(skill_env)
|
|
@@ -139,7 +119,7 @@ def load_env_var(env_path: Path, var_name: str) -> Optional[str]:
|
|
|
139
119
|
|
|
140
120
|
def find_env_var(var_name: str, skill_dir: Optional[Path] = None) -> Optional[str]:
|
|
141
121
|
"""
|
|
142
|
-
Find environment variable using
|
|
122
|
+
Find environment variable using 3-step lookup (same as API key)
|
|
143
123
|
|
|
144
124
|
Args:
|
|
145
125
|
var_name: Name of environment variable
|
|
@@ -158,11 +138,9 @@ def find_env_var(var_name: str, skill_dir: Optional[Path] = None) -> Optional[st
|
|
|
158
138
|
skill_dir = Path(__file__).parent.parent
|
|
159
139
|
project_dir = skill_dir.parent.parent.parent
|
|
160
140
|
|
|
161
|
-
# Step 2-
|
|
141
|
+
# Step 2-3: Check .env files in order
|
|
162
142
|
env_files = [
|
|
163
143
|
project_dir / '.env',
|
|
164
|
-
project_dir / '.copilot' / '.env',
|
|
165
|
-
project_dir / '.copilot' / 'skills' / '.env',
|
|
166
144
|
skill_dir / '.env'
|
|
167
145
|
]
|
|
168
146
|
|
|
@@ -202,8 +180,6 @@ def find_all_api_keys(skill_dir: Optional[Path] = None) -> List[str]:
|
|
|
202
180
|
# Collect all .env file paths in priority order
|
|
203
181
|
env_files = [
|
|
204
182
|
project_dir / '.env',
|
|
205
|
-
project_dir / '.copilot' / '.env',
|
|
206
|
-
project_dir / '.copilot' / 'skills' / '.env',
|
|
207
183
|
skill_dir / '.env'
|
|
208
184
|
]
|
|
209
185
|
|
|
@@ -338,13 +314,7 @@ def get_api_key_or_exit(skill_dir: Optional[Path] = None) -> str:
|
|
|
338
314
|
print("\n2️⃣ Project root .env file:", file=sys.stderr)
|
|
339
315
|
print(f" echo 'GEMINI_API_KEY=your-api-key' > {project_dir}/.env", file=sys.stderr)
|
|
340
316
|
|
|
341
|
-
print("\n3️⃣ .
|
|
342
|
-
print(f" echo 'GEMINI_API_KEY=your-api-key' > {project_dir}/.copilot/.env", file=sys.stderr)
|
|
343
|
-
|
|
344
|
-
print("\n4️⃣ .copilot/skills/.env file (shared across all Gemini skills):", file=sys.stderr)
|
|
345
|
-
print(f" echo 'GEMINI_API_KEY=your-api-key' > {project_dir}/.copilot/skills/.env", file=sys.stderr)
|
|
346
|
-
|
|
347
|
-
print("\n5️⃣ Skill directory .env file:", file=sys.stderr)
|
|
317
|
+
print("\n3️⃣ Skill directory .env file:", file=sys.stderr)
|
|
348
318
|
print(f" echo 'GEMINI_API_KEY=your-api-key' > {skill_dir}/.env", file=sys.stderr)
|
|
349
319
|
|
|
350
320
|
print("\n🔑 Get your API key at: https://aistudio.google.com/apikey", file=sys.stderr)
|
|
@@ -3,6 +3,7 @@ name: context-engineering
|
|
|
3
3
|
description: >-
|
|
4
4
|
Check context usage limits, monitor time remaining, optimize token consumption, debug context failures.
|
|
5
5
|
Use when asking about context percentage, rate limits, usage warnings, context optimization, agent architectures, memory systems.
|
|
6
|
+
argument-hint: "[topic or question]"
|
|
6
7
|
---
|
|
7
8
|
|
|
8
9
|
# Context Engineering
|
|
@@ -30,7 +31,7 @@ Context engineering curates the smallest high-signal token set for LLM tasks. Th
|
|
|
30
31
|
**IMPORTANT:**
|
|
31
32
|
- Sacrifice grammar for the sake of concision.
|
|
32
33
|
- Ensure token efficiency while maintaining high quality.
|
|
33
|
-
- Pass these rules to
|
|
34
|
+
- Pass these rules to subagents.
|
|
34
35
|
|
|
35
36
|
## Quick Reference
|
|
36
37
|
|
|
@@ -87,7 +88,7 @@ The system automatically injects usage awareness via PostToolUse hook:
|
|
|
87
88
|
|
|
88
89
|
```xml
|
|
89
90
|
<usage-awareness>
|
|
90
|
-
Usage Limits: 5h=45%, 7d=32%
|
|
91
|
+
AI Usage Limits: 5h=45%, 7d=32%
|
|
91
92
|
Context Window Usage: 67%
|
|
92
93
|
</usage-awareness>
|
|
93
94
|
```
|
|
@@ -97,7 +98,7 @@ Context Window Usage: 67%
|
|
|
97
98
|
- 90%: CRITICAL - immediate action needed
|
|
98
99
|
|
|
99
100
|
**Data Sources:**
|
|
100
|
-
- Usage limits:
|
|
101
|
+
- Usage limits: Anthropic OAuth API (`https://api.anthropic.com/api/oauth/usage`)
|
|
101
102
|
- Context window: Statusline temp file (`/tmp/ck-context-{session_id}.json`)
|
|
102
103
|
|
|
103
104
|
## Scripts
|
|
@@ -52,8 +52,8 @@ Predictable degradation as context grows. Not binary - a continuum.
|
|
|
52
52
|
| Model | Degradation Onset | Severe Degradation |
|
|
53
53
|
|-------|-------------------|-------------------|
|
|
54
54
|
| GPT-5.2 | ~64K tokens | ~200K tokens |
|
|
55
|
-
|
|
|
56
|
-
|
|
|
55
|
+
| Opus 4.5 | ~100K tokens | ~180K tokens |
|
|
56
|
+
| Sonnet 4.5 | ~80K tokens | ~150K tokens |
|
|
57
57
|
| Gemini 3 Pro | ~500K tokens | ~800K tokens |
|
|
58
58
|
|
|
59
59
|
## Four-Bucket Mitigation
|