cokit-cli 1.2.7 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (467) hide show
  1. package/README.md +8 -31
  2. package/agents/brainstormer.agent.md +28 -14
  3. package/agents/code-reviewer.agent.md +101 -67
  4. package/agents/code-simplifier.agent.md +36 -41
  5. package/agents/debugger.agent.md +29 -24
  6. package/agents/docs-manager.agent.md +15 -23
  7. package/agents/fullstack-developer.agent.md +16 -6
  8. package/agents/git-manager.agent.md +0 -3
  9. package/agents/planner.agent.md +16 -34
  10. package/agents/project-manager.agent.md +24 -0
  11. package/agents/researcher.agent.md +15 -13
  12. package/agents/tester.agent.md +43 -20
  13. package/agents/ui-ux-designer.agent.md +16 -49
  14. package/docs/README.md +8 -9
  15. package/docs/Skills Orchestration Layer - Training Slides - en.pdf +0 -0
  16. package/docs/Skills Orchestration Layer - Training Slides - vi.pdf +0 -0
  17. package/docs/code-standards.md +1 -2
  18. package/docs/codebase-summary.md +35 -66
  19. package/docs/cokit-commands-usage-guide.md +27 -73
  20. package/docs/cokit-comprehensive-mapping-guide.md +8 -10
  21. package/docs/cokit-slides.md +2 -5
  22. package/docs/cokit-sync-and-maintenance-guide.md +42 -190
  23. package/docs/cokit-team-presentation.md +6 -9
  24. package/docs/copilot-processing-flow.md +3 -3
  25. package/docs/migration-guide.md +14 -14
  26. package/docs/project-overview-pdr.md +5 -6
  27. package/docs/project-roadmap.md +12 -14
  28. package/docs/skills-and-orchestration-layer-en.md +404 -0
  29. package/docs/skills-and-orchestration-layer-vi.md +404 -0
  30. package/docs/system-architecture.md +13 -17
  31. package/docs/{claudekit-porting-rules.md → upstream-porting-rules.md} +15 -16
  32. package/package.json +3 -4
  33. package/prompts/ck-ask.prompt.md +0 -1
  34. package/prompts/ck-bootstrap.prompt.md +0 -3
  35. package/prompts/ck-brainstorm.prompt.md +0 -1
  36. package/prompts/ck-cook.prompt.md +0 -1
  37. package/prompts/ck-debug.prompt.md +0 -1
  38. package/prompts/ck-deploy.prompt.md +22 -0
  39. package/prompts/ck-docs.prompt.md +0 -1
  40. package/prompts/ck-frontend.prompt.md +20 -0
  41. package/prompts/ck-help.prompt.md +0 -1
  42. package/prompts/ck-plan-fast.prompt.md +0 -3
  43. package/prompts/ck-plan-hard.prompt.md +0 -3
  44. package/prompts/ck-plan.prompt.md +0 -3
  45. package/prompts/ck-project.prompt.md +20 -0
  46. package/prompts/ck-review.prompt.md +0 -3
  47. package/prompts/ck-scout.prompt.md +0 -1
  48. package/prompts/ck-security.prompt.md +22 -0
  49. package/prompts/ck-ship.prompt.md +22 -0
  50. package/prompts/ck-test.prompt.md +0 -2
  51. package/prompts/ck-watzup.prompt.md +0 -1
  52. package/skills/agent-browser/SKILL.md +11 -8
  53. package/skills/agent-browser/references/agent-browser-vs-chrome-devtools.md +112 -0
  54. package/skills/bootstrap/SKILL.md +102 -0
  55. package/skills/bootstrap/references/shared-phases.md +59 -0
  56. package/skills/bootstrap/references/workflow-auto.md +52 -0
  57. package/skills/bootstrap/references/workflow-fast.md +50 -0
  58. package/skills/bootstrap/references/workflow-full.md +60 -0
  59. package/skills/bootstrap/references/workflow-parallel.md +59 -0
  60. package/skills/brainstorm/SKILL.md +63 -15
  61. package/skills/code-review/SKILL.md +138 -135
  62. package/skills/code-review/references/adversarial-review.md +223 -0
  63. package/skills/code-review/references/checklist-workflow.md +100 -0
  64. package/skills/code-review/references/checklists/api.md +52 -0
  65. package/skills/code-review/references/checklists/base.md +100 -0
  66. package/skills/code-review/references/checklists/web-app.md +54 -0
  67. package/skills/code-review/references/code-review-reception.md +48 -144
  68. package/skills/code-review/references/codebase-scan-workflow.md +30 -0
  69. package/skills/code-review/references/edge-case-scouting.md +119 -0
  70. package/skills/code-review/references/input-mode-resolution.md +135 -0
  71. package/skills/code-review/references/parallel-review-workflow.md +76 -0
  72. package/skills/code-review/references/requesting-code-review.md +115 -104
  73. package/skills/code-review/references/spec-compliance-review.md +43 -0
  74. package/skills/code-review/references/task-management-reviews.md +155 -0
  75. package/skills/common/README.md +2 -12
  76. package/skills/common/api_key_helper.py +7 -37
  77. package/skills/context-engineering/SKILL.md +4 -3
  78. package/skills/context-engineering/references/context-degradation.md +2 -2
  79. package/skills/context-engineering/references/runtime-awareness.md +5 -47
  80. package/skills/cook/README.md +13 -13
  81. package/skills/cook/SKILL.md +86 -58
  82. package/skills/cook/references/intent-detection.md +7 -7
  83. package/skills/cook/references/review-cycle.md +2 -2
  84. package/skills/cook/references/subagent-patterns.md +75 -0
  85. package/skills/cook/references/workflow-steps.md +75 -23
  86. package/skills/databases/SKILL.md +3 -30
  87. package/skills/databases/db-design.md +1 -1
  88. package/skills/debug/SKILL.md +47 -105
  89. package/skills/debug/references/frontend-verification.md +103 -0
  90. package/skills/debug/references/investigation-methodology.md +101 -0
  91. package/skills/debug/references/log-and-ci-analysis.md +97 -0
  92. package/skills/debug/references/performance-diagnostics.md +113 -0
  93. package/skills/debug/references/reporting-standards.md +122 -0
  94. package/skills/debug/references/task-management-debugging.md +155 -0
  95. package/skills/deploy/SKILL.md +154 -0
  96. package/skills/deploy/references/platform-config-templates.md +35 -0
  97. package/skills/deploy/references/platforms/aws.md +58 -0
  98. package/skills/deploy/references/platforms/cloudflare.md +41 -0
  99. package/skills/deploy/references/platforms/coolify.md +32 -0
  100. package/skills/deploy/references/platforms/digitalocean.md +45 -0
  101. package/skills/deploy/references/platforms/dokploy.md +29 -0
  102. package/skills/deploy/references/platforms/flyio.md +54 -0
  103. package/skills/deploy/references/platforms/gcp.md +45 -0
  104. package/skills/deploy/references/platforms/github-pages.md +56 -0
  105. package/skills/deploy/references/platforms/heroku.md +31 -0
  106. package/skills/deploy/references/platforms/netlify.md +39 -0
  107. package/skills/deploy/references/platforms/railway.md +38 -0
  108. package/skills/deploy/references/platforms/render.md +39 -0
  109. package/skills/deploy/references/platforms/tose.md +35 -0
  110. package/skills/deploy/references/platforms/vercel.md +37 -0
  111. package/skills/deploy/references/platforms/vultr.md +27 -0
  112. package/skills/devops/SKILL.md +6 -12
  113. package/skills/docs-seeker/SKILL.md +2 -1
  114. package/skills/docs-seeker/references/context7-patterns.md +4 -0
  115. package/skills/docs-seeker/scripts/fetch-docs.js +1 -2
  116. package/skills/docs-seeker/scripts/utils/env-loader.js +4 -4
  117. package/skills/docs-seeker/workflows/library-search.md +1 -0
  118. package/skills/fix/SKILL.md +141 -44
  119. package/skills/fix/references/complexity-assessment.md +21 -9
  120. package/skills/fix/references/diagnosis-protocol.md +133 -0
  121. package/skills/fix/references/mode-selection.md +27 -11
  122. package/skills/fix/references/parallel-exploration.md +35 -12
  123. package/skills/fix/references/prevention-gate.md +87 -0
  124. package/skills/fix/references/review-cycle.md +3 -3
  125. package/skills/fix/references/skill-activation-matrix.md +64 -31
  126. package/skills/fix/references/task-orchestration.md +110 -0
  127. package/skills/fix/references/workflow-deep.md +110 -47
  128. package/skills/fix/references/workflow-logs.md +46 -10
  129. package/skills/fix/references/workflow-quick.md +43 -20
  130. package/skills/fix/references/workflow-standard.md +75 -41
  131. package/skills/fix/references/workflow-test.md +49 -10
  132. package/skills/fix/references/workflow-ui.md +56 -18
  133. package/skills/frontend-design/SKILL.md +109 -77
  134. package/skills/frontend-design/references/ai-multimodal-overview.md +165 -0
  135. package/skills/frontend-design/references/anti-slop-rules.md +103 -0
  136. package/skills/frontend-design/references/asset-generation.md +284 -108
  137. package/skills/frontend-design/references/bento-motion-engine.md +142 -0
  138. package/skills/frontend-design/references/magicui-components.md +129 -0
  139. package/skills/frontend-design/references/performance-guardrails.md +169 -0
  140. package/skills/frontend-design/references/premium-design-patterns.md +93 -0
  141. package/skills/frontend-design/references/redesign-audit-checklist.md +114 -0
  142. package/skills/frontend-design/references/visual-analysis-overview.md +1 -1
  143. package/skills/frontend-design/references/workflow-3d.md +98 -0
  144. package/skills/frontend-design/references/workflow-describe.md +4 -3
  145. package/skills/frontend-design/references/workflow-immersive.md +82 -0
  146. package/skills/frontend-design/references/workflow-quick.md +10 -12
  147. package/skills/frontend-design/references/workflow-screenshot.md +9 -8
  148. package/skills/frontend-design/references/workflow-video.md +74 -0
  149. package/skills/frontend-development/SKILL.md +400 -0
  150. package/skills/frontend-development/resources/common-patterns.md +331 -0
  151. package/skills/frontend-development/resources/complete-examples.md +872 -0
  152. package/skills/frontend-development/resources/component-patterns.md +502 -0
  153. package/skills/frontend-development/resources/data-fetching.md +767 -0
  154. package/skills/frontend-development/resources/file-organization.md +502 -0
  155. package/skills/frontend-development/resources/loading-and-error-states.md +501 -0
  156. package/skills/frontend-development/resources/performance.md +406 -0
  157. package/skills/frontend-development/resources/routing-guide.md +364 -0
  158. package/skills/frontend-development/resources/styling-guide.md +428 -0
  159. package/skills/frontend-development/resources/typescript-standards.md +418 -0
  160. package/skills/git/SKILL.md +18 -4
  161. package/skills/git/references/commit-standards.md +3 -3
  162. package/skills/git/references/workflow-commit.md +3 -3
  163. package/skills/git/references/workflow-merge.md +1 -1
  164. package/skills/git/references/workflow-pr.md +1 -1
  165. package/skills/git/references/workflow-push.md +1 -1
  166. package/skills/mcp-management/README.md +18 -18
  167. package/skills/mcp-management/SKILL.md +16 -15
  168. package/skills/mcp-management/references/configuration.md +4 -4
  169. package/skills/mcp-management/references/gemini-cli-integration.md +12 -12
  170. package/skills/mcp-management/scripts/.env.example +2 -2
  171. package/skills/mcp-management/scripts/dist/mcp-client.js +1 -1
  172. package/skills/mcp-management/scripts/mcp-client.ts +1 -1
  173. package/skills/mermaidjs-v11/SKILL.md +1 -0
  174. package/skills/planning/SKILL.md +122 -91
  175. package/skills/planning/references/archive-workflow.md +53 -0
  176. package/skills/planning/references/codebase-understanding.md +1 -1
  177. package/skills/planning/references/output-standards.md +17 -13
  178. package/skills/planning/references/plan-organization.md +52 -30
  179. package/skills/planning/references/red-team-personas.md +69 -0
  180. package/skills/planning/references/red-team-workflow.md +77 -0
  181. package/skills/planning/references/scope-challenge.md +90 -0
  182. package/skills/planning/references/task-management.md +134 -0
  183. package/skills/planning/references/validate-question-framework.md +80 -0
  184. package/skills/planning/references/validate-workflow.md +65 -0
  185. package/skills/planning/references/workflow-modes.md +154 -0
  186. package/skills/problem-solving/SKILL.md +1 -0
  187. package/skills/project-management/SKILL.md +133 -0
  188. package/skills/project-management/references/documentation-triggers.md +60 -0
  189. package/skills/project-management/references/hydration-workflow.md +89 -0
  190. package/skills/project-management/references/progress-tracking.md +120 -0
  191. package/skills/project-management/references/reporting-patterns.md +94 -0
  192. package/skills/project-management/references/task-operations.md +87 -0
  193. package/skills/repomix/SKILL.md +3 -2
  194. package/skills/repomix/references/usage-patterns.md +2 -2
  195. package/skills/repomix/scripts/README.md +1 -1
  196. package/skills/repomix/scripts/repomix_batch.py +2 -2
  197. package/skills/research/SKILL.md +7 -4
  198. package/skills/scout/SKILL.md +24 -24
  199. package/skills/scout/references/external-scouting.md +17 -17
  200. package/skills/scout/references/internal-scouting.md +9 -9
  201. package/skills/scout/references/task-management-scouting.md +125 -0
  202. package/skills/security/SKILL.md +139 -0
  203. package/skills/security/references/stride-owasp-checklist.md +128 -0
  204. package/skills/sequential-thinking/README.md +3 -3
  205. package/skills/sequential-thinking/SKILL.md +2 -0
  206. package/skills/sequential-thinking/package.json +1 -1
  207. package/skills/ship/SKILL.md +116 -0
  208. package/skills/ship/references/auto-detect.md +103 -0
  209. package/skills/ship/references/pr-template.md +90 -0
  210. package/skills/ship/references/ship-workflow.md +241 -0
  211. package/skills/test/SKILL.md +111 -0
  212. package/skills/test/references/report-format.md +58 -0
  213. package/skills/test/references/test-execution-workflow.md +103 -0
  214. package/skills/test/references/ui-testing-workflow.md +65 -0
  215. package/skills/ui-styling/SKILL.md +2 -0
  216. package/skills/web-testing/SKILL.md +8 -60
  217. package/templates/repo/.github/agents/brainstormer.agent.md +28 -14
  218. package/templates/repo/.github/agents/code-reviewer.agent.md +101 -67
  219. package/templates/repo/.github/agents/code-simplifier.agent.md +36 -41
  220. package/templates/repo/.github/agents/debugger.agent.md +29 -24
  221. package/templates/repo/.github/agents/docs-manager.agent.md +15 -23
  222. package/templates/repo/.github/agents/fullstack-developer.agent.md +16 -6
  223. package/templates/repo/.github/agents/git-manager.agent.md +0 -3
  224. package/templates/repo/.github/agents/planner.agent.md +16 -34
  225. package/templates/repo/.github/agents/project-manager.agent.md +24 -0
  226. package/templates/repo/.github/agents/researcher.agent.md +15 -13
  227. package/templates/repo/.github/agents/tester.agent.md +43 -20
  228. package/templates/repo/.github/agents/ui-ux-designer.agent.md +16 -49
  229. package/templates/repo/.github/prompts/ck-ask.prompt.md +0 -1
  230. package/templates/repo/.github/prompts/ck-bootstrap.prompt.md +0 -3
  231. package/templates/repo/.github/prompts/ck-brainstorm.prompt.md +0 -1
  232. package/templates/repo/.github/prompts/ck-cook.prompt.md +0 -1
  233. package/templates/repo/.github/prompts/ck-debug.prompt.md +0 -1
  234. package/templates/repo/.github/prompts/ck-deploy.prompt.md +22 -0
  235. package/templates/repo/.github/prompts/ck-docs.prompt.md +0 -1
  236. package/templates/repo/.github/prompts/ck-frontend.prompt.md +20 -0
  237. package/templates/repo/.github/prompts/ck-help.prompt.md +0 -1
  238. package/templates/repo/.github/prompts/ck-plan-fast.prompt.md +0 -3
  239. package/templates/repo/.github/prompts/ck-plan-hard.prompt.md +0 -3
  240. package/templates/repo/.github/prompts/ck-plan.prompt.md +0 -3
  241. package/templates/repo/.github/prompts/ck-project.prompt.md +20 -0
  242. package/templates/repo/.github/prompts/ck-review.prompt.md +0 -3
  243. package/templates/repo/.github/prompts/ck-scout.prompt.md +0 -1
  244. package/templates/repo/.github/prompts/ck-security.prompt.md +22 -0
  245. package/templates/repo/.github/prompts/ck-ship.prompt.md +22 -0
  246. package/templates/repo/.github/prompts/ck-test.prompt.md +0 -2
  247. package/templates/repo/.github/prompts/ck-watzup.prompt.md +0 -1
  248. package/templates/repo/.github/skills/agent-browser/SKILL.md +11 -8
  249. package/templates/repo/.github/skills/agent-browser/references/agent-browser-vs-chrome-devtools.md +112 -0
  250. package/templates/repo/.github/skills/bootstrap/SKILL.md +102 -0
  251. package/templates/repo/.github/skills/bootstrap/references/shared-phases.md +59 -0
  252. package/templates/repo/.github/skills/bootstrap/references/workflow-auto.md +52 -0
  253. package/templates/repo/.github/skills/bootstrap/references/workflow-fast.md +50 -0
  254. package/templates/repo/.github/skills/bootstrap/references/workflow-full.md +60 -0
  255. package/templates/repo/.github/skills/bootstrap/references/workflow-parallel.md +59 -0
  256. package/templates/repo/.github/skills/brainstorm/SKILL.md +63 -15
  257. package/templates/repo/.github/skills/code-review/SKILL.md +138 -135
  258. package/templates/repo/.github/skills/code-review/references/adversarial-review.md +223 -0
  259. package/templates/repo/.github/skills/code-review/references/checklist-workflow.md +100 -0
  260. package/templates/repo/.github/skills/code-review/references/checklists/api.md +52 -0
  261. package/templates/repo/.github/skills/code-review/references/checklists/base.md +100 -0
  262. package/templates/repo/.github/skills/code-review/references/checklists/web-app.md +54 -0
  263. package/templates/repo/.github/skills/code-review/references/code-review-reception.md +48 -144
  264. package/templates/repo/.github/skills/code-review/references/codebase-scan-workflow.md +30 -0
  265. package/templates/repo/.github/skills/code-review/references/edge-case-scouting.md +119 -0
  266. package/templates/repo/.github/skills/code-review/references/input-mode-resolution.md +135 -0
  267. package/templates/repo/.github/skills/code-review/references/parallel-review-workflow.md +76 -0
  268. package/templates/repo/.github/skills/code-review/references/requesting-code-review.md +19 -8
  269. package/templates/repo/.github/skills/code-review/references/spec-compliance-review.md +43 -0
  270. package/templates/repo/.github/skills/code-review/references/task-management-reviews.md +155 -0
  271. package/templates/repo/.github/skills/common/README.md +2 -12
  272. package/templates/repo/.github/skills/common/api_key_helper.py +7 -37
  273. package/templates/repo/.github/skills/context-engineering/SKILL.md +4 -3
  274. package/templates/repo/.github/skills/context-engineering/references/context-degradation.md +2 -2
  275. package/templates/repo/.github/skills/context-engineering/references/runtime-awareness.md +5 -47
  276. package/templates/repo/.github/skills/cook/README.md +13 -13
  277. package/templates/repo/.github/skills/cook/SKILL.md +86 -58
  278. package/templates/repo/.github/skills/cook/references/intent-detection.md +7 -7
  279. package/templates/repo/.github/skills/cook/references/review-cycle.md +2 -2
  280. package/templates/repo/.github/skills/cook/references/subagent-patterns.md +75 -0
  281. package/templates/repo/.github/skills/cook/references/workflow-steps.md +75 -23
  282. package/templates/repo/.github/skills/databases/SKILL.md +3 -30
  283. package/templates/repo/.github/skills/databases/db-design.md +1 -1
  284. package/templates/repo/.github/skills/debug/SKILL.md +47 -105
  285. package/templates/repo/.github/skills/debug/references/frontend-verification.md +103 -0
  286. package/templates/repo/.github/skills/debug/references/investigation-methodology.md +101 -0
  287. package/templates/repo/.github/skills/debug/references/log-and-ci-analysis.md +97 -0
  288. package/templates/repo/.github/skills/debug/references/performance-diagnostics.md +113 -0
  289. package/templates/repo/.github/skills/debug/references/reporting-standards.md +122 -0
  290. package/templates/repo/.github/skills/debug/references/task-management-debugging.md +155 -0
  291. package/templates/repo/.github/skills/deploy/SKILL.md +154 -0
  292. package/templates/repo/.github/skills/deploy/references/platform-config-templates.md +35 -0
  293. package/templates/repo/.github/skills/deploy/references/platforms/aws.md +58 -0
  294. package/templates/repo/.github/skills/deploy/references/platforms/cloudflare.md +41 -0
  295. package/templates/repo/.github/skills/deploy/references/platforms/coolify.md +32 -0
  296. package/templates/repo/.github/skills/deploy/references/platforms/digitalocean.md +45 -0
  297. package/templates/repo/.github/skills/deploy/references/platforms/dokploy.md +29 -0
  298. package/templates/repo/.github/skills/deploy/references/platforms/flyio.md +54 -0
  299. package/templates/repo/.github/skills/deploy/references/platforms/gcp.md +45 -0
  300. package/templates/repo/.github/skills/deploy/references/platforms/github-pages.md +56 -0
  301. package/templates/repo/.github/skills/deploy/references/platforms/heroku.md +31 -0
  302. package/templates/repo/.github/skills/deploy/references/platforms/netlify.md +39 -0
  303. package/templates/repo/.github/skills/deploy/references/platforms/railway.md +38 -0
  304. package/templates/repo/.github/skills/deploy/references/platforms/render.md +39 -0
  305. package/templates/repo/.github/skills/deploy/references/platforms/tose.md +35 -0
  306. package/templates/repo/.github/skills/deploy/references/platforms/vercel.md +37 -0
  307. package/templates/repo/.github/skills/deploy/references/platforms/vultr.md +27 -0
  308. package/templates/repo/.github/skills/devops/SKILL.md +6 -12
  309. package/templates/repo/.github/skills/docs-seeker/SKILL.md +2 -1
  310. package/templates/repo/.github/skills/docs-seeker/references/context7-patterns.md +4 -0
  311. package/templates/repo/.github/skills/docs-seeker/scripts/fetch-docs.js +1 -2
  312. package/templates/repo/.github/skills/docs-seeker/scripts/utils/env-loader.js +4 -4
  313. package/templates/repo/.github/skills/docs-seeker/workflows/library-search.md +1 -0
  314. package/templates/repo/.github/skills/fix/SKILL.md +141 -44
  315. package/templates/repo/.github/skills/fix/references/complexity-assessment.md +21 -9
  316. package/templates/repo/.github/skills/fix/references/diagnosis-protocol.md +133 -0
  317. package/templates/repo/.github/skills/fix/references/mode-selection.md +27 -11
  318. package/templates/repo/.github/skills/fix/references/parallel-exploration.md +35 -12
  319. package/templates/repo/.github/skills/fix/references/prevention-gate.md +87 -0
  320. package/templates/repo/.github/skills/fix/references/review-cycle.md +3 -3
  321. package/templates/repo/.github/skills/fix/references/skill-activation-matrix.md +64 -31
  322. package/templates/repo/.github/skills/fix/references/task-orchestration.md +110 -0
  323. package/templates/repo/.github/skills/fix/references/workflow-deep.md +110 -47
  324. package/templates/repo/.github/skills/fix/references/workflow-logs.md +46 -10
  325. package/templates/repo/.github/skills/fix/references/workflow-quick.md +43 -20
  326. package/templates/repo/.github/skills/fix/references/workflow-standard.md +75 -41
  327. package/templates/repo/.github/skills/fix/references/workflow-test.md +49 -10
  328. package/templates/repo/.github/skills/fix/references/workflow-ui.md +56 -18
  329. package/templates/repo/.github/skills/frontend-design/SKILL.md +49 -17
  330. package/templates/repo/.github/skills/frontend-design/references/ai-multimodal-overview.md +165 -0
  331. package/templates/repo/.github/skills/frontend-design/references/anti-slop-rules.md +103 -0
  332. package/templates/repo/.github/skills/frontend-design/references/asset-generation.md +284 -108
  333. package/templates/repo/.github/skills/frontend-design/references/bento-motion-engine.md +142 -0
  334. package/templates/repo/.github/skills/frontend-design/references/magicui-components.md +129 -0
  335. package/templates/repo/.github/skills/frontend-design/references/performance-guardrails.md +169 -0
  336. package/templates/repo/.github/skills/frontend-design/references/premium-design-patterns.md +93 -0
  337. package/templates/repo/.github/skills/frontend-design/references/redesign-audit-checklist.md +114 -0
  338. package/templates/repo/.github/skills/frontend-design/references/visual-analysis-overview.md +1 -1
  339. package/templates/repo/.github/skills/frontend-design/references/workflow-3d.md +98 -0
  340. package/templates/repo/.github/skills/frontend-design/references/workflow-describe.md +4 -3
  341. package/templates/repo/.github/skills/frontend-design/references/workflow-immersive.md +82 -0
  342. package/templates/repo/.github/skills/frontend-design/references/workflow-quick.md +10 -12
  343. package/templates/repo/.github/skills/frontend-design/references/workflow-screenshot.md +9 -8
  344. package/templates/repo/.github/skills/frontend-design/references/workflow-video.md +74 -0
  345. package/templates/repo/.github/skills/frontend-development/SKILL.md +400 -0
  346. package/templates/repo/.github/skills/frontend-development/resources/common-patterns.md +331 -0
  347. package/templates/repo/.github/skills/frontend-development/resources/complete-examples.md +872 -0
  348. package/templates/repo/.github/skills/frontend-development/resources/component-patterns.md +502 -0
  349. package/templates/repo/.github/skills/frontend-development/resources/data-fetching.md +767 -0
  350. package/templates/repo/.github/skills/frontend-development/resources/file-organization.md +502 -0
  351. package/templates/repo/.github/skills/frontend-development/resources/loading-and-error-states.md +501 -0
  352. package/templates/repo/.github/skills/frontend-development/resources/performance.md +406 -0
  353. package/templates/repo/.github/skills/frontend-development/resources/routing-guide.md +364 -0
  354. package/templates/repo/.github/skills/frontend-development/resources/styling-guide.md +428 -0
  355. package/templates/repo/.github/skills/frontend-development/resources/typescript-standards.md +418 -0
  356. package/templates/repo/.github/skills/git/SKILL.md +18 -4
  357. package/templates/repo/.github/skills/git/references/commit-standards.md +3 -3
  358. package/templates/repo/.github/skills/git/references/workflow-commit.md +3 -3
  359. package/templates/repo/.github/skills/git/references/workflow-merge.md +1 -1
  360. package/templates/repo/.github/skills/git/references/workflow-pr.md +1 -1
  361. package/templates/repo/.github/skills/git/references/workflow-push.md +1 -1
  362. package/templates/repo/.github/skills/mcp-management/README.md +18 -18
  363. package/templates/repo/.github/skills/mcp-management/SKILL.md +16 -15
  364. package/templates/repo/.github/skills/mcp-management/references/configuration.md +4 -4
  365. package/templates/repo/.github/skills/mcp-management/references/gemini-cli-integration.md +12 -12
  366. package/templates/repo/.github/skills/mcp-management/scripts/.env.example +2 -2
  367. package/templates/repo/.github/skills/mcp-management/scripts/mcp-client.ts +1 -1
  368. package/templates/repo/.github/skills/mermaidjs-v11/SKILL.md +1 -0
  369. package/templates/repo/.github/skills/planning/SKILL.md +122 -91
  370. package/templates/repo/.github/skills/planning/references/archive-workflow.md +53 -0
  371. package/templates/repo/.github/skills/planning/references/codebase-understanding.md +1 -1
  372. package/templates/repo/.github/skills/planning/references/output-standards.md +17 -13
  373. package/templates/repo/.github/skills/planning/references/plan-organization.md +52 -30
  374. package/templates/repo/.github/skills/planning/references/red-team-personas.md +69 -0
  375. package/templates/repo/.github/skills/planning/references/red-team-workflow.md +77 -0
  376. package/templates/repo/.github/skills/planning/references/scope-challenge.md +90 -0
  377. package/templates/repo/.github/skills/planning/references/task-management.md +134 -0
  378. package/templates/repo/.github/skills/planning/references/validate-question-framework.md +80 -0
  379. package/templates/repo/.github/skills/planning/references/validate-workflow.md +65 -0
  380. package/templates/repo/.github/skills/planning/references/workflow-modes.md +154 -0
  381. package/templates/repo/.github/skills/problem-solving/SKILL.md +1 -0
  382. package/templates/repo/.github/skills/project-management/SKILL.md +133 -0
  383. package/templates/repo/.github/skills/project-management/references/documentation-triggers.md +60 -0
  384. package/templates/repo/.github/skills/project-management/references/hydration-workflow.md +89 -0
  385. package/templates/repo/.github/skills/project-management/references/progress-tracking.md +120 -0
  386. package/templates/repo/.github/skills/project-management/references/reporting-patterns.md +94 -0
  387. package/templates/repo/.github/skills/project-management/references/task-operations.md +87 -0
  388. package/templates/repo/.github/skills/repomix/SKILL.md +3 -2
  389. package/templates/repo/.github/skills/repomix/references/usage-patterns.md +2 -2
  390. package/templates/repo/.github/skills/repomix/scripts/README.md +1 -1
  391. package/templates/repo/.github/skills/repomix/scripts/repomix_batch.py +2 -2
  392. package/templates/repo/.github/skills/research/SKILL.md +7 -4
  393. package/templates/repo/.github/skills/scout/SKILL.md +24 -24
  394. package/templates/repo/.github/skills/scout/references/external-scouting.md +17 -17
  395. package/templates/repo/.github/skills/scout/references/internal-scouting.md +9 -9
  396. package/templates/repo/.github/skills/scout/references/task-management-scouting.md +125 -0
  397. package/templates/repo/.github/skills/security/SKILL.md +139 -0
  398. package/templates/repo/.github/skills/security/references/stride-owasp-checklist.md +128 -0
  399. package/templates/repo/.github/skills/sequential-thinking/README.md +3 -3
  400. package/templates/repo/.github/skills/sequential-thinking/SKILL.md +2 -0
  401. package/templates/repo/.github/skills/sequential-thinking/package-lock.json +3652 -0
  402. package/templates/repo/.github/skills/sequential-thinking/package.json +1 -1
  403. package/templates/repo/.github/skills/ship/SKILL.md +116 -0
  404. package/templates/repo/.github/skills/ship/references/auto-detect.md +103 -0
  405. package/templates/repo/.github/skills/ship/references/pr-template.md +90 -0
  406. package/templates/repo/.github/skills/ship/references/ship-workflow.md +241 -0
  407. package/templates/repo/.github/skills/test/SKILL.md +111 -0
  408. package/templates/repo/.github/skills/test/references/report-format.md +58 -0
  409. package/templates/repo/.github/skills/test/references/test-execution-workflow.md +103 -0
  410. package/templates/repo/.github/skills/test/references/ui-testing-workflow.md +65 -0
  411. package/templates/repo/.github/skills/ui-styling/SKILL.md +2 -0
  412. package/templates/repo/.github/skills/web-testing/SKILL.md +8 -60
  413. package/docs/guide-next-steps-speckit-cokit-implementation.md +0 -187
  414. package/prompts/ck-spec-analyze.prompt.md +0 -201
  415. package/prompts/ck-spec-checklist.prompt.md +0 -308
  416. package/prompts/ck-spec-clarify.prompt.md +0 -190
  417. package/prompts/ck-spec-constitution.prompt.md +0 -92
  418. package/prompts/ck-spec-implement.prompt.md +0 -157
  419. package/prompts/ck-spec-plan.prompt.md +0 -95
  420. package/prompts/ck-spec-specify.prompt.md +0 -261
  421. package/prompts/ck-spec-tasks.prompt.md +0 -181
  422. package/templates/repo/.github/AGENTS.md +0 -103
  423. package/templates/repo/.github/prompts/ck-spec-analyze.prompt.md +0 -201
  424. package/templates/repo/.github/prompts/ck-spec-checklist.prompt.md +0 -308
  425. package/templates/repo/.github/prompts/ck-spec-clarify.prompt.md +0 -190
  426. package/templates/repo/.github/prompts/ck-spec-constitution.prompt.md +0 -92
  427. package/templates/repo/.github/prompts/ck-spec-implement.prompt.md +0 -157
  428. package/templates/repo/.github/prompts/ck-spec-plan.prompt.md +0 -95
  429. package/templates/repo/.github/prompts/ck-spec-specify.prompt.md +0 -261
  430. package/templates/repo/.github/prompts/ck-spec-tasks.prompt.md +0 -181
  431. package/templates/repo/.github/skills/databases/stacks/bigquery.md +0 -231
  432. package/templates/repo/.github/skills/databases/stacks/d1_cloudflare.md +0 -137
  433. package/templates/repo/.github/skills/databases/stacks/mysql.md +0 -216
  434. package/templates/repo/.github/skills/databases/stacks/postgres.md +0 -235
  435. package/templates/repo/.github/skills/databases/stacks/sqlite.md +0 -244
  436. package/templates/repo/.github/skills/mcp-management/assets/tools.json +0 -3146
  437. package/templates/repo/.github/skills/mcp-management/scripts/dist/analyze-tools.js +0 -70
  438. package/templates/repo/.github/skills/mcp-management/scripts/dist/cli.js +0 -160
  439. package/templates/repo/.github/skills/mcp-management/scripts/dist/mcp-client.js +0 -183
  440. package/templates/repo/.github/skills/ui-styling/LICENSE.txt +0 -202
  441. package/templates/repo/.github/spec-kit/memory/constitution.md +0 -50
  442. package/templates/repo/.github/spec-kit/scripts/bash/check-prerequisites.sh +0 -166
  443. package/templates/repo/.github/spec-kit/scripts/bash/common.sh +0 -156
  444. package/templates/repo/.github/spec-kit/scripts/bash/create-new-feature.sh +0 -297
  445. package/templates/repo/.github/spec-kit/scripts/bash/setup-plan.sh +0 -61
  446. package/templates/repo/.github/spec-kit/scripts/bash/update-agent-context.sh +0 -799
  447. package/templates/repo/.github/spec-kit/scripts/powershell/check-prerequisites.ps1 +0 -148
  448. package/templates/repo/.github/spec-kit/scripts/powershell/common.ps1 +0 -137
  449. package/templates/repo/.github/spec-kit/scripts/powershell/create-new-feature.ps1 +0 -283
  450. package/templates/repo/.github/spec-kit/scripts/powershell/setup-plan.ps1 +0 -61
  451. package/templates/repo/.github/spec-kit/scripts/powershell/update-agent-context.ps1 +0 -448
  452. package/templates/repo/.github/spec-kit/templates/agent-file-template.md +0 -28
  453. package/templates/repo/.github/spec-kit/templates/checklist-template.md +0 -40
  454. package/templates/repo/.github/spec-kit/templates/commands/analyze.md +0 -187
  455. package/templates/repo/.github/spec-kit/templates/commands/checklist.md +0 -297
  456. package/templates/repo/.github/spec-kit/templates/commands/clarify.md +0 -184
  457. package/templates/repo/.github/spec-kit/templates/commands/constitution.md +0 -82
  458. package/templates/repo/.github/spec-kit/templates/commands/implement.md +0 -138
  459. package/templates/repo/.github/spec-kit/templates/commands/plan.md +0 -95
  460. package/templates/repo/.github/spec-kit/templates/commands/specify.md +0 -261
  461. package/templates/repo/.github/spec-kit/templates/commands/tasks.md +0 -140
  462. package/templates/repo/.github/spec-kit/templates/commands/taskstoissues.md +0 -33
  463. package/templates/repo/.github/spec-kit/templates/plan-template.md +0 -104
  464. package/templates/repo/.github/spec-kit/templates/spec-template.md +0 -115
  465. package/templates/repo/.github/spec-kit/templates/tasks-phase-template.md +0 -42
  466. package/templates/repo/.github/spec-kit/templates/tasks-template.md +0 -268
  467. package/templates/repo/.github/spec-kit/templates/vscode-settings.json +0 -14
