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,6 +1,7 @@
1
1
  ---
2
2
  name: fix
3
- description: ALWAYS activate this skill before fixing ANY bug, error, test failure, CI/CD issue, type error, lint, log error, UI issue, code problem.
3
+ description: "ALWAYS activate this skill before fixing ANY bug, error, test failure, CI/CD issue, type error, lint, log error, UI issue, code problem."
4
+ argument-hint: "[issue] --auto|--review|--quick|--parallel"
4
5
  ---
5
6
 
6
7
  # Fixing
@@ -12,28 +13,97 @@ Unified skill for fixing issues of any complexity with intelligent routing.
12
13
  - `--auto` - Activate autonomous mode (**default**)
13
14
  - `--review` - Activate human-in-the-loop review mode
14
15
  - `--quick` - Activate quick mode
15
- - `--parallel` - Fix 2+ independent issues concurrently using parallel agents
16
+ - `--parallel` - Activate parallel mode: route to parallel `fullstack-developer` agents per issue
17
+
18
+ <HARD-GATE>
19
+ Do NOT propose or implement fixes before completing Steps 1-2 (Scout + Diagnose).
20
+ Symptom fixes are failure. Find the cause first through structured analysis, NEVER guessing.
21
+ If 3+ fix attempts fail, STOP and question the architecture — discuss with user before attempting more.
22
+ User override: `--quick` mode allows fast scout→diagnose→fix cycle for trivial issues (lint, type errors).
23
+ </HARD-GATE>
24
+
25
+ ## Anti-Rationalization
26
+
27
+ | Thought | Reality |
28
+ |---------|---------|
29
+ | "I can see the problem, let me fix it" | Seeing symptoms ≠ understanding root cause. Scout first. |
30
+ | "Quick fix for now, investigate later" | "Later" never comes. Fix properly now. |
31
+ | "Just try changing X" | Random fixes waste time and create new bugs. Diagnose first. |
32
+ | "It's probably X" | "Probably" = guessing. Use structured diagnosis. Verify first. |
33
+ | "One more fix attempt" (after 2+) | 3+ failures = wrong approach. Question architecture. |
34
+ | "Emergency, no time for process" | Systematic diagnosis is FASTER than guess-and-check. |
35
+ | "I already know the codebase" | Knowledge decays. Scout to verify assumptions before acting. |
36
+ | "The fix is done, tests pass" | Without prevention, same bug class will recur. Add guards. |
37
+
38
+ ## Process Flow (Authoritative)
39
+
40
+ ```mermaid
41
+ flowchart TD
42
+ A[Issue Input] --> B[Step 0: Mode Selection]
43
+ B --> C[Step 1: Scout - Understand Context]
44
+ C --> D[Step 2: Diagnose - Structured Root Cause Analysis]
45
+ D --> E[Step 3: Complexity Assessment + Task Orchestration]
46
+ E -->|Simple| F[Quick Workflow]
47
+ E -->|Moderate| G[Standard Workflow]
48
+ E -->|Complex| H[Deep Workflow]
49
+ E -->|Parallel| I[Multi-Agent Fix]
50
+ F --> J[Step 4: Fix Implementation]
51
+ G --> J
52
+ H --> J
53
+ I --> J
54
+ J --> K[Step 5: Verify + Prevent]
55
+ K -->|Pass + Prevention in place| L[Step 6: Finalize]
56
+ K -->|Fail, <3 attempts| D
57
+ K -->|Fail, 3+ attempts| M[Question Architecture]
58
+ M --> N[Discuss with User]
59
+ L --> O[Report + Docs + Journal]
60
+ ```
61
+
62
+ **This diagram is the authoritative workflow.** If prose conflicts with this flow, follow the diagram.
16
63
 
17
64
  ## Workflow
18
65
 
19
- ### Step 1: Mode Selection
66
+ ### Step 0: Mode Selection
20
67
 
21
- **First action:** If there is no "auto" keyword in the request, ask the user directly to choose a workflow mode (then wait for response):
68
+ **First action:** If there is no "auto" keyword in the request, ask the user to determine workflow mode:
22
69
 
