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.
Files changed (471) hide show
  1. package/README.md +9 -42
  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 +9 -15
  21. package/docs/cokit-slides.md +4 -9
  22. package/docs/cokit-sync-and-maintenance-guide.md +42 -190
  23. package/docs/cokit-team-presentation.md +6 -11
  24. package/docs/copilot-processing-flow.md +3 -3
  25. package/docs/migration-guide.md +15 -15
  26. package/docs/project-overview-pdr.md +6 -7
  27. package/docs/project-roadmap.md +13 -15
  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 +14 -20
  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/src/commands/add.js +0 -1
  218. package/src/commands/doctor.js +2 -2
  219. package/src/commands/init.js +19 -28
  220. package/src/commands/update.js +1 -1
  221. package/templates/repo/.github/agents/brainstormer.agent.md +28 -14
  222. package/templates/repo/.github/agents/code-reviewer.agent.md +101 -67
  223. package/templates/repo/.github/agents/code-simplifier.agent.md +36 -41
  224. package/templates/repo/.github/agents/debugger.agent.md +29 -24
  225. package/templates/repo/.github/agents/docs-manager.agent.md +15 -23
  226. package/templates/repo/.github/agents/fullstack-developer.agent.md +16 -6
  227. package/templates/repo/.github/agents/git-manager.agent.md +0 -3
  228. package/templates/repo/.github/agents/planner.agent.md +16 -34
  229. package/templates/repo/.github/agents/project-manager.agent.md +24 -0
  230. package/templates/repo/.github/agents/researcher.agent.md +15 -13
  231. package/templates/repo/.github/agents/tester.agent.md +43 -20
  232. package/templates/repo/.github/agents/ui-ux-designer.agent.md +16 -49
  233. package/templates/repo/.github/prompts/ck-ask.prompt.md +0 -1
  234. package/templates/repo/.github/prompts/ck-bootstrap.prompt.md +0 -3
  235. package/templates/repo/.github/prompts/ck-brainstorm.prompt.md +0 -1
  236. package/templates/repo/.github/prompts/ck-cook.prompt.md +0 -1
  237. package/templates/repo/.github/prompts/ck-debug.prompt.md +0 -1
  238. package/templates/repo/.github/prompts/ck-deploy.prompt.md +22 -0
  239. package/templates/repo/.github/prompts/ck-docs.prompt.md +0 -1
  240. package/templates/repo/.github/prompts/ck-frontend.prompt.md +20 -0
  241. package/templates/repo/.github/prompts/ck-help.prompt.md +0 -1
  242. package/templates/repo/.github/prompts/ck-plan-fast.prompt.md +0 -3
  243. package/templates/repo/.github/prompts/ck-plan-hard.prompt.md +0 -3
  244. package/templates/repo/.github/prompts/ck-plan.prompt.md +0 -3
  245. package/templates/repo/.github/prompts/ck-project.prompt.md +20 -0
  246. package/templates/repo/.github/prompts/ck-review.prompt.md +0 -3
  247. package/templates/repo/.github/prompts/ck-scout.prompt.md +0 -1
  248. package/templates/repo/.github/prompts/ck-security.prompt.md +22 -0
  249. package/templates/repo/.github/prompts/ck-ship.prompt.md +22 -0
  250. package/templates/repo/.github/prompts/ck-test.prompt.md +0 -2
  251. package/templates/repo/.github/prompts/ck-watzup.prompt.md +0 -1
  252. package/templates/repo/.github/skills/agent-browser/SKILL.md +11 -8
  253. package/templates/repo/.github/skills/agent-browser/references/agent-browser-vs-chrome-devtools.md +112 -0
  254. package/templates/repo/.github/skills/bootstrap/SKILL.md +102 -0
  255. package/templates/repo/.github/skills/bootstrap/references/shared-phases.md +59 -0
  256. package/templates/repo/.github/skills/bootstrap/references/workflow-auto.md +52 -0
  257. package/templates/repo/.github/skills/bootstrap/references/workflow-fast.md +50 -0
  258. package/templates/repo/.github/skills/bootstrap/references/workflow-full.md +60 -0
  259. package/templates/repo/.github/skills/bootstrap/references/workflow-parallel.md +59 -0
  260. package/templates/repo/.github/skills/brainstorm/SKILL.md +63 -15
  261. package/templates/repo/.github/skills/code-review/SKILL.md +138 -135
  262. package/templates/repo/.github/skills/code-review/references/adversarial-review.md +223 -0
  263. package/templates/repo/.github/skills/code-review/references/checklist-workflow.md +100 -0
  264. package/templates/repo/.github/skills/code-review/references/checklists/api.md +52 -0
  265. package/templates/repo/.github/skills/code-review/references/checklists/base.md +100 -0
  266. package/templates/repo/.github/skills/code-review/references/checklists/web-app.md +54 -0
  267. package/templates/repo/.github/skills/code-review/references/code-review-reception.md +48 -144
  268. package/templates/repo/.github/skills/code-review/references/codebase-scan-workflow.md +30 -0
  269. package/templates/repo/.github/skills/code-review/references/edge-case-scouting.md +119 -0
  270. package/templates/repo/.github/skills/code-review/references/input-mode-resolution.md +135 -0
  271. package/templates/repo/.github/skills/code-review/references/parallel-review-workflow.md +76 -0
  272. package/templates/repo/.github/skills/code-review/references/requesting-code-review.md +19 -8
  273. package/templates/repo/.github/skills/code-review/references/spec-compliance-review.md +43 -0
  274. package/templates/repo/.github/skills/code-review/references/task-management-reviews.md +155 -0
  275. package/templates/repo/.github/skills/common/README.md +2 -12
  276. package/templates/repo/.github/skills/common/api_key_helper.py +7 -37
  277. package/templates/repo/.github/skills/context-engineering/SKILL.md +4 -3
  278. package/templates/repo/.github/skills/context-engineering/references/context-degradation.md +2 -2
  279. package/templates/repo/.github/skills/context-engineering/references/runtime-awareness.md +5 -47
  280. package/templates/repo/.github/skills/cook/README.md +13 -13
  281. package/templates/repo/.github/skills/cook/SKILL.md +86 -58
  282. package/templates/repo/.github/skills/cook/references/intent-detection.md +7 -7
  283. package/templates/repo/.github/skills/cook/references/review-cycle.md +2 -2
  284. package/templates/repo/.github/skills/cook/references/subagent-patterns.md +75 -0
  285. package/templates/repo/.github/skills/cook/references/workflow-steps.md +75 -23
  286. package/templates/repo/.github/skills/databases/SKILL.md +3 -30
  287. package/templates/repo/.github/skills/databases/db-design.md +1 -1
  288. package/templates/repo/.github/skills/debug/SKILL.md +47 -105
  289. package/templates/repo/.github/skills/debug/references/frontend-verification.md +103 -0
  290. package/templates/repo/.github/skills/debug/references/investigation-methodology.md +101 -0
  291. package/templates/repo/.github/skills/debug/references/log-and-ci-analysis.md +97 -0
  292. package/templates/repo/.github/skills/debug/references/performance-diagnostics.md +113 -0
  293. package/templates/repo/.github/skills/debug/references/reporting-standards.md +122 -0
  294. package/templates/repo/.github/skills/debug/references/task-management-debugging.md +155 -0
  295. package/templates/repo/.github/skills/deploy/SKILL.md +154 -0
  296. package/templates/repo/.github/skills/deploy/references/platform-config-templates.md +35 -0
  297. package/templates/repo/.github/skills/deploy/references/platforms/aws.md +58 -0
  298. package/templates/repo/.github/skills/deploy/references/platforms/cloudflare.md +41 -0
  299. package/templates/repo/.github/skills/deploy/references/platforms/coolify.md +32 -0
  300. package/templates/repo/.github/skills/deploy/references/platforms/digitalocean.md +45 -0
  301. package/templates/repo/.github/skills/deploy/references/platforms/dokploy.md +29 -0
  302. package/templates/repo/.github/skills/deploy/references/platforms/flyio.md +54 -0
  303. package/templates/repo/.github/skills/deploy/references/platforms/gcp.md +45 -0
  304. package/templates/repo/.github/skills/deploy/references/platforms/github-pages.md +56 -0
  305. package/templates/repo/.github/skills/deploy/references/platforms/heroku.md +31 -0
  306. package/templates/repo/.github/skills/deploy/references/platforms/netlify.md +39 -0
  307. package/templates/repo/.github/skills/deploy/references/platforms/railway.md +38 -0
  308. package/templates/repo/.github/skills/deploy/references/platforms/render.md +39 -0
  309. package/templates/repo/.github/skills/deploy/references/platforms/tose.md +35 -0
  310. package/templates/repo/.github/skills/deploy/references/platforms/vercel.md +37 -0
  311. package/templates/repo/.github/skills/deploy/references/platforms/vultr.md +27 -0
  312. package/templates/repo/.github/skills/devops/SKILL.md +6 -12
  313. package/templates/repo/.github/skills/docs-seeker/SKILL.md +2 -1
  314. package/templates/repo/.github/skills/docs-seeker/references/context7-patterns.md +4 -0
  315. package/templates/repo/.github/skills/docs-seeker/scripts/fetch-docs.js +1 -2
  316. package/templates/repo/.github/skills/docs-seeker/scripts/utils/env-loader.js +4 -4
  317. package/templates/repo/.github/skills/docs-seeker/workflows/library-search.md +1 -0
  318. package/templates/repo/.github/skills/fix/SKILL.md +141 -44
  319. package/templates/repo/.github/skills/fix/references/complexity-assessment.md +21 -9
  320. package/templates/repo/.github/skills/fix/references/diagnosis-protocol.md +133 -0
  321. package/templates/repo/.github/skills/fix/references/mode-selection.md +27 -11
  322. package/templates/repo/.github/skills/fix/references/parallel-exploration.md +35 -12
  323. package/templates/repo/.github/skills/fix/references/prevention-gate.md +87 -0
  324. package/templates/repo/.github/skills/fix/references/review-cycle.md +3 -3
  325. package/templates/repo/.github/skills/fix/references/skill-activation-matrix.md +64 -31
  326. package/templates/repo/.github/skills/fix/references/task-orchestration.md +110 -0
  327. package/templates/repo/.github/skills/fix/references/workflow-deep.md +110 -47
  328. package/templates/repo/.github/skills/fix/references/workflow-logs.md +46 -10
  329. package/templates/repo/.github/skills/fix/references/workflow-quick.md +43 -20
  330. package/templates/repo/.github/skills/fix/references/workflow-standard.md +75 -41
  331. package/templates/repo/.github/skills/fix/references/workflow-test.md +49 -10
  332. package/templates/repo/.github/skills/fix/references/workflow-ui.md +56 -18
  333. package/templates/repo/.github/skills/frontend-design/SKILL.md +49 -17
  334. package/templates/repo/.github/skills/frontend-design/references/ai-multimodal-overview.md +165 -0
  335. package/templates/repo/.github/skills/frontend-design/references/anti-slop-rules.md +103 -0
  336. package/templates/repo/.github/skills/frontend-design/references/asset-generation.md +284 -108
  337. package/templates/repo/.github/skills/frontend-design/references/bento-motion-engine.md +142 -0
  338. package/templates/repo/.github/skills/frontend-design/references/magicui-components.md +129 -0
  339. package/templates/repo/.github/skills/frontend-design/references/performance-guardrails.md +169 -0
  340. package/templates/repo/.github/skills/frontend-design/references/premium-design-patterns.md +93 -0
  341. package/templates/repo/.github/skills/frontend-design/references/redesign-audit-checklist.md +114 -0
  342. package/templates/repo/.github/skills/frontend-design/references/visual-analysis-overview.md +1 -1
  343. package/templates/repo/.github/skills/frontend-design/references/workflow-3d.md +98 -0
  344. package/templates/repo/.github/skills/frontend-design/references/workflow-describe.md +4 -3
  345. package/templates/repo/.github/skills/frontend-design/references/workflow-immersive.md +82 -0
  346. package/templates/repo/.github/skills/frontend-design/references/workflow-quick.md +10 -12
  347. package/templates/repo/.github/skills/frontend-design/references/workflow-screenshot.md +9 -8
  348. package/templates/repo/.github/skills/frontend-design/references/workflow-video.md +74 -0
  349. package/templates/repo/.github/skills/frontend-development/SKILL.md +400 -0
  350. package/templates/repo/.github/skills/frontend-development/resources/common-patterns.md +331 -0
  351. package/templates/repo/.github/skills/frontend-development/resources/complete-examples.md +872 -0
  352. package/templates/repo/.github/skills/frontend-development/resources/component-patterns.md +502 -0
  353. package/templates/repo/.github/skills/frontend-development/resources/data-fetching.md +767 -0
  354. package/templates/repo/.github/skills/frontend-development/resources/file-organization.md +502 -0
  355. package/templates/repo/.github/skills/frontend-development/resources/loading-and-error-states.md +501 -0
  356. package/templates/repo/.github/skills/frontend-development/resources/performance.md +406 -0
  357. package/templates/repo/.github/skills/frontend-development/resources/routing-guide.md +364 -0
  358. package/templates/repo/.github/skills/frontend-development/resources/styling-guide.md +428 -0
  359. package/templates/repo/.github/skills/frontend-development/resources/typescript-standards.md +418 -0
  360. package/templates/repo/.github/skills/git/SKILL.md +18 -4
  361. package/templates/repo/.github/skills/git/references/commit-standards.md +3 -3
  362. package/templates/repo/.github/skills/git/references/workflow-commit.md +3 -3
  363. package/templates/repo/.github/skills/git/references/workflow-merge.md +1 -1
  364. package/templates/repo/.github/skills/git/references/workflow-pr.md +1 -1
  365. package/templates/repo/.github/skills/git/references/workflow-push.md +1 -1
  366. package/templates/repo/.github/skills/mcp-management/README.md +18 -18
  367. package/templates/repo/.github/skills/mcp-management/SKILL.md +16 -15
  368. package/templates/repo/.github/skills/mcp-management/references/configuration.md +4 -4
  369. package/templates/repo/.github/skills/mcp-management/references/gemini-cli-integration.md +12 -12
  370. package/templates/repo/.github/skills/mcp-management/scripts/.env.example +2 -2
  371. package/templates/repo/.github/skills/mcp-management/scripts/mcp-client.ts +1 -1
  372. package/templates/repo/.github/skills/mermaidjs-v11/SKILL.md +1 -0
  373. package/templates/repo/.github/skills/planning/SKILL.md +122 -91
  374. package/templates/repo/.github/skills/planning/references/archive-workflow.md +53 -0
  375. package/templates/repo/.github/skills/planning/references/codebase-understanding.md +1 -1
  376. package/templates/repo/.github/skills/planning/references/output-standards.md +17 -13
  377. package/templates/repo/.github/skills/planning/references/plan-organization.md +52 -30
  378. package/templates/repo/.github/skills/planning/references/red-team-personas.md +69 -0
  379. package/templates/repo/.github/skills/planning/references/red-team-workflow.md +77 -0
  380. package/templates/repo/.github/skills/planning/references/scope-challenge.md +90 -0
  381. package/templates/repo/.github/skills/planning/references/task-management.md +134 -0
  382. package/templates/repo/.github/skills/planning/references/validate-question-framework.md +80 -0
  383. package/templates/repo/.github/skills/planning/references/validate-workflow.md +65 -0
  384. package/templates/repo/.github/skills/planning/references/workflow-modes.md +154 -0
  385. package/templates/repo/.github/skills/problem-solving/SKILL.md +1 -0
  386. package/templates/repo/.github/skills/project-management/SKILL.md +133 -0
  387. package/templates/repo/.github/skills/project-management/references/documentation-triggers.md +60 -0
  388. package/templates/repo/.github/skills/project-management/references/hydration-workflow.md +89 -0
  389. package/templates/repo/.github/skills/project-management/references/progress-tracking.md +120 -0
  390. package/templates/repo/.github/skills/project-management/references/reporting-patterns.md +94 -0
  391. package/templates/repo/.github/skills/project-management/references/task-operations.md +87 -0
  392. package/templates/repo/.github/skills/repomix/SKILL.md +3 -2
  393. package/templates/repo/.github/skills/repomix/references/usage-patterns.md +2 -2
  394. package/templates/repo/.github/skills/repomix/scripts/README.md +1 -1
  395. package/templates/repo/.github/skills/repomix/scripts/repomix_batch.py +2 -2
  396. package/templates/repo/.github/skills/research/SKILL.md +7 -4
  397. package/templates/repo/.github/skills/scout/SKILL.md +24 -24
  398. package/templates/repo/.github/skills/scout/references/external-scouting.md +17 -17
  399. package/templates/repo/.github/skills/scout/references/internal-scouting.md +9 -9
  400. package/templates/repo/.github/skills/scout/references/task-management-scouting.md +125 -0
  401. package/templates/repo/.github/skills/security/SKILL.md +139 -0
  402. package/templates/repo/.github/skills/security/references/stride-owasp-checklist.md +128 -0
  403. package/templates/repo/.github/skills/sequential-thinking/README.md +3 -3
  404. package/templates/repo/.github/skills/sequential-thinking/SKILL.md +2 -0
  405. package/templates/repo/.github/skills/sequential-thinking/package-lock.json +3652 -0
  406. package/templates/repo/.github/skills/sequential-thinking/package.json +1 -1
  407. package/templates/repo/.github/skills/ship/SKILL.md +116 -0
  408. package/templates/repo/.github/skills/ship/references/auto-detect.md +103 -0
  409. package/templates/repo/.github/skills/ship/references/pr-template.md +90 -0
  410. package/templates/repo/.github/skills/ship/references/ship-workflow.md +241 -0
  411. package/templates/repo/.github/skills/test/SKILL.md +111 -0
  412. package/templates/repo/.github/skills/test/references/report-format.md +58 -0
  413. package/templates/repo/.github/skills/test/references/test-execution-workflow.md +103 -0
  414. package/templates/repo/.github/skills/test/references/ui-testing-workflow.md +65 -0
  415. package/templates/repo/.github/skills/ui-styling/SKILL.md +2 -0
  416. package/templates/repo/.github/skills/web-testing/SKILL.md +8 -60
  417. package/docs/guide-next-steps-speckit-cokit-implementation.md +0 -187
  418. package/prompts/ck-spec-analyze.prompt.md +0 -201
  419. package/prompts/ck-spec-checklist.prompt.md +0 -308
  420. package/prompts/ck-spec-clarify.prompt.md +0 -190
  421. package/prompts/ck-spec-constitution.prompt.md +0 -92
  422. package/prompts/ck-spec-implement.prompt.md +0 -157
  423. package/prompts/ck-spec-plan.prompt.md +0 -95
  424. package/prompts/ck-spec-specify.prompt.md +0 -261
  425. package/prompts/ck-spec-tasks.prompt.md +0 -181
  426. package/templates/repo/.github/AGENTS.md +0 -103
  427. package/templates/repo/.github/prompts/ck-spec-analyze.prompt.md +0 -201
  428. package/templates/repo/.github/prompts/ck-spec-checklist.prompt.md +0 -308
  429. package/templates/repo/.github/prompts/ck-spec-clarify.prompt.md +0 -190
  430. package/templates/repo/.github/prompts/ck-spec-constitution.prompt.md +0 -92
  431. package/templates/repo/.github/prompts/ck-spec-implement.prompt.md +0 -157
  432. package/templates/repo/.github/prompts/ck-spec-plan.prompt.md +0 -95
  433. package/templates/repo/.github/prompts/ck-spec-specify.prompt.md +0 -261
  434. package/templates/repo/.github/prompts/ck-spec-tasks.prompt.md +0 -181
  435. package/templates/repo/.github/skills/databases/stacks/bigquery.md +0 -231
  436. package/templates/repo/.github/skills/databases/stacks/d1_cloudflare.md +0 -137
  437. package/templates/repo/.github/skills/databases/stacks/mysql.md +0 -216
  438. package/templates/repo/.github/skills/databases/stacks/postgres.md +0 -235
  439. package/templates/repo/.github/skills/databases/stacks/sqlite.md +0 -244
  440. package/templates/repo/.github/skills/mcp-management/assets/tools.json +0 -3146
  441. package/templates/repo/.github/skills/mcp-management/scripts/dist/analyze-tools.js +0 -70
  442. package/templates/repo/.github/skills/mcp-management/scripts/dist/cli.js +0 -160
  443. package/templates/repo/.github/skills/mcp-management/scripts/dist/mcp-client.js +0 -183
  444. package/templates/repo/.github/skills/ui-styling/LICENSE.txt +0 -202
  445. package/templates/repo/.github/spec-kit/memory/constitution.md +0 -50
  446. package/templates/repo/.github/spec-kit/scripts/bash/check-prerequisites.sh +0 -166
  447. package/templates/repo/.github/spec-kit/scripts/bash/common.sh +0 -156
  448. package/templates/repo/.github/spec-kit/scripts/bash/create-new-feature.sh +0 -297
  449. package/templates/repo/.github/spec-kit/scripts/bash/setup-plan.sh +0 -61
  450. package/templates/repo/.github/spec-kit/scripts/bash/update-agent-context.sh +0 -799
  451. package/templates/repo/.github/spec-kit/scripts/powershell/check-prerequisites.ps1 +0 -148
  452. package/templates/repo/.github/spec-kit/scripts/powershell/common.ps1 +0 -137
  453. package/templates/repo/.github/spec-kit/scripts/powershell/create-new-feature.ps1 +0 -283
  454. package/templates/repo/.github/spec-kit/scripts/powershell/setup-plan.ps1 +0 -61
  455. package/templates/repo/.github/spec-kit/scripts/powershell/update-agent-context.ps1 +0 -448
  456. package/templates/repo/.github/spec-kit/templates/agent-file-template.md +0 -28
  457. package/templates/repo/.github/spec-kit/templates/checklist-template.md +0 -40
  458. package/templates/repo/.github/spec-kit/templates/commands/analyze.md +0 -187
  459. package/templates/repo/.github/spec-kit/templates/commands/checklist.md +0 -297
  460. package/templates/repo/.github/spec-kit/templates/commands/clarify.md +0 -184
  461. package/templates/repo/.github/spec-kit/templates/commands/constitution.md +0 -82
  462. package/templates/repo/.github/spec-kit/templates/commands/implement.md +0 -138
  463. package/templates/repo/.github/spec-kit/templates/commands/plan.md +0 -95
  464. package/templates/repo/.github/spec-kit/templates/commands/specify.md +0 -261
  465. package/templates/repo/.github/spec-kit/templates/commands/tasks.md +0 -140
  466. package/templates/repo/.github/spec-kit/templates/commands/taskstoissues.md +0 -33
  467. package/templates/repo/.github/spec-kit/templates/plan-template.md +0 -104
  468. package/templates/repo/.github/spec-kit/templates/spec-template.md +0 -115
  469. package/templates/repo/.github/spec-kit/templates/tasks-phase-template.md +0 -42
  470. package/templates/repo/.github/spec-kit/templates/tasks-template.md +0 -268
  471. package/templates/repo/.github/spec-kit/templates/vscode-settings.json +0 -14