@@ -2,10 +2,6 @@
2
2
 
3
3
  ## Plan File Format
4
4
 
5
- **Important:**
6
- - DO NOT create plans or reports in USER directory.
7
- - ALWAYS create plans or reports in CURRENT WORKING PROJECT DIRECTORY.
8
-
9
5
  ### YAML Frontmatter (Required for plan.md)
10
6
 
11
7
  All `plan.md` files MUST include YAML frontmatter at the top:
@@ -20,6 +16,8 @@ effort: 4h # Estimated total effort
20
16
  issue: 74 # GitHub issue number (if applicable)
21
17
  branch: kai/feat/feature-name
22
18
  tags: [frontend, api] # Category tags
19
+ blockedBy: [] # Plan dirs this plan waits on (e.g., [260301-1200-auth-system])
20
+ blocks: [] # Plan dirs this plan blocks (e.g., [260228-0900-user-dashboard])
23
21
  created: 2025-12-16
24
22
  ---
25
23
  ```
@@ -35,6 +33,8 @@ When creating plans, auto-populate these fields:
35
33
  - **issue**: Parse from branch name or context
36
34
  - **branch**: Current git branch (`git branch --show-current`)
37
35
  - **tags**: Infer from task keywords (e.g., frontend, backend, api, auth)
36
+ - **blockedBy**: Detected during pre-creation scan (empty `[]` if none)
37
+ - **blocks**: Detected during pre-creation scan (empty `[]` if none)
38
38
  - **created**: Today's date in YYYY-MM-DD format
39
39
 
40
40
  ### Tag Vocabulary (Recommended)
@@ -44,6 +44,18 @@ Use these predefined tags for consistency:
44
44
  - **Domain**: `frontend`, `backend`, `database`, `api`, `auth`
45
45
  - **Scope**: `critical`, `tech-debt`, `experimental`
46
46
 
47
+ ### Task Naming Conventions
48
+
49
+ **subject** (imperative): Action verb + deliverable, <60 chars
50
+ Examples: "Setup database migrations", "Implement OAuth2 flow"
51
+
52
+ **activeForm** (continuous): Present participle of subject
53
+ Examples: "Setting up database", "Implementing OAuth2"
54
+
55
+ **description**: 1-2 sentences, concrete deliverables, reference phase file
56
+
57
+ See `task-management.md` for full TaskCreate patterns and metadata.
58
+
47
59
  ## Task Breakdown
48
60
 
49
61
  - Transform complex requirements into manageable, actionable tasks
@@ -55,10 +67,6 @@ Use these predefined tags for consistency:
55
67
 
56
68
  ### File Management
57
69
 
58
- **Important:**
59
- - DO NOT create plans or reports in USER directory.
60
- - ALWAYS create plans or reports in CURRENT WORKING PROJECT DIRECTORY.
61
-
62
70
  List affected files with:
63
71
  - Full paths (not relative)
64
72
  - Action type (modify/create/delete)
@@ -77,10 +85,6 @@ List affected files with:
77
85
 
78
86
  ## Output Requirements
79
87
 
80
- **Important:**
81
- - DO NOT create plans or reports in USER directory.
82
- - ALWAYS create plans or reports in CURRENT WORKING PROJECT DIRECTORY.
83
-
84
88
  ### What Planners Do
85
89
  - Create plans ONLY (no implementation)
86
90
  - Provide plan file path and summary
@@ -98,7 +102,7 @@ List affected files with:
98
102
  - Prioritize actionable info
99
103
 
100
104
  ### Unresolved Questions
101
- **IMPORTANT:** List unresolved questions at the end of your response and ask users directly. Wait for their answers before finalizing.
105
+ **IMPORTANT:** Use asking the user to ask users for unresolved questions at the end
102
106
  - Questions needing clarification
103
107
  - Technical decisions requiring input
104
108
  - Unknowns impacting implementation
@@ -4,10 +4,6 @@
4
4
 
5
5
  ### Plan Location
6
6
 
7
- **Important:**
8
- - DO NOT create plans or reports in USER directory.
9
- - ALWAYS create plans or reports in CURRENT WORKING PROJECT DIRECTORY.
10
-
11
7
  Use `Plan dir:` from `## Naming` section injected by hooks. This is the full computed path.