23
70
  | Option | Recommend When | Behavior |
24
71
  |--------|----------------|----------|
25
72
  | **Autonomous** (default) | Simple/moderate issues | Auto-approve if score >= 9.5 & 0 critical |
26
73
  | **Human-in-the-loop Review** | Critical/production code | Pause for approval at each step |
27
- | **Quick** | Type errors, lint, trivial bugs | Fast debug → fix → review cycle |
74
+ | **Quick** | Type errors, lint, trivial bugs | Fast scoutdiagnose → fix → review cycle |
75
+
76
+ See `references/mode-selection.md` for asking the user format.
77
+
78
+ ### Step 1: Scout (MANDATORY — never skip)
79
+
80
+ **Purpose:** Understand the affected codebase BEFORE forming any hypotheses.
81
+
82
+ **Mandatory skill chain:**
83
+ 1. Activate `scout` skill OR launch 2-3 parallel `Explore` subagents
84
+ 2. Discover: affected files, dependencies, related tests, recent changes (`git log`)
85
+ 3. Read `./docs` for project context if unfamiliar
86
+
87
+ **Quick mode:** Minimal scout — locate affected file(s) and their direct dependencies only.
88
+ **Standard/Deep mode:** Full scout — map module boundaries, test coverage, call chains.
89
+
90
+ **Output:** `✓ Step 1: Scouted - [N] files mapped, [M] dependencies, [K] tests found`
28
91
 
29
- See `references/mode-selection.md` for question format.
92
+ ### Step 2: Diagnose (MANDATORY — never skip)
30
93
 
31
- ### Step 2: Debug
94
+ **Purpose:** Structured root cause analysis. NO guessing. Evidence-based only.
32
95
 
33
- - Activate `debug` skill.
34
- - Guess all possible root causes.
35
- - Spawn multiple parallel search agents to verify each hypothesis.
36
- - Create report with all findings for the next step.
96
+ **Mandatory skill chain:**
97
+ 1. **Capture pre-fix state:** Record exact error messages, failing test output, stack traces, log snippets. This becomes the baseline for Step 5 verification.
98
+ 2. Activate `debug` skill (systematic-debugging + root-cause-tracing techniques).
99
+ 3. Activate `sequential-thinking` skill form hypotheses through structured reasoning, NOT guessing.
100
+ 4. Spawn parallel `Explore` subagents to test each hypothesis against codebase evidence.
101
+ 5. If 2+ hypotheses fail → auto-activate `problem-solving` skill for alternative approaches.
102
+ 6. Create diagnosis report: confirmed root cause, evidence chain, affected scope.
103
+
104
+ See `references/diagnosis-protocol.md` for full methodology.
105
+
106
+ **Output:** `✓ Step 2: Diagnosed - Root cause: [summary], Evidence: [brief], Scope: [N files]`
37
107
 
38
108
  ### Step 3: Complexity Assessment & Task Orchestration
39
109
 
@@ -44,65 +114,92 @@ Classify before routing. See `references/complexity-assessment.md`.
44
114
  | **Simple** | Single file, clear error, type/lint | `references/workflow-quick.md` |
45
115
  | **Moderate** | Multi-file, root cause unclear | `references/workflow-standard.md` |
46
116
  | **Complex** | System-wide, architecture impact | `references/workflow-deep.md` |
47
- | **Parallel** | 2+ independent issues | Parallel `fullstack-developer` agents |
117
+ | **Parallel** | 2+ independent issues OR `--parallel` flag | Parallel `fullstack-developer` agents |
118
+
119
+ **Task Orchestration (Moderate+ only):** After classifying, create native Tasks for all phases upfront with dependencies. See `references/task-orchestration.md`.
120
+ - Skip for Quick workflow (< 3 steps, overhead exceeds benefit)
121
+ - Use `TaskCreate` with `addBlockedBy` for dependency chains
122
+ - Update via `TaskUpdate` as each phase completes
123
+ - For Parallel: create separate task trees per independent issue
124
+ - **Fallback:** Task tools (`TaskCreate`/`TaskUpdate`/`TaskGet`/`TaskList`) are CLI-only — unavailable in VSCode extension. If they error, use `TodoWrite` for progress tracking. Fix workflow remains fully functional without them.
125
+
126
+ ### Step 4: Fix Implementation
48
127
 
