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
@@ -0,0 +1,87 @@
1
+ # Prevention Gate
2
+
3
+ After fixing a bug, prevent the same class of issues from recurring. This step is MANDATORY.
4
+
5
+ ## Core Principle
6
+
7
+ A fix without prevention is incomplete. The same bug pattern WILL recur if you only patch the symptom.
8
+
9
+ ## Prevention Requirements (Check All That Apply)
10
+
11
+ ### 1. Regression Test (ALWAYS required)
12
+
13
+ Every fix MUST have a test that:
14
+ - **Fails** without the fix applied (proves the test catches the bug)
15
+ - **Passes** with the fix applied (proves the fix works)
16
+
17
+ ```
18
+ If no test framework exists:
19
+ → Add inline verification or assertion at minimum
20
+ → Note in report: "No test framework — added runtime assertion"
21
+ ```
22
+
23
+ ### 2. Defense-in-Depth Validation (When applicable)
24
+
25
+ Apply layered validation from `debug` defense-in-depth technique:
26
+
27
+ | Layer | Apply When | Example |
28
+ |-------|-----------|---------|
29
+ | **Entry point validation** | Fix involves user/external input | Reject invalid input at API boundary |
30
+ | **Business logic validation** | Fix involves data processing | Assert data makes sense for operation |
31
+ | **Environment guards** | Fix involves env-sensitive operations | Prevent dangerous ops in wrong context |
32
+ | **Debug instrumentation** | Fix was hard to diagnose | Add logging/context capture for forensics |
33
+
34
+ **Rule:** Not every fix needs all 4 layers. Apply what's relevant. But ALWAYS consider each.
35
+
36
+ ### 3. Type Safety (When applicable)
37
+
38
+ | Scenario | Prevention |
39
+ |----------|-----------|
40
+ | Null/undefined caused the bug | Add strict null checks, use `??` or `?.` |
41
+ | Wrong type passed | Add type guard or runtime validation |
42
+ | Missing property | Add required field to interface/type |
43
+ | Implicit any | Add explicit types |
44
+
45
+ ### 4. Error Handling (When applicable)
46
+
47
+ | Scenario | Prevention |
48
+ |----------|-----------|
49
+ | Unhandled promise rejection | Add `.catch()` or try/catch |
50
+ | Missing error boundary | Add error boundary component |
51
+ | Silent failure | Add explicit error logging |
52
+ | No fallback for external dependency | Add timeout + fallback |
53
+
54
+ ## Verification Checklist (Before Completing Step 5)
55
+
56
+ ```
57
+ □ Pre-fix state captured? (error messages, test output)
58
+ □ Fix applied to ROOT CAUSE (not symptom)?
59
+ □ Fresh verification run? (exact same commands as pre-fix)
60
+ □ Before/after comparison documented?
61
+ □ Regression test added? (fails without fix, passes with fix)
62
+ □ Defense-in-depth layers considered? (applied where relevant)
63
+ □ No new warnings/errors introduced?
64
+ □ Parallel verification passed? (typecheck + lint + build + test)
65
+ ```
66
+
67
+ ## Output Format
68
+
69
+ ```
70
+ Prevention measures applied:
71
+ - Regression test: [test file:line] — covers [specific scenario]
72
+ - Guard added: [file:line] — [description of guard]
73
+ - Type safety: [file:line] — [what was strengthened]
74
+ - Error handling: [file:line] — [what was added]
75
+
76
+ Before/After comparison:
77
+ - Before: [exact error/failure]
78
+ - After: [exact success output]
79
+ ```
80
+
81
+ ## Quick Mode Prevention
82
+
83
+ For trivial issues (type errors, lint), abbreviated prevention:
84
+ - Regression test: optional (type system IS the test)
85
+ - Parallel verification: typecheck + lint only
86
+ - Defense-in-depth: skip (not applicable for type fixes)
87
+ - Still require before/after comparison of typecheck output
@@ -20,9 +20,9 @@ LOOP:
20
20
  → cycle++, GOTO LOOP
21
21
 
22
22
  4. ELSE IF cycle >= 3:
23
- → ESCALATE to user directly in response
23
+ → ESCALATE to user via asking the user
24
24
  → Display findings
25
- Ask: "Fix manually" / "Approve anyway" / "Abort" — wait for response
25
+ Options: "Fix manually" / "Approve anyway" / "Abort"
26
26
 
27
27
  5. ELSE (score < 9.5, no critical):