@@ -1,261 +0,0 @@
1
- ---
2
- agent: 'agent'
3
- description: 'Create or update the feature specification from a natural language description'
4
- ---
5
-
6
- ## User Input
7
-
8
- ```text
9
- ${input}
10
- ```
11
-
12
- You **MUST** consider the user input before proceeding (if not empty).
13
-
14
- ## Outline
15
-
16
- The text the user typed after `/ck-spec-specify` in the triggering message **is** the feature description. Assume you always have it available in this conversation even if `{ARGS}` appears literally below. Do not ask the user to repeat it unless they provided an empty command.
17
-
18
- Given that feature description, do this:
19
-
20
- 1. **Generate a concise short name** (2-4 words) for the branch:
21
- - Analyze the feature description and extract the most meaningful keywords
22
- - Create a 2-4 word short name that captures the essence of the feature
23
- - Use action-noun format when possible (e.g., "add-user-auth", "fix-payment-bug")
24
- - Preserve technical terms and acronyms (OAuth2, API, JWT, etc.)
25
- - Keep it concise but descriptive enough to understand the feature at a glance
26
- - Examples:
27
- - "I want to add user authentication" → "user-auth"
28
- - "Implement OAuth2 integration for the API" → "oauth2-api-integration"
29
- - "Create a dashboard for analytics" → "analytics-dashboard"
30
- - "Fix payment processing timeout bug" → "fix-payment-timeout"
31
-
32
- 2. **Check for existing specs and determine feature number**:
33
-
34
- a. First, check if this is a git repository (optional - skip git steps if not):
35
- ```bash
36
- git rev-parse --git-dir 2>/dev/null
37
- ```
38
-
39
- b. Find the highest feature number from available sources:
40
- - **Always check**: Specs directories matching `specs/[0-9]+-<short-name>`
41
- - **If git repo**: Local branches matching `^[* ]*[0-9]+-<short-name>$`
42
- - **If git repo with remote**: Remote branches (run `git fetch --all --prune` first, then check `git ls-remote --heads origin`)
43
-
44
- c. Determine the next available number:
45
- - Extract all numbers from available sources
46
- - Find the highest number N
47
- - Use N+1 for the new feature number (start with 1 if none found)
48
-
49
- d. Run the script `{SCRIPT}` with the calculated number and short-name:
50
- - Pass `--number N+1` and `--short-name "your-short-name"` along with the feature description
51
- - Bash example: `{SCRIPT} --json --number 5 --short-name "user-auth" "Add user authentication"`
52
- - PowerShell example: `{SCRIPT} -Json -Number 5 -ShortName "user-auth" "Add user authentication"`
53
-
54
- **IMPORTANT**:
55
- - Specs directories are the PRIMARY source - always check these
56
- - Git operations are OPTIONAL - only run if the project is a git repository
57
- - If no existing specs found with this short-name, start with number 1
58
- - You must only ever run this script once per feature
59
- - The JSON output will contain FEATURE_DIR and SPEC_FILE paths
60
- - For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'\''m Groot' (or double-quote if possible: "I'm Groot")
61
-
62
- 3. Load `spec-kit/templates/spec-template.md` to understand required sections.
63
-
64
- 4. Follow this execution flow:
65
-
66
- 1. Parse user description from Input
67
- If empty: ERROR "No feature description provided"
68
- 2. Extract key concepts from description
69
- Identify: actors, actions, data, constraints
70
- 3. For unclear aspects:
71
- - Make informed guesses based on context and industry standards
72
- - Only mark with [NEEDS CLARIFICATION: specific question] if:
73
- - The choice significantly impacts feature scope or user experience
74
- - Multiple reasonable interpretations exist with different implications
75
- - No reasonable default exists
76
- - **LIMIT: Maximum 3 [NEEDS CLARIFICATION] markers total**
77
- - Prioritize clarifications by impact: scope > security/privacy > user experience > technical details
78
- 4. Fill User Scenarios & Testing section
79
- If no clear user flow: ERROR "Cannot determine user scenarios"
80
- 5. Generate Functional Requirements
81
- Each requirement must be testable
82
- Use reasonable defaults for unspecified details (document assumptions in Assumptions section)
83
- 6. Define Success Criteria
84
- Create measurable, technology-agnostic outcomes
85
- Include both quantitative metrics (time, performance, volume) and qualitative measures (user satisfaction, task completion)
86
- Each criterion must be verifiable without implementation details
87
- 7. Identify Key Entities (if data involved)
88
- 8. Return: SUCCESS (spec ready for planning)
89
-
90
- 5. Write the specification to SPEC_FILE using the template structure, replacing placeholders with concrete details derived from the feature description (arguments) while preserving section order and headings.
91
-
92
- 6. **Specification Quality Validation**: After writing the initial spec, validate it against quality criteria:
93
-
94
- a. **Create Spec Quality Checklist**: Generate a checklist file at `FEATURE_DIR/checklists/requirements.md` using the checklist template structure with these validation items:
95
-
96
- ```markdown
97
- # Specification Quality Checklist: [FEATURE NAME]
98
-
99
- **Purpose**: Validate specification completeness and quality before proceeding to planning
100
- **Created**: [DATE]
101
- **Feature**: [Link to spec.md]
102
-
103
- ## Content Quality
104
-
105
- - [ ] No implementation details (languages, frameworks, APIs)
106
- - [ ] Focused on user value and business needs
107
- - [ ] Written for non-technical stakeholders
108
- - [ ] All mandatory sections completed
109
-
110
- ## Requirement Completeness
111
-
112
- - [ ] No [NEEDS CLARIFICATION] markers remain
113
- - [ ] Requirements are testable and unambiguous
114
- - [ ] Success criteria are measurable
115
- - [ ] Success criteria are technology-agnostic (no implementation details)
116
- - [ ] All acceptance scenarios are defined
117
- - [ ] Edge cases are identified
118
- - [ ] Scope is clearly bounded
119
- - [ ] Dependencies and assumptions identified
120
-
121
- ## Feature Readiness
122
-
123
- - [ ] All functional requirements have clear acceptance criteria
124
- - [ ] User scenarios cover primary flows
125
- - [ ] Feature meets measurable outcomes defined in Success Criteria
126
- - [ ] No implementation details leak into specification
127
-
128
- ## Notes
129
-
130
- - Items marked incomplete require spec updates before `/ck-spec-clarify` or `/ck-spec-plan`
131
- ```
132
-
133
- b. **Run Validation Check**: Review the spec against each checklist item:
134
- - For each item, determine if it passes or fails
135
- - Document specific issues found (quote relevant spec sections)
136
-
137
- c. **Handle Validation Results**:
138
-
139
- - **If all items pass**: Mark checklist complete and proceed to step 6
140
-
141
- - **If items fail (excluding [NEEDS CLARIFICATION])**:
142
- 1. List the failing items and specific issues
143
- 2. Update the spec to address each issue
144
- 3. Re-run validation until all items pass (max 3 iterations)
145
- 4. If still failing after 3 iterations, document remaining issues in checklist notes and warn user
146
-
147
- - **If [NEEDS CLARIFICATION] markers remain**:
148
- 1. Extract all [NEEDS CLARIFICATION: ...] markers from the spec
149
- 2. **LIMIT CHECK**: If more than 3 markers exist, keep only the 3 most critical (by scope/security/UX impact) and make informed guesses for the rest
150
- 3. For each clarification needed (max 3), present options to user in this format:
151
-
152
- ```markdown
153
- ## Question [N]: [Topic]
154
-
155
- **Context**: [Quote relevant spec section]
156
-
157
- **What we need to know**: [Specific question from NEEDS CLARIFICATION marker]
158
-
159
- **Suggested Answers**:
160
-
161
- | Option | Answer | Implications |
162
- |--------|--------|--------------|
163
- | A | [First suggested answer] | [What this means for the feature] |
164
- | B | [Second suggested answer] | [What this means for the feature] |
165
- | C | [Third suggested answer] | [What this means for the feature] |
166
- | Custom | Provide your own answer | [Explain how to provide custom input] |
167
-
168
- **Your choice**: _[Wait for user response]_
169
- ```
170
-
171
- 4. **CRITICAL - Table Formatting**: Ensure markdown tables are properly formatted:
172
- - Use consistent spacing with pipes aligned
173
- - Each cell should have spaces around content: `| Content |` not `|Content|`
174
- - Header separator must have at least 3 dashes: `|--------|`
175
- - Test that the table renders correctly in markdown preview
176
- 5. Number questions sequentially (Q1, Q2, Q3 - max 3 total)
177
- 6. Present all questions together before waiting for responses
178
- 7. Wait for user to respond with their choices for all questions (e.g., "Q1: A, Q2: Custom - [details], Q3: B")
179
- 8. Update the spec by replacing each [NEEDS CLARIFICATION] marker with the user's selected or provided answer
180
- 9. Re-run validation after all clarifications are resolved
181
-
182
- d. **Update Checklist**: After each validation iteration, update the checklist file with current pass/fail status
183
-
184
- 7. Report completion with branch name, spec file path, checklist results, and readiness for the next phase (`/ck-spec-clarify` or `/ck-spec-plan`).
185
-
186
- **NOTE:** The script creates and checks out the new branch and initializes the spec file before writing.
187
-
188
- ## General Guidelines
189
-
190
- ## Quick Guidelines
191
-
192
- - Focus on **WHAT** users need and **WHY**.
193
- - Avoid HOW to implement (no tech stack, APIs, code structure).
194
- - Written for business stakeholders, not developers.
195
- - DO NOT create any checklists that are embedded in the spec. That will be a separate command.
196
-
197
- ### Section Requirements
198
-
199
- - **Mandatory sections**: Must be completed for every feature
200
- - **Optional sections**: Include only when relevant to the feature
201
- - When a section doesn't apply, remove it entirely (don't leave as "N/A")
202
-
203
- ### For AI Generation
204
-
205
- When creating this spec from a user prompt:
206
-
207
- 1. **Make informed guesses**: Use context, industry standards, and common patterns to fill gaps
208
- 2. **Document assumptions**: Record reasonable defaults in the Assumptions section
209
- 3. **Limit clarifications**: Maximum 3 [NEEDS CLARIFICATION] markers - use only for critical decisions that:
210
- - Significantly impact feature scope or user experience
211
- - Have multiple reasonable interpretations with different implications
212
- - Lack any reasonable default
213
- 4. **Prioritize clarifications**: scope > security/privacy > user experience > technical details
214
- 5. **Think like a tester**: Every vague requirement should fail the "testable and unambiguous" checklist item
215
- 6. **Common areas needing clarification** (only if no reasonable default exists):
216
- - Feature scope and boundaries (include/exclude specific use cases)
217
- - User types and permissions (if multiple conflicting interpretations possible)
218
- - Security/compliance requirements (when legally/financially significant)
219
-
220
- **Examples of reasonable defaults** (don't ask about these):
221
-
222
- - Data retention: Industry-standard practices for the domain
223
- - Performance targets: Standard web/mobile app expectations unless specified
224
- - Error handling: User-friendly messages with appropriate fallbacks
225
- - Authentication method: Standard session-based or OAuth2 for web apps
226
- - Integration patterns: RESTful APIs unless specified otherwise
227
-
228
- ### Success Criteria Guidelines
229
-
230
- Success criteria must be:
231
-
232
- 1. **Measurable**: Include specific metrics (time, percentage, count, rate)
233
- 2. **Technology-agnostic**: No mention of frameworks, languages, databases, or tools
234
- 3. **User-focused**: Describe outcomes from user/business perspective, not system internals
235
- 4. **Verifiable**: Can be tested/validated without knowing implementation details
236
-
237
- **Good examples**:
238
-
239
- - "Users can complete checkout in under 3 minutes"
240
- - "System supports 10,000 concurrent users"
241
- - "95% of searches return results in under 1 second"
242
- - "Task completion rate improves by 40%"
243
-
244
- **Bad examples** (implementation-focused):
245
-
246
- - "API response time is under 200ms" (too technical, use "Users see results instantly")
247
- - "Database can handle 1000 TPS" (implementation detail, use user-facing metric)
248
- - "React components render efficiently" (framework-specific)
249
- - "Redis cache hit rate above 80%" (technology-specific)
250
-
251
- ---
252
-
253
- ## Suggested Next Steps
254
-
255
- | Command | Description | When to Use |
256
- |---------|-------------|-------------|
257
- | `/ck-spec-clarify` | Ask clarification questions | Spec has [NEEDS CLARIFICATION] markers or vague requirements |
258
- | `/ck-spec-plan` | Generate implementation plan | Spec is complete and ready for technical planning |
259
- | `/ck-spec-constitution` | Create project principles | Need to establish non-negotiable rules before planning |
260
- | `/ck-plan` | Create implementation plan | Spec is finalized, ready to plan and implement |
261
- | `/ck-brainstorm` | Brainstorm ideas first | Not sure what to build yet |
@@ -1,181 +0,0 @@
1
- ---
2
- agent: 'agent'
3
- description: 'Generate actionable, dependency-ordered tasks.md from design artifacts'
4
- ---
5
-
6
- ## User Input
7
-
8
- ```text
9
- ${input}
10
- ```
11
-
12
- You **MUST** consider the user input before proceeding (if not empty).
13
-
14
- ## Outline
15
-
16
- 1. **Setup**: Run `{SCRIPT}` from repo root and parse FEATURE_DIR and AVAILABLE_DOCS list. All paths must be absolute. For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'\''m Groot' (or double-quote if possible: "I'm Groot").
17
-
18
- 2. **Load design documents**: Read from FEATURE_DIR:
19
- - **Required**: plan.md (tech stack, libraries, structure), spec.md (user stories with priorities)
20
- - **Optional**: data-model.md (entities), contracts/ (API endpoints), research.md (decisions), quickstart.md (test scenarios)
21
- - Note: Not all projects have all documents. Generate tasks based on what's available.
22
-
23
- 3. **Execute task generation workflow**:
24
- - Load plan.md and extract tech stack, libraries, project structure
25
- - Load spec.md and extract user stories with their priorities (P1, P2, P3, etc.)
26
- - If data-model.md exists: Extract entities and map to user stories
27
- - If contracts/ exists: Map endpoints to user stories
28
- - If research.md exists: Extract decisions for setup tasks
29
- - Generate tasks organized by user story (see Task Generation Rules below)
30
- - Generate dependency graph showing user story completion order
31
- - Create parallel execution examples per user story
32
- - Validate task completeness (each user story has all needed tasks, independently testable)
33
-
34
- 4. **Generate hybrid task structure**: Create master file + individual phase files:
35
-
36
- **4a. Create phase files** in `FEATURE_DIR/tasks/`:
37
- - `phase-01-setup.md` - Project initialization
38
- - `phase-02-foundation.md` - Blocking prerequisites for all user stories
39
- - `phase-03-us1-[slug].md` - User Story 1 (P1 priority)
40
- - `phase-04-us2-[slug].md` - User Story 2 (P2 priority)
41
- - ... (one file per user story, in priority order)
42
- - `phase-NN-polish.md` - Final phase: Cross-cutting concerns
43
-
44
- **Phase file structure**:
45
- ```markdown
46
- # Phase N: [Phase Title]
47
-
48
- **Status**: pending | in-progress | completed
49
- **Dependencies**: [List phase dependencies, e.g., "Phase 2 must complete first"]
50
-
51
- ## Goal
52
- [Brief description of what this phase delivers]
53
-
54
- ## Test Criteria
55
- [How to verify this phase is complete - independently testable]
56
-
57
- ## Tasks
58
- - [ ] TXXX [P?] [Story?] Description with file path
59
- - [ ] TXXX ...
60
-
61
- ## Checkpoint
62
- [What should be true when this phase completes]
63
- ```
64
-
65
- **4b. Create master tasks.md** in `FEATURE_DIR/`:
66
- Use `spec-kit/templates/tasks-template.md` as reference, generate:
67
- - Feature name and overview
68
- - Phase summary table with status and links:
69
- ```markdown
70
- | Phase | Title | Status | Tasks | Dependencies |
71
- |-------|-------|--------|-------|--------------|
72
- | 1 | [Setup](tasks/phase-01-setup.md) | pending | 3 | - |
73
- | 2 | [Foundation](tasks/phase-02-foundation.md) | pending | 6 | Phase 1 |
74
- | 3 | [US1: Title](tasks/phase-03-us1-slug.md) | pending | 7 | Phase 2 |
75
- ```
76
- - Dependency graph (text diagram showing phase order)
77
- - Parallel execution notes
78
- - Implementation strategy (MVP first, incremental delivery)
79
- - Quick reference: Total tasks, parallel opportunities, MVP scope
80
-
81
- 5. **Report**: Output paths to generated files and summary:
82
- - Files created: `tasks.md` + list of `tasks/phase-*.md` files
83
- - Total task count and count per phase
84
- - Parallel opportunities identified
85
- - Independent test criteria for each story
86
- - Suggested MVP scope (typically Phase 1-3: Setup + Foundation + US1)
87
- - Format validation: Confirm ALL tasks follow the checklist format
88
-
89
- Context for task generation: {ARGS}
90
-
91
- **Hybrid Structure Benefits**:
92
- - Master `tasks.md` provides overview and navigation
93
- - Individual phase files enable parallel work by multiple agents/developers
94
- - Each phase file is self-contained with clear dependencies
95
- - Easy to track progress per phase independently
96
-
97
- The task files should be immediately executable - each task must be specific enough that an LLM can complete it without additional context.
98
-
99
- ## Task Generation Rules
100
-
101
- **CRITICAL**: Tasks MUST be organized by user story to enable independent implementation and testing.
102
-
103
- **Tests are OPTIONAL**: Only generate test tasks if explicitly requested in the feature specification or if user requests TDD approach.
104
-
105
- ### Checklist Format (REQUIRED)
106
-
107
- Every task MUST strictly follow this format:
108
-
109
- ```text
110
- - [ ] [TaskID] [P?] [Story?] Description with file path
111
- ```
112
-
113
- **Format Components**:
114
-
115
- 1. **Checkbox**: ALWAYS start with `- [ ]` (markdown checkbox)
116
- 2. **Task ID**: Sequential number (T001, T002, T003...) in execution order
117
- 3. **[P] marker**: Include ONLY if task is parallelizable (different files, no dependencies on incomplete tasks)
118
- 4. **[Story] label**: REQUIRED for user story phase tasks only
119
- - Format: [US1], [US2], [US3], etc. (maps to user stories from spec.md)
120
- - Setup phase: NO story label
121
- - Foundational phase: NO story label
122
- - User Story phases: MUST have story label
123
- - Polish phase: NO story label
124
- 5. **Description**: Clear action with exact file path
125
-
126
- **Examples**:
127
-
128
- - ✅ CORRECT: `- [ ] T001 Create project structure per implementation plan`
129
- - ✅ CORRECT: `- [ ] T005 [P] Implement authentication middleware in src/middleware/auth.py`
130
- - ✅ CORRECT: `- [ ] T012 [P] [US1] Create User model in src/models/user.py`
131
- - ✅ CORRECT: `- [ ] T014 [US1] Implement UserService in src/services/user_service.py`
132
- - ❌ WRONG: `- [ ] Create User model` (missing ID and Story label)
133
- - ❌ WRONG: `T001 [US1] Create model` (missing checkbox)
134
- - ❌ WRONG: `- [ ] [US1] Create User model` (missing Task ID)
135
- - ❌ WRONG: `- [ ] T001 [US1] Create model` (missing file path)
136
-
137
- ### Task Organization
138
-
139
- 1. **From User Stories (spec.md)** - PRIMARY ORGANIZATION:
140
- - Each user story (P1, P2, P3...) gets its own phase
141
- - Map all related components to their story:
142
- - Models needed for that story
143
- - Services needed for that story
144
- - Endpoints/UI needed for that story
145
- - If tests requested: Tests specific to that story
146
- - Mark story dependencies (most stories should be independent)
147
-
148
- 2. **From Contracts**:
149
- - Map each contract/endpoint → to the user story it serves
150
- - If tests requested: Each contract → contract test task [P] before implementation in that story's phase
151
-
152
- 3. **From Data Model**:
153
- - Map each entity to the user story(ies) that need it
154
- - If entity serves multiple stories: Put in earliest story or Setup phase
155
- - Relationships → service layer tasks in appropriate story phase
156
-
157
- 4. **From Setup/Infrastructure**:
158
- - Shared infrastructure → Setup phase (Phase 1)
159
- - Foundational/blocking tasks → Foundational phase (Phase 2)
160
- - Story-specific setup → within that story's phase
161
-
162
- ### Phase Structure
163
-
164
- - **Phase 1**: Setup (project initialization)
165
- - **Phase 2**: Foundational (blocking prerequisites - MUST complete before user stories)
166
- - **Phase 3+**: User Stories in priority order (P1, P2, P3...)
167
- - Within each story: Tests (if requested) → Models → Services → Endpoints → Integration
168
- - Each phase should be a complete, independently testable increment
169
- - **Final Phase**: Polish & Cross-Cutting Concerns
170
-
171
- ---
172
-
173
- ## Suggested Next Steps
174
-
175
- | Command | Description | When to Use |
176
- |---------|-------------|-------------|
177
- | `/ck-spec-analyze` | Cross-artifact consistency check | Before implementation, validate spec/plan/tasks alignment |
178
- | `/ck-spec-implement` | Execute implementation | All tasks validated, ready to code |
179
- | `/ck-cook` | Quick flow — implement without full spec | Simple tasks that don't need spec-implement |
180
-
181
- **Workflow:** `/ck-spec-specify` → `/ck-spec-clarify` → `/ck-spec-plan` → `/ck-spec-tasks` → `/ck-spec-implement`
@@ -1,231 +0,0 @@
1
- # BigQuery Rules
2
-
3
- Guidelines for designing schemas specific to Google BigQuery.
4
-
5
- ---
6
-
7
- ## Data Types
8
-
9
- | Use case | Type | Notes |
10
- |----------|------|-------|
11
- | Integer | `INT64` | |
12
- | Decimal | `NUMERIC` or `BIGNUMERIC` | |
13
- | Float | `FLOAT64` | |
14
- | Boolean | `BOOL` | |
15
- | String | `STRING` | |
16
- | Timestamp | `TIMESTAMP` | |
17
- | Date | `DATE` | |
18
- | Time | `TIME` | |
19
- | DateTime | `DATETIME` | No timezone |
20
- | JSON | `JSON` | |
21
- | Bytes | `BYTES` | |
22
- | Nested | `STRUCT` | Record type |
23
- | Repeated | `ARRAY` | |
24
-
25
- ---
26
-
27
- ## Description (NO metadata tables needed)
28
-
29
- BigQuery supports description via `OPTIONS`:
30
-
31
- ### Table description
32
- ```sql
33
- CREATE TABLE orders (
34
- ...
35
- ) OPTIONS(description='Table storing customer orders');
36
- ```
37
-
38
- ### Column descriptions
39
- ```sql
40
- CREATE TABLE orders (
41
- id INT64 NOT NULL OPTIONS(description='Primary key'),
42
- order_number STRING NOT NULL OPTIONS(description='Unique order code'),
43
- status STRING NOT NULL OPTIONS(description='pending|confirmed|shipped|cancelled'),
44
- total_amount NUMERIC OPTIONS(description='Total value')
45
- );
46
- ```
47
-
48
- ### Query descriptions
49
- ```sql
50
- SELECT column_name, description
51
- FROM `project.dataset.INFORMATION_SCHEMA.COLUMN_FIELD_PATHS`
52
- WHERE table_name = 'orders';
53
- ```
54
-
55
- ---
56
-
57
- ## Partitioning & Clustering
58
-
59
- BigQuery **does not have traditional indexes**. Instead, use partitioning and clustering:
60
-
61
- ### Partitioning (required for large tables)
62
-
63
- ```sql
64
- -- Partition by date column
65
- CREATE TABLE fact_orders (
66
- order_date DATE,
67
- customer_id INT64,
68
- order_id INT64,
69
- amount NUMERIC
70
- )
71
- PARTITION BY order_date;
72
-
73
- -- Partition by timestamp (daily)
74
- CREATE TABLE events (
75
- event_time TIMESTAMP,
76
- ...
77
- )
78
- PARTITION BY DATE(event_time);
79
-
80
- -- Integer range partitioning
81
- CREATE TABLE logs (
82
- log_id INT64,
83
- ...
84
- )
85
- PARTITION BY RANGE_BUCKET(log_id, GENERATE_ARRAY(0, 1000000, 10000));
86
- ```
87
-
88
- ### Clustering (optimize filter/group)
89
-
90
- ```sql
91
- CREATE TABLE fact_orders (
92
- order_date DATE,
93
- customer_id INT64,
94
- product_id INT64,
95
- store_id INT64,
96
- amount NUMERIC
97
- )
98
- PARTITION BY order_date
99
- CLUSTER BY customer_id, product_id;
100
- -- Can cluster up to 4 columns
101
- ```
102
-
103
- ### When to use what?
104
- - **Partition**: Filter by date range → reduces data scan
105
- - **Cluster**: Filter/Group by specific columns → data is organized closer together
106
-
107
- ---
108
-
109
- ## Nested & Repeated Fields (Denormalization)
110
-
111
- BigQuery encourages denormalization with STRUCT and ARRAY:
112
-
113
- ```sql
114
- CREATE TABLE orders (
115
- order_id INT64,
116
- order_date DATE,
117
- customer STRUCT<
118
- id INT64,
119
- name STRING,
120
- email STRING
121
- >,
122
- items ARRAY<STRUCT<
123
- product_id INT64,
124
- product_name STRING,
125
- quantity INT64,
126
- unit_price NUMERIC
127
- >>
128
- );
129
-
130
- -- Query nested fields
131
- SELECT
132
- order_id,
133
- customer.name,
134
- item.product_name,
135
- item.quantity
136
- FROM orders, UNNEST(items) AS item;
137
- ```
138
-
139
- ---
140
-
141
- ## Best Practices
142
-
143
- ### Query optimization
144
- - **Avoid `SELECT *`** - only select needed columns
145
- - **Filter early** - use partition column in WHERE
146
- - **Avoid cross-join** with large tables
147
-
148
- ### Table design
149
- - Partition tables > 1GB
150
- - Cluster by frequently filtered/grouped columns
151
- - Denormalize with STRUCT/ARRAY when appropriate
152
- - Avoid too many small tables
153
-
154
- ### Cost control
155
- - Partition pruning: always filter by partition column
156
- - Use `--dry_run` to estimate cost
157
- - Set up query quotas
158
-
159
- ---
160
-
161
- ## Example DDL
162
-
163
- ```sql
164
- CREATE TABLE `project.dataset.fact_orders` (
165
- -- Keys
166
- order_id INT64 NOT NULL OPTIONS(description='PK from source'),
167
- order_date DATE NOT NULL OPTIONS(description='Order date'),
168
-
169
- -- Dimensions (denormalized)
170
- customer_id INT64 NOT NULL,
171
- customer_name STRING,
172
- customer_segment STRING OPTIONS(description='VIP|Regular|New'),
173
-
174
- -- Measures
175
- item_count INT64 NOT NULL,
176
- gross_amount NUMERIC NOT NULL,
177
- discount_amount NUMERIC DEFAULT 0,
178
- net_amount NUMERIC NOT NULL,
179
-
180
- -- Nested items
181
- items ARRAY<STRUCT<
182
- product_id INT64,
183
- product_name STRING,
184
- quantity INT64,
185
- unit_price NUMERIC
186
- >> OPTIONS(description='Product details in order'),
187
-
188
- -- Metadata
189
- created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP(),
190
- updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP()
191
- )
192
- PARTITION BY order_date
193
- CLUSTER BY customer_id
194
- OPTIONS(
195
- description='Fact table for orders, partitioned by date, clustered by customer'
196
- );
197
- ```
198
-
199
- ---
200
-
201
- ## Scheduled Queries / Materialized Views
202
-
203
- ### Materialized View
204
- ```sql
205
- CREATE MATERIALIZED VIEW `project.dataset.mv_daily_sales`
206
- PARTITION BY report_date
207
- CLUSTER BY store_id
208
- AS
209
- SELECT
210
- DATE(order_date) as report_date,
211
- store_id,
212
- COUNT(*) as order_count,
213
- SUM(net_amount) as revenue
214
- FROM `project.dataset.fact_orders`
215
- GROUP BY 1, 2;
216
- ```
217
-
218
- ### Scheduled Query (ETL)
219
- Create via BigQuery Console or API with schedule expression.
220
-
221
- ---
222
-
223
- ## Checklist
224
-
225
- - [ ] Partition large tables by date column
226
- - [ ] Cluster by frequently filtered/grouped columns (max 4)
227
- - [ ] `OPTIONS(description=...)` for tables and columns
228
- - [ ] Denormalize with STRUCT/ARRAY when appropriate
229
- - [ ] Avoid `SELECT *` and cross-join large tables
230
- - [ ] Filter by partition column in queries
231
- - [ ] Consider Materialized Views for frequently used aggregations