49
- **Task orchestration notes:**
50
- - **Quick workflow:** Skip task creation proceed directly to fix.
51
- - **Moderate+ workflows:** After classifying, create a todo checklist for all phases upfront with dependencies before starting any implementation. Track each phase with checkboxes and note blockers inline.
128
+ - Implement fix per selected workflow, updating Tasks as phases complete.
129
+ - Follow diagnosis findings fix the ROOT CAUSE, not symptoms.
130
+ - Minimal changes only. Follow existing patterns.
52
131
 
53
- See `references/task-orchestration.md` for checklist structure and dependency tracking patterns.
132
+ ### Step 5: Verify + Prevent (MANDATORY never skip)
54
133
 
55
- ### Step 4: Fix Implementation & Verification
134
+ **Purpose:** Prove the fix works AND prevent the same bug class from recurring.
56
135
 
57
- - Read and analyze all the implemented changes.
58
- - Spawn multiple parallel search agents to verify no regressions in related code.
59
- - Make sure these fixes don't break other parts of the codebase.
60
- - Prevent future issues by adding comprehensive validation.
136
+ **Mandatory skill chain:**
137
+ 1. **Verify (iron-law):** Run the EXACT commands from pre-fix state capture. Compare output. NO claims without fresh evidence.
138
+ 2. **Regression test:** Add or update test(s) that specifically cover the fixed issue. The test MUST fail without the fix and pass with it.
139
+ 3. **Prevention gate:** Apply defense-in-depth validation where applicable. See `references/prevention-gate.md`.
140
+ 4. **Parallel verification:** Launch `Bash` agents for typecheck + lint + build + test.
61
141
 
62
- ### Step 5: Finalize
142
+ **If verification fails:** Loop back to Step 2 (re-diagnose). After 3 failures → question architecture, discuss with user.
63
143
 
64
- **MANDATORY always execute all steps:**
144
+ See `references/prevention-gate.md` for prevention requirements.
65
145
 
66
- 1. Report summary to user with confidence score (0–10), all changes, and related files.
67
- 2. Update `./docs` via ``docs-manager`` agent (NON-OPTIONAL — always run even for small fixes).
68
- 3. Mark all checklist tasks complete.
69
- 4. Ask user to commit via ``git-manager`` agent.
146
+ **Output:** `✓ Step 5: Verified + Prevented - [before/after comparison], [N] tests added, [M] guards added`
147
+
148
+ ### Step 6: Finalize (MANDATORY — never skip)
149
+
150
+ 1. Report summary: confidence score, root cause, changes, files, prevention measures
151
+ 2. `docs-manager` subagent → update `./docs` if changes warrant (NON-OPTIONAL)
152
+ 3. `TaskUpdate` → mark ALL Tasks `completed` (skip if Task tools unavailable)
153
+ 4. Ask user if they want to commit via `git-manager` subagent
154
+ 5. Run `/ck-journal` to write a concise technical journal entry upon completion
70
155
 
71
156
  ---
72
157
 
73
- ## IMPORTANT: Skill/Agent Activation Matrix
158
+ ## IMPORTANT: Skill/Subagent Activation Matrix
74
159
 
75
160
  See `references/skill-activation-matrix.md` for complete matrix.
76
161
 
