cokit-cli 1.2.6 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -42
- package/agents/brainstormer.agent.md +28 -14
- package/agents/code-reviewer.agent.md +101 -67
- package/agents/code-simplifier.agent.md +36 -41
- package/agents/debugger.agent.md +29 -24
- package/agents/docs-manager.agent.md +15 -23
- package/agents/fullstack-developer.agent.md +16 -6
- package/agents/git-manager.agent.md +0 -3
- package/agents/planner.agent.md +16 -34
- package/agents/project-manager.agent.md +24 -0
- package/agents/researcher.agent.md +15 -13
- package/agents/tester.agent.md +43 -20
- package/agents/ui-ux-designer.agent.md +16 -49
- package/docs/README.md +8 -9
- package/docs/Skills Orchestration Layer - Training Slides - en.pdf +0 -0
- package/docs/Skills Orchestration Layer - Training Slides - vi.pdf +0 -0
- package/docs/code-standards.md +1 -2
- package/docs/codebase-summary.md +35 -66
- package/docs/cokit-commands-usage-guide.md +27 -73
- package/docs/cokit-comprehensive-mapping-guide.md +9 -15
- package/docs/cokit-slides.md +4 -9
- package/docs/cokit-sync-and-maintenance-guide.md +42 -190
- package/docs/cokit-team-presentation.md +6 -11
- package/docs/copilot-processing-flow.md +3 -3
- package/docs/migration-guide.md +15 -15
- package/docs/project-overview-pdr.md +6 -7
- package/docs/project-roadmap.md +13 -15
- package/docs/skills-and-orchestration-layer-en.md +404 -0
- package/docs/skills-and-orchestration-layer-vi.md +404 -0
- package/docs/system-architecture.md +14 -20
- package/docs/{claudekit-porting-rules.md → upstream-porting-rules.md} +15 -16
- package/package.json +3 -4
- package/prompts/ck-ask.prompt.md +0 -1
- package/prompts/ck-bootstrap.prompt.md +0 -3
- package/prompts/ck-brainstorm.prompt.md +0 -1
- package/prompts/ck-cook.prompt.md +0 -1
- package/prompts/ck-debug.prompt.md +0 -1
- package/prompts/ck-deploy.prompt.md +22 -0
- package/prompts/ck-docs.prompt.md +0 -1
- package/prompts/ck-frontend.prompt.md +20 -0
- package/prompts/ck-help.prompt.md +0 -1
- package/prompts/ck-plan-fast.prompt.md +0 -3
- package/prompts/ck-plan-hard.prompt.md +0 -3
- package/prompts/ck-plan.prompt.md +0 -3
- package/prompts/ck-project.prompt.md +20 -0
- package/prompts/ck-review.prompt.md +0 -3
- package/prompts/ck-scout.prompt.md +0 -1
- package/prompts/ck-security.prompt.md +22 -0
- package/prompts/ck-ship.prompt.md +22 -0
- package/prompts/ck-test.prompt.md +0 -2
- package/prompts/ck-watzup.prompt.md +0 -1
- package/skills/agent-browser/SKILL.md +11 -8
- package/skills/agent-browser/references/agent-browser-vs-chrome-devtools.md +112 -0
- package/skills/bootstrap/SKILL.md +102 -0
- package/skills/bootstrap/references/shared-phases.md +59 -0
- package/skills/bootstrap/references/workflow-auto.md +52 -0
- package/skills/bootstrap/references/workflow-fast.md +50 -0
- package/skills/bootstrap/references/workflow-full.md +60 -0
- package/skills/bootstrap/references/workflow-parallel.md +59 -0
- package/skills/brainstorm/SKILL.md +63 -15
- package/skills/code-review/SKILL.md +138 -135
- package/skills/code-review/references/adversarial-review.md +223 -0
- package/skills/code-review/references/checklist-workflow.md +100 -0
- package/skills/code-review/references/checklists/api.md +52 -0
- package/skills/code-review/references/checklists/base.md +100 -0
- package/skills/code-review/references/checklists/web-app.md +54 -0
- package/skills/code-review/references/code-review-reception.md +48 -144
- package/skills/code-review/references/codebase-scan-workflow.md +30 -0
- package/skills/code-review/references/edge-case-scouting.md +119 -0
- package/skills/code-review/references/input-mode-resolution.md +135 -0
- package/skills/code-review/references/parallel-review-workflow.md +76 -0
- package/skills/code-review/references/requesting-code-review.md +115 -104
- package/skills/code-review/references/spec-compliance-review.md +43 -0
- package/skills/code-review/references/task-management-reviews.md +155 -0
- package/skills/common/README.md +2 -12
- package/skills/common/api_key_helper.py +7 -37
- package/skills/context-engineering/SKILL.md +4 -3
- package/skills/context-engineering/references/context-degradation.md +2 -2
- package/skills/context-engineering/references/runtime-awareness.md +5 -47
- package/skills/cook/README.md +13 -13
- package/skills/cook/SKILL.md +86 -58
- package/skills/cook/references/intent-detection.md +7 -7
- package/skills/cook/references/review-cycle.md +2 -2
- package/skills/cook/references/subagent-patterns.md +75 -0
- package/skills/cook/references/workflow-steps.md +75 -23
- package/skills/databases/SKILL.md +3 -30
- package/skills/databases/db-design.md +1 -1
- package/skills/debug/SKILL.md +47 -105
- package/skills/debug/references/frontend-verification.md +103 -0
- package/skills/debug/references/investigation-methodology.md +101 -0
- package/skills/debug/references/log-and-ci-analysis.md +97 -0
- package/skills/debug/references/performance-diagnostics.md +113 -0
- package/skills/debug/references/reporting-standards.md +122 -0
- package/skills/debug/references/task-management-debugging.md +155 -0
- package/skills/deploy/SKILL.md +154 -0
- package/skills/deploy/references/platform-config-templates.md +35 -0
- package/skills/deploy/references/platforms/aws.md +58 -0
- package/skills/deploy/references/platforms/cloudflare.md +41 -0
- package/skills/deploy/references/platforms/coolify.md +32 -0
- package/skills/deploy/references/platforms/digitalocean.md +45 -0
- package/skills/deploy/references/platforms/dokploy.md +29 -0
- package/skills/deploy/references/platforms/flyio.md +54 -0
- package/skills/deploy/references/platforms/gcp.md +45 -0
- package/skills/deploy/references/platforms/github-pages.md +56 -0
- package/skills/deploy/references/platforms/heroku.md +31 -0
- package/skills/deploy/references/platforms/netlify.md +39 -0
- package/skills/deploy/references/platforms/railway.md +38 -0
- package/skills/deploy/references/platforms/render.md +39 -0
- package/skills/deploy/references/platforms/tose.md +35 -0
- package/skills/deploy/references/platforms/vercel.md +37 -0
- package/skills/deploy/references/platforms/vultr.md +27 -0
- package/skills/devops/SKILL.md +6 -12
- package/skills/docs-seeker/SKILL.md +2 -1
- package/skills/docs-seeker/references/context7-patterns.md +4 -0
- package/skills/docs-seeker/scripts/fetch-docs.js +1 -2
- package/skills/docs-seeker/scripts/utils/env-loader.js +4 -4
- package/skills/docs-seeker/workflows/library-search.md +1 -0
- package/skills/fix/SKILL.md +141 -44
- package/skills/fix/references/complexity-assessment.md +21 -9
- package/skills/fix/references/diagnosis-protocol.md +133 -0
- package/skills/fix/references/mode-selection.md +27 -11
- package/skills/fix/references/parallel-exploration.md +35 -12
- package/skills/fix/references/prevention-gate.md +87 -0
- package/skills/fix/references/review-cycle.md +3 -3
- package/skills/fix/references/skill-activation-matrix.md +64 -31
- package/skills/fix/references/task-orchestration.md +110 -0
- package/skills/fix/references/workflow-deep.md +110 -47
- package/skills/fix/references/workflow-logs.md +46 -10
- package/skills/fix/references/workflow-quick.md +43 -20
- package/skills/fix/references/workflow-standard.md +75 -41
- package/skills/fix/references/workflow-test.md +49 -10
- package/skills/fix/references/workflow-ui.md +56 -18
- package/skills/frontend-design/SKILL.md +109 -77
- package/skills/frontend-design/references/ai-multimodal-overview.md +165 -0
- package/skills/frontend-design/references/anti-slop-rules.md +103 -0
- package/skills/frontend-design/references/asset-generation.md +284 -108
- package/skills/frontend-design/references/bento-motion-engine.md +142 -0
- package/skills/frontend-design/references/magicui-components.md +129 -0
- package/skills/frontend-design/references/performance-guardrails.md +169 -0
- package/skills/frontend-design/references/premium-design-patterns.md +93 -0
- package/skills/frontend-design/references/redesign-audit-checklist.md +114 -0
- package/skills/frontend-design/references/visual-analysis-overview.md +1 -1
- package/skills/frontend-design/references/workflow-3d.md +98 -0
- package/skills/frontend-design/references/workflow-describe.md +4 -3
- package/skills/frontend-design/references/workflow-immersive.md +82 -0
- package/skills/frontend-design/references/workflow-quick.md +10 -12
- package/skills/frontend-design/references/workflow-screenshot.md +9 -8
- package/skills/frontend-design/references/workflow-video.md +74 -0
- package/skills/frontend-development/SKILL.md +400 -0
- package/skills/frontend-development/resources/common-patterns.md +331 -0
- package/skills/frontend-development/resources/complete-examples.md +872 -0
- package/skills/frontend-development/resources/component-patterns.md +502 -0
- package/skills/frontend-development/resources/data-fetching.md +767 -0
- package/skills/frontend-development/resources/file-organization.md +502 -0
- package/skills/frontend-development/resources/loading-and-error-states.md +501 -0
- package/skills/frontend-development/resources/performance.md +406 -0
- package/skills/frontend-development/resources/routing-guide.md +364 -0
- package/skills/frontend-development/resources/styling-guide.md +428 -0
- package/skills/frontend-development/resources/typescript-standards.md +418 -0
- package/skills/git/SKILL.md +18 -4
- package/skills/git/references/commit-standards.md +3 -3
- package/skills/git/references/workflow-commit.md +3 -3
- package/skills/git/references/workflow-merge.md +1 -1
- package/skills/git/references/workflow-pr.md +1 -1
- package/skills/git/references/workflow-push.md +1 -1
- package/skills/mcp-management/README.md +18 -18
- package/skills/mcp-management/SKILL.md +16 -15
- package/skills/mcp-management/references/configuration.md +4 -4
- package/skills/mcp-management/references/gemini-cli-integration.md +12 -12
- package/skills/mcp-management/scripts/.env.example +2 -2
- package/skills/mcp-management/scripts/dist/mcp-client.js +1 -1
- package/skills/mcp-management/scripts/mcp-client.ts +1 -1
- package/skills/mermaidjs-v11/SKILL.md +1 -0
- package/skills/planning/SKILL.md +122 -91
- package/skills/planning/references/archive-workflow.md +53 -0
- package/skills/planning/references/codebase-understanding.md +1 -1
- package/skills/planning/references/output-standards.md +17 -13
- package/skills/planning/references/plan-organization.md +52 -30
- package/skills/planning/references/red-team-personas.md +69 -0
- package/skills/planning/references/red-team-workflow.md +77 -0
- package/skills/planning/references/scope-challenge.md +90 -0
- package/skills/planning/references/task-management.md +134 -0
- package/skills/planning/references/validate-question-framework.md +80 -0
- package/skills/planning/references/validate-workflow.md +65 -0
- package/skills/planning/references/workflow-modes.md +154 -0
- package/skills/problem-solving/SKILL.md +1 -0
- package/skills/project-management/SKILL.md +133 -0
- package/skills/project-management/references/documentation-triggers.md +60 -0
- package/skills/project-management/references/hydration-workflow.md +89 -0
- package/skills/project-management/references/progress-tracking.md +120 -0
- package/skills/project-management/references/reporting-patterns.md +94 -0
- package/skills/project-management/references/task-operations.md +87 -0
- package/skills/repomix/SKILL.md +3 -2
- package/skills/repomix/references/usage-patterns.md +2 -2
- package/skills/repomix/scripts/README.md +1 -1
- package/skills/repomix/scripts/repomix_batch.py +2 -2
- package/skills/research/SKILL.md +7 -4
- package/skills/scout/SKILL.md +24 -24
- package/skills/scout/references/external-scouting.md +17 -17
- package/skills/scout/references/internal-scouting.md +9 -9
- package/skills/scout/references/task-management-scouting.md +125 -0
- package/skills/security/SKILL.md +139 -0
- package/skills/security/references/stride-owasp-checklist.md +128 -0
- package/skills/sequential-thinking/README.md +3 -3
- package/skills/sequential-thinking/SKILL.md +2 -0
- package/skills/sequential-thinking/package.json +1 -1
- package/skills/ship/SKILL.md +116 -0
- package/skills/ship/references/auto-detect.md +103 -0
- package/skills/ship/references/pr-template.md +90 -0
- package/skills/ship/references/ship-workflow.md +241 -0
- package/skills/test/SKILL.md +111 -0
- package/skills/test/references/report-format.md +58 -0
- package/skills/test/references/test-execution-workflow.md +103 -0
- package/skills/test/references/ui-testing-workflow.md +65 -0
- package/skills/ui-styling/SKILL.md +2 -0
- package/skills/web-testing/SKILL.md +8 -60
- package/src/commands/add.js +0 -1
- package/src/commands/doctor.js +2 -2
- package/src/commands/init.js +19 -28
- package/src/commands/update.js +1 -1
- package/templates/repo/.github/agents/brainstormer.agent.md +28 -14
- package/templates/repo/.github/agents/code-reviewer.agent.md +101 -67
- package/templates/repo/.github/agents/code-simplifier.agent.md +36 -41
- package/templates/repo/.github/agents/debugger.agent.md +29 -24
- package/templates/repo/.github/agents/docs-manager.agent.md +15 -23
- package/templates/repo/.github/agents/fullstack-developer.agent.md +16 -6
- package/templates/repo/.github/agents/git-manager.agent.md +0 -3
- package/templates/repo/.github/agents/planner.agent.md +16 -34
- package/templates/repo/.github/agents/project-manager.agent.md +24 -0
- package/templates/repo/.github/agents/researcher.agent.md +15 -13
- package/templates/repo/.github/agents/tester.agent.md +43 -20
- package/templates/repo/.github/agents/ui-ux-designer.agent.md +16 -49
- package/templates/repo/.github/prompts/ck-ask.prompt.md +0 -1
- package/templates/repo/.github/prompts/ck-bootstrap.prompt.md +0 -3
- package/templates/repo/.github/prompts/ck-brainstorm.prompt.md +0 -1
- package/templates/repo/.github/prompts/ck-cook.prompt.md +0 -1
- package/templates/repo/.github/prompts/ck-debug.prompt.md +0 -1
- package/templates/repo/.github/prompts/ck-deploy.prompt.md +22 -0
- package/templates/repo/.github/prompts/ck-docs.prompt.md +0 -1
- package/templates/repo/.github/prompts/ck-frontend.prompt.md +20 -0
- package/templates/repo/.github/prompts/ck-help.prompt.md +0 -1
- package/templates/repo/.github/prompts/ck-plan-fast.prompt.md +0 -3
- package/templates/repo/.github/prompts/ck-plan-hard.prompt.md +0 -3
- package/templates/repo/.github/prompts/ck-plan.prompt.md +0 -3
- package/templates/repo/.github/prompts/ck-project.prompt.md +20 -0
- package/templates/repo/.github/prompts/ck-review.prompt.md +0 -3
- package/templates/repo/.github/prompts/ck-scout.prompt.md +0 -1
- package/templates/repo/.github/prompts/ck-security.prompt.md +22 -0
- package/templates/repo/.github/prompts/ck-ship.prompt.md +22 -0
- package/templates/repo/.github/prompts/ck-test.prompt.md +0 -2
- package/templates/repo/.github/prompts/ck-watzup.prompt.md +0 -1
- package/templates/repo/.github/skills/agent-browser/SKILL.md +11 -8
- package/templates/repo/.github/skills/agent-browser/references/agent-browser-vs-chrome-devtools.md +112 -0
- package/templates/repo/.github/skills/bootstrap/SKILL.md +102 -0
- package/templates/repo/.github/skills/bootstrap/references/shared-phases.md +59 -0
- package/templates/repo/.github/skills/bootstrap/references/workflow-auto.md +52 -0
- package/templates/repo/.github/skills/bootstrap/references/workflow-fast.md +50 -0
- package/templates/repo/.github/skills/bootstrap/references/workflow-full.md +60 -0
- package/templates/repo/.github/skills/bootstrap/references/workflow-parallel.md +59 -0
- package/templates/repo/.github/skills/brainstorm/SKILL.md +63 -15
- package/templates/repo/.github/skills/code-review/SKILL.md +138 -135
- package/templates/repo/.github/skills/code-review/references/adversarial-review.md +223 -0
- package/templates/repo/.github/skills/code-review/references/checklist-workflow.md +100 -0
- package/templates/repo/.github/skills/code-review/references/checklists/api.md +52 -0
- package/templates/repo/.github/skills/code-review/references/checklists/base.md +100 -0
- package/templates/repo/.github/skills/code-review/references/checklists/web-app.md +54 -0
- package/templates/repo/.github/skills/code-review/references/code-review-reception.md +48 -144
- package/templates/repo/.github/skills/code-review/references/codebase-scan-workflow.md +30 -0
- package/templates/repo/.github/skills/code-review/references/edge-case-scouting.md +119 -0
- package/templates/repo/.github/skills/code-review/references/input-mode-resolution.md +135 -0
- package/templates/repo/.github/skills/code-review/references/parallel-review-workflow.md +76 -0
- package/templates/repo/.github/skills/code-review/references/requesting-code-review.md +19 -8
- package/templates/repo/.github/skills/code-review/references/spec-compliance-review.md +43 -0
- package/templates/repo/.github/skills/code-review/references/task-management-reviews.md +155 -0
- package/templates/repo/.github/skills/common/README.md +2 -12
- package/templates/repo/.github/skills/common/api_key_helper.py +7 -37
- package/templates/repo/.github/skills/context-engineering/SKILL.md +4 -3
- package/templates/repo/.github/skills/context-engineering/references/context-degradation.md +2 -2
- package/templates/repo/.github/skills/context-engineering/references/runtime-awareness.md +5 -47
- package/templates/repo/.github/skills/cook/README.md +13 -13
- package/templates/repo/.github/skills/cook/SKILL.md +86 -58
- package/templates/repo/.github/skills/cook/references/intent-detection.md +7 -7
- package/templates/repo/.github/skills/cook/references/review-cycle.md +2 -2
- package/templates/repo/.github/skills/cook/references/subagent-patterns.md +75 -0
- package/templates/repo/.github/skills/cook/references/workflow-steps.md +75 -23
- package/templates/repo/.github/skills/databases/SKILL.md +3 -30
- package/templates/repo/.github/skills/databases/db-design.md +1 -1
- package/templates/repo/.github/skills/debug/SKILL.md +47 -105
- package/templates/repo/.github/skills/debug/references/frontend-verification.md +103 -0
- package/templates/repo/.github/skills/debug/references/investigation-methodology.md +101 -0
- package/templates/repo/.github/skills/debug/references/log-and-ci-analysis.md +97 -0
- package/templates/repo/.github/skills/debug/references/performance-diagnostics.md +113 -0
- package/templates/repo/.github/skills/debug/references/reporting-standards.md +122 -0
- package/templates/repo/.github/skills/debug/references/task-management-debugging.md +155 -0
- package/templates/repo/.github/skills/deploy/SKILL.md +154 -0
- package/templates/repo/.github/skills/deploy/references/platform-config-templates.md +35 -0
- package/templates/repo/.github/skills/deploy/references/platforms/aws.md +58 -0
- package/templates/repo/.github/skills/deploy/references/platforms/cloudflare.md +41 -0
- package/templates/repo/.github/skills/deploy/references/platforms/coolify.md +32 -0
- package/templates/repo/.github/skills/deploy/references/platforms/digitalocean.md +45 -0
- package/templates/repo/.github/skills/deploy/references/platforms/dokploy.md +29 -0
- package/templates/repo/.github/skills/deploy/references/platforms/flyio.md +54 -0
- package/templates/repo/.github/skills/deploy/references/platforms/gcp.md +45 -0
- package/templates/repo/.github/skills/deploy/references/platforms/github-pages.md +56 -0
- package/templates/repo/.github/skills/deploy/references/platforms/heroku.md +31 -0
- package/templates/repo/.github/skills/deploy/references/platforms/netlify.md +39 -0
- package/templates/repo/.github/skills/deploy/references/platforms/railway.md +38 -0
- package/templates/repo/.github/skills/deploy/references/platforms/render.md +39 -0
- package/templates/repo/.github/skills/deploy/references/platforms/tose.md +35 -0
- package/templates/repo/.github/skills/deploy/references/platforms/vercel.md +37 -0
- package/templates/repo/.github/skills/deploy/references/platforms/vultr.md +27 -0
- package/templates/repo/.github/skills/devops/SKILL.md +6 -12
- package/templates/repo/.github/skills/docs-seeker/SKILL.md +2 -1
- package/templates/repo/.github/skills/docs-seeker/references/context7-patterns.md +4 -0
- package/templates/repo/.github/skills/docs-seeker/scripts/fetch-docs.js +1 -2
- package/templates/repo/.github/skills/docs-seeker/scripts/utils/env-loader.js +4 -4
- package/templates/repo/.github/skills/docs-seeker/workflows/library-search.md +1 -0
- package/templates/repo/.github/skills/fix/SKILL.md +141 -44
- package/templates/repo/.github/skills/fix/references/complexity-assessment.md +21 -9
- package/templates/repo/.github/skills/fix/references/diagnosis-protocol.md +133 -0
- package/templates/repo/.github/skills/fix/references/mode-selection.md +27 -11
- package/templates/repo/.github/skills/fix/references/parallel-exploration.md +35 -12
- package/templates/repo/.github/skills/fix/references/prevention-gate.md +87 -0
- package/templates/repo/.github/skills/fix/references/review-cycle.md +3 -3
- package/templates/repo/.github/skills/fix/references/skill-activation-matrix.md +64 -31
- package/templates/repo/.github/skills/fix/references/task-orchestration.md +110 -0
- package/templates/repo/.github/skills/fix/references/workflow-deep.md +110 -47
- package/templates/repo/.github/skills/fix/references/workflow-logs.md +46 -10
- package/templates/repo/.github/skills/fix/references/workflow-quick.md +43 -20
- package/templates/repo/.github/skills/fix/references/workflow-standard.md +75 -41
- package/templates/repo/.github/skills/fix/references/workflow-test.md +49 -10
- package/templates/repo/.github/skills/fix/references/workflow-ui.md +56 -18
- package/templates/repo/.github/skills/frontend-design/SKILL.md +49 -17
- package/templates/repo/.github/skills/frontend-design/references/ai-multimodal-overview.md +165 -0
- package/templates/repo/.github/skills/frontend-design/references/anti-slop-rules.md +103 -0
- package/templates/repo/.github/skills/frontend-design/references/asset-generation.md +284 -108
- package/templates/repo/.github/skills/frontend-design/references/bento-motion-engine.md +142 -0
- package/templates/repo/.github/skills/frontend-design/references/magicui-components.md +129 -0
- package/templates/repo/.github/skills/frontend-design/references/performance-guardrails.md +169 -0
- package/templates/repo/.github/skills/frontend-design/references/premium-design-patterns.md +93 -0
- package/templates/repo/.github/skills/frontend-design/references/redesign-audit-checklist.md +114 -0
- package/templates/repo/.github/skills/frontend-design/references/visual-analysis-overview.md +1 -1
- package/templates/repo/.github/skills/frontend-design/references/workflow-3d.md +98 -0
- package/templates/repo/.github/skills/frontend-design/references/workflow-describe.md +4 -3
- package/templates/repo/.github/skills/frontend-design/references/workflow-immersive.md +82 -0
- package/templates/repo/.github/skills/frontend-design/references/workflow-quick.md +10 -12
- package/templates/repo/.github/skills/frontend-design/references/workflow-screenshot.md +9 -8
- package/templates/repo/.github/skills/frontend-design/references/workflow-video.md +74 -0
- package/templates/repo/.github/skills/frontend-development/SKILL.md +400 -0
- package/templates/repo/.github/skills/frontend-development/resources/common-patterns.md +331 -0
- package/templates/repo/.github/skills/frontend-development/resources/complete-examples.md +872 -0
- package/templates/repo/.github/skills/frontend-development/resources/component-patterns.md +502 -0
- package/templates/repo/.github/skills/frontend-development/resources/data-fetching.md +767 -0
- package/templates/repo/.github/skills/frontend-development/resources/file-organization.md +502 -0
- package/templates/repo/.github/skills/frontend-development/resources/loading-and-error-states.md +501 -0
- package/templates/repo/.github/skills/frontend-development/resources/performance.md +406 -0
- package/templates/repo/.github/skills/frontend-development/resources/routing-guide.md +364 -0
- package/templates/repo/.github/skills/frontend-development/resources/styling-guide.md +428 -0
- package/templates/repo/.github/skills/frontend-development/resources/typescript-standards.md +418 -0
- package/templates/repo/.github/skills/git/SKILL.md +18 -4
- package/templates/repo/.github/skills/git/references/commit-standards.md +3 -3
- package/templates/repo/.github/skills/git/references/workflow-commit.md +3 -3
- package/templates/repo/.github/skills/git/references/workflow-merge.md +1 -1
- package/templates/repo/.github/skills/git/references/workflow-pr.md +1 -1
- package/templates/repo/.github/skills/git/references/workflow-push.md +1 -1
- package/templates/repo/.github/skills/mcp-management/README.md +18 -18
- package/templates/repo/.github/skills/mcp-management/SKILL.md +16 -15
- package/templates/repo/.github/skills/mcp-management/references/configuration.md +4 -4
- package/templates/repo/.github/skills/mcp-management/references/gemini-cli-integration.md +12 -12
- package/templates/repo/.github/skills/mcp-management/scripts/.env.example +2 -2
- package/templates/repo/.github/skills/mcp-management/scripts/mcp-client.ts +1 -1
- package/templates/repo/.github/skills/mermaidjs-v11/SKILL.md +1 -0
- package/templates/repo/.github/skills/planning/SKILL.md +122 -91
- package/templates/repo/.github/skills/planning/references/archive-workflow.md +53 -0
- package/templates/repo/.github/skills/planning/references/codebase-understanding.md +1 -1
- package/templates/repo/.github/skills/planning/references/output-standards.md +17 -13
- package/templates/repo/.github/skills/planning/references/plan-organization.md +52 -30
- package/templates/repo/.github/skills/planning/references/red-team-personas.md +69 -0
- package/templates/repo/.github/skills/planning/references/red-team-workflow.md +77 -0
- package/templates/repo/.github/skills/planning/references/scope-challenge.md +90 -0
- package/templates/repo/.github/skills/planning/references/task-management.md +134 -0
- package/templates/repo/.github/skills/planning/references/validate-question-framework.md +80 -0
- package/templates/repo/.github/skills/planning/references/validate-workflow.md +65 -0
- package/templates/repo/.github/skills/planning/references/workflow-modes.md +154 -0
- package/templates/repo/.github/skills/problem-solving/SKILL.md +1 -0
- package/templates/repo/.github/skills/project-management/SKILL.md +133 -0
- package/templates/repo/.github/skills/project-management/references/documentation-triggers.md +60 -0
- package/templates/repo/.github/skills/project-management/references/hydration-workflow.md +89 -0
- package/templates/repo/.github/skills/project-management/references/progress-tracking.md +120 -0
- package/templates/repo/.github/skills/project-management/references/reporting-patterns.md +94 -0
- package/templates/repo/.github/skills/project-management/references/task-operations.md +87 -0
- package/templates/repo/.github/skills/repomix/SKILL.md +3 -2
- package/templates/repo/.github/skills/repomix/references/usage-patterns.md +2 -2
- package/templates/repo/.github/skills/repomix/scripts/README.md +1 -1
- package/templates/repo/.github/skills/repomix/scripts/repomix_batch.py +2 -2
- package/templates/repo/.github/skills/research/SKILL.md +7 -4
- package/templates/repo/.github/skills/scout/SKILL.md +24 -24
- package/templates/repo/.github/skills/scout/references/external-scouting.md +17 -17
- package/templates/repo/.github/skills/scout/references/internal-scouting.md +9 -9
- package/templates/repo/.github/skills/scout/references/task-management-scouting.md +125 -0
- package/templates/repo/.github/skills/security/SKILL.md +139 -0
- package/templates/repo/.github/skills/security/references/stride-owasp-checklist.md +128 -0
- package/templates/repo/.github/skills/sequential-thinking/README.md +3 -3
- package/templates/repo/.github/skills/sequential-thinking/SKILL.md +2 -0
- package/templates/repo/.github/skills/sequential-thinking/package-lock.json +3652 -0
- package/templates/repo/.github/skills/sequential-thinking/package.json +1 -1
- package/templates/repo/.github/skills/ship/SKILL.md +116 -0
- package/templates/repo/.github/skills/ship/references/auto-detect.md +103 -0
- package/templates/repo/.github/skills/ship/references/pr-template.md +90 -0
- package/templates/repo/.github/skills/ship/references/ship-workflow.md +241 -0
- package/templates/repo/.github/skills/test/SKILL.md +111 -0
- package/templates/repo/.github/skills/test/references/report-format.md +58 -0
- package/templates/repo/.github/skills/test/references/test-execution-workflow.md +103 -0
- package/templates/repo/.github/skills/test/references/ui-testing-workflow.md +65 -0
- package/templates/repo/.github/skills/ui-styling/SKILL.md +2 -0
- package/templates/repo/.github/skills/web-testing/SKILL.md +8 -60
- package/docs/guide-next-steps-speckit-cokit-implementation.md +0 -187
- package/prompts/ck-spec-analyze.prompt.md +0 -201
- package/prompts/ck-spec-checklist.prompt.md +0 -308
- package/prompts/ck-spec-clarify.prompt.md +0 -190
- package/prompts/ck-spec-constitution.prompt.md +0 -92
- package/prompts/ck-spec-implement.prompt.md +0 -157
- package/prompts/ck-spec-plan.prompt.md +0 -95
- package/prompts/ck-spec-specify.prompt.md +0 -261
- package/prompts/ck-spec-tasks.prompt.md +0 -181
- package/templates/repo/.github/AGENTS.md +0 -103
- package/templates/repo/.github/prompts/ck-spec-analyze.prompt.md +0 -201
- package/templates/repo/.github/prompts/ck-spec-checklist.prompt.md +0 -308
- package/templates/repo/.github/prompts/ck-spec-clarify.prompt.md +0 -190
- package/templates/repo/.github/prompts/ck-spec-constitution.prompt.md +0 -92
- package/templates/repo/.github/prompts/ck-spec-implement.prompt.md +0 -157
- package/templates/repo/.github/prompts/ck-spec-plan.prompt.md +0 -95
- package/templates/repo/.github/prompts/ck-spec-specify.prompt.md +0 -261
- package/templates/repo/.github/prompts/ck-spec-tasks.prompt.md +0 -181
- package/templates/repo/.github/skills/databases/stacks/bigquery.md +0 -231
- package/templates/repo/.github/skills/databases/stacks/d1_cloudflare.md +0 -137
- package/templates/repo/.github/skills/databases/stacks/mysql.md +0 -216
- package/templates/repo/.github/skills/databases/stacks/postgres.md +0 -235
- package/templates/repo/.github/skills/databases/stacks/sqlite.md +0 -244
- package/templates/repo/.github/skills/mcp-management/assets/tools.json +0 -3146
- package/templates/repo/.github/skills/mcp-management/scripts/dist/analyze-tools.js +0 -70
- package/templates/repo/.github/skills/mcp-management/scripts/dist/cli.js +0 -160
- package/templates/repo/.github/skills/mcp-management/scripts/dist/mcp-client.js +0 -183
- package/templates/repo/.github/skills/ui-styling/LICENSE.txt +0 -202
- package/templates/repo/.github/spec-kit/memory/constitution.md +0 -50
- package/templates/repo/.github/spec-kit/scripts/bash/check-prerequisites.sh +0 -166
- package/templates/repo/.github/spec-kit/scripts/bash/common.sh +0 -156
- package/templates/repo/.github/spec-kit/scripts/bash/create-new-feature.sh +0 -297
- package/templates/repo/.github/spec-kit/scripts/bash/setup-plan.sh +0 -61
- package/templates/repo/.github/spec-kit/scripts/bash/update-agent-context.sh +0 -799
- package/templates/repo/.github/spec-kit/scripts/powershell/check-prerequisites.ps1 +0 -148
- package/templates/repo/.github/spec-kit/scripts/powershell/common.ps1 +0 -137
- package/templates/repo/.github/spec-kit/scripts/powershell/create-new-feature.ps1 +0 -283
- package/templates/repo/.github/spec-kit/scripts/powershell/setup-plan.ps1 +0 -61
- package/templates/repo/.github/spec-kit/scripts/powershell/update-agent-context.ps1 +0 -448
- package/templates/repo/.github/spec-kit/templates/agent-file-template.md +0 -28
- package/templates/repo/.github/spec-kit/templates/checklist-template.md +0 -40
- package/templates/repo/.github/spec-kit/templates/commands/analyze.md +0 -187
- package/templates/repo/.github/spec-kit/templates/commands/checklist.md +0 -297
- package/templates/repo/.github/spec-kit/templates/commands/clarify.md +0 -184
- package/templates/repo/.github/spec-kit/templates/commands/constitution.md +0 -82
- package/templates/repo/.github/spec-kit/templates/commands/implement.md +0 -138
- package/templates/repo/.github/spec-kit/templates/commands/plan.md +0 -95
- package/templates/repo/.github/spec-kit/templates/commands/specify.md +0 -261
- package/templates/repo/.github/spec-kit/templates/commands/tasks.md +0 -140
- package/templates/repo/.github/spec-kit/templates/commands/taskstoissues.md +0 -33
- package/templates/repo/.github/spec-kit/templates/plan-template.md +0 -104
- package/templates/repo/.github/spec-kit/templates/spec-template.md +0 -115
- package/templates/repo/.github/spec-kit/templates/tasks-phase-template.md +0 -42
- package/templates/repo/.github/spec-kit/templates/tasks-template.md +0 -268
- package/templates/repo/.github/spec-kit/templates/vscode-settings.json +0 -14
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: security
|
|
3
|
+
description: "STRIDE + OWASP-based security audit with optional auto-fix. Scans code for vulnerabilities, categorizes by severity, and can iteratively fix findings using ck:autoresearch pattern."
|
|
4
|
+
argument-hint: "<scope glob or 'full'> [--fix] [--iterations N]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# ck:security — Security Audit
|
|
8
|
+
|
|
9
|
+
Runs a structured STRIDE + OWASP security audit on a given scope. Produces a severity-ranked findings report. With `--fix`, applies fixes iteratively using the ck:autoresearch guard pattern.
|
|
10
|
+
|
|
11
|
+
## When to Use
|
|
12
|
+
|
|
13
|
+
- Before a release or major deployment
|
|
14
|
+
- After adding auth, payment, or data-handling features
|
|
15
|
+
- Periodic security review (monthly/quarterly)
|
|
16
|
+
- Compliance check (SOC 2, GDPR, PCI-DSS prep)
|
|
17
|
+
|
|
18
|
+
## When NOT to Use
|
|
19
|
+
|
|
20
|
+
- Purely cosmetic changes (CSS, copy edits)
|
|
21
|
+
- No user-facing code or data handling involved
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Modes
|
|
26
|
+
|
|
27
|
+
| Mode | Invocation | Behavior |
|
|
28
|
+
|------|-----------|----------|
|
|
29
|
+
| Audit only | `/ck-security <scope>` | Scan → categorize → report |
|
|
30
|
+
| Audit + Fix | `/ck-security <scope> --fix` | Scan → categorize → fix iteratively |
|
|
31
|
+
| Bounded fix | `/ck-security <scope> --fix --iterations N` | Limit fix iterations to N |
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## Audit Methodology
|
|
36
|
+
|
|
37
|
+
### 1. Scope Resolution
|
|
38
|
+
Expand the provided glob or `full` keyword into a file list. Read all in-scope files before analysis.
|
|
39
|
+
|
|
40
|
+
### 2. STRIDE Analysis
|
|
41
|
+
Evaluate each threat category systematically:
|
|
42
|
+
- **S**poofing — identity/authentication weaknesses
|
|
43
|
+
- **T**ampering — input validation, integrity controls
|
|
44
|
+
- **R**epudiation — audit logging gaps
|
|
45
|
+
- **I**nformation Disclosure — data leakage, secret exposure
|
|
46
|
+
- **D**enial of Service — rate limits, resource exhaustion
|
|
47
|
+
- **E**levation of Privilege — broken access control, RBAC gaps
|
|
48
|
+
|
|
49
|
+
### 3. OWASP Top 10 Check
|
|
50
|
+
Map findings to OWASP categories (A01–A10). See `references/stride-owasp-checklist.md` for per-category checks.
|
|
51
|
+
|
|
52
|
+
### 4. Dependency Audit
|
|
53
|
+
Run the appropriate package audit tool for the detected stack:
|
|
54
|
+
- Node.js: `npm audit`
|
|
55
|
+
- Python: `pip-audit`
|
|
56
|
+
- Go: `govulncheck`
|
|
57
|
+
- Ruby: `bundle audit`
|
|
58
|
+
|
|
59
|
+
### 5. Secret Detection
|
|
60
|
+
Scan for hardcoded API keys, passwords, tokens, and private keys using regex patterns. See `references/stride-owasp-checklist.md` → Secret Patterns.
|
|
61
|
+
|
|
62
|
+
### 6. Finding Categorization
|
|
63
|
+
Assign each finding a severity level (see Severity Definitions below).
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Output Format
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
## Security Audit Report
|
|
71
|
+
|
|
72
|
+
### Summary
|
|
73
|
+
- Files scanned: N
|
|
74
|
+
- Findings: X critical, Y high, Z medium, W low, V info
|
|
75
|
+
|
|
76
|
+
### Findings
|
|
77
|
+
|
|
78
|
+
| # | Severity | Category | File:Line | Description | Fix Recommendation |
|
|
79
|
+
|---|----------|----------|-----------|-------------|-------------------|
|
|
80
|
+
| 1 | Critical | Injection | api/users.ts:45 | SQL string concatenation | Use parameterized queries |
|
|
81
|
+
| 2 | High | Auth | auth/login.ts:12 | No rate limiting | Add express-rate-limit |
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Fix Mode (--fix)
|
|
87
|
+
|
|
88
|
+
When `--fix` is provided, apply fixes iteratively after the audit:
|
|
89
|
+
|
|
90
|
+
1. Sort all findings by severity (Critical → High → Medium → Low)
|
|
91
|
+
2. For each finding:
|
|
92
|
+
a. Apply one targeted fix
|
|
93
|
+
b. Run guard (tests or lint) to verify no regression
|
|
94
|
+
c. Commit: `security(fix-N): <short description>`
|
|
95
|
+
d. Advance to next finding
|
|
96
|
+
3. Stop early if guard fails — report the failure instead of proceeding
|
|
97
|
+
4. Uses `autoresearch` guard pattern for regression prevention
|
|
98
|
+
|
|
99
|
+
> Tip: Use `--iterations N` to cap total fix iterations when scope is large.
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## Severity Definitions
|
|
104
|
+
|
|
105
|
+
| Severity | Description | Fix Priority |
|
|
106
|
+
|----------|-------------|-------------|
|
|
107
|
+
| Critical | Exploitable now, data breach or RCE risk | Immediate — block release |
|
|
108
|
+
| High | Exploitable with moderate effort, significant impact | This sprint |
|
|
109
|
+
| Medium | Limited exploitability or impact | Next sprint |
|
|
110
|
+
| Low | Theoretical risk, defense-in-depth improvement | Backlog |
|
|
111
|
+
| Info | Best practice suggestion, no direct risk | Optional |
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## Integration with Other Skills
|
|
116
|
+
|
|
117
|
+
- Run after `predict` when the security persona flags concerns
|
|
118
|
+
- Feed Critical/High findings into `ck:autoresearch --fix` for automated remediation
|
|
119
|
+
- Use `scenario` with `--focus authorization` for deeper auth flow testing
|
|
120
|
+
- Pair with `plan` to schedule Medium/Low findings as sprint tasks
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## Example Invocations
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
# Audit API layer only
|
|
128
|
+
/ck-security src/api/**/*.ts
|
|
129
|
+
|
|
130
|
+
# Audit entire src/ and auto-fix, max 15 iterations
|
|
131
|
+
/ck-security src/ --fix --iterations 15
|
|
132
|
+
|
|
133
|
+
# Full codebase audit (no fix)
|
|
134
|
+
/ck-security full
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
See `references/stride-owasp-checklist.md` for the detailed per-category checklist and secret detection regex patterns.
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# STRIDE + OWASP Security Checklist
|
|
2
|
+
|
|
3
|
+
Reference checklist for `security` audits. Use during Step 2 (STRIDE Analysis) and Step 3 (OWASP Top 10 Check).
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## STRIDE Checklist
|
|
8
|
+
|
|
9
|
+
### Spoofing (Authentication)
|
|
10
|
+
- [ ] All endpoints require authentication (unless intentionally public)
|
|
11
|
+
- [ ] Passwords hashed with bcrypt/argon2 — not MD5 or SHA1
|
|
12
|
+
- [ ] JWT tokens have expiration (`exp`) and are validated server-side
|
|
13
|
+
- [ ] Session management uses `Secure`, `HttpOnly`, `SameSite` cookie flags
|
|
14
|
+
- [ ] Multi-factor auth available for sensitive operations
|
|
15
|
+
- [ ] OAuth/OIDC flows use `state` parameter to prevent CSRF
|
|
16
|
+
- [ ] Default credentials removed from all services and dependencies
|
|
17
|
+
|
|
18
|
+
### Tampering (Integrity)
|
|
19
|
+
- [ ] Input validation on all user-supplied data (type, length, format)
|
|
20
|
+
- [ ] Parameterized queries used — no string concatenation for SQL/NoSQL
|
|
21
|
+
- [ ] CSRF tokens present on all state-changing forms
|
|
22
|
+
- [ ] Request signing for API-to-API calls (HMAC or mTLS)
|
|
23
|
+
- [ ] File uploads validated for type (magic bytes), size, and content
|
|
24
|
+
- [ ] Deserialization of untrusted data avoided or sandboxed
|
|
25
|
+
- [ ] HTTP methods restricted per endpoint (no GET for mutations)
|
|
26
|
+
|
|
27
|
+
### Repudiation (Logging)
|
|
28
|
+
- [ ] Authentication events logged: login, logout, failures
|
|
29
|
+
- [ ] Authorization failures logged with user/resource context
|
|
30
|
+
- [ ] Data modification events logged with actor and timestamp
|
|
31
|
+
- [ ] Logs do not contain sensitive data (passwords, tokens, PII)
|
|
32
|
+
- [ ] Log integrity protected — append-only storage or centralized sink
|
|
33
|
+
- [ ] Logs retained per compliance requirements (90 days minimum)
|
|
34
|
+
|
|
35
|
+
### Information Disclosure
|
|
36
|
+
- [ ] Error messages do not leak stack traces in production
|
|
37
|
+
- [ ] API responses exclude internal IDs, system paths, or version strings
|
|
38
|
+
- [ ] Sensitive data encrypted at rest (AES-256 or equivalent)
|
|
39
|
+
- [ ] All transport uses TLS 1.2+ — no HTTP for sensitive endpoints
|
|
40
|
+
- [ ] No hardcoded secrets in source code (see Secret Patterns below)
|
|
41
|
+
- [ ] `.env` files and credential files listed in `.gitignore`
|
|
42
|
+
- [ ] API responses filtered to minimum necessary fields (no over-fetching)
|
|
43
|
+
|
|
44
|
+
### Denial of Service
|
|
45
|
+
- [ ] Rate limiting on authentication and sensitive endpoints
|
|
46
|
+
- [ ] Request body size limits configured at server/gateway level
|
|
47
|
+
- [ ] Pagination enforced on all list endpoints (no unbounded queries)
|
|
48
|
+
- [ ] Timeouts set on all external API and database calls
|
|
49
|
+
- [ ] Connection pools sized and cleaned up properly
|
|
50
|
+
- [ ] Regex patterns reviewed for catastrophic backtracking (ReDoS)
|
|
51
|
+
- [ ] Background jobs have concurrency limits and dead-letter queues
|
|
52
|
+
|
|
53
|
+
### Elevation of Privilege
|
|
54
|
+
- [ ] Role-based access control (RBAC) enforced server-side, not client-side
|
|
55
|
+
- [ ] Horizontal privilege checks: user A cannot access user B's resources (IDOR)
|
|
56
|
+
- [ ] Admin endpoints have separate, stricter auth middleware
|
|
57
|
+
- [ ] Privilege escalation paths require re-authentication
|
|
58
|
+
- [ ] Service accounts use principle of least privilege
|
|
59
|
+
- [ ] Third-party integrations scoped to minimum required permissions
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## OWASP Top 10 Quick Reference
|
|
64
|
+
|
|
65
|
+
| # | Category | What to Check |
|
|
66
|
+
|---|----------|---------------|
|
|
67
|
+
| A01 | Broken Access Control | Missing auth checks, IDOR vulnerabilities, CORS misconfiguration, path traversal |
|
|
68
|
+
| A02 | Cryptographic Failures | Weak hashing (MD5/SHA1), plaintext storage, missing TLS, weak cipher suites |
|
|
69
|
+
| A03 | Injection | SQL, NoSQL, OS command, LDAP, template injection via unsanitized input |
|
|
70
|
+
| A04 | Insecure Design | Missing threat model, business logic flaws, no abuse-case testing |
|
|
71
|
+
| A05 | Security Misconfiguration | Default credentials, verbose error pages, unnecessary features/ports enabled |
|
|
72
|
+
| A06 | Vulnerable Components | Outdated dependencies, known CVEs, unpatched libraries |
|
|
73
|
+
| A07 | Auth Failures | Brute force possible, credential stuffing, session fixation, weak tokens |
|
|
74
|
+
| A08 | Data Integrity Failures | Unsigned updates, unverified deserialization, CI/CD pipeline compromise |
|
|
75
|
+
| A09 | Logging Failures | Missing security event logs, no alerting, insufficient monitoring coverage |
|
|
76
|
+
| A10 | SSRF | Unvalidated user-supplied URLs, internal service access via fetch/curl |
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## Secret Patterns to Detect
|
|
81
|
+
|
|
82
|
+
Scan source files for the following regex patterns. Any match is a Critical finding.
|
|
83
|
+
|
|
84
|
+
```regex
|
|
85
|
+
# Generic API keys
|
|
86
|
+
(?i)(api[_-]?key|apikey)\s*[:=]\s*['"][A-Za-z0-9\-_]{20,}['"]
|
|
87
|
+
|
|
88
|
+
# AWS access key IDs
|
|
89
|
+
AKIA[0-9A-Z]{16}
|
|
90
|
+
|
|
91
|
+
# AWS secret access keys
|
|
92
|
+
(?i)aws[_-]?secret[_-]?access[_-]?key\s*[:=]\s*['"][A-Za-z0-9/+]{40}['"]
|
|
93
|
+
|
|
94
|
+
# JSON Web Tokens
|
|
95
|
+
eyJ[A-Za-z0-9_-]+\.eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+
|
|
96
|
+
|
|
97
|
+
# Generic passwords in config/code
|
|
98
|
+
(?i)(password|passwd|pwd)\s*[:=]\s*['"][^'"]{8,}['"]
|
|
99
|
+
|
|
100
|
+
# Private keys (PEM format)
|
|
101
|
+
-----BEGIN (RSA |EC |DSA |OPENSSH )?PRIVATE KEY-----
|
|
102
|
+
|
|
103
|
+
# GitHub personal access tokens
|
|
104
|
+
ghp_[A-Za-z0-9]{36}
|
|
105
|
+
|
|
106
|
+
# Stripe secret keys
|
|
107
|
+
sk_(live|test)_[A-Za-z0-9]{24,}
|
|
108
|
+
|
|
109
|
+
# Generic bearer tokens
|
|
110
|
+
(?i)bearer\s+[A-Za-z0-9\-._~+/]{20,}
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
> False positive reduction: skip matches inside `*.test.*`, `*.spec.*`, `*.example`, and `*.md` files when the value is clearly a placeholder (e.g., `YOUR_KEY_HERE`, `<your-token>`).
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## Dependency Audit Commands
|
|
118
|
+
|
|
119
|
+
Run the appropriate command for the detected stack and include output in the findings report:
|
|
120
|
+
|
|
121
|
+
| Stack | Command |
|
|
122
|
+
|-------|---------|
|
|
123
|
+
| Node.js | `npm audit --json` |
|
|
124
|
+
| Python | `pip-audit --format json` |
|
|
125
|
+
| Go | `govulncheck ./...` |
|
|
126
|
+
| Ruby | `bundle audit check --update` |
|
|
127
|
+
| Java/Maven | `mvn dependency-check:check` |
|
|
128
|
+
| Rust | `cargo audit` |
|
|
@@ -4,7 +4,7 @@ Structured, reflective problem-solving methodology converted from the sequential
|
|
|
4
4
|
|
|
5
5
|
## Overview
|
|
6
6
|
|
|
7
|
-
This skill teaches the AI
|
|
7
|
+
This skill teaches the AI to apply systematic sequential thinking methodology for complex problem-solving, without relying on external MCP tools. It enables:
|
|
8
8
|
- Breaking down complex problems into manageable thought sequences
|
|
9
9
|
- Dynamic adjustment of thought count as understanding evolves
|
|
10
10
|
- Revision of previous thoughts when new insights emerge
|
|
@@ -91,7 +91,7 @@ Thought 2/5: [Further analysis]
|
|
|
91
91
|
|
|
92
92
|
**Implicit Mode**: Apply methodology internally without cluttering output
|
|
93
93
|
|
|
94
|
-
## When
|
|
94
|
+
## When AI Should Use This Skill
|
|
95
95
|
|
|
96
96
|
Automatically activated for:
|
|
97
97
|
- Complex problem decomposition
|
|
@@ -176,7 +176,7 @@ Scripts are **optional tooling** - the methodology can be applied without them.
|
|
|
176
176
|
|
|
177
177
|
Converted from: https://github.com/modelcontextprotocol/servers/tree/main/src/sequentialthinking
|
|
178
178
|
|
|
179
|
-
Original MCP server (MIT License).
|
|
179
|
+
Original MCP server by Anthropic (MIT License).
|
|
180
180
|
Skill conversion:
|
|
181
181
|
- Extracts methodology as instructions
|
|
182
182
|
- Adds executable scripts for deterministic validation
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sequential-thinking
|
|
3
3
|
description: Apply step-by-step analysis for complex problems with revision capability. Use for multi-step reasoning, hypothesis verification, adaptive planning, problem decomposition, course correction.
|
|
4
|
+
license: MIT
|
|
5
|
+
argument-hint: "[problem to analyze step-by-step]"
|
|
4
6
|
---
|
|
5
7
|
|
|
6
8
|
# Sequential Thinking
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ship
|
|
3
|
+
description: "Ship pipeline: merge main, test, review, commit, push, PR. Single command from feature branch to PR URL. Use for shipping official releases to main/master or beta releases to dev/beta branches."
|
|
4
|
+
argument-hint: "[official|beta] [--skip-tests] [--skip-review] [--skip-journal] [--skip-docs] [--dry-run]"
|
|
5
|
+
license: MIT
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Ship: Unified Ship Pipeline
|
|
9
|
+
|
|
10
|
+
Single command to ship a feature branch. Fully automated — only stops for test failures, critical review issues, or major version bumps.
|
|
11
|
+
|
|
12
|
+
**Inspired by:** gstack `/ship` by Garry Tan. Adapted for framework-agnostic, multi-language support.
|
|
13
|
+
|
|
14
|
+
## Arguments
|
|
15
|
+
|
|
16
|
+
| Flag | Effect |
|
|
17
|
+
|------|--------|
|
|
18
|
+
| `official` | Ship to default branch (main/master). Full pipeline with docs + journal |
|
|
19
|
+
| `beta` | Ship to dev/beta branch. Lighter pipeline, skip docs update |
|
|
20
|
+
| (none) | Auto-detect: if base branch is main/master → official, else → beta |
|
|
21
|
+
| `--skip-tests` | Skip test step (use when tests already passed) |
|
|
22
|
+
| `--skip-review` | Skip pre-landing review step |
|
|
23
|
+
| `--skip-journal` | Skip journal writing step |
|
|
24
|
+
| `--skip-docs` | Skip docs update step |
|
|
25
|
+
| `--dry-run` | Show what would happen without executing |
|
|
26
|
+
|
|
27
|
+
## Ship Mode Detection
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
If argument = "official" → target = main/master (auto-detect default branch)
|
|
31
|
+
If argument = "beta" → target = dev/beta (auto-detect dev branch)
|
|
32
|
+
If no argument → infer from current branch naming:
|
|
33
|
+
- feature/* hotfix/* bugfix/* → official (target main)
|
|
34
|
+
- dev/* beta/* experiment/* → beta (target dev/beta)
|
|
35
|
+
- unclear → asking the user
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## When to Stop (blocking)
|
|
39
|
+
|
|
40
|
+
- On target branch already → abort
|
|
41
|
+
- Merge conflicts that can't be auto-resolved → stop, show conflicts
|
|
42
|
+
- Test failures → stop, show failures
|
|
43
|
+
- Critical review issues → asking the user per issue
|
|
44
|
+
- Major/minor version bump needed → asking the user
|
|
45
|
+
|
|
46
|
+
## When NOT to Stop
|
|
47
|
+
|
|
48
|
+
- Uncommitted changes → always include them
|
|
49
|
+
- Patch version bump → auto-decide
|
|
50
|
+
- Changelog content → auto-generate
|
|
51
|
+
- Commit message → auto-compose
|
|
52
|
+
- No version file → skip version step silently
|
|
53
|
+
- No changelog → skip changelog step silently
|
|
54
|
+
|
|
55
|
+
## Pipeline
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
Step 1: Pre-flight → Branch check, mode detection, status, diff analysis
|
|
59
|
+
Step 2: Link Issues → Find/create related GitHub issues
|
|
60
|
+
Step 3: Merge target → Fetch + merge origin/<target-branch>
|
|
61
|
+
Step 4: Run tests → Auto-detect test runner, run, check results
|
|
62
|
+
Step 5: Review → Two-pass checklist review (critical + informational)
|
|
63
|
+
Step 6: Version bump → Auto-detect version file, bump patch/minor
|
|
64
|
+
Step 7: Changelog → Auto-generate from commits + diff
|
|
65
|
+
Step 8: Journal → Write technical journal via /ck-journal
|
|
66
|
+
Step 9: Docs update → Update project docs via /ck-docs update (official only)
|
|
67
|
+
Step 10: Commit → Conventional commit with version/changelog
|
|
68
|
+
Step 11: Push → git push -u origin <branch>
|
|
69
|
+
Step 12: Create PR → gh pr create with structured body + linked issues
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
**Detailed steps:** Load `references/ship-workflow.md`
|
|
73
|
+
**Auto-detection:** Load `references/auto-detect.md`
|
|
74
|
+
**PR template:** Load `references/pr-template.md`
|
|
75
|
+
|
|
76
|
+
## Token Efficiency Rules
|
|
77
|
+
|
|
78
|
+
- Steps 4 (tests) and 5 (review): delegate to `tester` and `code-reviewer` subagents — don't inline
|
|
79
|
+
- Steps 8 (journal) and 9 (docs): run in **background** — don't block pipeline
|
|
80
|
+
- Step 2 (issues): use single `gh` command batch — avoid multiple API calls
|
|
81
|
+
- Skip steps early via flags to save tokens on unnecessary work
|
|
82
|
+
- Beta mode auto-skips: docs update (Step 9)
|
|
83
|
+
- Capture step outputs inline — don't re-read files already in context
|
|
84
|
+
|
|
85
|
+
## Quick Start
|
|
86
|
+
|
|
87
|
+
User says `/ck-ship` → run full pipeline → output PR URL.
|
|
88
|
+
User says `/ck-ship beta` → ship to dev branch with lighter pipeline.
|
|
89
|
+
User says `/ck-ship official` → ship to main with full docs + journal.
|
|
90
|
+
|
|
91
|
+
## Output Format
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
✓ Pre-flight: branch feature/foo, 5 commits, +200/-50 lines (mode: official)
|
|
95
|
+
✓ Issues: linked #42, created #43
|
|
96
|
+
✓ Merged: origin/main (up to date)
|
|
97
|
+
✓ Tests: 42 passed, 0 failed
|
|
98
|
+
✓ Review: 0 critical, 2 informational
|
|
99
|
+
✓ Version: 1.2.3 → 1.2.4
|
|
100
|
+
✓ Changelog: updated
|
|
101
|
+
✓ Journal: written (background)
|
|
102
|
+
✓ Docs: updated (background)
|
|
103
|
+
✓ Committed: feat(auth): add OAuth2 login flow
|
|
104
|
+
✓ Pushed: origin/feature/foo
|
|
105
|
+
✓ PR: https://github.com/org/repo/pull/123 (linked: #42, #43)
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## Important Rules
|
|
109
|
+
|
|
110
|
+
- **Never skip tests** (unless `--skip-tests`). If tests fail, stop.
|
|
111
|
+
- **Never force push.** Regular `git push` only.
|
|
112
|
+
- **Never ask for confirmation** except for critical review issues and major/minor version bumps.
|
|
113
|
+
- **Auto-detect everything.** Test runner, version file, changelog format, target branch — detect from project files.
|
|
114
|
+
- **Framework-agnostic.** Works for Node, Python, Rust, Go, Ruby, Java, or any project with a test command.
|
|
115
|
+
- **Subagent delegation.** Use `tester` for tests, `code-reviewer` for review, `journal-writer` for journal, `docs-manager` for docs. Don't inline.
|
|
116
|
+
- **Background tasks.** Journal and docs run in background to not block the pipeline.
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# Auto-Detection Logic
|
|
2
|
+
|
|
3
|
+
Detect test runner, version file, and changelog format from project files.
|
|
4
|
+
|
|
5
|
+
## Test Runner Detection
|
|
6
|
+
|
|
7
|
+
Check in order (first match wins):
|
|
8
|
+
|
|
9
|
+
| Check | Test Command |
|
|
10
|
+
|-------|-------------|
|
|
11
|
+
| `package.json` → `scripts.test` exists | `npm test` |
|
|
12
|
+
| `Makefile` → has `test:` target | `make test` |
|
|
13
|
+
| `pytest.ini` OR `pyproject.toml` has `[tool.pytest]` | `pytest` |
|
|
14
|
+
| `Cargo.toml` exists | `cargo test` |
|
|
15
|
+
| `go.mod` exists | `go test ./...` |
|
|
16
|
+
| `Gemfile` + `Rakefile` with test task | `bundle exec rake test` |
|
|
17
|
+
| `build.gradle` or `build.gradle.kts` | `./gradlew test` |
|
|
18
|
+
| `pom.xml` | `mvn test` |
|
|
19
|
+
| `mix.exs` | `mix test` |
|
|
20
|
+
| `deno.json` | `deno test` |
|
|
21
|
+
|
|
22
|
+
**Detection script:**
|
|
23
|
+
```bash
|
|
24
|
+
if [ -f package.json ] && grep -q '"test"' package.json 2>/dev/null; then
|
|
25
|
+
echo "npm test"
|
|
26
|
+
elif [ -f Makefile ] && grep -q '^test:' Makefile 2>/dev/null; then
|
|
27
|
+
echo "make test"
|
|
28
|
+
elif [ -f pytest.ini ] || ([ -f pyproject.toml ] && grep -q '\[tool.pytest' pyproject.toml 2>/dev/null); then
|
|
29
|
+
echo "pytest"
|
|
30
|
+
elif [ -f Cargo.toml ]; then
|
|
31
|
+
echo "cargo test"
|
|
32
|
+
elif [ -f go.mod ]; then
|
|
33
|
+
echo "go test ./..."
|
|
34
|
+
else
|
|
35
|
+
echo "NONE"
|
|
36
|
+
fi
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
**If NONE:** Use asking the user — "No test runner detected. Options: A) Skip tests, B) Provide test command"
|
|
40
|
+
|
|
41
|
+
## Version File Detection
|
|
42
|
+
|
|
43
|
+
Check in order:
|
|
44
|
+
|
|
45
|
+
| Check | Read Pattern |
|
|
46
|
+
|-------|-------------|
|
|
47
|
+
| `VERSION` file | Read as semver string |
|
|
48
|
+
| `package.json` → `version` field | `jq -r .version package.json` |
|
|
49
|
+
| `pyproject.toml` → `version` | grep `version = "..."` |
|
|
50
|
+
| `Cargo.toml` → `version` | grep `version = "..."` |
|
|
51
|
+
| `mix.exs` → `@version` | grep `@version "..."` |
|
|
52
|
+
|
|
53
|
+
**If none found:** Skip version bump silently. Not all projects use versioning.
|
|
54
|
+
|
|
55
|
+
**Bump logic:**
|
|
56
|
+
```
|
|
57
|
+
Lines changed < 50 → patch (X.Y.Z → X.Y.Z+1)
|
|
58
|
+
Lines changed >= 50 → patch (safe default)
|
|
59
|
+
User explicitly says "breaking" or "major feature" → asking the user for minor/major
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Changelog Detection
|
|
63
|
+
|
|
64
|
+
| Check | Format |
|
|
65
|
+
|-------|--------|
|
|
66
|
+
| `CHANGELOG.md` | Keep-a-changelog format |
|
|
67
|
+
| `CHANGES.md` | Same |
|
|
68
|
+
| `HISTORY.md` | Same |
|
|
69
|
+
|
|
70
|
+
**If none found:** Skip changelog silently.
|
|
71
|
+
|
|
72
|
+
**Entry format:**
|
|
73
|
+
```markdown
|
|
74
|
+
## [X.Y.Z] - YYYY-MM-DD
|
|
75
|
+
|
|
76
|
+
### Added
|
|
77
|
+
- New features from commits with `feat:` prefix
|
|
78
|
+
|
|
79
|
+
### Changed
|
|
80
|
+
- Changes from commits with `refactor:`, `perf:` prefix
|
|
81
|
+
|
|
82
|
+
### Fixed
|
|
83
|
+
- Bug fixes from commits with `fix:` prefix
|
|
84
|
+
|
|
85
|
+
### Removed
|
|
86
|
+
- Removals mentioned in commit messages
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**Infer categories from:**
|
|
90
|
+
1. Conventional commit prefixes in `git log main..HEAD --oneline`
|
|
91
|
+
2. File types changed (test files → test improvements, docs → documentation)
|
|
92
|
+
3. Diff content (new functions = Added, modified functions = Changed)
|
|
93
|
+
|
|
94
|
+
## Main Branch Detection
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@'
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Fallback: check if `main` or `master` exists:
|
|
101
|
+
```bash
|
|
102
|
+
git rev-parse --verify origin/main 2>/dev/null && echo "main" || echo "master"
|
|
103
|
+
```
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# PR Body Template
|
|
2
|
+
|
|
3
|
+
Use this template when creating PRs via `gh pr create`.
|
|
4
|
+
|
|
5
|
+
## Template
|
|
6
|
+
|
|
7
|
+
```markdown
|
|
8
|
+
## Summary
|
|
9
|
+
<bullet points — infer from changelog entry or commit messages>
|
|
10
|
+
|
|
11
|
+
## Linked Issues
|
|
12
|
+
<list issues from Step 2>
|
|
13
|
+
- Closes #XX — <issue title>
|
|
14
|
+
- Relates to #YY — <issue title>
|
|
15
|
+
<or "No linked issues.">
|
|
16
|
+
|
|
17
|
+
## Pre-Landing Review
|
|
18
|
+
<findings from review step>
|
|
19
|
+
<format: "N issues (X critical, Y informational)" or "No issues found.">
|
|
20
|
+
|
|
21
|
+
<if informational issues exist, list them:>
|
|
22
|
+
- [file:line] Issue description
|
|
23
|
+
|
|
24
|
+
## Test Results
|
|
25
|
+
- [x] All tests pass (<count> tests, 0 failures)
|
|
26
|
+
<or>
|
|
27
|
+
- [x] Tests skipped (--skip-tests)
|
|
28
|
+
|
|
29
|
+
## Changes
|
|
30
|
+
<output of git diff --stat, trimmed to key files>
|
|
31
|
+
|
|
32
|
+
## Ship Mode
|
|
33
|
+
- Mode: <official|beta>
|
|
34
|
+
- Target: <target-branch>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## PR Title Format
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
type(scope): brief description
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Infer type from changes:
|
|
44
|
+
- `feat`: new feature or capability
|
|
45
|
+
- `fix`: bug fix
|
|
46
|
+
- `refactor`: code restructuring without behavior change
|
|
47
|
+
- `perf`: performance improvement
|
|
48
|
+
- `chore`: maintenance, dependencies, config
|
|
49
|
+
|
|
50
|
+
## Example
|
|
51
|
+
|
|
52
|
+
```markdown
|
|
53
|
+
## Summary
|
|
54
|
+
- Add OAuth2 login flow with Google and GitHub providers
|
|
55
|
+
- Implement session management with secure cookie storage
|
|
56
|
+
- Add logout endpoint with token revocation
|
|
57
|
+
|
|
58
|
+
## Linked Issues
|
|
59
|
+
- Closes #42 — Add OAuth2 authentication support
|
|
60
|
+
- Relates to #38 — Security audit for auth module
|
|
61
|
+
|
|
62
|
+
## Pre-Landing Review
|
|
63
|
+
Pre-Landing Review: 1 issue (0 critical, 1 informational)
|
|
64
|
+
|
|
65
|
+
- [src/auth/session.ts:42] Magic number 3600 for session TTL
|
|
66
|
+
Fix: Extract to named constant SESSION_TTL_SECONDS
|
|
67
|
+
|
|
68
|
+
## Test Results
|
|
69
|
+
- [x] All tests pass (127 tests, 0 failures)
|
|
70
|
+
|
|
71
|
+
## Changes
|
|
72
|
+
src/auth/oauth.ts | 89 +++++++++
|
|
73
|
+
src/auth/session.ts | 45 +++++
|
|
74
|
+
src/routes/auth.ts | 32 ++++
|
|
75
|
+
tests/auth.test.ts | 67 +++++++
|
|
76
|
+
4 files changed, 233 insertions(+)
|
|
77
|
+
|
|
78
|
+
## Ship Mode
|
|
79
|
+
- Mode: official
|
|
80
|
+
- Target: main
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Notes
|
|
84
|
+
|
|
85
|
+
- Keep summary bullets concise — one line per change
|
|
86
|
+
- Include review findings even if "No issues found" — shows review happened
|
|
87
|
+
- Test counts should match actual output, not estimates
|
|
88
|
+
- If PR already exists, use `gh pr edit` instead of `gh pr create`
|
|
89
|
+
- Always include linked issues section — traceability is critical
|
|
90
|
+
- For beta PRs, target the dev/beta branch, not main
|