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,105 +1,116 @@
|
|
|
1
|
-
---
|
|
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
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Requesting Code Review
|
|
7
|
-
|
|
8
|
-
Dispatch code-reviewer
|
|
9
|
-
|
|
10
|
-
**Core principle:**
|
|
11
|
-
|
|
12
|
-
## When to Request Review
|
|
13
|
-
|
|
14
|
-
**Mandatory:**
|
|
15
|
-
- After each task in
|
|
16
|
-
- After completing major feature
|
|
17
|
-
- Before merge to main
|
|
18
|
-
|
|
19
|
-
**Optional but valuable:**
|
|
20
|
-
- When stuck (fresh perspective)
|
|
21
|
-
- Before refactoring (baseline check)
|
|
22
|
-
- After fixing complex bug
|
|
23
|
-
|
|
24
|
-
## How to Request
|
|
25
|
-
|
|
26
|
-
**
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
**
|
|
44
|
-
|
|
45
|
-
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
1
|
+
---
|
|
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 subagent to review implementation against plan or requirements before proceeding
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Requesting Code Review
|
|
7
|
+
|
|
8
|
+
Dispatch code-reviewer subagent to catch issues before they cascade.
|
|
9
|
+
|
|
10
|
+
**Core principle:** Scout first, review often.
|
|
11
|
+
|
|
12
|
+
## When to Request Review
|
|
13
|
+
|
|
14
|
+
**Mandatory:**
|
|
15
|
+
- After each task in subagent-driven development
|
|
16
|
+
- After completing major feature
|
|
17
|
+
- Before merge to main
|
|
18
|
+
|
|
19
|
+
**Optional but valuable:**
|
|
20
|
+
- When stuck (fresh perspective)
|
|
21
|
+
- Before refactoring (baseline check)
|
|
22
|
+
- After fixing complex bug
|
|
23
|
+
|
|
24
|
+
## How to Request
|
|
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
|
+
|
|
37
|
+
**1. Get git SHAs:**
|
|
38
|
+
```bash
|
|
39
|
+
BASE_SHA=$(git rev-parse HEAD~1) # or origin/main
|
|
40
|
+
HEAD_SHA=$(git rev-parse HEAD)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
**2. Dispatch code-reviewer subagent:**
|
|
44
|
+
|
|
45
|
+
Use Task tool with `code-reviewer` type, fill template at `code-reviewer.md`
|
|
46
|
+
|
|
47
|
+
**Placeholders:**
|
|
48
|
+
- `{WHAT_WAS_IMPLEMENTED}` - What you just built
|
|
49
|
+
- `{PLAN_OR_REQUIREMENTS}` - What it should do
|
|
50
|
+
- `{BASE_SHA}` - Starting commit
|
|
51
|
+
- `{HEAD_SHA}` - Ending commit
|
|
52
|
+
- `{DESCRIPTION}` - Brief summary
|
|
53
|
+
|
|
54
|
+
**3. Act on feedback:**
|
|
55
|
+
- Fix Critical issues immediately
|
|
56
|
+
- Fix Important issues before proceeding
|
|
57
|
+
- Note Minor issues for later
|
|
58
|
+
- Push back if reviewer is wrong (with reasoning)
|
|
59
|
+
|
|
60
|
+
## Example
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
[Just completed Task 2: Add verification function]
|
|
64
|
+
|
|
65
|
+
You: Let me request code review before proceeding.
|
|
66
|
+
|
|
67
|
+
BASE_SHA=$(git log --oneline | grep "Task 1" | head -1 | awk '{print $1}')
|
|
68
|
+
HEAD_SHA=$(git rev-parse HEAD)
|
|
69
|
+
|
|
70
|
+
[Dispatch code-reviewer subagent]
|
|
71
|
+
WHAT_WAS_IMPLEMENTED: Verification and repair functions for conversation index
|
|
72
|
+
PLAN_OR_REQUIREMENTS: Task 2 from docs/plans/deployment-plan.md
|
|
73
|
+
BASE_SHA: a7981ec
|
|
74
|
+
HEAD_SHA: 3df7661
|
|
75
|
+
DESCRIPTION: Added verifyIndex() and repairIndex() with 4 issue types
|
|
76
|
+
|
|
77
|
+
[Subagent returns]:
|
|
78
|
+
Strengths: Clean architecture, real tests
|
|
79
|
+
Issues:
|
|
80
|
+
Important: Missing progress indicators
|
|
81
|
+
Minor: Magic number (100) for reporting interval
|
|
82
|
+
Assessment: Ready to proceed
|
|
83
|
+
|
|
84
|
+
You: [Fix progress indicators]
|
|
85
|
+
[Continue to Task 3]
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Integration with Workflows
|
|
89
|
+
|
|
90
|
+
**Subagent-Driven Development:**
|
|
91
|
+
- Review after EACH task
|
|
92
|
+
- Catch issues before they compound
|
|
93
|
+
- Fix before moving to next task
|
|
94
|
+
|
|
95
|
+
**Executing Plans:**
|
|
96
|
+
- Review after each batch (3 tasks)
|
|
97
|
+
- Get feedback, apply, continue
|
|
98
|
+
|
|
99
|
+
**Ad-Hoc Development:**
|
|
100
|
+
- Review before merge
|
|
101
|
+
- Review when stuck
|
|
102
|
+
|
|
103
|
+
## Red Flags
|
|
104
|
+
|
|
105
|
+
**Never:**
|
|
106
|
+
- Skip review because "it's simple"
|
|
107
|
+
- Ignore Critical issues
|
|
108
|
+
- Proceed with unfixed Important issues
|
|
109
|
+
- Argue with valid technical feedback
|
|
110
|
+
|
|
111
|
+
**If reviewer wrong:**
|
|
112
|
+
- Push back with technical reasoning
|
|
113
|
+
- Show code/tests that prove it works
|
|
114
|
+
- Request clarification
|
|
115
|
+
|
|
105
116
|
See template at: requesting-code-review/code-reviewer.md
|
|
@@ -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.
|
package/skills/common/README.md
CHANGED
|
@@ -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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Runtime Awareness
|
|
2
2
|
|
|
3
|
-
Monitor usage limits and context window utilization in real-time to optimize
|
|
3
|
+
Monitor usage limits and context window utilization in real-time to optimize Copilot sessions.
|
|
4
4
|
|
|
5
5
|
## Overview
|
|
6
6
|
|
|
@@ -24,48 +24,6 @@ Runtime awareness provides visibility into two critical metrics:
|
|
|
24
24
|
└──────────────────────────┘
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
## Usage Limits API
|
|
28
|
-
|
|
29
|
-
### Endpoint
|
|
30
|
-
|
|
31
|
-
```
|
|
32
|
-
GET <platform-specific-usage-endpoint>
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### Authentication
|
|
36
|
-
|
|
37
|
-
Requires OAuth Bearer token with platform-specific headers.
|
|
38
|
-
|
|
39
|
-
### Credential Locations
|
|
40
|
-
|
|
41
|
-
| Platform | Method | Location |
|
|
42
|
-
|----------|--------|----------|
|
|
43
|
-
| macOS | Keychain | `agent-credentials` |
|
|
44
|
-
| Windows | File | `%USERPROFILE%.copilot\.credentials.json` |
|
|
45
|
-
| Linux | File | `~/.copilot/.credentials.json` |
|
|
46
|
-
|
|
47
|
-
### Response Structure
|
|
48
|
-
|
|
49
|
-
```json
|
|
50
|
-
{
|
|
51
|
-
"five_hour": {
|
|
52
|
-
"utilization": 45,
|
|
53
|
-
"resets_at": "2025-01-15T18:00:00Z"
|
|
54
|
-
},
|
|
55
|
-
"seven_day": {
|
|
56
|
-
"utilization": 32,
|
|
57
|
-
"resets_at": "2025-01-22T00:00:00Z"
|
|
58
|
-
},
|
|
59
|
-
"seven_day_sonnet": {
|
|
60
|
-
"utilization": 11,
|
|
61
|
-
"resets_at": "2025-01-15T09:00:00Z"
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
- `utilization`: Already a percentage (0-100), NOT a decimal
|
|
67
|
-
- `resets_at`: ISO 8601 timestamp when quota resets
|
|
68
|
-
- `seven_day_sonnet`: Model-specific limit (may be null)
|
|
69
27
|
|
|
70
28
|
## Context Window Data
|
|
71
29
|
|
|
@@ -157,7 +115,7 @@ Context: 91% [CRITICAL - compaction needed]
|
|
|
157
115
|
| 5-Hour | Action |
|
|
158
116
|
|--------|--------|
|
|
159
117
|
| < 70% | Normal usage |
|
|
160
|
-
| 70-90% | Reduce parallelization, delegate to
|
|
118
|
+
| 70-90% | Reduce parallelization, delegate to subagents |
|
|
161
119
|
| > 90% | Wait for reset or use lower-tier models |
|
|
162
120
|
|
|
163
121
|
| 7-Day | Action |
|
|
@@ -168,7 +126,7 @@ Context: 91% [CRITICAL - compaction needed]
|
|
|
168
126
|
|
|
169
127
|
## Configuration
|
|
170
128
|
|
|
171
|
-
### Hook Settings (
|
|
129
|
+
### Hook Settings (`.vscode/settings.json`)
|
|
172
130
|
|
|
173
131
|
```json
|
|
174
132
|
{
|
|
@@ -178,7 +136,7 @@ Context: 91% [CRITICAL - compaction needed]
|
|
|
178
136
|
"matcher": "*",
|
|
179
137
|
"hooks": [{
|
|
180
138
|
"type": "command",
|
|
181
|
-
"command": "node
|
|
139
|
+
"command": "node hooks/usage-context-awareness.cjs"
|
|
182
140
|
}]
|
|
183
141
|
}
|
|
184
142
|
]
|
|
@@ -196,7 +154,7 @@ Context: 91% [CRITICAL - compaction needed]
|
|
|
196
154
|
|
|
197
155
|
| Issue | Cause | Solution |
|
|
198
156
|
|-------|-------|----------|
|
|
199
|
-
| No usage limits shown | No OAuth token |
|
|
157
|
+
| No usage limits shown | No OAuth token | Check credentials |
|
|
200
158
|
| Stale context data | Statusline not updating | Check statusline config |
|
|
201
159
|
| 401 Unauthorized | Expired token | Re-authenticate |
|
|
202
160
|
| Hook not firing | Settings misconfigured | Verify PostToolUse matcher |
|