77
- **Always activate:** `debug` (all workflows)
78
- **Conditional:** `problem-solving`, `sequential-thinking`, `brainstorming`, `context-engineering`
79
- **Agents:** ``debugger``, ``researcher``, ``planner``, ``code-reviewer``, ``tester``
80
- **Parallel patterns:** Multiple parallel search agents for scouting; parallel terminal commands for verification; parallel ``fullstack-developer`` agents for independent issues (`--parallel` flag)
162
+ **Always activate (ALL workflows):**
163
+ - `scout` (Step 1) — understand before diagnosing
164
+ - `debug` (Step 2) systematic root cause investigation
165
+ - `sequential-thinking` (Step 2) structured hypothesis formation
166
+
167
+ **Conditional:**
168
+ - `problem-solving` — auto-triggers when 2+ hypotheses fail in Step 2
169
+ - `brainstorm` — multiple valid approaches, architecture decision (Deep only)
170
+ - `context-engineering` — fixing AI/LLM/agent code
171
+ - `project-management` — moderate+ for task hydration/sync-back
172
+
173
+ **Subagents:** `debugger`, `researcher`, `planner`, `code-reviewer`, `tester`, `Bash`
174
+ **Parallel:** Multiple `Explore` agents for scouting, `Bash` agents for verification
81
175
 
82
176
  ## Output Format
83
177
 
84
178
  Unified step markers:
85
179
  ```
86
- ✓ Step 0: [Mode] selected - [Complexity] detected
87
- ✓ Step 1: Root cause identified - [summary]
88
- ✓ Step 2: Fix implemented - [N] files changed
89
- ✓ Step 3: Tests [X/X passed]
90
- ✓ Step 4: Review [score]/10 - [status]
91
- ✓ Step 5: Complete - [action taken]
180
+ ✓ Step 0: [Mode] selected
181
+ ✓ Step 1: Scouted - [N] files, [M] deps
182
+ ✓ Step 2: Diagnosed - Root cause: [summary]
183
+ ✓ Step 3: [Complexity] detected - [workflow] selected
184
+ ✓ Step 4: Fixed - [N] files changed
185
+ ✓ Step 5: Verified + Prevented - [tests added], [guards added]
186
+ ✓ Step 6: Complete - [action taken]
92
187
  ```
93
188
 
94
189
  ## References
95
190
 
96
191
  Load as needed:
97
- - `references/mode-selection.md` - Mode selection question format
192
+ - `references/mode-selection.md` - asking the user format for mode
193
+ - `references/diagnosis-protocol.md` - Structured diagnosis methodology (NEW)
194
+ - `references/prevention-gate.md` - Prevention requirements after fix (NEW)
98
195
  - `references/complexity-assessment.md` - Classification criteria
99
- - `references/task-orchestration.md` - Todo checklist structure and dependency tracking
100
- - `references/workflow-quick.md` - Quick: debug → fix → review
101
- - `references/workflow-standard.md` - Standard: full pipeline
102
- - `references/workflow-deep.md` - Deep: research + brainstorm + plan
196
+ - `references/task-orchestration.md` - Native Task patterns for moderate+ workflows
197
+ - `references/workflow-quick.md` - Quick: scoutdiagnose → fix → verify+prevent → review
198
+ - `references/workflow-standard.md` - Standard: full pipeline with Tasks
199
+ - `references/workflow-deep.md` - Deep: research + brainstorm + plan with Tasks
103
200
  - `references/review-cycle.md` - Review logic (autonomous vs HITL)
104
201
  - `references/skill-activation-matrix.md` - When to activate each skill
105
- - `references/parallel-exploration.md` - Parallel search and execution patterns
202
+ - `references/parallel-exploration.md` - Parallel Explore/Bash/Task coordination patterns
106
203
 
107
204
  **Specialized Workflows:**
108
205
  - `references/workflow-ci.md` - GitHub Actions/CI failures
@@ -1,38 +1,42 @@
1
1
  # Complexity Assessment
2
2
 
3
- Classify issue complexity before routing to workflow.
3
+ Classify issue complexity before routing to workflow. Assessment happens AFTER Step 1 (Scout) and Step 2 (Diagnose).
4
4
 
5
5
  ## Classification Criteria
6
6
 
7
- ### Simple (→ workflow-quick.md)
7
+ ### Simple (→ workflow-quick.md) — No Tasks
8
8
 
9
9
  **Indicators:**
10
10
  - Single file affected
11
11
  - Clear error message (type error, syntax, lint)
