nemonix-cli 1.0.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 (281) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +186 -0
  3. package/dist/cli.js +6870 -0
  4. package/package.json +48 -0
  5. package/src/config/claude-code-config/.claude/commands/setup-tmux.md +0 -0
  6. package/src/config/claude-code-config/CHANGELOG.md +261 -0
  7. package/src/config/claude-code-config/README.md +1 -0
  8. package/src/config/claude-code-config/agents/action.md +36 -0
  9. package/src/config/claude-code-config/agents/clean-code-runner.md +61 -0
  10. package/src/config/claude-code-config/agents/code-reviewer.md +172 -0
  11. package/src/config/claude-code-config/agents/code-simplifier.md +49 -0
  12. package/src/config/claude-code-config/agents/explore-codebase.md +65 -0
  13. package/src/config/claude-code-config/agents/explore-docs.md +65 -0
  14. package/src/config/claude-code-config/agents/explore-fast.md +22 -0
  15. package/src/config/claude-code-config/agents/implementer.md +181 -0
  16. package/src/config/claude-code-config/agents/snipper.md +36 -0
  17. package/src/config/claude-code-config/agents/websearch.md +42 -0
  18. package/src/config/claude-code-config/commands/prompts/create-vitejs-app.md +272 -0
  19. package/src/config/claude-code-config/commands/prompts/nextjs-add-prisma-db.md +136 -0
  20. package/src/config/claude-code-config/commands/prompts/nextjs-setup-better-auth.md +173 -0
  21. package/src/config/claude-code-config/commands/prompts/nextjs-setup-project.md +200 -0
  22. package/src/config/claude-code-config/commands/prompts/prompt.md +55 -0
  23. package/src/config/claude-code-config/commands/prompts/saas-challenge-idea.md +135 -0
  24. package/src/config/claude-code-config/commands/prompts/saas-create-architecture.md +242 -0
  25. package/src/config/claude-code-config/commands/prompts/saas-create-headline.md +132 -0
  26. package/src/config/claude-code-config/commands/prompts/saas-create-landing-copywritting.md +267 -0
  27. package/src/config/claude-code-config/commands/prompts/saas-create-legals-docs.md +176 -0
  28. package/src/config/claude-code-config/commands/prompts/saas-create-logos.md +240 -0
  29. package/src/config/claude-code-config/commands/prompts/saas-create-prd.md +195 -0
  30. package/src/config/claude-code-config/commands/prompts/saas-create-tasks.md +240 -0
  31. package/src/config/claude-code-config/commands/prompts/saas-define-pricing.md +293 -0
  32. package/src/config/claude-code-config/commands/prompts/saas-find-domain-name.md +190 -0
  33. package/src/config/claude-code-config/commands/prompts/saas-implement-landing-page.md +257 -0
  34. package/src/config/claude-code-config/commands/prompts/setup-tmux.md +160 -0
  35. package/src/config/claude-code-config/commands/prompts/tools.md +148 -0
  36. package/src/config/claude-code-config/hooks/hook-post-file.ts +162 -0
  37. package/src/config/claude-code-config/scripts/.claude/skills/fix-on-my-computer/SKILL.md +81 -0
  38. package/src/config/claude-code-config/scripts/CLAUDE.md +50 -0
  39. package/src/config/claude-code-config/scripts/auto-rename-session/CLAUDE.md +59 -0
  40. package/src/config/claude-code-config/scripts/auto-rename-session/__tests__/shared.test.ts +185 -0
  41. package/src/config/claude-code-config/scripts/auto-rename-session/__tests__/title-generation.test.ts +44 -0
  42. package/src/config/claude-code-config/scripts/auto-rename-session/fixtures/sample-transcript.jsonl +3 -0
  43. package/src/config/claude-code-config/scripts/auto-rename-session/fixtures/transcript-short-message.jsonl +2 -0
  44. package/src/config/claude-code-config/scripts/auto-rename-session/fixtures/transcript-with-title.jsonl +3 -0
  45. package/src/config/claude-code-config/scripts/auto-rename-session/src/index.ts +113 -0
  46. package/src/config/claude-code-config/scripts/auto-rename-session/src/rename-all.ts +148 -0
  47. package/src/config/claude-code-config/scripts/auto-rename-session/src/shared.ts +157 -0
  48. package/src/config/claude-code-config/scripts/auto-rename-session/src/worker.ts +58 -0
  49. package/src/config/claude-code-config/scripts/biome.json +37 -0
  50. package/src/config/claude-code-config/scripts/claude-code-ai/CLAUDE.md +84 -0
  51. package/src/config/claude-code-config/scripts/claude-code-ai/__tests__/claude.test.ts +19 -0
  52. package/src/config/claude-code-config/scripts/claude-code-ai/__tests__/paths.test.ts +68 -0
  53. package/src/config/claude-code-config/scripts/claude-code-ai/claude.ts +56 -0
  54. package/src/config/claude-code-config/scripts/claude-code-ai/cli.ts +46 -0
  55. package/src/config/claude-code-config/scripts/claude-code-ai/helper/credentials.ts +76 -0
  56. package/src/config/claude-code-config/scripts/claude-code-ai/helper/index.ts +9 -0
  57. package/src/config/claude-code-config/scripts/claude-code-ai/helper/paths.ts +51 -0
  58. package/src/config/claude-code-config/scripts/command-validator/CLAUDE.md +112 -0
  59. package/src/config/claude-code-config/scripts/command-validator/README.md +147 -0
  60. package/src/config/claude-code-config/scripts/command-validator/src/__tests__/validator.test.ts +99 -0
  61. package/src/config/claude-code-config/scripts/command-validator/src/cli.ts +121 -0
  62. package/src/config/claude-code-config/scripts/command-validator/src/lib/security-rules.ts +174 -0
  63. package/src/config/claude-code-config/scripts/command-validator/src/lib/types.ts +34 -0
  64. package/src/config/claude-code-config/scripts/command-validator/src/lib/validator.ts +90 -0
  65. package/src/config/claude-code-config/scripts/package.json +43 -0
  66. package/src/config/claude-code-config/scripts/statusline/CLAUDE.md +205 -0
  67. package/src/config/claude-code-config/scripts/statusline/README.md +193 -0
  68. package/src/config/claude-code-config/scripts/statusline/__tests__/context.test.ts +229 -0
  69. package/src/config/claude-code-config/scripts/statusline/__tests__/formatters.test.ts +108 -0
  70. package/src/config/claude-code-config/scripts/statusline/__tests__/statusline.test.ts +309 -0
  71. package/src/config/claude-code-config/scripts/statusline/data/.gitkeep +0 -0
  72. package/src/config/claude-code-config/scripts/statusline/defaults.json +82 -0
  73. package/src/config/claude-code-config/scripts/statusline/docs/ARCHITECTURE.md +166 -0
  74. package/src/config/claude-code-config/scripts/statusline/fixtures/mock-transcript.jsonl +4 -0
  75. package/src/config/claude-code-config/scripts/statusline/fixtures/test-input.json +35 -0
  76. package/src/config/claude-code-config/scripts/statusline/src/analyze-daily-usage.ts +151 -0
  77. package/src/config/claude-code-config/scripts/statusline/src/commands/interactive-config.ts +515 -0
  78. package/src/config/claude-code-config/scripts/statusline/src/debug-payloads.ts +195 -0
  79. package/src/config/claude-code-config/scripts/statusline/src/index.ts +224 -0
  80. package/src/config/claude-code-config/scripts/statusline/src/lib/config-types.ts +110 -0
  81. package/src/config/claude-code-config/scripts/statusline/src/lib/config.ts +21 -0
  82. package/src/config/claude-code-config/scripts/statusline/src/lib/context.ts +103 -0
  83. package/src/config/claude-code-config/scripts/statusline/src/lib/features/limits/commands/weekly-analysis.ts +108 -0
  84. package/src/config/claude-code-config/scripts/statusline/src/lib/features/limits/index.ts +111 -0
  85. package/src/config/claude-code-config/scripts/statusline/src/lib/features/limits/types.ts +15 -0
  86. package/src/config/claude-code-config/scripts/statusline/src/lib/features/spend/commands/migrate-to-sqlite.ts +136 -0
  87. package/src/config/claude-code-config/scripts/statusline/src/lib/features/spend/commands/spend-day.ts +79 -0
  88. package/src/config/claude-code-config/scripts/statusline/src/lib/features/spend/commands/spend-month.ts +66 -0
  89. package/src/config/claude-code-config/scripts/statusline/src/lib/features/spend/commands/spend-project.ts +85 -0
  90. package/src/config/claude-code-config/scripts/statusline/src/lib/features/spend/database.ts +395 -0
  91. package/src/config/claude-code-config/scripts/statusline/src/lib/features/spend/index.ts +178 -0
  92. package/src/config/claude-code-config/scripts/statusline/src/lib/features/spend/payload-logger.ts +161 -0
  93. package/src/config/claude-code-config/scripts/statusline/src/lib/features/spend/types.ts +37 -0
  94. package/src/config/claude-code-config/scripts/statusline/src/lib/formatters.ts +426 -0
  95. package/src/config/claude-code-config/scripts/statusline/src/lib/git.ts +100 -0
  96. package/src/config/claude-code-config/scripts/statusline/src/lib/menu-factories.ts +224 -0
  97. package/src/config/claude-code-config/scripts/statusline/src/lib/presets.ts +177 -0
  98. package/src/config/claude-code-config/scripts/statusline/src/lib/render-pure.ts +516 -0
  99. package/src/config/claude-code-config/scripts/statusline/src/lib/types.ts +36 -0
  100. package/src/config/claude-code-config/scripts/statusline/src/lib/utils.ts +15 -0
  101. package/src/config/claude-code-config/scripts/statusline/src/stats.ts +119 -0
  102. package/src/config/claude-code-config/scripts/statusline/src/tests/spend-v2.test.ts +377 -0
  103. package/src/config/claude-code-config/scripts/statusline/src/tools/fixed-cost-calc.ts +317 -0
  104. package/src/config/claude-code-config/scripts/statusline/statusline.config.free.json +79 -0
  105. package/src/config/claude-code-config/scripts/statusline/statusline.config.json +100 -0
  106. package/src/config/claude-code-config/scripts/statusline/test-with-fixtures.ts +37 -0
  107. package/src/config/claude-code-config/scripts/statusline/test.ts +20 -0
  108. package/src/config/claude-code-config/scripts/statusline/tsconfig.json +27 -0
  109. package/src/config/claude-code-config/scripts/tsconfig.json +27 -0
  110. package/src/config/claude-code-config/settings.json +92 -0
  111. package/src/config/claude-code-config/skills/aibuilder-create-saas/SKILL.md +176 -0
  112. package/src/config/claude-code-config/skills/aibuilder-create-saas/references/architecture-template.md +436 -0
  113. package/src/config/claude-code-config/skills/aibuilder-create-saas/references/challenge-framework.md +289 -0
  114. package/src/config/claude-code-config/skills/aibuilder-create-saas/references/discovery-framework.md +338 -0
  115. package/src/config/claude-code-config/skills/aibuilder-create-saas/references/prd-template.md +452 -0
  116. package/src/config/claude-code-config/skills/aibuilder-create-saas/references/task-template.md +263 -0
  117. package/src/config/claude-code-config/skills/aibuilder-create-saas/references/tools.md +132 -0
  118. package/src/config/claude-code-config/skills/aibuilder-create-saas/scripts/rename-project.sh +42 -0
  119. package/src/config/claude-code-config/skills/aibuilder-create-saas/scripts/setup.sh +104 -0
  120. package/src/config/claude-code-config/skills/aibuilder-create-saas/steps/step-00-init.md +174 -0
  121. package/src/config/claude-code-config/skills/aibuilder-create-saas/steps/step-01-discovery.md +342 -0
  122. package/src/config/claude-code-config/skills/aibuilder-create-saas/steps/step-02-brainstorm.md +230 -0
  123. package/src/config/claude-code-config/skills/aibuilder-create-saas/steps/step-03-validate.md +372 -0
  124. package/src/config/claude-code-config/skills/aibuilder-create-saas/steps/step-04-prd.md +364 -0
  125. package/src/config/claude-code-config/skills/aibuilder-create-saas/steps/step-05-architecture.md +904 -0
  126. package/src/config/claude-code-config/skills/aibuilder-create-saas/steps/step-06-tasks.md +446 -0
  127. package/src/config/claude-code-config/skills/explore/SKILL.md +119 -0
  128. package/src/config/claude-code-config/skills/frontend-design/LICENSE.txt +177 -0
  129. package/src/config/claude-code-config/skills/frontend-design/SKILL.md +42 -0
  130. package/src/config/claude-code-config/skills/git-commit/SKILL.md +42 -0
  131. package/src/config/claude-code-config/skills/git-create-pr/SKILL.md +53 -0
  132. package/src/config/claude-code-config/skills/git-fix-pr-comments/SKILL.md +51 -0
  133. package/src/config/claude-code-config/skills/git-merge/SKILL.md +68 -0
  134. package/src/config/claude-code-config/skills/marketing-copywriting/SKILL.md +72 -0
  135. package/src/config/claude-code-config/skills/meta-claude-memory/SKILL.md +694 -0
  136. package/src/config/claude-code-config/skills/meta-claude-memory/references/comprehensive-example.md +175 -0
  137. package/src/config/claude-code-config/skills/meta-claude-memory/references/project-patterns.md +334 -0
  138. package/src/config/claude-code-config/skills/meta-claude-memory/references/prompting-techniques.md +411 -0
  139. package/src/config/claude-code-config/skills/meta-claude-memory/references/rules-directory-guide.md +298 -0
  140. package/src/config/claude-code-config/skills/meta-claude-memory/references/section-templates.md +347 -0
  141. package/src/config/claude-code-config/skills/meta-hooks-creator/SKILL.md +357 -0
  142. package/src/config/claude-code-config/skills/meta-hooks-creator/references/command-vs-prompt.md +287 -0
  143. package/src/config/claude-code-config/skills/meta-hooks-creator/references/examples.md +689 -0
  144. package/src/config/claude-code-config/skills/meta-hooks-creator/references/hook-types.md +495 -0
  145. package/src/config/claude-code-config/skills/meta-hooks-creator/references/input-output-schemas.md +503 -0
  146. package/src/config/claude-code-config/skills/meta-hooks-creator/references/matchers.md +517 -0
  147. package/src/config/claude-code-config/skills/meta-hooks-creator/references/troubleshooting.md +653 -0
  148. package/src/config/claude-code-config/skills/meta-prompt-creator/SKILL.md +285 -0
  149. package/src/config/claude-code-config/skills/meta-prompt-creator/references/anthropic-best-practices.md +126 -0
  150. package/src/config/claude-code-config/skills/meta-prompt-creator/references/anti-patterns.md +57 -0
  151. package/src/config/claude-code-config/skills/meta-prompt-creator/references/clarity-principles.md +54 -0
  152. package/src/config/claude-code-config/skills/meta-prompt-creator/references/context-management.md +389 -0
  153. package/src/config/claude-code-config/skills/meta-prompt-creator/references/few-shot-patterns.md +47 -0
  154. package/src/config/claude-code-config/skills/meta-prompt-creator/references/openai-best-practices.md +50 -0
  155. package/src/config/claude-code-config/skills/meta-prompt-creator/references/prompt-templates.md +110 -0
  156. package/src/config/claude-code-config/skills/meta-prompt-creator/references/reasoning-techniques.md +52 -0
  157. package/src/config/claude-code-config/skills/meta-prompt-creator/references/system-prompt-patterns.md +48 -0
  158. package/src/config/claude-code-config/skills/meta-prompt-creator/references/xml-structure.md +36 -0
  159. package/src/config/claude-code-config/skills/meta-skill-creator/LICENSE.txt +202 -0
  160. package/src/config/claude-code-config/skills/meta-skill-creator/SKILL.md +421 -0
  161. package/src/config/claude-code-config/skills/meta-skill-creator/package.json +5 -0
  162. package/src/config/claude-code-config/skills/meta-skill-creator/references/output-patterns.md +82 -0
  163. package/src/config/claude-code-config/skills/meta-skill-creator/references/progressive-disclosure-patterns.md +374 -0
  164. package/src/config/claude-code-config/skills/meta-skill-creator/references/prompting-integration.md +363 -0
  165. package/src/config/claude-code-config/skills/meta-skill-creator/references/real-world-examples.md +513 -0
  166. package/src/config/claude-code-config/skills/meta-skill-creator/references/script-patterns.md +385 -0
  167. package/src/config/claude-code-config/skills/meta-skill-creator/references/workflows.md +28 -0
  168. package/src/config/claude-code-config/skills/meta-skill-creator/references/xml-tag-guide.md +606 -0
  169. package/src/config/claude-code-config/skills/meta-skill-creator/scripts/init-skill.ts +214 -0
  170. package/src/config/claude-code-config/skills/meta-skill-creator/scripts/package-skill.ts +146 -0
  171. package/src/config/claude-code-config/skills/meta-skill-creator/scripts/validate.ts +138 -0
  172. package/src/config/claude-code-config/skills/meta-skill-workflow-creator/SKILL.md +390 -0
  173. package/src/config/claude-code-config/skills/meta-skill-workflow-creator/references/ask-patterns.md +225 -0
  174. package/src/config/claude-code-config/skills/meta-skill-workflow-creator/references/prompt-engineering.md +377 -0
  175. package/src/config/claude-code-config/skills/meta-skill-workflow-creator/references/state-management.md +275 -0
  176. package/src/config/claude-code-config/skills/meta-skill-workflow-creator/references/step-template.md +334 -0
  177. package/src/config/claude-code-config/skills/meta-skill-workflow-creator/references/workflow-patterns.md +300 -0
  178. package/src/config/claude-code-config/skills/meta-subagent-creator/SKILL.md +451 -0
  179. package/src/config/claude-code-config/skills/meta-subagent-creator/references/context-management.md +567 -0
  180. package/src/config/claude-code-config/skills/meta-subagent-creator/references/debugging-agents.md +714 -0
  181. package/src/config/claude-code-config/skills/meta-subagent-creator/references/error-handling-and-recovery.md +502 -0
  182. package/src/config/claude-code-config/skills/meta-subagent-creator/references/evaluation-and-testing.md +374 -0
  183. package/src/config/claude-code-config/skills/meta-subagent-creator/references/orchestration-patterns.md +591 -0
  184. package/src/config/claude-code-config/skills/meta-subagent-creator/references/subagents.md +599 -0
  185. package/src/config/claude-code-config/skills/meta-subagent-creator/references/writing-subagent-prompts.md +513 -0
  186. package/src/config/claude-code-config/skills/ralph-loop/SKILL.md +117 -0
  187. package/src/config/claude-code-config/skills/ralph-loop/scripts/setup.sh +278 -0
  188. package/src/config/claude-code-config/skills/ralph-loop/steps/step-00-init.md +215 -0
  189. package/src/config/claude-code-config/skills/ralph-loop/steps/step-01-interactive-prd.md +366 -0
  190. package/src/config/claude-code-config/skills/ralph-loop/steps/step-02-create-stories.md +273 -0
  191. package/src/config/claude-code-config/skills/ralph-loop/steps/step-03-finish.md +245 -0
  192. package/src/config/claude-code-config/skills/ralph-tasks/SKILL.md +88 -0
  193. package/src/config/claude-code-config/skills/ralph-tasks/scripts/add-task.sh +36 -0
  194. package/src/config/claude-code-config/skills/ralph-tasks/scripts/list-tasks.sh +66 -0
  195. package/src/config/claude-code-config/skills/ralph-tasks/scripts/remove-task.sh +47 -0
  196. package/src/config/claude-code-config/skills/ralph-tasks/scripts/setup.sh +201 -0
  197. package/src/config/claude-code-config/skills/ralph-tasks/steps/action-add-search.md +131 -0
  198. package/src/config/claude-code-config/skills/ralph-tasks/steps/action-add.md +46 -0
  199. package/src/config/claude-code-config/skills/ralph-tasks/steps/action-init.md +123 -0
  200. package/src/config/claude-code-config/skills/ralph-tasks/steps/action-list.md +58 -0
  201. package/src/config/claude-code-config/skills/ralph-tasks/steps/action-remove.md +48 -0
  202. package/src/config/claude-code-config/skills/ralph-tasks/steps/action-setup.md +46 -0
  203. package/src/config/claude-code-config/skills/ralph-tasks/steps/action-wake-up.md +62 -0
  204. package/src/config/claude-code-config/skills/utils-fix-errors/SKILL.md +61 -0
  205. package/src/config/claude-code-config/skills/utils-fix-grammar/SKILL.md +59 -0
  206. package/src/config/claude-code-config/skills/utils-oneshot/SKILL.md +56 -0
  207. package/src/config/claude-code-config/skills/utils-refactor/SKILL.md +89 -0
  208. package/src/config/claude-code-config/skills/utils-save-docs/SKILL.md +74 -0
  209. package/src/config/claude-code-config/skills/utils-ultrathink/SKILL.md +42 -0
  210. package/src/config/claude-code-config/skills/workflow-apex/SKILL.md +116 -0
  211. package/src/config/claude-code-config/skills/workflow-apex/scripts/setup-templates.sh +144 -0
  212. package/src/config/claude-code-config/skills/workflow-apex/scripts/update-progress.sh +80 -0
  213. package/src/config/claude-code-config/skills/workflow-apex/steps/step-00-init.md +273 -0
  214. package/src/config/claude-code-config/skills/workflow-apex/steps/step-00b-branch.md +126 -0
  215. package/src/config/claude-code-config/skills/workflow-apex/steps/step-00b-economy.md +244 -0
  216. package/src/config/claude-code-config/skills/workflow-apex/steps/step-00b-interactive.md +165 -0
  217. package/src/config/claude-code-config/skills/workflow-apex/steps/step-00b-save.md +123 -0
  218. package/src/config/claude-code-config/skills/workflow-apex/steps/step-01-analyze.md +361 -0
  219. package/src/config/claude-code-config/skills/workflow-apex/steps/step-02-plan.md +422 -0
  220. package/src/config/claude-code-config/skills/workflow-apex/steps/step-02b-tasks.md +301 -0
  221. package/src/config/claude-code-config/skills/workflow-apex/steps/step-03-execute-teams.md +297 -0
  222. package/src/config/claude-code-config/skills/workflow-apex/steps/step-03-execute.md +239 -0
  223. package/src/config/claude-code-config/skills/workflow-apex/steps/step-04-validate.md +264 -0
  224. package/src/config/claude-code-config/skills/workflow-apex/steps/step-05-examine.md +294 -0
  225. package/src/config/claude-code-config/skills/workflow-apex/steps/step-06-resolve.md +237 -0
  226. package/src/config/claude-code-config/skills/workflow-apex/steps/step-07-tests.md +250 -0
  227. package/src/config/claude-code-config/skills/workflow-apex/steps/step-08-run-tests.md +308 -0
  228. package/src/config/claude-code-config/skills/workflow-apex/steps/step-09-finish.md +193 -0
  229. package/src/config/claude-code-config/skills/workflow-apex/templates/00-context.md +53 -0
  230. package/src/config/claude-code-config/skills/workflow-apex/templates/01-analyze.md +10 -0
  231. package/src/config/claude-code-config/skills/workflow-apex/templates/02-plan.md +10 -0
  232. package/src/config/claude-code-config/skills/workflow-apex/templates/03-execute.md +10 -0
  233. package/src/config/claude-code-config/skills/workflow-apex/templates/04-validate.md +10 -0
  234. package/src/config/claude-code-config/skills/workflow-apex/templates/05-examine.md +10 -0
  235. package/src/config/claude-code-config/skills/workflow-apex/templates/06-resolve.md +10 -0
  236. package/src/config/claude-code-config/skills/workflow-apex/templates/07-tests.md +10 -0
  237. package/src/config/claude-code-config/skills/workflow-apex/templates/08-run-tests.md +10 -0
  238. package/src/config/claude-code-config/skills/workflow-apex/templates/09-finish.md +10 -0
  239. package/src/config/claude-code-config/skills/workflow-apex/templates/README.md +195 -0
  240. package/src/config/claude-code-config/skills/workflow-apex/templates/step-complete.md +7 -0
  241. package/src/config/claude-code-config/skills/workflow-brainstorm/SKILL.md +127 -0
  242. package/src/config/claude-code-config/skills/workflow-brainstorm/steps/step-01-explore.md +230 -0
  243. package/src/config/claude-code-config/skills/workflow-brainstorm/steps/step-02-challenge.md +238 -0
  244. package/src/config/claude-code-config/skills/workflow-brainstorm/steps/step-03-synthesize.md +337 -0
  245. package/src/config/claude-code-config/skills/workflow-brainstorm/steps/step-04-action.md +285 -0
  246. package/src/config/claude-code-config/skills/workflow-ci-fixer/SKILL.md +150 -0
  247. package/src/config/claude-code-config/skills/workflow-ci-fixer/references/cli-commands.md +122 -0
  248. package/src/config/claude-code-config/skills/workflow-ci-fixer/references/github-cli.md +243 -0
  249. package/src/config/claude-code-config/skills/workflow-ci-fixer/references/troubleshooting.md +362 -0
  250. package/src/config/claude-code-config/skills/workflow-ci-fixer/references/vercel-cli.md +192 -0
  251. package/src/config/claude-code-config/skills/workflow-ci-fixer/steps/step-00-init.md +157 -0
  252. package/src/config/claude-code-config/skills/workflow-ci-fixer/steps/step-01-watch-ci.md +192 -0
  253. package/src/config/claude-code-config/skills/workflow-ci-fixer/steps/step-02-analyze-errors.md +263 -0
  254. package/src/config/claude-code-config/skills/workflow-ci-fixer/steps/step-03-fix-locally.md +312 -0
  255. package/src/config/claude-code-config/skills/workflow-ci-fixer/steps/step-04-commit-push.md +206 -0
  256. package/src/config/claude-code-config/skills/workflow-ci-fixer/steps/step-05-cleanup.md +196 -0
  257. package/src/config/claude-code-config/skills/workflow-clean-code/SKILL.md +129 -0
  258. package/src/config/claude-code-config/skills/workflow-clean-code/references/general-clean-code.md +347 -0
  259. package/src/config/claude-code-config/skills/workflow-clean-code/references/nextjs-clean-code.md +458 -0
  260. package/src/config/claude-code-config/skills/workflow-clean-code/references/react-clean-code.md +406 -0
  261. package/src/config/claude-code-config/skills/workflow-clean-code/references/tanstack-query-best-practices.md +516 -0
  262. package/src/config/claude-code-config/skills/workflow-clean-code/references/zustand-best-practices.md +491 -0
  263. package/src/config/claude-code-config/skills/workflow-clean-code/steps/step-01-scan.md +137 -0
  264. package/src/config/claude-code-config/skills/workflow-clean-code/steps/step-02-apply.md +152 -0
  265. package/src/config/claude-code-config/skills/workflow-clean-code/steps/step-03-verify.md +143 -0
  266. package/src/config/claude-code-config/skills/workflow-debug/SKILL.md +126 -0
  267. package/src/config/claude-code-config/skills/workflow-debug/references/log-technique.md +285 -0
  268. package/src/config/claude-code-config/skills/workflow-debug/steps/step-00-init.md +94 -0
  269. package/src/config/claude-code-config/skills/workflow-debug/steps/step-01-analyze.md +180 -0
  270. package/src/config/claude-code-config/skills/workflow-debug/steps/step-01b-log-instrumentation.md +271 -0
  271. package/src/config/claude-code-config/skills/workflow-debug/steps/step-02-find-solutions.md +141 -0
  272. package/src/config/claude-code-config/skills/workflow-debug/steps/step-03-propose.md +142 -0
  273. package/src/config/claude-code-config/skills/workflow-debug/steps/step-04-fix.md +176 -0
  274. package/src/config/claude-code-config/skills/workflow-debug/steps/step-05-verify.md +279 -0
  275. package/src/config/claude-code-config/skills/workflow-review-code/SKILL.md +219 -0
  276. package/src/config/claude-code-config/skills/workflow-review-code/references/clean-code-principles.md +140 -0
  277. package/src/config/claude-code-config/skills/workflow-review-code/references/code-quality-metrics.md +174 -0
  278. package/src/config/claude-code-config/skills/workflow-review-code/references/feedback-patterns.md +149 -0
  279. package/src/config/claude-code-config/skills/workflow-review-code/references/security-checklist.md +127 -0
  280. package/src/config/claude-code-config/song/finish.mp3 +0 -0
  281. package/src/config/claude-code-config/song/need-human.mp3 +0 -0