12
8
 
13
9
  **Example:** `plans/251101-1505-authentication/` or `ai_docs/feature/MRR-1453/`
@@ -34,34 +30,48 @@ IN CURRENT WORKING PROJECT DIRECTORY:
34
30
  └── phase-07-write-tests.md # Tests
35
31
  ```
36
32
 
33
+ ### Task Hydration
34
+
35
+ After creating plan.md and phase files, hydrate tasks (unless `--no-tasks`):
36
+ 1. TaskCreate per phase with `addBlockedBy` dependency chain
37
+ 2. Add critical step tasks for high-risk items
38
+ 3. See `task-management.md` for patterns and cook handoff protocol
39
+
37
40
  ### Active Plan State Tracking
38
41
 
39
- Check the `## Plan Context` section injected by hooks:
40
- - **"Plan: {path}"** = Active plan - use for reports
41
- - **"Suggested: {path}"** = Branch-matched, hint only - do NOT auto-use
42
- - **"Plan: none"** = No active plan
42
+ See SKILL.md "Active Plan State" section for full rules. Key points:
43
+ - Check `## Plan Context` injected by hooks for active/suggested/none state
44
+ - Active plans use plan-specific reports path; suggested plans use default path
43
45
 
44
- **Pre-Creation Check:**
45
- 1. If "Plan:" shows a path → ask "Continue with existing plan? [Y/n]"
46
- 2. If "Suggested:" shows a path → inform user (hint only, do NOT auto-use)
47
- 3. If "Plan: none" → create new plan using naming from `## Naming` section
46
+ ## Plan Creation via CLI
48
47
 