12
12
  - Keywords: `type`, `typescript`, `tsc`, `lint`, `eslint`, `syntax`
13
13
  - Obvious fix location
14
- - No investigation needed
14
+ - Root cause confirmed by diagnosis (not assumed)
15
+
16
+ **Task usage:** Skip. < 3 steps, overhead exceeds benefit.
15
17
 
16
18
  **Examples:**
17
19
  - "Fix type error in auth.ts"
18
20
  - "ESLint errors after upgrade"
19
21
  - "Syntax error in config file"
20
22
 
21
- ### Moderate (→ workflow-standard.md)
23
+ ### Moderate (→ workflow-standard.md) — Use Tasks (6 phases)
22
24
 
23
25
  **Indicators:**
24
26
  - 2-5 files affected
25
- - Root cause unclear but localized
26
- - Needs debugging investigation
27
+ - Root cause identified but fix spans multiple files
28
+ - Needs investigation to confirm diagnosis
27
29
  - Keywords: `bug`, `broken`, `not working`, `fails sometimes`
28
- - Test failures with unclear cause
30
+ - Test failures with root cause traced
31
+
32
+ **Task usage:** Create 6 phase tasks with dependencies. See `references/task-orchestration.md`.
29
33
 
30
34
  **Examples:**
31
35
  - "Login sometimes fails"
32
36
  - "API returns wrong data"
33
37
  - "Component not rendering correctly"
34
38
 
35
- ### Complex (→ workflow-deep.md)
39
+ ### Complex (→ workflow-deep.md) — Use Tasks with Dependency Chains (9 phases)
36
40
 
37
41
  **Indicators:**
38
42
  - System-wide impact (5+ files)
@@ -41,13 +45,19 @@ Classify issue complexity before routing to workflow.
41
45
  - Keywords: `architecture`, `refactor`, `system-wide`, `design issue`
42
46
  - Performance/security vulnerabilities
43
47
  - Multiple interacting components
48
+ - Root cause spans multiple layers/modules
49
+
50
+ **Task usage:** Create 9 phase tasks. Steps 1+2+3 run parallel (scout+diagnose+research). Full dependency chains. See `references/task-orchestration.md`.
44
51
 
45
52
  **Examples:**
46
53
  - "Memory leak in production"
47
54
  - "Database deadlocks under load"
48
55
  - "Security vulnerability in auth flow"
49
56
 
50
- ### Parallel (→ multiple fullstack-developer agents)
57
+ ### Parallel (→ multiple fullstack-developer agents) — Use Task Trees
58
+
59
+ **Triggers:**
60
+ - `--parallel` flag explicitly passed (activate parallel routing regardless of auto-classification)
51
61
 
52
62
  **Indicators:**
53
63
  - 2+ independent issues mentioned
@@ -55,6 +65,8 @@ Classify issue complexity before routing to workflow.
55
65
  - No dependencies between issues
56
66
  - Keywords: list of issues, "and", "also", multiple error types
57
67
 
68
+ **Task usage:** Create separate task trees per independent issue (each with scout+diagnose+fix+verify). Spawn `fullstack-developer` agent per tree. See `references/task-orchestration.md`.
69
+
58
70
  **Examples:**
59
71
  - "Fix type errors AND update UI styling"
60
72
  - "Auth bug + payment integration issue"