28
28
  → Output: "✓ Review [score]/10 - Approved with [N] warnings"
@@ -44,7 +44,7 @@ ALWAYS:
44
44
  │ Suggestions ([N]): [list] │
45
45
  └─────────────────────────────────────┘
46
46
 
47
- 3. Ask user directly in response, then wait for answer:
47
+ 3. Use asking the user:
48
48
  IF critical_count > 0:
49
49
  - "Fix critical issues"
50
50
  - "Fix all issues"
@@ -1,37 +1,57 @@
1
1
  # Skill Activation Matrix
2
2
 
3
- When to activate each skill during fixing workflows.
3
+ When to activate each skill and tool during fixing workflows.
4
4
 
5
- ## Always Activate
5
+ ## Always Activate (ALL Workflows)
6
6
 
7
- | Skill | Reason |
8
- |-------|--------|
9
- | `debug` | Core to all fix workflows - find root cause first |
7
+ | Skill/Tool | Step | Reason |
8
+ |------------|------|--------|
9
+ | `scout` OR parallel `Explore` | Step 1 | Understand codebase context before diagnosing |
10
+ | `debug` | Step 2 | Systematic root cause investigation |
11
+ | `sequential-thinking` | Step 2 | Structured hypothesis formation — NO guessing |
12
+
13
+ ## Task Orchestration (Moderate+ Only)
14
+
15
+ | Tool | Activate When |
16
+ |------|---------------|
17
+ | `TaskCreate` | After complexity assessment, create all phase tasks upfront |
18
+ | `TaskUpdate` | At start/completion of each phase |
19
+ | `TaskList` | Check available unblocked work, coordinate parallel agents |
20
+ | `TaskGet` | Retrieve full task details before starting work |
21
+
22
+ Skip Tasks for Quick workflow (< 3 steps). See `references/task-orchestration.md`.
23
+
24
+ ## Auto-Triggered Activation
25
+
26
+ | Skill | Auto-Trigger Condition |
27
+ |-------|------------------------|
28
+ | `problem-solving` | 2+ hypotheses REFUTED in Step 2 diagnosis |
29
+ | `sequential-thinking` | Always in Step 2 (mandatory for hypothesis formation) |
10
30
 
11
31
  ## Conditional Activation
12
32
 
13
33
  | Skill | Activate When |
14
34
  |-------|---------------|
15
- | `problem-solving` | Stuck on approach, multiple failed attempts |
16
- | `sequential-thinking` | Complex logic chain, multi-step reasoning needed |
17
- | `brainstorming` | Multiple valid approaches, architecture decision |
35
+ | `brainstorm` | Multiple valid fix approaches, architecture decision (Deep only) |
18
36
  | `context-engineering` | Fixing AI/LLM/agent code, context window issues |
19
- | ImageMagick/FFmpeg | Image/video processing, visual asset manipulation |
37
+ | `ai-multimodal` (if available) | UI issues, screenshots provided, visual bugs |
38
+ | `project-management` | Moderate+ workflows — task hydration, sync-back, progress tracking |
20
39
 
21
- ## Agent Usage
40
+ ## Subagent Usage
22
41
 
23
- | Agent | Activate When |
42
+ | Subagent | Activate When |
24
43
  |----------|---------------|
25
- | `debugger` | Root cause unclear, need deep investigation |
26
- | `Explore` (parallel) | Scout multiple areas simultaneously |
27
- | `Bash` (parallel) | Verify implementation (typecheck, lint, build) |
28
- | `researcher` | External docs needed, latest best practices |
29
- | `planner` | Complex fix needs breakdown, multiple phases |
30
- | `tester` | After implementation, verify fix works |
31
- | `code-reviewer` | After fix, verify quality and security |
32
- | `git-manager` | After approval, commit changes |
33
- | `docs-manager` | API/behavior changes need doc updates |
34
- | `project-manager` | Major fix impacts roadmap/plan status |
44
+ | `debugger` | Root cause unclear, need deep investigation (Step 2) |
45
+ | `Explore` (parallel) | Scout multiple areas simultaneously (Step 1), test hypotheses (Step 2) |
46
+ | `Bash` (parallel) | Verify implementation: typecheck, lint, build, test (Step 5) |
47
+ | `researcher` | External docs needed, latest best practices (Deep only) |
48
+ | `planner` | Complex fix needs breakdown, multiple phases (Deep only) |
49
+ | `tester` | After implementation, verify fix works (Step 5) |
50
+ | `code-review` | After fix, verify quality and security (Step 5) |
51
+ | `git-manager` | After approval, commit changes (Step 6) |
52
+ | `docs-manager` | API/behavior changes need doc updates (Step 6) |
53
+ | `project-manager` | Major fix impacts roadmap/plan status (Step 6) |
54
+ | `fullstack-developer` | Parallel independent issues (each gets own agent) |
35
55
 