49
- **After Creating Plan:**
50
- ```bash
51
- # Update session state so agents get the new plan context:
52
- node $HOME/.copilot/scripts/set-active-plan.cjs {plan-dir}
53
- ```
48
+ After determining phases from research/design:
54
49
 
55
- **Report Output Rules:**
56
- 1. Use `Report:` and `Plan dir:` from `## Naming` section
57
- 2. Active plans use plan-specific reports path
58
- 3. Suggested plans use default reports path to prevent old plan pollution
50
+ 1. **Scaffold via CLI:**
51
+ ```bash
52
+ ck plan create \
53
+ --title "{plan title}" \
54
+ --phases "{Phase1},{Phase2},{Phase3}" \
55
+ --dir {plan-dir} \
56
+ --priority {P1|P2|P3} \
57
+ [--issue {N}]
58
+ ```
59
59
 
60
- ## File Structure
60
+ 2. **Fill content sections** in plan.md via Edit tool:
61
+ - `## Overview` — brief description
62
+ - `## Dependencies` — cross-plan dependencies
63
+
64
+ 3. **Fill each phase-XX.md** with:
65
+ - Architecture, implementation steps, success criteria
66
+ - Requirements, risk assessment, security considerations
61
67
 
62
- **Important:**
63
- - DO NOT create plans or reports in USER directory.
64
- - ALWAYS create plans or reports in CURRENT WORKING PROJECT DIRECTORY.
68
+ 4. **NEVER edit the Phases table directly** — it's CLI-owned.
69
+ Use `ck plan check/uncheck/add-phase` for structural changes.
70
+
71
+ **Fallback:** If `ck` CLI is not available (e.g., user hasn't installed),
72
+ write plan.md directly using the canonical 3-column format.
73
+
74
+ ## File Structure
65
75
 
66
76
  ### Overview Plan (plan.md)
67
77
 
@@ -78,6 +88,8 @@ effort: 8h
78
88
  issue: 123
79
89
  branch: kai/feat/oauth-auth
80
90
  tags: [auth, backend, security]
91
+ blockedBy: []
92
+ blocks: [260115-0900-user-dashboard]
81
93
  created: 2025-12-16
82
94
  ---
83
95
 
@@ -87,13 +99,23 @@ created: 2025-12-16
87
99
 
88
100
  Brief description of what this plan accomplishes.
89
101
 
102
+ ## Cross-Plan Dependencies
103
+
104
+ | Relationship | Plan | Status |
105
+ |-------------|------|--------|
106
+ | Blocks | [260115-0900-user-dashboard](../260115-0900-user-dashboard/plan.md) | pending |
107
+
90
108
  ## Phases
91
109
 
92
- | # | Phase | Status | Effort | Link |
93
- |---|-------|--------|--------|------|
94
- | 1 | Setup | Pending | 2h | [phase-01](./phase-01-setup.md) |
95
- | 2 | Implementation | Pending | 4h | [phase-02](./phase-02-impl.md) |
96
- | 3 | Testing | Pending | 2h | [phase-03](./phase-03-test.md) |
110
+ | Phase | Name | Status |
111
+ |-------|------|--------|
112
+ | 1 | [Setup Environment](./phase-01-setup.md) | Pending |
113
+ | 2 | [Core Implementation](./phase-02-impl.md) | Pending |
114
+ | 3 | [Testing & Validation](./phase-03-test.md) | Pending |
115
+
116
+ <!-- IMPORTANT: Link text MUST be human-readable names (not filenames).
117
+ Bad: [phase-01-setup.md](./phase-01-setup.md)
118
+ Good: [Setup Environment](./phase-01-setup.md) -->
97
119
 
98
120
  ## Dependencies
99
121
 
@@ -0,0 +1,69 @@
1
+ # Red Team Personas
2
+
3
+ ## Available Lenses
4
+
5
+ | Reviewer | Lens | Focus |
6
+ |----------|------|-------|
7
+ | **Security Adversary** | Attacker mindset | Auth bypass, injection, data exposure, privilege escalation, supply chain, OWASP top 10 |
8
+ | **Failure Mode Analyst** | Murphy's Law | Race conditions, data loss, cascading failures, recovery gaps, deployment risks, rollback holes |
9
+ | **Assumption Destroyer** | Skeptic | Unstated dependencies, false "will work" claims, missing error paths, scale assumptions, integration assumptions |
10
+ | **Scope & Complexity Critic** | YAGNI enforcer | Over-engineering, premature abstraction, unnecessary complexity, missing MVP cuts, scope creep, gold plating |
11
+
12
+ ## Reviewer Prompt Template
13
+
14
+ Each reviewer prompt MUST include:
15
+
16
+ 1. This override: `"IGNORE your default code-review instructions. You are reviewing a PLAN DOCUMENT, not code. There is no code to lint, build, or test. Focus exclusively on plan quality."`
17
+ 2. Their specific adversarial lens and persona
18
+ 3. The plan file paths so they can read original files directly
19
+ 4. These instructions:
20
+
21
+ ```
22
+ You are a hostile reviewer. Your job is to DESTROY this plan.
23
+ Adopt the {LENS_NAME} perspective. Find every flaw you can.
24
+
25
+ Rules:
26
+ - Be specific: cite exact phase/section where the flaw lives
27
+ - Be concrete: describe the failure scenario, not just "could be a problem"
28
+ - Rate severity: Critical (blocks success) | High (significant risk) | Medium (notable concern)
29
+ - Skip trivial observations (style, naming, formatting)
30
+ - No praise. No "overall looks good". Only findings.
31
+ - 5-10 findings per reviewer. Quality over quantity.
32
+
33
+ Output format per finding:
34
+ ## Finding {N}: {title}
35
+ - **Severity:** Critical | High | Medium
36
+ - **Location:** Phase {X}, section "{name}"
37
+ - **Flaw:** {what's wrong}
38
+ - **Failure scenario:** {concrete description of how this fails}
39
+ - **Evidence:** {quote from plan or missing element}
40
+ - **Suggested fix:** {brief recommendation}
41
+ ```
42
+
43
+ ## Adjudication Format
44
+
45
+ ```markdown
46
+ ## Red Team Findings
47
+
48
+ ### Finding 1: {title} — {SEVERITY}
49
+ **Reviewer:** {lens name}
50
+ **Location:** {phase/section}
51
+ **Flaw:** {description}
52
+ **Failure scenario:** {concrete scenario}
53
+ **Disposition:** Accept | Reject
54
+ **Rationale:** {why accept/reject — be specific}
55
+ ```
56
+
57
+ ## Plan.md Section Format
58
+
59
+ ```markdown
60
+ ## Red Team Review
61
+
62
+ ### Session — {YYYY-MM-DD}
63
+ **Findings:** {total} ({accepted} accepted, {rejected} rejected)
64
+ **Severity breakdown:** {N} Critical, {N} High, {N} Medium
65
+
66
+ | # | Finding | Severity | Disposition | Applied To |
67
+ |---|---------|----------|-------------|------------|
68
+ | 1 | {title} | Critical | Accept | Phase 2 |
69
+ ```
@@ -0,0 +1,77 @@
1
+ # Red Team Review
2
+
3
+ Adversarially review an implementation plan by spawning parallel reviewer subagents that try to tear it apart. Each reviewer adopts a different hostile lens. You then adjudicate findings, and the user decides which to apply.
4
+
5
+ **Mindset:** Like hiring someone who hates the implementer to destroy their work.
6
+
7
+ ## Plan Resolution
8
+
9
+ 1. If `$ARGUMENTS` provided → Use that path
10
+ 2. Else check `## Plan Context` section → Use active plan path
11
+ 3. If no plan found → Ask user to specify path or run `/ck-plan` first
12
+
13
+ ## Workflow
14
+
15
+ ### Step 1: Read Plan Files
16
+ Read the plan directory:
17
+ - `plan.md` — Overview, phases, dependencies
18
+ - `phase-*.md` — All phase files (full content)
19
+
20
+ ### Step 2: Scale Reviewer Count
21
+
22
+ | Phase Count | Reviewers | Lenses Selected |
23
+ |-------------|-----------|-----------------|
24
+ | 1-2 phases | 2 | Security Adversary + Assumption Destroyer |
25
+ | 3-5 phases | 3 | + Failure Mode Analyst |
26
+ | 6+ phases | 4 | + Scope & Complexity Critic (all lenses) |
27
+
28
+ ### Step 3: Define Adversarial Lenses
29
+ Load: `references/red-team-personas.md`
30
+
31
+ ### Step 4: Spawn Reviewers
32
+ Launch reviewers simultaneously via Task tool with `subagent_type: "code-reviewer"`.
33
+ Each reviewer prompt MUST include override, persona, plan file paths, and hostile instructions.
34
+ Load: `references/red-team-personas.md` for reviewer prompt template.
35
+
36
+ ### Step 5: Collect, Deduplicate & Cap
37
+ 1. Collect all findings
38
+ 2. Deduplicate overlapping findings
39
+ 3. Sort by severity: Critical → High → Medium
40
+ 4. Cap at 15 findings
41
+
42
+ ### Step 6: Adjudicate
43
+ For each finding, evaluate and propose: **Accept** or **Reject**.
44
+
45
+ ### Step 7: User Review
46
+ Present by asking the user:
47
+ - "Looks good, apply accepted findings"
48
+ - "Let me review each one"
49
+ - "Reject all, plan is fine"
50
+
51
+ **If "Let me review each one":**
52
+ For each finding marked Accept, ask by asking the user:
53
+ - Options: "Yes, apply" | "No, reject" | "Modify suggestion"
54
+
55
+ **If "Modify suggestion":**
56
+ Ask by asking the user: "Describe your modification to this finding's suggested fix:"
57
+ (user provides free text via "Other" option)
58
+ Record the modified suggestion. Set disposition to "Accept (modified)" in the Red Team Review table.
59
+
60
+ ### Step 8: Apply to Plan
61
+ For accepted findings, edit target phase files inline with marker.
62
+ Add `## Red Team Review` section to `plan.md`.
63
+
64
+ ## Output
65
+ - Total findings by severity
66
+ - Accepted vs rejected count
67
+ - Files modified
68
+ - Key risks addressed
69
+
70
+ ## Next Steps (MANDATORY)
71
+ Remind user to run `/ck-plan validate` then `/ck-cook --auto`.
72
+
73
+ ## Important Notes
74
+ - Reviewers must be HOSTILE, not helpful
75
+ - Deduplicate aggressively
76
+ - Adjudication must be evidence-based
77
+ - Reviewers read plan files directly
@@ -0,0 +1,90 @@
1
+ # Step 0: Scope Challenge
2
+
3
+ Run BEFORE research or design. Forces intent clarification before investing time.
4
+
5
+ **Inspired by:** gstack `/plan-eng-review` Step 0 + `/plan-ceo-review` scope modes.
6
+
7
+ ## Skip Conditions
8
+
9
+ Skip Step 0 when:
10
+ - `--fast` mode explicitly set (user already wants minimal)
11
+ - Task is clearly trivial (single file fix, typo, config change)
12
+ - User says "just plan it", "quick", or similar urgency signal
13
+ - Task description is under 20 words and unambiguous
14
+
15
+ ## The 3 Questions
16
+
17
+ Before planning, answer these concisely:
18
+
19
+ ### 1. What already exists?
20
+ - Scan codebase for code that partially/fully solves sub-problems
21
+ - Check existing utilities, services, patterns that can be reused
22
+ - Flag if plan would rebuild something that exists
23
+
24
+ ### 2. What is the minimum change set?
25
+ - Identify work that could be deferred without blocking core goal
26
+ - Flag scope creep: nice-to-haves disguised as requirements
27
+ - Be ruthless about what's truly necessary vs aspirational
28
+
29
+ ### 3. Complexity check
30
+ - If plan would touch **>8 files**: challenge whether same goal achievable with fewer
31
+ - If plan would introduce **>2 new classes/services**: smell — justify each
32
+ - If plan would have **>3 phases**: consider if phases can be merged
33
+
34
+ ## Scope Modes
35
+
36
+ After answering the 3 questions, present by asking the user:
37
+
38
+ **Header:** "Scope Challenge"
39
+ **Question:** "Based on analysis, how should we scope this plan?"
40
+
41
+ | Option | Label | Description |
42
+ |--------|-------|-------------|
43
+ | A | **SCOPE EXPANSION** | Dream big — explore the 10-star version, research deeply, add delight features |
44
+ | B | **HOLD SCOPE** | Scope is right — focus on bulletproof execution, edge cases, test coverage |
45
+ | C | **SCOPE REDUCTION** | Strip to essentials — defer everything non-blocking, minimal phases |
46
+
47
+ ## After Selection
48
+
49
+ ### EXPANSION selected
50
+ - Suggest `--hard` or `--two` mode if not already set
51
+ - Research phase should explore alternatives and adjacent features
52
+ - Plan should include "stretch" items clearly labeled
53
+ - More phases are acceptable
54
+
55
+ ### HOLD selected
56
+ - Proceed with auto-detected mode
57
+ - Respect scope exactly — no silent reduction or expansion
58
+ - Focus on failure modes, edge cases, test coverage
59
+ - Standard number of phases
60
+
61
+ ### REDUCTION selected
62
+ - Suggest `--fast` mode if not already set
63
+ - Propose minimal version that achieves core goal
64
+ - Defer everything non-critical to "NOT in scope" section
65
+ - Fewer phases, simpler architecture
66
+
67
+ ## Critical Rule
68
+
69
+ **Once user selects a mode, RESPECT IT.**
70
+
71
+ Do not:
72
+ - Silently reduce scope when user chose HOLD or EXPANSION
73
+ - Silently expand scope when user chose REDUCTION
74
+ - Re-argue for different scope in later review sections
75
+
76
+ Raise scope concerns ONCE in Step 0. After that, commit to chosen scope and optimize within it.
77
+
78
+ ## Output Format
79
+
80
+ After scope challenge, output brief summary before proceeding:
81
+
82
+ ```
83
+ Scope Challenge:
84
+ - Existing code: [what was found that's reusable]
85
+ - Minimum changes: [what's essential vs deferrable]
86
+ - Complexity: [estimated files, new abstractions]
87
+ - Selected mode: [EXPANSION/HOLD/REDUCTION]
88
+ ```
89
+
90
+ Then proceed to mode detection and research phase.
@@ -0,0 +1,134 @@
1
+ # Task Management Integration
2
+
3
+ ## Session-Scoped Reality
4
+
5
+ Tasks are **ephemeral** — they die when the session ends. `tasks/` holds lock files only, NOT task data. Plan files (plan.md, phase-XX.md with checkboxes) are the **persistent** layer.
6
+
7
+ **Tool Availability:** `TaskCreate`/`TaskUpdate`/`TaskGet`/`TaskList` are **CLI-only** — disabled in VSCode extension (`isTTY` check). If these tools error, use `TodoWrite` for progress tracking. Plan files remain the source of truth; hydration is an optimization, not a requirement.
8
+
9
+ The **hydration pattern** bridges sessions:
10
+
11
+ ```
12
+ ┌──────────────────┐ Hydrate ┌───────────────────┐
13
+ │ Plan Files │ ─────────► │ Tasks │
14
+ │ (persistent) │ │ (session-scoped) │
15
+ │ [ ] Phase 1 │ │ ◼ pending │
16
+ │ [ ] Phase 2 │ │ ◼ pending │
17
+ └──────────────────┘ └───────────────────┘
18
+ │ Work
19
+
20
+ ┌──────────────────┐ Sync-back ┌───────────────────┐
21
+ │ Plan Files │ ◄───────── │ Task Updates │
22
+ │ (updated) │ │ (completed) │
23
+ │ [x] Phase 1 │ │ ✓ completed │
24
+ │ [ ] Phase 2 │ │ ◼ in_progress │
25
+ └──────────────────┘ └───────────────────┘
26
+ ```
27
+
28
+ - **Hydrate:** Read plan files → TaskCreate per unchecked `[ ]` item
29
+ - **Work:** TaskUpdate tracks in_progress/completed in real-time
30
+ - **Sync-back:** Update `[ ]` → `[x]` in phase files, update plan.md frontmatter status
31
+
32
+ ## When to Create Tasks
33
+
34
+ **Default:** On — auto-hydrate after plan files are written
35
+ **Skip with:** `--no-tasks` flag in planning request
36
+ **3-Task Rule:** <3 phases → skip tasks (overhead exceeds benefit)
37
+
38
+ | Scenario | Tasks? | Why |
39
+ |----------|--------|-----|
40
+ | Multi-phase feature (3+ phases) | Yes | Track progress, enable parallel |
41
+ | Complex dependencies between phases | Yes | Automatic unblocking |
42
+ | Plan will be executed by cook | Yes | Seamless handoff |
43
+ | Single-phase quick fix | No | Just do it directly |
44
+ | Trivial 1-2 step plan | No | Overhead not worth it |
45
+
46
+ ## Task Creation Patterns
47
+
48
+ ### Phase-Level TaskCreate
49
+
50
+ ```
51
+ TaskCreate(
52
+ subject: "Setup environment and dependencies",
53
+ activeForm: "Setting up environment",
54
+ description: "Install packages, configure env, setup database. See phase-01-setup.md",
55
+ metadata: { phase: 1, priority: "P1", effort: "2h",
56
+ planDir: "plans/260205-auth/", phaseFile: "phase-01-setup.md" }
57
+ )
58
+ ```
59
+
60
+ ### Critical Step TaskCreate
61
+
62
+ For high-risk/complex steps within phases:
63
+
64
+ ```
65
+ TaskCreate(
66
+ subject: "Implement OAuth2 token refresh",
67
+ activeForm: "Implementing token refresh",
68
+ description: "Handle token expiry, refresh flow, error recovery",
69
+ metadata: { phase: 3, step: "3.4", priority: "P1", effort: "1.5h",
70
+ planDir: "plans/260205-auth/", phaseFile: "phase-03-api.md",
71
+ critical: true, riskLevel: "high" },
72
+ addBlockedBy: ["{phase-2-task-id}"]
73
+ )
74
+ ```
75
+
76
+ ## Metadata & Naming Conventions
77
+
78
+ **Required metadata:** `phase`, `priority` (P1/P2/P3), `effort`, `planDir`, `phaseFile`
79
+ **Optional metadata:** `step`, `critical`, `riskLevel`, `dependencies`
80
+
81
+ **subject** (imperative): Action verb + deliverable, <60 chars
82
+ - "Setup database migrations", "Implement OAuth2 flow", "Create user profile endpoints"
83
+
84
+ **activeForm** (present continuous): Matches subject in -ing form
85
+ - "Setting up database", "Implementing OAuth2", "Creating user profile endpoints"
86
+
87
+ **description**: 1-2 sentences, concrete deliverables, reference phase file
88
+
89
+ ## Dependency Chains
90
+
91
+ ```
92
+ Phase 1 (no blockers) ← start here
93
+ Phase 2 (addBlockedBy: [P1-id]) ← auto-unblocked when P1 completes
94
+ Phase 3 (addBlockedBy: [P2-id])
95
+ Step 3.4 (addBlockedBy: [P2-id]) ← critical steps share phase dependency
96
+ ```
97
+
98
+ Use `addBlockedBy` for forward references ("I need X done first").
99
+ Use `addBlocks` when creating parent first ("X blocks these children").
100
+
101
+ ## Cook Handoff Protocol
102
+
103
+ ### Same-Session (planning → cook immediately)
104
+
105
+ 1. Planning hydrates tasks → tasks exist in session
106
+ 2. Cook Step 3: `TaskList` → finds existing tasks → picks them up
107
+ 3. Cook skips re-creation, begins implementation directly
108
+
109
+ ### Cross-Session (new session, resume plan)
110
+
111
+ 1. User runs `/ck-cook path/to/plan.md` in new session
112
+ 2. Cook Step 3: `TaskList` → empty (tasks died with old session)
113
+ 3. Cook reads plan files → re-hydrates from unchecked `[ ]` items
114
+ 4. Already-checked `[x]` items = done, skip those
115
+
116
+ ### Sync-Back (cook Step 6)
117
+
118
+ 1. `TaskUpdate` marks all session tasks complete.
119
+ 2. `project-manager` subagent runs full-plan sync-back:
120
+ - Sweep all `phase-XX-*.md` files.
121
+ - Reconcile completed tasks by metadata (`phase`, `phaseFile`).
122
+ - Backfill stale completed checkboxes `[ ]` → `[x]` across all phases (not only current phase).
123
+ - Update `plan.md` status/progress from actual checkbox state.
124
+ 3. If any completed task cannot be mapped to a phase file, report unresolved mappings before claiming completion.
125
+ 4. Git commit captures the state transition for next session.
126
+
127
+ ## Quality Checks
128
+
129
+ After task hydration, verify:
130
+ - Dependency chain has no cycles
131
+ - All phases have corresponding tasks
132
+ - Required metadata fields present (phase, priority, effort, planDir, phaseFile)
133
+ - Task count matches unchecked `[ ]` items in plan files
134
+ - Output: `✓ Hydrated [N] phase tasks + [M] critical step tasks with dependency chain`
@@ -0,0 +1,80 @@
1
+ # Validation Question Framework
2
+
3
+ ## Question Categories
4
+
5
+ | Category | Keywords to detect |
6
+ |----------|-------------------|
7
+ | **Architecture** | "approach", "pattern", "design", "structure", "database", "API" |
8
+ | **Assumptions** | "assume", "expect", "should", "will", "must", "default" |
9
+ | **Tradeoffs** | "tradeoff", "vs", "alternative", "option", "choice", "either/or" |
10
+ | **Risks** | "risk", "might", "could fail", "dependency", "blocker", "concern" |
11
+ | **Scope** | "phase", "MVP", "future", "out of scope", "nice to have" |
12
+
13
+ ## Question Format Rules
14
+
15
+ - Each question must have 2-4 concrete options
16
+ - Mark recommended option with "(Recommended)" suffix
17
+ - "Other" option is automatic
18
+ - Questions should surface implicit decisions
19
+
20
+ ## Example Questions
21
+
22
+ Category: Architecture
23
+ Question: "How should the validation results be persisted?"
24
+ Options:
25
+ 1. Save to plan.md frontmatter (Recommended)
26
+ 2. Create validation-answers.md
27
+ 3. Don't persist
28
+
29
+ Category: Assumptions
30
+ Question: "The plan assumes API rate limiting is not needed. Is this correct?"
31
+ Options:
32
+ 1. Yes, not needed for MVP
33
+ 2. No, add basic rate limiting now (Recommended)
34
+ 3. Defer to Phase 2
35
+
36
+ ## Validation Log Format
37
+
38
+ ```markdown
39
+ ## Validation Log
40
+
41
+ ### Session {N} — {YYYY-MM-DD}
42
+ **Trigger:** {what prompted this validation}
43
+ **Questions asked:** {count}
44
+
45
+ #### Questions & Answers
46
+
47
+ 1. **[{Category}]** {full question text}
48
+ - Options: {A} | {B} | {C}
49
+ - **Answer:** {user's choice}
50
+ - **Custom input:** {verbatim "Other" text if applicable}
51
+ - **Rationale:** {why this decision matters}
52
+
53
+ #### Confirmed Decisions
54
+ - {decision}: {choice} — {brief why}
55
+
56
+ #### Action Items
57
+ - [ ] {specific change needed}
58
+
59
+ #### Impact on Phases
60
+ - Phase {N}: {what needs updating and why}
61
+ ```
62
+
63
+ ## Recording Rules
64
+
65
+ - **Full question text**: exact question, not summary
66
+ - **All options**: every option presented
67
+ - **Verbatim custom input**: record "Other" text exactly
68
+ - **Rationale**: explain why decision affects implementation
69
+ - **Session numbering**: increment from last session
70
+ - **Trigger**: state what prompted validation
71
+
72
+ ## Section Mapping for Phase Propagation
73
+
74
+ | Change Type | Target Section |
75
+ |-------------|----------------|
76
+ | Requirements | Requirements |
77
+ | Architecture | Architecture |
78
+ | Scope | Overview / Implementation Steps |
79
+ | Risk | Risk Assessment |
80
+ | Unknown | Key Insights (new subsection) |