@@ -0,0 +1,133 @@
1
+ # Diagnosis Protocol
2
+
3
+ Structured root cause analysis methodology. Replaces ad-hoc guessing with evidence-based investigation.
4
+
5
+ ## Core Principle
6
+
7
+ **NEVER guess root causes.** Form hypotheses through structured reasoning and test them against evidence.
8
+
9
+ ## Pre-Diagnosis: Capture State (MANDATORY)
10
+
11
+ Before any investigation, capture the current broken state as baseline:
12
+
13
+ ```
14
+ 1. Record exact error messages (copy-paste, not paraphrase)
15
+ 2. Record failing test output (full command + output)
16
+ 3. Record relevant stack traces
17
+ 4. Record relevant log snippets with timestamps
18
+ 5. Record git status / recent changes: git log --oneline -10
19
+ ```
20
+
21
+ This baseline is required for Step 5 (Verify) — you MUST compare before/after.
22
+
23
+ ## Diagnosis Chain (Follow in Order)
24
+
25
+ ### Phase 1: Observe — What is actually happening?
26
+
27
+ Read, don't assume. Use `debug` (systematic-debugging Phase 1).
28
+
29
+ - What is the exact error message?
30
+ - Where does it occur? (file, line, function)
31
+ - When did it start? (check `git log`, `git bisect`)
32
+ - Can it be reproduced consistently?
33
+ - What is the expected vs actual behavior?
34
+
35
+ ### Phase 2: Hypothesize — Why might this happen?
36
+
37
+ Activate `sequential-thinking` skill. Form hypotheses through structured reasoning.
38
+
39
+ **Structured hypothesis formation:**
40
+ ```
41
+ For each hypothesis:
42
+ 1. State the hypothesis clearly
43
+ 2. What evidence would CONFIRM it?
44
+ 3. What evidence would REFUTE it?
45
+ 4. How to test it quickly?
46
+ ```
47
+
48
+ **Common hypothesis categories:**
49
+ - Recent code change introduced regression (`git log`, `git diff`)
50
+ - Data/state mismatch (wrong input, stale cache, race condition)
51
+ - Environment difference (deps version, config, platform)
52
+ - Missing validation (null check, type guard, boundary)
53
+ - Incorrect assumption (API contract, data shape, ordering)
54
+
55
+ ### Phase 3: Test — Verify hypotheses against evidence
56
+
57
+ Spawn parallel `Explore` subagents to test each hypothesis simultaneously:
58
+
59
+ ```
60
+ // Launch in SINGLE message — max 3 parallel agents
61
+ Task("Explore", "Test hypothesis A: [specific search/check]", "Verify H-A")
62
+ Task("Explore", "Test hypothesis B: [specific search/check]", "Verify H-B")
63
+ Task("Explore", "Test hypothesis C: [specific search/check]", "Verify H-C")
64
+ ```
65
+
66
+ **For each hypothesis result:**
67
+ - CONFIRMED: Evidence supports this as root cause → proceed to root cause tracing
68
+ - REFUTED: Evidence contradicts → discard, note why
69
+ - INCONCLUSIVE: Need more data → refine hypothesis or gather more evidence
70
+
71
+ ### Phase 4: Trace — Follow the root cause chain
72
+
73
+ Use `debug` (root-cause-tracing technique). Trace backward:
74
+
75
+ ```
76
+ Symptom (where error appears)
77
+ ↑ Immediate cause (what triggered the error)
78
+ ↑ Contributing factor (what set up the bad state)
79
+ ↑ ROOT CAUSE (the original trigger that must be fixed)
80
+ ```
81
+
82
+ **Rule:** NEVER fix where the error appears. Trace back to the source.
83
+
84
+ ### Phase 5: Escalate — When hypotheses fail
85
+
86
+ If 2+ hypotheses are REFUTED:
87
+ 1. Auto-activate `problem-solving` skill
88
+ 2. Apply Inversion Exercise: "What would CAUSE this bug intentionally?"
89
+ 3. Apply Scale Game: "Does this fail with 1 item? 100? 10000?"
90
+ 4. Consider environmental factors (timing, concurrency, platform)
91
+
92
+ If 3+ fix attempts fail after diagnosis:
93
+ 1. STOP immediately
94
+ 2. Question the architecture — is the design fundamentally flawed?
95
+ 3. Discuss with user before attempting more
96
+
97
+ ## Diagnosis Report Format
98
+
99
+ ```markdown
100
+ ## Diagnosis Report
101
+
102
+ **Issue:** [one-line description]
103
+ **Pre-fix state captured:** Yes/No
104
+
105
+ ### Root Cause
106
+ [Clear explanation of the root cause, traced back to origin]
107
+
108
+ ### Evidence Chain
109
+ 1. [Observation] → led to hypothesis [X]
110
+ 2. [Test result] → confirmed/refuted [X]
111
+ 3. [Trace] → root cause at [file:line]
112
+
113
+ ### Affected Scope
114
+ - Files: [list]
115
+ - Functions: [list]
116
+ - Dependencies: [list]
117
+
118
+ ### Recommended Fix
119
+ [What to change and why — addressing root cause, not symptoms]
120
+
121
+ ### Prevention Needed
122
+ [What guards/tests to add to prevent recurrence]
123
+ ```
124
+
125
+ ## Quick Mode Diagnosis
126
+
127
+ For trivial issues (type errors, lint, syntax), abbreviated diagnosis:
128
+
129
+ 1. Read error message
130
+ 2. Locate affected file(s) via scout results
131
+ 3. Identify root cause (usually obvious for simple issues)
132
+ 4. Skip parallel hypothesis testing
133
+ 5. Still capture pre-fix state for verification
@@ -1,16 +1,32 @@
1
1
  # Mode Selection