@@ -0,0 +1,422 @@
1
+ ---
2
+ name: step-02-plan
3
+ description: Strategic planning - create detailed file-by-file implementation strategy
4
+ prev_step: steps/step-01-analyze.md
5
+ next_step: steps/step-03-execute.md
6
+ ---
7
+
8
+ # Step 2: Plan (Strategic Design)
9
+
10
+ ## MANDATORY EXECUTION RULES (READ FIRST):
11
+
12
+ - 🛑 NEVER start implementing - that's step 3
13
+ - 🛑 NEVER write or modify code in this step
14
+ - ✅ ALWAYS structure plan by FILE, not by feature
15
+ - ✅ ALWAYS include specific line numbers from analysis
16
+ - ✅ ALWAYS map acceptance criteria to file changes
17
+ - ✅ ALWAYS create a TaskList using TaskCreate tool to track all planned file changes
18
+ - 📋 YOU ARE A PLANNER, not an implementer
19
+ - 💬 FOCUS on "What changes need to be made where?"
20
+ - 🚫 FORBIDDEN to use Edit, Write, or Bash tools
21
+
22
+ ## EXECUTION PROTOCOLS:
23
+
24
+ - 🎯 ULTRA THINK before creating the plan
25
+ - 💾 Save plan to output file (if save_mode)
26
+ - 📖 Reference patterns from step-01 analysis
27
+ - 🚫 FORBIDDEN to proceed until user approves plan (unless auto_mode)
28
+
29
+ ## CONTEXT BOUNDARIES:
30
+
31
+ - Context from step-01 (files, patterns, utilities) is available
32
+ - Implementation has NOT started
33
+ - User has NOT approved any changes yet
34
+ - Plan must be complete before execution
35
+
36
+ ## YOUR TASK:
37
+
38
+ Transform analysis findings into a comprehensive, executable, file-by-file implementation plan.
39
+
40
+ ---
41
+
42
+ <available_state>
43
+ From previous steps:
44
+
45
+ | Variable | Description |
46
+ |----------|-------------|
47
+ | `{task_description}` | What to implement |
48
+ | `{task_id}` | Kebab-case identifier |
49
+ | `{acceptance_criteria}` | Success criteria from step-01 |
50
+ | `{auto_mode}` | Skip confirmations |
51
+ | `{save_mode}` | Save outputs to files |
52
+ | `{output_dir}` | Path to output (if save_mode) |
53
+ | Files found | From step-01 codebase exploration |
54
+ | Patterns | From step-01 pattern analysis |
55
+ | Utilities | From step-01 utility discovery |
56
+ </available_state>
57
+
58
+ ---
59
+
60
+ ## EXECUTION SEQUENCE:
61
+
62
+ ### 1. Initialize Save Output (if save_mode)
63
+
64
+ **If `{save_mode}` = true:**
65
+
66
+ ```bash
67
+ bash {skill_dir}/scripts/update-progress.sh "{task_id}" "02" "plan" "in_progress"
68
+ ```
69
+
70
+ Append plan to `{output_dir}/02-plan.md` as you work.
71
+
72
+ ### 2. ULTRA THINK: Design Complete Strategy
73
+
74
+ **CRITICAL: Think through ENTIRE implementation before writing any plan.**
75
+
76
+ Mental simulation:
77
+ - Walk through the implementation step by step
78
+ - Identify all files that need changes
79
+ - Determine logical order (dependencies first)
80
+ - Consider edge cases and error handling
81
+ - Plan test coverage
82
+
83
+ ### 3. Clarify Ambiguities
84
+
85
+ **If `{auto_mode}` = true:**
86
+ → Use recommended option for any ambiguity, proceed automatically
87
+
88
+ **If `{auto_mode}` = false AND multiple valid approaches exist:**
89
+
90
+ ```yaml
91
+ questions:
92
+ - header: "Approach"
93
+ question: "Multiple approaches are possible. Which should we use?"
94
+ options:
95
+ - label: "Approach A (Recommended)"
96
+ description: "Description and tradeoffs of A"
97
+ - label: "Approach B"
98
+ description: "Description and tradeoffs of B"
99
+ - label: "Approach C"
100
+ description: "Description and tradeoffs of C"
101
+ multiSelect: false
102
+ ```
103
+
104
+ ### 4. Create Detailed Plan
105
+
106
+ **Structure by FILE, not by feature:**
107
+
108
+ ```markdown
109
+ ## Implementation Plan: {task_description}
110
+
111
+ ### Overview
112
+ [1-2 sentences: High-level strategy and approach]
113
+
114
+ ### Prerequisites
115
+ - [ ] Prerequisite 1 (if any)
116
+ - [ ] Prerequisite 2 (if any)
117
+
118
+ ---
119
+
120
+ ### File Changes
121
+
122
+ #### `src/path/file1.ts`
123
+ - Add `functionName` that handles X
124
+ - Extract logic from Y (follow pattern in `example.ts:45`)
125
+ - Handle error case: [specific scenario]
126
+ - Consider: [edge case or important context]
127
+
128
+ #### `src/path/file2.ts`
129
+ - Update imports to include new module
130
+ - Call `functionName` in existing flow at line ~42
131
+ - Update types: Add `NewType` interface
132
+
133
+ #### `src/path/file3.ts` (NEW FILE)
134
+ - Create utility for Z
135
+ - Export: `utilityFunction`, `HelperType`
136
+ - Pattern: Follow `similar-util.ts` structure
137
+
138
+ ---
139
+
140
+ ### Testing Strategy
141
+
142
+ **New tests:**
143
+ - `src/path/file1.test.ts` - Test functionName with:
144
+ - Happy path
145
+ - Error case
146
+ - Edge case
147
+
148
+ **Update existing:**
149
+ - `src/path/existing.test.ts` - Add test for new flow
150
+
151
+ ---
152
+
153
+ ### Acceptance Criteria Mapping
154
+ - [ ] AC1: Satisfied by changes in `file1.ts`
155
+ - [ ] AC2: Satisfied by changes in `file2.ts`
156
+
157
+ ---
158
+
159
+ ### Risks & Considerations
160
+ - Risk 1: [potential issue and mitigation]
161
+ ```
162
+
163
+ **If `{save_mode}` = true:** Append full plan to 02-plan.md
164
+
165
+ ### 5. Create Task List (MANDATORY)
166
+
167
+ <critical>
168
+ You MUST create a TaskList using TaskCreate for every planned change.
169
+ This is NOT optional - the task list tracks progress through execution.
170
+ </critical>
171
+
172
+ **Create one task per file change from the plan:**
173
+
174
+ For each file in the plan, call `TaskCreate` with:
175
+ - **subject**: `{action} {filepath}` (e.g., "Add validateToken to src/auth/handler.ts")
176
+ - **description**: The full details of what changes are needed for this file, including specific functions, patterns to follow, and line references
177
+ - **activeForm**: Present continuous form (e.g., "Adding validateToken to handler.ts")
178
+
179
+ **Then set up dependencies using `TaskUpdate`:**
180
+ - If file B depends on file A (e.g., B imports from A), use `addBlockedBy` to mark the dependency
181
+ - This ensures execution follows the correct order
182
+
183
+ **Example:**
184
+ ```
185
+ TaskCreate: "Create auth types in src/types/auth.ts"
186
+ → description: "Create AuthToken interface, ValidateResult type. Follow pattern from src/types/user.ts"
187
+ → activeForm: "Creating auth types"
188
+
189
+ TaskCreate: "Add validateToken to src/auth/handler.ts"
190
+ → description: "Add validateToken function that returns ValidateResult. Handle expired token error case."
191
+ → activeForm: "Adding validateToken to handler"
192
+ → Then: TaskUpdate with addBlockedBy: [auth-types-task-id]
193
+ ```
194
+
195
+ ### 6. Verify Plan Completeness
196
+
197
+ Checklist:
198
+ - [ ] All files identified - nothing missing
199
+ - [ ] Logical order - dependencies handled first
200
+ - [ ] Clear actions - every step specific and actionable
201
+ - [ ] Test coverage - all paths have test strategy
202
+ - [ ] In scope - no scope creep
203
+ - [ ] AC mapped - every criterion has implementation
204
+ - [ ] **TaskList created with all file changes**
205
+ - [ ] **Task dependencies set correctly**
206
+
207
+ ### 7. Brainstorm Uncertainty Points
208
+
209
+ <critical>
210
+ Before proceeding, THINK about what you're NOT 100% certain about.
211
+ DO NOT ask generic "is this plan good?" questions.
212
+ Instead, identify SPECIFIC uncertainties and ask TARGETED questions.
213
+ </critical>
214
+
215
+ **ULTRA THINK: Identify Uncertainties**
216
+
217
+ For each aspect of the plan, rate your confidence (High/Medium/Low):
218
+
219
+ ```markdown
220
+ ## Uncertainty Analysis
221
+
222
+ | Aspect | Confidence | Uncertainty |
223
+ |--------|------------|-------------|
224
+ | File locations correct? | High/Medium/Low | [What's unclear] |
225
+ | Patterns match codebase? | High/Medium/Low | [What's unclear] |
226
+ | Dependencies complete? | High/Medium/Low | [What's unclear] |
227
+ | Error handling approach? | High/Medium/Low | [What's unclear] |
228
+ | User expectations for X? | High/Medium/Low | [What's unclear] |
229
+ | Technical approach for Y? | High/Medium/Low | [What's unclear] |
230
+ ```
231
+
232
+ **Identify TOP 1-4 uncertainties with Low or Medium confidence.**
233
+
234
+ These are the ONLY things worth asking about.
235
+
236
+ ---
237
+
238
+ ### 8. Ask Smart Questions (if not auto_mode)
239
+
240
+ **If `{auto_mode}` = true:**
241
+ → Skip questions, use your best judgment, proceed directly
242
+
243
+ **If `{auto_mode}` = false AND you have uncertainties:**
244
+
245
+ <critical>
246
+ ONLY ask questions about things where:
247
+ 1. Multiple valid approaches exist AND the choice significantly impacts implementation
248
+ 2. User intent is genuinely ambiguous from the task description
249
+ 3. A wrong assumption could cause significant rework
250
+
251
+ DO NOT ask about:
252
+ - Implementation details you can decide yourself
253
+ - Things you're "slightly unsure" about (just decide)
254
+ - Generic plan approval (never ask "is this plan good?")
255
+ </critical>
256
+
257
+ **Question Types to Use:**
258
+
259
+ **Type 1: Behavior Clarification**
260
+ When user intent is genuinely unclear:
261
+ ```yaml
262
+ questions:
263
+ - header: "Behavior"
264
+ question: "When [specific scenario], should the system [option A] or [option B]?"
265
+ options:
266
+ - label: "[Option A] (Recommended)"
267
+ description: "[What A does and why it might be preferred]"
268
+ - label: "[Option B]"
269
+ description: "[What B does and when it's better]"
270
+ multiSelect: false
271
+ ```
272
+
273
+ **Type 2: Scope Clarification**
274
+ When scope boundaries are unclear:
275
+ ```yaml
276
+ questions:
277
+ - header: "Scope"
278
+ question: "Should we also [related thing] as part of this, or keep it focused on [core thing]?"
279
+ options:
280
+ - label: "Keep focused (Recommended)"
281
+ description: "Only do [core thing], faster implementation"
282
+ - label: "Include [related thing]"
283
+ description: "More complete but expands scope"
284
+ multiSelect: false
285
+ ```
286
+
287
+ **Type 3: Technical Choice**
288
+ When multiple valid technical approaches exist:
289
+ ```yaml
290
+ questions:
291
+ - header: "Approach"
292
+ question: "For [specific technical decision], we can use [approach A] or [approach B]. Which fits your needs?"
293
+ options:
294
+ - label: "[Approach A] (Recommended)"
295
+ description: "[Tradeoffs of A - e.g., simpler but less flexible]"
296
+ - label: "[Approach B]"
297
+ description: "[Tradeoffs of B - e.g., more complex but extensible]"
298
+ multiSelect: false
299
+ ```
300
+
301
+ **Type 4: Edge Case Handling**
302
+ When edge case behavior is unclear:
303
+ ```yaml
304
+ questions:
305
+ - header: "Edge case"
306
+ question: "If [edge case scenario] occurs, should we [behavior A] or [behavior B]?"
307
+ options:
308
+ - label: "[Behavior A] (Recommended)"
309
+ description: "[What happens with A]"
310
+ - label: "[Behavior B]"
311
+ description: "[What happens with B]"
312
+ multiSelect: false
313
+ ```
314
+
315
+ **If you have 0 uncertainties worth asking about:**
316
+ → Proceed directly to execution without asking anything
317
+
318
+ **Example of GOOD questions:**
319
+ - "When a user submits invalid email format, should we show inline validation or only validate on submit?"
320
+ - "Should the loading state show a spinner on the button or a full-page skeleton?"
321
+ - "For rate limiting, should we limit per user or per IP address?"
322
+
323
+ **Example of BAD questions (NEVER ask these):**
324
+ - ❌ "Does this plan look good to you?"
325
+ - ❌ "Ready to proceed with implementation?"
326
+ - ❌ "Should I use async/await or promises?" (just decide)
327
+ - ❌ "Is the file structure correct?" (you already verified)
328
+
329
+ ---
330
+
331
+ ### 9. Present Plan Summary
332
+
333
+ ```
334
+ **Implementation Plan Ready**
335
+
336
+ **Overview:** [1 sentence summary]
337
+
338
+ **Files to modify:** {count} files
339
+ **New files:** {count} files
340
+ **Tests:** {count} test files
341
+
342
+ **Key decisions made:**
343
+ - [Decision 1 from user responses or auto-decided]
344
+ - [Decision 2 from user responses or auto-decided]
345
+
346
+ **Estimated changes:**
347
+ - `file1.ts` - Major changes (add function, handle errors)
348
+ - `file2.ts` - Minor changes (imports, single call)
349
+ - `file1.test.ts` - New test file
350
+
351
+ → Proceeding to implementation...
352
+ ```
353
+
354
+ ### 10. Complete Save Output (if save_mode)
355
+
356
+ **If `{save_mode}` = true:**
357
+
358
+ Append to `{output_dir}/02-plan.md`:
359
+ ```markdown
360
+ ---
361
+ ## Step Complete
362
+ **Status:** ✓ Complete
363
+ **Files planned:** {count}
364
+ **Tests planned:** {count}
365
+ **Uncertainties resolved:** {count}
366
+ **Next:** step-03-execute.md
367
+ **Timestamp:** {ISO timestamp}
368
+ ```
369
+
370
+ ---
371
+
372
+ ## SUCCESS METRICS:
373
+
374
+ ✅ Complete file-by-file plan created
375
+ ✅ Logical dependency order established
376
+ ✅ All acceptance criteria mapped to changes
377
+ ✅ Test strategy defined
378
+ ✅ **TaskList created with TaskCreate for every file change**
379
+ ✅ **Task dependencies set with TaskUpdate (addBlockedBy)**
380
+ ✅ Uncertainty points identified and addressed
381
+ ✅ Smart, targeted questions asked (if not auto_mode and uncertainties exist)
382
+ ✅ NO code written or modified
383
+ ✅ Output saved (if save_mode)
384
+
385
+ ## FAILURE MODES:
386
+
387
+ ❌ Organizing by feature instead of file
388
+ ❌ Vague actions like "add feature" or "fix issue"
389
+ ❌ Missing test strategy
390
+ ❌ Not mapping to acceptance criteria
391
+ ❌ Starting to write code (that's step 3!)
392
+ ❌ **CRITICAL**: Not creating a TaskList with TaskCreate
393
+ ❌ **CRITICAL**: Asking generic "is this plan good?" questions
394
+ ❌ **CRITICAL**: Asking about implementation details you can decide yourself
395
+ ❌ **CRITICAL**: Not brainstorming uncertainties before asking questions
396
+
397
+ ## PLANNING PROTOCOLS:
398
+
399
+ - Structure by FILE - each file is a section
400
+ - Include line number references from analysis
401
+ - Every action must be specific and actionable
402
+ - Map every AC to specific file changes
403
+ - Plan tests alongside implementation
404
+
405
+ ---
406
+
407
+ ## NEXT STEP:
408
+
409
+ After user approves via AskUserQuestion (or auto-proceed):
410
+
411
+ **If `{tasks_mode}` = true OR `{teams_mode}` = true:**
412
+ → Load `./step-02b-tasks.md` to generate task breakdown with dependencies
413
+
414
+ **If `{teams_mode}` = true (after task breakdown):**
415
+ → Flow continues to `./step-03-execute-teams.md` for Agent Team parallel execution
416
+
417
+ **Otherwise:**
418
+ → Load `./step-03-execute.md` to start implementation
419
+
420
+ <critical>
421
+ Remember: Planning is ONLY about designing the approach - save all implementation for step-03!
422
+ </critical>
@@ -0,0 +1,301 @@
1
+ ---
2
+ name: step-02b-tasks
3
+ description: Generate task breakdown with dependencies from the implementation plan
4
+ prev_step: steps/step-02-plan.md
5
+ next_step: steps/step-03-execute.md
6
+ ---
7
+
8
+ # Step 2b: Task Breakdown
9
+
10
+ ## MANDATORY EXECUTION RULES (READ FIRST):
11
+
12
+ - 🛑 NEVER start implementing - that's step 3
13
+ - 🛑 NEVER write or modify code in this step
14
+ - ✅ ALWAYS create individual task files with clear structure
15
+ - ✅ ALWAYS include dependencies between tasks
16
+ - ✅ ALWAYS create a README.md explaining the task graph
17
+ - 📋 YOU ARE A TASK ARCHITECT, not an implementer
18
+ - 💬 FOCUS on breaking down the plan into executable tasks
19
+ - 🚫 FORBIDDEN to use Edit, Write (except for task files), or Bash tools
20
+
21
+ ## EXECUTION PROTOCOLS:
22
+
23
+ - 🎯 Analyze the plan from step-02 before creating tasks
24
+ - 💾 Create `tasks/` folder inside output directory (if save_mode)
25
+ - 📖 Reference the implementation plan structure
26
+ - 🚫 FORBIDDEN to proceed until all tasks are created
27
+
28
+ ## CONTEXT BOUNDARIES:
29
+
30
+ - Context from step-01 (analysis) and step-02 (plan) is available
31
+ - Implementation has NOT started
32
+ - Tasks should map directly to plan sections
33
+ - Each task is self-contained with all context needed
34
+
35
+ ## YOUR TASK:
36
+
37
+ Transform the implementation plan into individual task files with clear dependencies, enabling parallel execution where possible.
38
+
39
+ ---
40
+
41
+ <available_state>
42
+ From previous steps:
43
+
44
+ | Variable | Description |
45
+ |----------|-------------|
46
+ | `{task_description}` | What to implement |
47
+ | `{task_id}` | Kebab-case identifier |
48
+ | `{acceptance_criteria}` | Success criteria from step-01 |
49
+ | `{auto_mode}` | Skip confirmations |
50
+ | `{save_mode}` | Save outputs to files |
51
+ | `{tasks_mode}` | Generate task breakdown (should be true) |
52
+ | `{output_dir}` | Path to output (if save_mode) |
53
+ | Plan | Full implementation plan from step-02 |
54
+ </available_state>
55
+
56
+ ---
57
+
58
+ ## EXECUTION SEQUENCE:
59
+
60
+ ### 1. Create Tasks Directory
61
+
62
+ **If `{save_mode}` = true:**
63
+
64
+ ```bash
65
+ mkdir -p {output_dir}/tasks
66
+ ```
67
+
68
+ ### 2. Analyze Plan and Identify Tasks
69
+
70
+ From the implementation plan, identify:
71
+
72
+ - **Independent tasks** - Can run in parallel (no dependencies)
73
+ - **Sequential tasks** - Must wait for other tasks to complete
74
+ - **File-grouped tasks** - Changes to same file that could be combined
75
+
76
+ **Task sizing guidelines:**
77
+
78
+ - Each task should be completable in one focused session
79
+ - Tasks should modify 1-3 files maximum
80
+ - Complex file changes can be split into multiple tasks
81
+
82
+ ### 3. Create Individual Task Files
83
+
84
+ For each task, create a file: `{output_dir}/tasks/task-NN-{name}.md`
85
+
86
+ **Task file structure:**
87
+
88
+ ```markdown
89
+ ---
90
+ id: task-NN
91
+ name: {short-descriptive-name}
92
+ status: pending
93
+ priority: {high|medium|low}
94
+ depends_on: [task-XX, task-YY] # Empty array if no dependencies
95
+ blocks: [task-ZZ] # Tasks waiting for this one
96
+ estimated_files:
97
+ - path/to/file1.ts
98
+ - path/to/file2.ts
99
+ ---
100
+
101
+ # Task NN: {Descriptive Title}
102
+
103
+ ## Objective
104
+
105
+ {One sentence describing what this task accomplishes}
106
+
107
+ ## Context
108
+
109
+ {2-3 sentences providing background needed to complete the task}
110
+
111
+ ## Plan
112
+
113
+ {Specific implementation steps, referencing line numbers and patterns}
114
+
115
+ 1. Step one
116
+ 2. Step two
117
+ 3. Step three
118
+
119
+ ## Files to Modify
120
+
121
+ | File | Action | Changes |
122
+ |------|--------|---------|
123
+ | `path/to/file.ts` | Modify | Add function X, update Y |
124
+
125
+ ## Acceptance Criteria
126
+
127
+ - [ ] AC1: {Specific testable criterion}
128
+ - [ ] AC2: {Specific testable criterion}
129
+
130
+ ## Dependencies
131
+
132
+ **Depends on:**
133
+ - `task-XX`: {Why this dependency exists}
134
+
135
+ **Blocks:**
136
+ - `task-ZZ`: {Why this blocks other tasks}
137
+
138
+ ## Notes
139
+
140
+ {Any additional context, gotchas, or considerations}
141
+ ```
142
+
143
+ ### 4. Build Dependency Graph
144
+
145
+ Analyze task relationships:
146
+
147
+ ```
148
+ task-01 ──┬──► task-02 ──► task-04
149
+
150
+ └──► task-03 ──► task-05
151
+
152
+
153
+ task-06 ─────────────┘
154
+ ```
155
+
156
+ Identify:
157
+ - **Critical path** - Longest chain of dependencies
158
+ - **Parallel groups** - Tasks that can run simultaneously
159
+ - **Bottlenecks** - Tasks blocking many others
160
+
161
+ ### 5. Create README.md
162
+
163
+ Create `{output_dir}/tasks/README.md`:
164
+
165
+ ```markdown
166
+ # Task Breakdown: {task_description}
167
+
168
+ **Generated:** {timestamp}
169
+ **Total Tasks:** {count}
170
+ **Parallel Groups:** {count}
171
+
172
+ ## Overview
173
+
174
+ {1-2 sentences summarizing the task breakdown}
175
+
176
+ ## Dependency Graph
177
+
178
+ ```
179
+ [Visual representation of task dependencies]
180
+ ```
181
+
182
+ ## Task Summary
183
+
184
+ | ID | Name | Status | Depends On | Priority |
185
+ |----|------|--------|------------|----------|
186
+ | 01 | {name} | pending | - | high |
187
+ | 02 | {name} | pending | 01 | medium |
188
+
189
+ ## Parallel Execution Groups
190
+
191
+ **Group 1 (Start immediately):**
192
+ - task-01: {name}
193
+ - task-06: {name}
194
+
195
+ **Group 2 (After Group 1):**
196
+ - task-02: {name} (after task-01)
197
+ - task-03: {name} (after task-01, task-06)
198
+
199
+ **Group 3 (After Group 2):**
200
+ - task-04: {name} (after task-02)
201
+ - task-05: {name} (after task-03)
202
+
203
+ ## Critical Path
204
+
205
+ task-01 → task-02 → task-04
206
+
207
+ ## Notes
208
+
209
+ {Any additional context about the task breakdown}
210
+ ```
211
+
212
+ ### 6. Validate Task Breakdown
213
+
214
+ Checklist:
215
+ - [ ] All plan sections have corresponding tasks
216
+ - [ ] No circular dependencies
217
+ - [ ] Each task has clear acceptance criteria
218
+ - [ ] Dependencies are logical and minimal
219
+ - [ ] Parallel opportunities maximized
220
+ - [ ] README accurately describes the graph
221
+
222
+ ### 7. Present Summary
223
+
224
+ ```
225
+ **Task Breakdown Complete**
226
+
227
+ **Total tasks:** {count}
228
+ **Independent (can start now):** {count}
229
+ **Sequential chains:** {count}
230
+
231
+ **Files created:**
232
+ - tasks/README.md
233
+ - tasks/task-01-{name}.md
234
+ - tasks/task-02-{name}.md
235
+ - ...
236
+ ```
237
+
238
+ **If `{auto_mode}` = true:**
239
+ → Skip confirmation, proceed to execution
240
+
241
+ **If `{auto_mode}` = false:**
242
+
243
+ ```yaml
244
+ questions:
245
+ - header: "Tasks"
246
+ question: "Task breakdown complete. Ready to proceed to implementation?"
247
+ options:
248
+ - label: "Continue to execution (Recommended)"
249
+ description: "Start implementing tasks in order"
250
+ - label: "Review tasks first"
251
+ description: "I want to examine the task files"
252
+ - label: "Adjust breakdown"
253
+ description: "Modify the task structure"
254
+ multiSelect: false
255
+ ```
256
+
257
+ ---
258
+
259
+ ## SUCCESS METRICS:
260
+
261
+ ✅ Tasks directory created with all task files
262
+ ✅ Each task has clear dependencies documented
263
+ ✅ README.md provides complete overview
264
+ ✅ Dependency graph has no cycles
265
+ ✅ Parallel groups identified
266
+ ✅ Critical path documented
267
+ ✅ NO code written or modified
268
+
269
+ ## FAILURE MODES:
270
+
271
+ ❌ Creating tasks without clear dependencies
272
+ ❌ Missing README.md
273
+ ❌ Circular dependencies in graph
274
+ ❌ Tasks too large or too granular
275
+ ❌ Starting to write code (that's step 3!)
276
+ ❌ **CRITICAL**: Not using AskUserQuestion for confirmation
277
+
278
+ ## TASK BREAKDOWN PROTOCOLS:
279
+
280
+ - Each task must be self-contained with all needed context
281
+ - Dependencies should be minimal and justified
282
+ - Maximize parallel execution opportunities
283
+ - Task files follow consistent structure
284
+ - README provides birds-eye view
285
+
286
+ ---
287
+
288
+ ## NEXT STEP:
289
+
290
+ After user confirms via AskUserQuestion (or auto-proceed):
291
+
292
+ **If `{teams_mode}` = true:**
293
+ → Load `./step-03-execute-teams.md` for Agent Team parallel execution
294
+
295
+ **Otherwise:**
296
+ → Load `./step-03-execute.md` to start implementation
297
+
298
+ <critical>
299
+ Remember: This step ONLY creates task documentation - save all implementation for step-03!
300
+ The tasks folder gives a clear roadmap of what to implement and in what order.
301
+ </critical>