36
56
  ## Parallel Patterns
37
57
 
@@ -39,19 +59,32 @@ See `references/parallel-exploration.md` for detailed patterns.
39
59
 
40
60
  | When | Parallel Strategy |
41
61
  |------|-------------------|
42
- | Root cause unclear | 2-3 `Explore` agents on different areas |
62
+ | Scouting (Step 1) | 2-3 `Explore` agents on different areas |
63
+ | Testing hypotheses (Step 2) | 2-3 `Explore` agents per hypothesis |
43
64
  | Multi-module fix | `Explore` each module in parallel |
44
- | After implementation | `Bash` agents: typecheck + lint + build |
45
- | Before commit | `Bash` agents: test + build + lint |
65
+ | After implementation (Step 5) | `Bash` agents: typecheck + lint + build + test |
66
+ | 2+ independent issues | Task trees + `fullstack-developer` agents per issue |
46
67
 
47
68
  ## Workflow → Skills Map
48
69
 
49
70
  | Workflow | Skills Activated |
50
71
  |----------|------------------|
51
- | Quick | `debug`, `code-reviewer`, parallel `Bash` verification |
52
- | Standard | Above + `problem-solving`, `sequential-thinking`, `tester`, parallel `Explore` |
53
- | Deep | All above + `brainstorming`, `context-engineering`, `researcher`, `planner` |
54
- | Parallel | Per-issue workflow + coordination via parallel agents |
72
+ | Quick | `scout` (minimal), `debug`, `sequential-thinking`, `code-review`, parallel `Bash` verification |
73
+ | Standard | Above + Tasks, `problem-solving` (auto), `project-management`, `tester`, parallel `Explore` |
74
+ | Deep | All above + `brainstorm`, `context-engineering`, `researcher`, `planner` |
75
+ | Parallel | Per-issue Task trees + `project-management` + `fullstack-developer` agents + coordination via `TaskList` |
76
+
77
+ ## Step → Skills Chain (Mandatory Order)
78
+
79
+ | Step | Mandatory Chain |
80
+ |------|----------------|
81
+ | Step 0: Mode | asking the user (unless auto/quick detected) |
82
+ | Step 1: Scout | `scout` OR 2-3 parallel `Explore` → map files, deps, tests |
83
+ | Step 2: Diagnose | Capture pre-fix state → `debug` → `sequential-thinking` → parallel `Explore` hypotheses → (`problem-solving` if 2+ fail) |
84
+ | Step 3: Assess | Classify complexity → create Tasks (moderate+) |
85
+ | Step 4: Fix | Implement per workflow → follow root cause |
86
+ | Step 5: Verify+Prevent | Iron-law verify → regression test → defense-in-depth → parallel `Bash` verify |
87
+ | Step 6: Finalize | Report → `docs-manager` → `TaskUpdate` → `git-manager` → `/ck-journal` |
55
88
 
56
89
  ## Detection Triggers
57
90
 
@@ -60,6 +93,6 @@ See `references/parallel-exploration.md` for detailed patterns.
60
93
  | "AI", "LLM", "agent", "context" | `context-engineering` |
61
94
  | "stuck", "tried everything" | `problem-solving` |
62
95
  | "complex", "multi-step" | `sequential-thinking` |