2
2
 
3
- Ask the user at start of fixing workflow to choose a mode. Present the question directly in your response, then stop and wait for their answer.
4
-
5
- ## Question Format
6
-
7
- Ask the user:
8
-
9
- > **Fix Mode:** How should I handle the fix workflow?
10
- >
11
- > 1. **Autonomous (Recommended)** — Auto-approve if quality high, only ask when stuck
12
- > 2. **Human-in-the-loop** — Pause for approval at each major step
13
- > 3. **Quick fix** — Fast debug-fix-review cycle for simple issues
3
+ Use asking the user at start of fixing workflow.
4
+
5
+ ## asking the user Format
6
+
7
+ ```json
8
+ {
9
+ "questions": [{
10
+ "question": "How should I handle the fix workflow?",
11
+ "header": "Fix Mode",
12
+ "options": [
13
+ {
14
+ "label": "Autonomous (Recommended)",
15
+ "description": "Auto-approve if quality high, only ask when stuck"
16
+ },
17
+ {
18
+ "label": "Human-in-the-loop",
19
+ "description": "Pause for approval at each major step"
20
+ },
21
+ {
22
+ "label": "Quick fix",
23
+ "description": "Fast debug-fix-review cycle for simple issues"
24
+ }
25
+ ],
26
+ "multiSelect": false
27
+ }]
28
+ }
29
+ ```
14
30
 
15
31
  ## Mode Recommendations
16
32
 
@@ -1,19 +1,19 @@
1
1
  # Parallel Exploration
2
2
 
3
- Patterns for launching multiple agents in parallel to scout codebase and verify implementation.
3
+ Patterns for launching multiple subagents in parallel to scout codebase, verify implementation, and coordinate via native Tasks.
4
4
 
5
5
  ## Parallel Exploration (Scouting)
6
6
 
7
- Launch multiple `Explore` agents simultaneously when needing to find:
7
+ Launch multiple `Explore` subagents simultaneously when needing to find:
8
8
  - Related files across different areas
9
9
  - Similar implementations/patterns
10
10
  - Dependencies and usage
11
11
 
12
12
  **Pattern:**
13
13
  ```
14
- Task(agent_type="Explore", prompt="Find [X] in [area1]", description="Scout area1")
15
- Task(agent_type="Explore", prompt="Find [Y] in [area2]", description="Scout area2")
16
- Task(agent_type="Explore", prompt="Find [Z] in [area3]", description="Scout area3")
14
+ Task(subagent_type="Explore", prompt="Find [X] in [area1]", description="Scout area1")
15
+ Task(subagent_type="Explore", prompt="Find [Y] in [area2]", description="Scout area2")
16
+ Task(subagent_type="Explore", prompt="Find [Z] in [area3]", description="Scout area3")
17
17
  ```
18
18
 
19
19
  **Example - Multi-area scouting:**
@@ -26,12 +26,12 @@ Task("Explore", "Find test files for auth module", "Scout tests")
26
26
 
27
27
  ## Parallel Verification (Bash)
28
28
 
