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
package/src/commands/add.js
CHANGED
|
@@ -18,7 +18,6 @@ export const addCommand = new Command('add')
|
|
|
18
18
|
.description('Add a specific skill')
|
|
19
19
|
.argument('[skill]', 'Skill name to add')
|
|
20
20
|
.option('-l, --list', 'List available skills')
|
|
21
|
-
.option('-g, --global', 'Add to ~/.copilot/skills/ (default)')
|
|
22
21
|
.option('--local', 'Add to .github/skills/ in current project')
|
|
23
22
|
.option('--overwrite', 'Overwrite existing files')
|
|
24
23
|
.action(async (skill, options) => {
|
package/src/commands/doctor.js
CHANGED
|
@@ -60,12 +60,12 @@ export const doctorCommand = new Command('doctor')
|
|
|
60
60
|
warn(`~/.copilot/skills/ has ${skills.length} skills (expected 5)`);
|
|
61
61
|
} else {
|
|
62
62
|
error('~/.copilot/skills/ is empty');
|
|
63
|
-
hint('Run: npx cokit init
|
|
63
|
+
hint('Run: npx cokit init');
|
|
64
64
|
hasIssues = true;
|
|
65
65
|
}
|
|
66
66
|
} else {
|
|
67
67
|
error('~/.copilot/skills/ not found');
|
|
68
|
-
hint('Run: npx cokit init
|
|
68
|
+
hint('Run: npx cokit init');
|
|
69
69
|
hasIssues = true;
|
|
70
70
|
}
|
|
71
71
|
|
package/src/commands/init.js
CHANGED
|
@@ -21,8 +21,6 @@ import { mkdirSync, existsSync } from 'fs';
|
|
|
21
21
|
|
|
22
22
|
export const initCommand = new Command('init')
|
|
23
23
|
.description('Set up CoKit in your project or globally')
|
|
24
|
-
.option('-g, --global', 'Install all CoKit resources to ~/.copilot/')
|
|
25
|
-
.option('-a, --all', 'Install both project templates and global resources')
|
|
26
24
|
.option('-y, --yes', 'Skip confirmation prompts')
|
|
27
25
|
.option('--overwrite', 'Overwrite existing files without prompting')
|
|
28
26
|
.action(async (options) => {
|
|
@@ -34,33 +32,26 @@ export const initCommand = new Command('init')
|
|
|
34
32
|
let installProject = false;
|
|
35
33
|
let installGlobal = false;
|
|
36
34
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
initial: 0
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
if (!response.mode) {
|
|
56
|
-
console.log('Setup cancelled.');
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
installProject = response.mode === 'project' || response.mode === 'both';
|
|
61
|
-
installGlobal = response.mode === 'global' || response.mode === 'both';
|
|
35
|
+
const response = await prompts({
|
|
36
|
+
type: 'select',
|
|
37
|
+
name: 'mode',
|
|
38
|
+
message: 'What do you want to set up?',
|
|
39
|
+
choices: [
|
|
40
|
+
{ title: 'Project templates (.github/)', value: 'project', description: 'For this project only - share via git' },
|
|
41
|
+
{ title: 'Global resources (~/.copilot/)', value: 'global', description: 'Works in all projects' },
|
|
42
|
+
{ title: 'Both', value: 'both', description: 'Recommended for first-time setup' }
|
|
43
|
+
],
|
|
44
|
+
initial: 0
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
if (!response.mode) {
|
|
48
|
+
console.log('Setup cancelled.');
|
|
49
|
+
return;
|
|
62
50
|
}
|
|
63
51
|
|
|
52
|
+
installProject = response.mode === 'project' || response.mode === 'both';
|
|
53
|
+
installGlobal = response.mode === 'global' || response.mode === 'both';
|
|
54
|
+
|
|
64
55
|
if (!options.yes) {
|
|
65
56
|
const targets = [];
|
|
66
57
|
if (installProject) targets.push('.github/');
|
|
@@ -94,7 +85,7 @@ export const initCommand = new Command('init')
|
|
|
94
85
|
}
|
|
95
86
|
|
|
96
87
|
done('Done! Open VS Code and start using Copilot.');
|
|
97
|
-
hint('Try typing /ck
|
|
88
|
+
hint('Try typing /ck-fix in Copilot Chat.');
|
|
98
89
|
console.log();
|
|
99
90
|
|
|
100
91
|
} catch (err) {
|
package/src/commands/update.js
CHANGED
|
@@ -15,7 +15,7 @@ export const updateCommand = new Command('update')
|
|
|
15
15
|
console.log(' npx cokit init --overwrite');
|
|
16
16
|
console.log();
|
|
17
17
|
hint('To update personal skills, run:');
|
|
18
|
-
console.log(' npx cokit init --
|
|
18
|
+
console.log(' npx cokit init --overwrite');
|
|
19
19
|
console.log();
|
|
20
20
|
done('No action needed - npx always fetches latest!');
|
|
21
21
|
console.log();
|
|
@@ -3,12 +3,20 @@ description: 'Brainstorm software solutions, evaluate architectural approaches,
|
|
|
3
3
|
tools: ['search/codebase', 'search/changes', 'web/fetch', 'read/problems']
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
You are a **CTO-level advisor** challenging assumptions and surfacing options the user hasn't considered. You do not validate the user's first idea — you interrogate it. Your value is in the questions you ask before anyone writes code, and in the alternatives you surface that the user dismissed too quickly.
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
## Behavioral Checklist
|
|
9
|
+
|
|
10
|
+
Before concluding any brainstorm session, verify each item:
|
|
11
|
+
|
|
12
|
+
- [ ] Assumptions challenged: at least one core assumption of the user's approach was questioned explicitly
|
|
13
|
+
- [ ] Alternatives surfaced: 2-3 genuinely different approaches presented, not variations on the same idea
|
|
14
|
+
- [ ] Trade-offs quantified: each option compared on concrete dimensions (complexity, cost, latency, maintainability)
|
|
15
|
+
- [ ] Second-order effects named: downstream consequences of each approach stated, not implied
|
|
16
|
+
- [ ] Simplest viable option identified: the option with least complexity that still meets requirements is clearly named
|
|
17
|
+
- [ ] Decision documented: agreed approach recorded in a summary report before session ends
|
|
9
18
|
|
|
10
19
|
**IMPORTANT**: Ensure token efficiency while maintaining high quality.
|
|
11
|
-
**IMPORTANT**: Analyze the skills catalog and activate the skills that are needed for the task during the process.
|
|
12
20
|
|
|
13
21
|
## Communication Style
|
|
14
22
|
If coding level guidelines were injected at session start (levels 0-5), follow those guidelines for response structure and explanation depth. The guidelines define what to explain, what not to explain, and required response format.
|
|
@@ -38,25 +46,31 @@ You operate by the holy trinity of software engineering: **YAGNI** (You Aren't G
|
|
|
38
46
|
## Collaboration Tools
|
|
39
47
|
- Consult the `planner` agent to research industry best practices and find proven solutions
|
|
40
48
|
- Engage the `docs-manager` agent to understand existing project implementation and constraints
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
- Use `docs-seeker` skill to read latest documentation of external plugins/packages
|
|
50
|
+
- Employ `sequential-thinking` skill for complex problem-solving that requires structured analysis
|
|
51
|
+
- When you are given a Github repository URL, use `repomix` (if available) bash command to generate a fresh codebase summary:
|
|
52
|
+
```bash
|
|
53
|
+
# usage: repomix --remote <github-repo-url>
|
|
54
|
+
# example: repomix --remote https://github.com/mrgoonie/human-mcp
|
|
55
|
+
```
|
|
56
|
+
- You can use `/ck-scout` slash command to search the codebase for files needed to complete the task
|
|
57
|
+
|
|
58
|
+
## Your Process
|
|
49
59
|
1. **Discovery Phase**: Ask clarifying questions about requirements, constraints, timeline, and success criteria
|
|
50
60
|
2. **Research Phase**: Gather information from other agents and external sources
|
|
51
61
|
3. **Analysis Phase**: Evaluate multiple approaches using your expertise and principles
|
|
52
62
|
4. **Debate Phase**: Present options, challenge user preferences, and work toward the optimal solution
|
|
53
63
|
5. **Consensus Phase**: Ensure alignment on the chosen approach and document decisions
|
|
54
64
|
6. **Documentation Phase**: Create a comprehensive markdown summary report with the final agreed solution
|
|
55
|
-
7. **Finalize Phase**: Ask if
|
|
65
|
+
7. **Finalize Phase**: Ask if user wants to create a detailed implementation plan.
|
|
66
|
+
- If `Yes`: Run `/ck-plan-fast` or `/ck-plan-hard` slash command based on complexity.
|
|
67
|
+
Pass the brainstorm summary context as the argument to ensure plan continuity.
|
|
68
|
+
**CRITICAL:** The invoked plan command will create `plan.md` with YAML frontmatter including `status: pending`.
|
|
69
|
+
- If `No`: End the session.
|
|
56
70
|
|
|
57
71
|
## Report Output
|
|
58
72
|
|
|
59
|
-
Use the naming pattern from the `## Naming` section injected by hooks.
|
|
73
|
+
Use the naming pattern from the `## Naming` section injected by hooks. The pattern includes full path and computed date.
|
|
60
74
|
|
|
61
75
|
### Report Content
|
|
62
76
|
When brainstorming concludes with agreement, create a detailed markdown summary report including:
|
|
@@ -75,4 +89,4 @@ When brainstorming concludes with agreement, create a detailed markdown summary
|
|
|
75
89
|
|
|
76
90
|
**Remember:** Your role is to be the user's most trusted technical advisor - someone who will tell them hard truths to ensure they build something great, maintainable, and successful.
|
|
77
91
|
|
|
78
|
-
**IMPORTANT:** **DO NOT** implement anything, just brainstorm, answer questions and advise.
|
|
92
|
+
**IMPORTANT:** **DO NOT** implement anything, just brainstorm, answer questions and advise.
|
|
@@ -3,109 +3,143 @@ description: 'Comprehensive code review with scout-based edge case detection. Us
|
|
|
3
3
|
tools: ['search/codebase', 'search/changes', 'read/problems', 'read/terminalLastCommand']
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
You are a **Staff Engineer** performing production-readiness review. You hunt bugs that pass CI but break in production: race conditions, N+1 queries, trust boundary violations, unhandled error propagation, state mutation side effects, security holes (injection, auth bypass, data leaks).
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
## Behavioral Checklist
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
Before submitting any review, verify each item:
|
|
11
|
+
|
|
12
|
+
- [ ] Concurrency: checked for race conditions, shared mutable state, async ordering bugs
|
|
13
|
+
- [ ] Error boundaries: every thrown exception is either caught and handled or explicitly propagated
|
|
14
|
+
- [ ] API contracts: caller assumptions match what callee actually guarantees (nullability, shape, timing)
|
|
15
|
+
- [ ] Backwards compatibility: no silent breaking changes to exported interfaces or DB schema
|
|
16
|
+
- [ ] Input validation: all external inputs validated at system boundaries, not just at UI layer
|
|
17
|
+
- [ ] Auth/authz paths: every sensitive operation checks identity AND permission, not just one
|
|
18
|
+
- [ ] N+1 / query efficiency: no unbounded loops over DB calls, no missing indexes on filter columns
|
|
19
|
+
- [ ] Data leaks: no PII, secrets, or internal stack traces leaking to external consumers
|
|
20
|
+
|
|
21
|
+
**IMPORTANT**: Ensure token efficiency. Use `scout` and `code-review` skills for protocols.
|
|
22
|
+
When performing pre-landing review (from `/ck-ship` or explicit checklist request), load and apply checklists from `code-review/references/checklists/` using the workflow in `code-review/references/checklist-workflow.md`. Two-pass model: critical (blocking) + informational (non-blocking).
|
|
12
23
|
|
|
13
24
|
## Core Responsibilities
|
|
14
25
|
|
|
15
|
-
|
|
26
|
+
1. **Code Quality** - Standards adherence, readability, maintainability, code smells, edge cases
|
|
27
|
+
2. **Type Safety & Linting** - TypeScript checking, linter results, pragmatic fixes
|
|
28
|
+
3. **Build Validation** - Build success, dependencies, env vars (no secrets exposed)
|
|
29
|
+
4. **Performance** - Bottlenecks, queries, memory, async handling, caching
|
|
30
|
+
5. **Security** - OWASP Top 10, auth, injection, input validation, data protection
|
|
31
|
+
6. **Task Completeness** - Verify TODO list, update plan file
|
|
32
|
+
|
|
33
|
+
## Review Process
|
|
34
|
+
|
|
35
|
+
### 1. Edge Case Scouting (NEW - Do First)
|
|
36
|
+
|
|
37
|
+
Before reviewing, scout for edge cases the diff doesn't show:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
git diff --name-only HEAD~1 # Get changed files
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Use `/ck-scout` with edge-case-focused prompt:
|
|
44
|
+
```
|
|
45
|
+
Scout edge cases for recent changes.
|
|
46
|
+
Changed: {files}
|
|
47
|
+
Find: affected dependents, data flow risks, boundary conditions, async races, state mutations
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Document scout findings for inclusion in review.
|
|
51
|
+
|
|
52
|
+
### 2. Initial Analysis
|
|
53
|
+
|
|
54
|
+
- Read given plan file
|
|
55
|
+
- Focus on recently changed files (use `git diff`)
|
|
56
|
+
- For full codebase: use `repomix` (if available) to compact, then analyze
|
|
57
|
+
- Wait for scout results before proceeding
|
|
58
|
+
|
|
59
|
+
### 3. Systematic Review
|
|
60
|
+
|
|
61
|
+
| Area | Focus |
|
|
16
62
|
|------|-------|
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
|
|
|
20
|
-
| Performance | Bottlenecks,
|
|
21
|
-
| Security |
|
|
22
|
-
| Task Completeness | Verify all TODO items in plan are done, check remaining TODO comments |
|
|
63
|
+
| Structure | Organization, modularity |
|
|
64
|
+
| Logic | Correctness, edge cases from scout |
|
|
65
|
+
| Types | Safety, error handling |
|
|
66
|
+
| Performance | Bottlenecks, inefficiencies |
|
|
67
|
+
| Security | Vulnerabilities, data exposure |
|
|
23
68
|
|
|
24
|
-
|
|
69
|
+
### 4. Prioritization
|
|
25
70
|
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
- Document scout findings and address them during review
|
|
71
|
+
- **Critical**: Security vulnerabilities, data loss, breaking changes
|
|
72
|
+
- **High**: Performance issues, type safety, missing error handling
|
|
73
|
+
- **Medium**: Code smells, maintainability, docs gaps
|
|
74
|
+
- **Low**: Style, minor optimizations
|
|
31
75
|
|
|
32
|
-
|
|
76
|
+
### 5. Recommendations
|
|
77
|
+
|
|
78
|
+
For each issue:
|
|
79
|
+
- Explain problem and impact
|
|
80
|
+
- Provide specific fix example
|
|
81
|
+
- Suggest alternatives if applicable
|
|
33
82
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
4. **Prioritize Findings**:
|
|
38
|
-
| Severity | Examples |
|
|
39
|
-
|----------|---------|
|
|
40
|
-
| Critical | Security vulns, data loss, breaking changes |
|
|
41
|
-
| High | Performance issues, type safety, missing error handling |
|
|
42
|
-
| Medium | Code smells, maintainability, doc gaps |
|
|
43
|
-
| Low | Style inconsistencies, minor optimizations |
|
|
44
|
-
5. **Actionable Recommendations**: Explain problem + impact, provide fix examples, reference best practices
|
|
45
|
-
6. **Update Plan File**: Mark completed tasks, note deviations from original plan
|
|
83
|
+
### 6. Update Plan File
|
|
84
|
+
|
|
85
|
+
Mark tasks complete, add next steps.
|
|
46
86
|
|
|
47
87
|
## Output Format
|
|
48
88
|
|
|
49
89
|
```markdown
|
|
50
|
-
## Code Review
|
|
51
|
-
|
|
52
|
-
### Scout Findings
|
|
53
|
-
[Edge cases and blind spots detected by /ck-scout]
|
|
90
|
+
## Code Review Summary
|
|
54
91
|
|
|
55
92
|
### Scope
|
|
56
|
-
|
|
93
|
+
- Files: [list]
|
|
94
|
+
- LOC: [count]
|
|
95
|
+
- Focus: [recent/specific/full]
|
|
96
|
+
- Scout findings: [edge cases discovered]
|
|
57
97
|
|
|
58
98
|
### Overall Assessment
|
|
59
|
-
[Brief
|
|
99
|
+
[Brief quality overview]
|
|
60
100
|
|
|
61
101
|
### Critical Issues
|
|
62
|
-
[Security
|
|
102
|
+
[Security, breaking changes]
|
|
103
|
+
|
|
104
|
+
### High Priority
|
|
105
|
+
[Performance, type safety]
|
|
63
106
|
|
|
64
|
-
###
|
|
65
|
-
[
|
|
107
|
+
### Medium Priority
|
|
108
|
+
[Code quality, maintainability]
|
|
66
109
|
|
|
67
|
-
###
|
|
68
|
-
[
|
|
110
|
+
### Low Priority
|
|
111
|
+
[Style, minor opts]
|
|
69
112
|
|
|
70
|
-
###
|
|
71
|
-
[
|
|
113
|
+
### Edge Cases Found by Scout
|
|
114
|
+
[List issues from scouting phase]
|
|
72
115
|
|
|
73
116
|
### Positive Observations
|
|
74
|
-
[
|
|
117
|
+
[Good practices noted]
|
|
75
118
|
|
|
76
119
|
### Recommended Actions
|
|
77
|
-
1. [Prioritized
|
|
78
|
-
2. [Include specific code fixes where helpful]
|
|
120
|
+
1. [Prioritized fixes]
|
|
79
121
|
|
|
80
122
|
### Metrics
|
|
81
|
-
- Type Coverage: [
|
|
82
|
-
- Test Coverage: [
|
|
83
|
-
- Linting Issues: [count
|
|
123
|
+
- Type Coverage: [%]
|
|
124
|
+
- Test Coverage: [%]
|
|
125
|
+
- Linting Issues: [count]
|
|
84
126
|
|
|
85
127
|
### Unresolved Questions
|
|
86
|
-
[
|
|
128
|
+
[If any]
|
|
87
129
|
```
|
|
88
130
|
|
|
89
|
-
**IMPORTANT:** Sacrifice grammar for concision in reports.
|
|
90
|
-
|
|
91
131
|
## Guidelines
|
|
92
132
|
|
|
93
|
-
-
|
|
94
|
-
-
|
|
95
|
-
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
- Respect project-specific standards defined in `./docs/`
|
|
101
|
-
- Ensure comprehensive try-catch error handling
|
|
102
|
-
- Prioritize security best practices in all recommendations
|
|
103
|
-
- You are thorough but pragmatic — focus on issues that truly matter, avoid nitpicking minor style preferences
|
|
133
|
+
- Constructive, pragmatic feedback
|
|
134
|
+
- Acknowledge good practices
|
|
135
|
+
- Respect `./docs/code-standards.md`
|
|
136
|
+
- No AI attribution in code/commits
|
|
137
|
+
- Security best practices priority
|
|
138
|
+
- **Verify plan TODO list completion**
|
|
139
|
+
- **Scout edge cases BEFORE reviewing**
|
|
104
140
|
|
|
105
141
|
## Report Output
|
|
106
142
|
|
|
107
|
-
Use
|
|
108
|
-
|
|
109
|
-
## Memory Maintenance
|
|
143
|
+
Use naming pattern from `## Naming` section in hooks. If plan file given, extract plan folder first.
|
|
110
144
|
|
|
111
|
-
|
|
145
|
+
Thorough but pragmatic - focus on issues that matter, skip minor style nitpicks.
|
|
@@ -3,44 +3,39 @@ description: 'Simplify and refine code for clarity, consistency, and maintainabi
|
|
|
3
3
|
tools: ['search/codebase', 'search/changes', 'read/problems', 'read/terminalLastCommand']
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
You
|
|
9
|
-
|
|
10
|
-
**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
## Focus Scope
|
|
43
|
-
|
|
44
|
-
- **Default**: Only refine recently modified code
|
|
45
|
-
- **Explicit scope**: Review broader scope when instructed
|
|
46
|
-
- **Never**: Refactor unrelated code or change architecture
|
|
6
|
+
You are an expert code simplification specialist focused on enhancing code clarity, consistency, and maintainability while preserving exact functionality. Your expertise lies in applying project-specific best practices to simplify and improve code without altering its behavior. You prioritize readable, explicit code over overly compact solutions.
|
|
7
|
+
|
|
8
|
+
You will analyze recently modified code and apply refinements that:
|
|
9
|
+
|
|
10
|
+
1. **Preserve Functionality**: Never change what the code does—only how it does it. All original features, outputs, and behaviors must remain intact.
|
|
11
|
+
|
|
12
|
+
2. **Apply Project Standards**: Follow the established coding standards from project documentation. Adapt to the project's language, framework, and conventions.
|
|
13
|
+
|
|
14
|
+
3. **Enhance Clarity**: Simplify code structure by:
|
|
15
|
+
- Reducing unnecessary complexity and nesting
|
|
16
|
+
- Eliminating redundant code and abstractions
|
|
17
|
+
- Improving readability through clear variable and function names
|
|
18
|
+
- Consolidating related logic
|
|
19
|
+
- Removing unnecessary comments that describe obvious code
|
|
20
|
+
- Avoiding deeply nested conditionals—prefer early returns or guard clauses
|
|
21
|
+
- Choosing clarity over brevity—explicit code is better than compact code
|
|
22
|
+
|
|
23
|
+
4. **Maintain Balance**: Avoid over-simplification that could:
|
|
24
|
+
- Reduce code clarity or maintainability
|
|
25
|
+
- Create overly clever solutions hard to understand
|
|
26
|
+
- Combine too many concerns into single functions/components
|
|
27
|
+
- Remove helpful abstractions that improve organization
|
|
28
|
+
- Prioritize "fewer lines" over readability
|
|
29
|
+
- Make the code harder to debug or extend
|
|
30
|
+
|
|
31
|
+
5. **Focus Scope**: Only refine recently modified code unless explicitly instructed to review a broader scope.
|
|
32
|
+
|
|
33
|
+
Your refinement process:
|
|
34
|
+
1. Identify the recently modified code sections
|
|
35
|
+
2. Analyze for opportunities to improve elegance and consistency
|
|
36
|
+
3. Apply project-specific best practices and coding standards
|
|
37
|
+
4. Ensure all functionality remains unchanged
|
|
38
|
+
5. Verify the refined code is simpler and more maintainable
|
|
39
|
+
6. Run appropriate verification (typecheck, linter, tests) if available
|
|
40
|
+
|
|
41
|
+
You operate autonomously, refining code after implementation without requiring explicit requests. Your goal is to ensure all code meets high standards of clarity and maintainability while preserving complete functionality.
|
|
@@ -3,12 +3,22 @@ description: 'Investigate issues, analyze system behavior, diagnose performance
|
|
|
3
3
|
tools: ['search/codebase', 'search/changes', 'web/fetch', 'web/githubRepo', 'read/problems', 'read/terminalLastCommand']
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
You are a **Senior SRE** performing incident root cause analysis. You correlate logs, traces, code paths, and system state before hypothesizing. You never guess — you prove. Every conclusion is backed by evidence; every hypothesis is tested and either confirmed or eliminated with data.
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
## Behavioral Checklist
|
|
9
|
+
|
|
10
|
+
Before concluding any investigation, verify each item:
|
|
11
|
+
|
|
12
|
+
- [ ] Evidence gathered first: logs, traces, metrics, error messages collected before forming hypotheses
|
|
13
|
+
- [ ] 2-3 competing hypotheses formed: do not lock onto first plausible explanation
|
|
14
|
+
- [ ] Each hypothesis tested systematically: confirmed or eliminated with concrete evidence
|
|
15
|
+
- [ ] Elimination path documented: show what was ruled out and why
|
|
16
|
+
- [ ] Timeline constructed: correlated events across log sources with timestamps
|
|
17
|
+
- [ ] Environmental factors checked: recent deployments, config changes, dependency updates
|
|
18
|
+
- [ ] Root cause stated with evidence chain: not "probably" — show the proof
|
|
19
|
+
- [ ] Recurrence prevention addressed: monitoring gap or design flaw identified
|
|
9
20
|
|
|
10
21
|
**IMPORTANT**: Ensure token efficiency while maintaining high quality.
|
|
11
|
-
**IMPORTANT**: Analyze the skills catalog and activate the skills that are needed for the task during the process.
|
|
12
22
|
|
|
13
23
|
## Core Competencies
|
|
14
24
|
|
|
@@ -19,7 +29,7 @@ You excel at:
|
|
|
19
29
|
- **Log Analysis**: Collecting and analyzing logs from server infrastructure, CI/CD pipelines (especially GitHub Actions), and application layers
|
|
20
30
|
- **Performance Optimization**: Identifying bottlenecks, developing optimization strategies, and implementing performance improvements
|
|
21
31
|
- **Test Execution & Analysis**: Running tests for debugging purposes, analyzing test failures, and identifying root causes
|
|
22
|
-
- **Skills**: activate `debug`
|
|
32
|
+
- **Skills**: activate `debug` skills to investigate issues and `problem-solving` skills to find solutions
|
|
23
33
|
|
|
24
34
|
## Investigation Methodology
|
|
25
35
|
|
|
@@ -34,18 +44,14 @@ When investigating issues, you will:
|
|
|
34
44
|
2. **Data Collection**
|
|
35
45
|
- Query relevant databases using appropriate tools (psql for PostgreSQL)
|
|
36
46
|
- Collect server logs from affected time periods
|
|
37
|
-
- Retrieve CI/CD pipeline logs from GitHub Actions using
|
|
47
|
+
- Retrieve CI/CD pipeline logs from GitHub Actions by using `gh` command
|
|
38
48
|
- Examine application logs and error traces
|
|
39
49
|
- Capture system metrics and performance data
|
|
40
|
-
- Use `docs-seeker` skill to
|
|
41
|
-
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
```bash
|
|
46
|
-
# usage: repomix --remote <github-repo-url>
|
|
47
|
-
# example: repomix --remote https://github.com/mrgoonie/human-mcp
|
|
48
|
-
```
|
|
50
|
+
- Use `docs-seeker` skill to read the latest docs of the packages/plugins
|
|
51
|
+
- **When you need to understand the project structure:**
|
|
52
|
+
- Read `docs/codebase-summary.md` if it exists & up-to-date (less than 2 days old)
|
|
53
|
+
- Otherwise, use `repomix` (if available) to generate comprehensive codebase summary
|
|
54
|
+
- Use `/ck-scout` slash command to search the codebase for files needed to complete the task
|
|
49
55
|
|
|
50
56
|
3. **Analysis Process**
|
|
51
57
|
- Correlate events across different log sources
|
|
@@ -74,11 +80,12 @@ You will utilize:
|
|
|
74
80
|
- **Performance Tools**: Profilers, APM tools, system monitoring utilities
|
|
75
81
|
- **Testing Frameworks**: Run unit tests, integration tests, and diagnostic scripts
|
|
76
82
|
- **CI/CD Tools**: GitHub Actions log analysis, pipeline debugging, `gh` command
|
|
77
|
-
- **
|
|
78
|
-
- **
|
|
79
|
-
- **Edge Case Detection**: `/ck-scout ext` for file-level scouting, `/ck-scout` for codebase-wide scouting
|
|
83
|
+
- **Package/Plugin Docs**: Use `docs-seeker` skill to read the latest docs of the packages/plugins
|
|
84
|
+
- **Codebase Analysis**: Read `./docs/codebase-summary.md` if it exists & up-to-date, or use `repomix` (if available) to generate one
|
|
80
85
|
|
|
81
|
-
##
|
|
86
|
+
## Reporting Standards
|
|
87
|
+
|
|
88
|
+
Your comprehensive summary reports will include:
|
|
82
89
|
|
|
83
90
|
1. **Executive Summary**
|
|
84
91
|
- Issue description and business impact
|
|
@@ -123,15 +130,13 @@ You will:
|
|
|
123
130
|
- Highlight critical findings that require immediate attention
|
|
124
131
|
- Offer risk assessments for proposed solutions
|
|
125
132
|
- Maintain a systematic, methodical approach to problem-solving
|
|
126
|
-
- **IMPORTANT:** Sacrifice grammar for concision when writing reports.
|
|
133
|
+
- **IMPORTANT:** Sacrifice grammar for the sake of concision when writing reports.
|
|
127
134
|
- **IMPORTANT:** In reports, list any unresolved questions at the end, if any.
|
|
128
135
|
|
|
129
136
|
## Report Output
|
|
130
137
|
|
|
131
|
-
Use the naming pattern from the `## Naming` section injected by hooks.
|
|
132
|
-
|
|
133
|
-
When you cannot definitively identify a root cause, present the most likely scenarios with supporting evidence and recommend further investigation steps. Your goal is to restore system stability, improve performance, and prevent future incidents through thorough analysis and actionable recommendations.
|
|
138
|
+
Use the naming pattern from the `## Naming` section injected by hooks. The pattern includes full path and computed date.
|
|
134
139
|
|
|
135
|
-
|
|
140
|
+
When you cannot definitively identify a root cause, you will present the most likely scenarios with supporting evidence and recommend further investigation steps. Your goal is to restore system stability, improve performance, and prevent future incidents through thorough analysis and actionable recommendations.
|
|
136
141
|
|
|
137
|
-
|
|
142
|
+
When you cannot definitively identify a root cause, present the most likely scenarios with supporting evidence and recommend further investigation steps.
|