63
- | "which approach", "options" | `brainstorming` |
64
- | "latest docs", "best practice" | `researcher` agent |
65
- | Screenshot attached | Visual analysis |
96
+ | "which approach", "options" | `brainstorm` |
97
+ | "latest docs", "best practice" | `researcher` subagent |
98
+ | Screenshot attached | `ai-multimodal` (if available) |
@@ -0,0 +1,110 @@
1
+ # Task Orchestration
2
+
3
+ Native Task tools for tracking and coordinating fix workflows.
4
+
5
+ **Skill:** Activate `project-management` for advanced task orchestration — provides hydration (plan checkboxes → Tasks), sync-back (Tasks → plan checkboxes), cross-session resume, and progress tracking patterns.
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 instead. Fix workflow remains fully functional — Tasks add visibility and coordination, not core functionality.
8
+
9
+ ## When to Use Tasks
10
+
11
+ | Complexity | Use Tasks? | Reason |
12
+ |-----------|-----------|--------|
13
+ | Simple/Quick | No | < 3 steps, overhead exceeds benefit |
14
+ | Moderate (Standard) | Yes | 6 steps, multi-subagent coordination |
15
+ | Complex (Deep) | Yes | 9 steps, dependency chains, parallel agents |
16
+ | Parallel | Yes | Multiple independent issue trees |
17
+
18
+ ## Task Tools
19
+
20
+ - `TaskCreate(subject, description, activeForm, metadata)` - Create task
21
+ - `TaskUpdate(taskId, status, addBlockedBy, addBlocks)` - Update status/deps
22
+ - `TaskGet(taskId)` - Get full task details
23
+ - `TaskList()` - List all tasks with status
24
+
25
+ **Lifecycle:** `pending` → `in_progress` → `completed`
26
+
27
+ ## Standard Workflow Tasks (6 phases)
28
+
29
+ Create all tasks upfront, then work through them:
30
+
31
+ ```
32
+ T1 = TaskCreate(subject="Scout codebase", activeForm="Scouting codebase", metadata={step: 1, phase: "investigate"})
33
+ T2 = TaskCreate(subject="Diagnose root cause", activeForm="Diagnosing root cause", metadata={step: 2, phase: "investigate"})
34
+ T3 = TaskCreate(subject="Implement fix", activeForm="Implementing fix", metadata={step: 3, phase: "implement"}, addBlockedBy=[T1, T2])
35
+ T4 = TaskCreate(subject="Verify + prevent", activeForm="Verifying fix", metadata={step: 4, phase: "verify"}, addBlockedBy=[T3])
36
+ T5 = TaskCreate(subject="Code review", activeForm="Reviewing code", metadata={step: 5, phase: "verify"}, addBlockedBy=[T4])
37
+ T6 = TaskCreate(subject="Finalize", activeForm="Finalizing", metadata={step: 6, phase: "finalize"}, addBlockedBy=[T5])
38
+ ```
39
+
40
+ Update as work progresses:
41
+ ```
42
+ TaskUpdate(taskId=T1, status="in_progress")
43
+ // ... scout codebase ...
44
+ TaskUpdate(taskId=T1, status="completed")
45
+ // T3 auto-unblocks when T1 + T2 complete
46
+ ```
47
+
48
+ ## Deep Workflow Tasks (9 phases)
49
+
50
+ Steps 1+2+3 run in parallel (scout + diagnose + research).
51
+
52
+ ```
53
+ T1 = TaskCreate(subject="Scout codebase", metadata={step: 1, phase: "investigate"})
54
+ T2 = TaskCreate(subject="Diagnose root cause", metadata={step: 2, phase: "investigate"})
55
+ T3 = TaskCreate(subject="Research solutions", metadata={step: 3, phase: "investigate"})
56
+ T4 = TaskCreate(subject="Brainstorm approaches", metadata={step: 4, phase: "design"}, addBlockedBy=[T1, T2, T3])
57
+ T5 = TaskCreate(subject="Create implementation plan", metadata={step: 5, phase: "design"}, addBlockedBy=[T4])
58
+ T6 = TaskCreate(subject="Implement fix", metadata={step: 6, phase: "implement"}, addBlockedBy=[T5])
59
+ T7 = TaskCreate(subject="Verify + prevent", metadata={step: 7, phase: "verify"}, addBlockedBy=[T6])
60
+ T8 = TaskCreate(subject="Code review", metadata={step: 8, phase: "verify"}, addBlockedBy=[T7])
61
+ T9 = TaskCreate(subject="Finalize & docs", metadata={step: 9, phase: "finalize"}, addBlockedBy=[T8])
62
+ ```
63
+
64
+ **Note:** Steps 1, 2, and 3 run in parallel (scout + diagnose + research simultaneously).
65
+
66
+ ## Parallel Issue Coordination
67
+
68
+ For 2+ independent issues, create separate task trees per issue:
69
+
70
+ ```
71
+ // Issue A tree
72
+ TaskCreate(subject="[Issue A] Scout", metadata={issue: "A", step: 1})
73
+ TaskCreate(subject="[Issue A] Diagnose", metadata={issue: "A", step: 2})
74
+ TaskCreate(subject="[Issue A] Fix", metadata={issue: "A", step: 3}, addBlockedBy=[A-step1, A-step2])
75
+ TaskCreate(subject="[Issue A] Verify", metadata={issue: "A", step: 4}, addBlockedBy=[A-step3])
76
+
77
+ // Issue B tree
78
+ TaskCreate(subject="[Issue B] Scout", metadata={issue: "B", step: 1})
79
+ TaskCreate(subject="[Issue B] Diagnose", metadata={issue: "B", step: 2})
80
+ TaskCreate(subject="[Issue B] Fix", metadata={issue: "B", step: 3}, addBlockedBy=[B-step1, B-step2])
81
+ TaskCreate(subject="[Issue B] Verify", metadata={issue: "B", step: 4}, addBlockedBy=[B-step3])
82
+
83
+ // Final shared task
84
+ TaskCreate(subject="Integration verify", addBlockedBy=[A-step4, B-step4])
85
+ ```
86
+
87
+ Spawn `fullstack-developer` subagents per issue tree. Each agent:
88
+ 1. Claims tasks via `TaskUpdate(status="in_progress")`
89
+ 2. Completes tasks via `TaskUpdate(status="completed")`
90
+ 3. Blocked tasks auto-unblock when dependencies resolve
91
+
92
+ ## Subagent Task Assignment
93
+
94
+ Assign tasks to subagents via `owner` field:
95
+
96
+ ```
97
+ TaskUpdate(taskId=taskA, owner="agent-scout")
98
+ TaskUpdate(taskId=taskB, owner="agent-diagnose")
99
+ ```
100
+
101
+ Check available work: `TaskList()` → filter by `status=pending`, `blockedBy=[]`, `owner=null`
102
+
103
+ ## Rules
104
+
105
+ - Create tasks BEFORE starting work (upfront planning)
106
+ - Only 1 task `in_progress` per agent at a time
107
+ - Mark complete IMMEDIATELY after finishing (don't batch)
108
+ - Use `metadata` for filtering: `{step, phase, issue, severity}`
109
+ - If task fails → keep `in_progress`, create subtask for blocker
110
+ - Skip Tasks entirely for Quick workflow (< 3 steps)
@@ -1,91 +1,154 @@
1
1
  # Deep Workflow
2
2
 
3
- Full pipeline with research, brainstorming, and planning for complex issues.
3
+ Full pipeline with research, brainstorming, and planning for complex issues. Uses native Tasks with dependency chains.
4
+
5
+ ## Task Setup (Before Starting)
6
+
7
+ Create all phase tasks upfront. Steps 1+2+3 run in parallel (scout + diagnose + research).
8
+
9
+ ```
10
+ T1 = TaskCreate(subject="Scout codebase", activeForm="Scouting codebase", metadata={phase: "investigate"})
11
+ T2 = TaskCreate(subject="Diagnose root cause", activeForm="Diagnosing root cause", metadata={phase: "investigate"})
12
+ T3 = TaskCreate(subject="Research solutions", activeForm="Researching solutions", metadata={phase: "investigate"})
13
+ T4 = TaskCreate(subject="Brainstorm approaches", activeForm="Brainstorming", metadata={phase: "design"}, addBlockedBy=[T1, T2, T3])
14
+ T5 = TaskCreate(subject="Create implementation plan", activeForm="Planning implementation", metadata={phase: "design"}, addBlockedBy=[T4])
15
+ T6 = TaskCreate(subject="Implement fix", activeForm="Implementing fix", metadata={phase: "implement"}, addBlockedBy=[T5])
16
+ T7 = TaskCreate(subject="Verify + prevent", activeForm="Verifying fix", metadata={phase: "verify"}, addBlockedBy=[T6])
17
+ T8 = TaskCreate(subject="Code review", activeForm="Reviewing code", metadata={phase: "verify"}, addBlockedBy=[T7])
18
+ T9 = TaskCreate(subject="Finalize & docs", activeForm="Finalizing", metadata={phase: "finalize"}, addBlockedBy=[T8])
19
+ ```
4
20
 
5
21
  ## Steps
6
22
 
7
- ### Step 1: Debug & Parallel Investigation
8
- Activate `debug` skill. Launch 2-3 `Explore` agents in parallel:
23
+ ### Step 1: Scout Codebase (parallel with Steps 2+3)
24
+ `TaskUpdate(T1, status="in_progress")`
25
+
26
+ **Mandatory:** Activate `scout` skill or launch 2-3 `Explore` subagents in parallel:
9
27
  ```
10
- Task("Explore", "Find error origin", "Trace error")
11
- Task("Explore", "Find affected components", "Map deps")
12
- Task("Explore", "Find similar patterns", "Find patterns")
28
+ Task("Explore", "Find error origin and affected components", "Trace error")
29
+ Task("Explore", "Find module boundaries and dependencies", "Map deps")
30
+ Task("Explore", "Find related tests and similar patterns", "Find patterns")
13
31
  ```
32
+
33
+ Map: all affected files, module boundaries, call chains, test coverage gaps.
34
+
14
35
  See `references/parallel-exploration.md` for patterns.
15
36
 
16
- **Output:** `✓ Step 1: Root cause - [summary], system impact: [scope]`
37
+ `TaskUpdate(T1, status="completed")`
38
+ **Output:** `✓ Step 1: Scouted - [N] files, system impact: [scope]`
39
+
40
+ ### Step 2: Diagnose Root Cause (parallel with Steps 1+3)
41
+ `TaskUpdate(T2, status="in_progress")`
42
+
43
+ **Mandatory skill chain:**
44
+ 1. **Capture pre-fix state:** Record ALL error messages, failing tests, stack traces, logs.
45
+ 2. Activate `debug` skill (systematic-debugging + root-cause-tracing).
46
+ 3. Activate `sequential-thinking` — structured hypothesis formation.
47
+ 4. Spawn parallel `Explore` subagents to test each hypothesis.
48
+ 5. If 2+ hypotheses fail → auto-activate `problem-solving`.
49
+ 6. Trace backward through call chain to ROOT CAUSE origin.
50
+
51
+ See `references/diagnosis-protocol.md` for full methodology.
17
52
 
18
- ### Step 2: Research
19
- Use `researcher` agent for external knowledge.
53
+ `TaskUpdate(T2, status="completed")`
54
+ **Output:** `✓ Step 2: Diagnosed - Root cause: [summary], Evidence: [chain]`
55
+
56
+ ### Step 3: Research (parallel with Steps 1+2)
57
+ `TaskUpdate(T3, status="in_progress")`
58
+ Use `researcher` subagent for external knowledge.
20
59
 
21
60
  - Search latest docs, best practices
22
61
  - Find similar issues/solutions
23
62
  - Gather security advisories if relevant
24
63
 
25
- **Output:** `✓ Step 2: Research complete - [key findings]`
64
+ `TaskUpdate(T3, status="completed")`
65
+ **Output:** `✓ Step 3: Research complete - [key findings]`
26
66
 
27
- ### Step 3: Brainstorm
28
- Activate `brainstorming` skill.
67
+ ### Step 4: Brainstorm
68
+ `TaskUpdate(T4, status="in_progress")` — auto-unblocks when T1 + T2 + T3 complete.
69
+ Activate `brainstorm` skill.
29
70
 
30
- - Evaluate multiple approaches
71
+ - Evaluate multiple approaches using scout + diagnosis + research findings
31
72
  - Consider trade-offs
32
73
  - Get user input on preferred direction
33
74
 
34
- **Output:** `✓ Step 3: Approach selected - [chosen approach]`
75
+ `TaskUpdate(T4, status="completed")`
76
+ **Output:** `✓ Step 4: Approach selected - [chosen approach]`
35
77
 
36
- ### Step 4: Plan
37
- Use `planner` agent to create implementation plan.
78
+ ### Step 5: Plan
79
+ `TaskUpdate(T5, status="in_progress")`
80
+ Use `planner` subagent to create implementation plan.
38
81
 
39
82
  - Break down into phases
40
83
  - Identify dependencies
41
84
  - Define success criteria
85
+ - Include prevention measures in plan
42
86
 
43
- **Output:** `✓ Step 4: Plan created - [N] phases`
87
+ `TaskUpdate(T5, status="completed")`
88
+ **Output:** `✓ Step 5: Plan created - [N] phases`
44
89
 
45
- ### Step 5: Implement
90
+ ### Step 6: Implement
91
+ `TaskUpdate(T6, status="in_progress")`
46
92
  Implement per plan. Use `context-engineering`, `sequential-thinking`, `problem-solving`.
47
93
 
48
- **Parallel Verification:** Launch `Bash` agents: typecheck + lint + build
49
- See `references/parallel-exploration.md`
94
+ - Fix ROOT CAUSE per diagnosis not symptoms
95
+ - Follow plan phases
96
+ - Minimal changes per phase
97
+
98
+ `TaskUpdate(T6, status="completed")`
99
+ **Output:** `✓ Step 6: Implemented - [N] files, [M] phases`
100
+
101
+ ### Step 7: Verify + Prevent
102
+ `TaskUpdate(T7, status="in_progress")`
50
103
 
51
- **Output:** `✓ Step 5: Implemented - [N] files, [M] phases, verified`
104
+ **Mandatory skill chain:**
105
+ 1. **Iron-law verify:** Re-run EXACT commands from pre-fix state. Compare before/after.
106
+ 2. **Regression test:** Add comprehensive tests. Tests MUST fail without fix, pass with fix.
107
+ 3. **Defense-in-depth:** Apply all relevant prevention layers (see `references/prevention-gate.md`).
108
+ 4. **Parallel verification:** Launch `Bash` agents: typecheck + lint + build + test.
109
+ 5. **Edge cases:** Test boundary conditions, security implications, performance impact.
52
110
 
53
- ### Step 6: Test
54
- Use `tester` agent.
111
+ **If verification fails:** Loop back to Step 2 (re-diagnose). Max 3 attempts → question architecture.
55
112
 
56
- - Comprehensive testing
57
- - Edge cases, security, performance
58
- - If fail → debug, fix, repeat
113
+ See `references/prevention-gate.md` for prevention requirements.
59
114
 
60
- **Output:** `✓ Step 6: Tests [X/X passed]`
115
+ `TaskUpdate(T7, status="completed")`
116
+ **Output:** `✓ Step 7: Verified + Prevented - [before/after], [N] tests, [M] guards`
61
117
 
62
- ### Step 7: Review
63
- Use `code-reviewer` agent.
118
+ ### Step 8: Code Review
119
+ `TaskUpdate(T8, status="in_progress")`
120
+ Use `code-reviewer` subagent.
64
121
 
65
122
  See `references/review-cycle.md` for mode-specific handling.
66
123
 
67
- **Output:** `✓ Step 7: Review [score]/10 - [status]`
124
+ `TaskUpdate(T8, status="completed")`
125
+ **Output:** `✓ Step 8: Review [score]/10 - [status]`
68
126
 
69
- ### Step 8: Finalize
70
- - Use `project-manager` agent to update roadmap
71
- - Use `docs-manager` agent for documentation
72
- - Use `git-manager` agent for commit
127
+ ### Step 9: Finalize
128
+ `TaskUpdate(T9, status="in_progress")`
129
+ - Report summary: root cause, evidence chain, changes, prevention measures, confidence score
130
+ - Activate `project-management` for task sync-back, plan status updates, and progress tracking
131
+ - Use `docs-manager` subagent for documentation
132
+ - Use `git-manager` subagent for commit
133
+ - Run `/ck-journal`
73
134
 
74
- **Output:** `✓ Step 8: Complete - [actions taken]`
135
+ `TaskUpdate(T9, status="completed")`
136
+ **Output:** `✓ Step 9: Complete - [actions taken]`
75
137
 
76
- ## Skills/Agents Activated
138
+ ## Skills/Subagents Activated
77
139
 
78
- | Step | Skills/Agents |
140
+ | Step | Skills/Subagents |
79
141
  |------|------------------|
80
- | 1 | `debug`, parallel `Explore` agents for investigation |
81
- | 2 | `researcher` |
82
- | 3 | `brainstorm` |
83
- | 4 | `planner` |
84
- | 5 | `problem-solving`, `sequential-thinking`, `context-engineering`, parallel `Bash` |
85
- | 6 | `tester` |
86
- | 7 | `code-reviewer` |
87
- | 8 | `project-manager`, `docs-manager`, `Bash` |
142
+ | 1 | `scout` OR parallel `Explore` subagents |
143
+ | 2 | `debug`, `sequential-thinking`, parallel `Explore`, (`problem-solving` auto) |
144
+ | 3 | `researcher` (runs parallel with steps 1+2) |
145
+ | 4 | `brainstorm` |
146
+ | 5 | `planner` |
147
+ | 6 | `problem-solving`, `sequential-thinking`, `context-engineering` |
148
+ | 7 | `tester`, parallel `Bash` verification |
149
+ | 8 | `code-reviewer` |
150
+ | 9 | `project-management`, `docs-manager`, `git-manager` |
88
151
 
89
152
  **Rules:** Don't skip steps. Validate before proceeding. One phase at a time.
90
- **Frontend:** Use `agent-browser` or browser automation tools to verify.
91
- **Visual Assets:** Use ImageMagick/FFmpeg CLI for image/video processing.
153
+ **Frontend:** Use `chrome`, `chrome-devtools` (if available) or any relevant skills/tools to verify.
154
+ **Visual Assets:** Use `ai-multimodal` (if available) for visual assets generation, analysis and verification.
@@ -1,6 +1,6 @@
1
1
  # Log Analysis Fix Workflow
2
2
 
3
- For fixing issues from application logs.
3
+ For fixing issues from application logs. Uses native Tasks for phase tracking.
4
4
 
5
5
  ## Prerequisites
6
6
  - Log file at `./logs.txt` or similar
@@ -11,24 +11,60 @@ Add permanent log piping to project config:
11
11
  - **Bash/Unix**: `command 2>&1 | tee logs.txt`
12
12
  - **PowerShell**: `command *>&1 | Tee-Object logs.txt`
13
13
 
14
+ ## Task Setup (Before Starting)
15
+
16
+ ```
17
+ T1 = TaskCreate(subject="Read & analyze logs", activeForm="Analyzing logs")
18
+ T2 = TaskCreate(subject="Scout codebase", activeForm="Scouting codebase", addBlockedBy=[T1])
19
+ T3 = TaskCreate(subject="Plan fix", activeForm="Planning fix", addBlockedBy=[T1, T2])
20
+ T4 = TaskCreate(subject="Implement fix", activeForm="Implementing fix", addBlockedBy=[T3])
21
+ T5 = TaskCreate(subject="Test fix", activeForm="Testing fix", addBlockedBy=[T4])
22
+ T6 = TaskCreate(subject="Code review", activeForm="Reviewing code", addBlockedBy=[T5])
23
+ ```
24
+
14
25
  ## Workflow
15
26
 
16
- 1. **Read logs** with `Grep` (use `head_limit: 30` initially)
17
- - Increase limit if insufficient context
27
+ ### Step 1: Read & Analyze Logs
28
+ `TaskUpdate(T1, status="in_progress")`
29
+
30
+ - Read logs with `Grep` (use `head_limit: 30` initially, increase if needed)
31
+ - Use `debugger` agent for root cause analysis
32
+ - Focus on last N lines first (most recent errors)
33
+ - Look for stack traces, error codes, timestamps, repeated patterns
34
+
35
+ `TaskUpdate(T1, status="completed")`
36
+
37
+ ### Step 2: Scout Codebase
38
+ `TaskUpdate(T2, status="in_progress")`
39
+ Use `scout` agent or parallel `Explore` subagents to find issue locations.
40
+
41
+ See `references/parallel-exploration.md` for patterns.
42
+
43
+ `TaskUpdate(T2, status="completed")`
44
+
45
+ ### Step 3: Plan Fix
46
+ `TaskUpdate(T3, status="in_progress")` — auto-unblocks when T1 + T2 complete.
47
+ Use `planner` agent.
18
48
 
19
- 2. **Analyze** with `debugger` agent for root causes
49
+ `TaskUpdate(T3, status="completed")`
20
50
 
21
- 3. **Scout** codebase with `scout` agent for issue locations
51
+ ### Step 4: Implement
52
+ `TaskUpdate(T4, status="in_progress")`
53
+ Implement the fix.
22
54
 
23
- 4. **Plan** fix with `planner` agent
55
+ `TaskUpdate(T4, status="completed")`
24
56
 
25
- 5. **Implement** the fix
57
+ ### Step 5: Test
58
+ `TaskUpdate(T5, status="in_progress")`
59
+ Use `tester` agent. If issues remain → keep T5 `in_progress`, loop back to Step 2.
26
60
 
27
- 6. **Test** with `tester` agent
61
+ `TaskUpdate(T5, status="completed")`
28
62
 
29
- 7. **Review** with `code-reviewer` agent
63
+ ### Step 6: Review
64
+ `TaskUpdate(T6, status="in_progress")`
65
+ Use `code-reviewer` agent.
30
66
 
31
- 8. **Iterate** if issues remain, repeat from step 3
67
+ `TaskUpdate(T6, status="completed")`
32
68
 
33
69
  ## Tips
34
70
  - Focus on last N lines first (most recent errors)