29
- Launch multiple `Bash` agents to verify implementation from different angles.
29
+ Launch multiple `Bash` subagents to verify implementation from different angles.
30
30
 
31
31
  **Pattern:**
32
32
  ```
33
- Task(agent_type="Bash", prompt="Run [command1]", description="Verify X")
34
- Task(agent_type="Bash", prompt="Run [command2]", description="Verify Y")
33
+ Task(subagent_type="Bash", prompt="Run [command1]", description="Verify X")
34
+ Task(subagent_type="Bash", prompt="Run [command2]", description="Verify Y")
35
35
  ```
36
36
 
37
37
  **Example - Multi-verification:**
@@ -42,6 +42,27 @@ Task("Bash", "Run lint: bun run lint", "Verify lint")
42
42
  Task("Bash", "Run build: bun run build", "Verify build")
43
43
  ```
44
44
 
45
+ ## Task-Coordinated Parallel (Moderate+)
46
+
47
+ For multi-phase fixes, use native Tasks to coordinate parallel agents.
48
+ See `references/task-orchestration.md` for full patterns.
49
+
50
+ **Pattern - Parallel issue trees:**
51
+ ```
52
+ // Create separate task trees per independent issue
53
+ T_A1 = TaskCreate(subject="[Issue A] Debug", activeForm="Debugging A")
54
+ T_A2 = TaskCreate(subject="[Issue A] Fix", activeForm="Fixing A", addBlockedBy=[T_A1])
55
+ T_B1 = TaskCreate(subject="[Issue B] Debug", activeForm="Debugging B")
56
+ T_B2 = TaskCreate(subject="[Issue B] Fix", activeForm="Fixing B", addBlockedBy=[T_B1])
57
+ T_final = TaskCreate(subject="Integration verify", addBlockedBy=[T_A2, T_B2])
58
+
59
+ // Spawn agents per issue tree
60
+ Task("fullstack-developer", "Fix Issue A. Claim tasks via TaskUpdate.", "Fix A")
61
+ Task("fullstack-developer", "Fix Issue B. Claim tasks via TaskUpdate.", "Fix B")
62
+ ```
63
+
64
+ Agents claim work via `TaskUpdate(status="in_progress")` and complete via `TaskUpdate(status="completed")`. Blocked tasks auto-unblock when dependencies resolve.
65
+
45
66
  ## When to Use Parallel
46
67
 
47
68
  | Scenario | Parallel Strategy |
@@ -50,11 +71,12 @@ Task("Bash", "Run build: bun run build", "Verify build")
50
71
  | Multi-module fix | Explore each module in parallel |
51
72
  | After implementation | Bash agents for typecheck + lint + build |
52
73
  | Before commit | Bash agents for test + build + lint |
74
+ | 2+ independent issues | Task trees per issue + fullstack-developer agents |
53
75
 
54
- ## Combining Explore + Bash
76
+ ## Combining Explore + Tasks + Bash
55
77
 
56
78
  **Step 1:** Parallel Explore to scout
57
- **Step 2:** Sequential implementation
79
+ **Step 2:** Sequential implementation (update Tasks as phases complete)
58
80
  **Step 3:** Parallel Bash to verify
59
81
 
60
82
  ```
@@ -62,7 +84,7 @@ Task("Bash", "Run build: bun run build", "Verify build")
62
84
  Task("Explore", "Find payment handlers", "Scout payments")
63
85
  Task("Explore", "Find order processors", "Scout orders")
64
86
 
65
- // Wait for results, implement fix
87
+ // Wait for results, implement fix, TaskUpdate each phase
66
88
 
67
89
  // Verify phase - parallel
68
90
  Task("Bash", "Run tests: bun test", "Run tests")
@@ -73,5 +95,6 @@ Task("Bash", "Run build", "Verify build")
73
95
  ## Resource Limits
74
96
 
75
97
  - Max 3 parallel agents recommended (system resources)
76
- - Each agent has 200K token context limit
98
+ - Each subagent has 200K token context limit
77
99
  - Keep prompts concise to avoid context bloat
100
+ - Use `TaskList()` to check for available unblocked work