@trieungoctam/vibekit 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 (352) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +85 -0
  3. package/agents/debugger.md +158 -0
  4. package/agents/docs-manager.md +220 -0
  5. package/agents/planner.md +129 -0
  6. package/agents/researcher.md +58 -0
  7. package/agents/reviewer.md +152 -0
  8. package/agents/tester.md +126 -0
  9. package/bin/vibekit.js +18 -0
  10. package/hooks/lib/ck-config-utils.cjs +831 -0
  11. package/hooks/lib/colors.cjs +95 -0
  12. package/hooks/lib/config-counter.cjs +103 -0
  13. package/hooks/lib/context-builder.cjs +616 -0
  14. package/hooks/lib/git-info-cache.cjs +143 -0
  15. package/hooks/lib/hook-logger.cjs +92 -0
  16. package/hooks/lib/privacy-checker.cjs +297 -0
  17. package/hooks/lib/project-detector.cjs +474 -0
  18. package/hooks/lib/scout-checker.cjs +263 -0
  19. package/hooks/lib/transcript-parser.cjs +181 -0
  20. package/hooks/post-edit-simplify-reminder.cjs +156 -0
  21. package/hooks/privacy-block.cjs +166 -0
  22. package/hooks/scout-block.cjs +147 -0
  23. package/hooks/session-init.cjs +360 -0
  24. package/package.json +41 -0
  25. package/rules/development-rules.md +52 -0
  26. package/rules/documentation-management.md +121 -0
  27. package/rules/orchestration-protocol.md +43 -0
  28. package/rules/primary-workflow.md +57 -0
  29. package/rules/team-coordination-rules.md +90 -0
  30. package/skills/ai/agent-browser/SKILL.md +294 -0
  31. package/skills/ai/agent-browser/references/.gitkeep +0 -0
  32. package/skills/ai/agent-browser/references/agent-browser-vs-chrome-devtools.md +112 -0
  33. package/skills/ai/agent-browser/references/browserbase-cloud-setup.md +161 -0
  34. package/skills/ai/ai-artist/SKILL.md +122 -0
  35. package/skills/ai/ai-artist/data/awesome-prompts.csv +3592 -0
  36. package/skills/ai/ai-artist/data/lighting.csv +19 -0
  37. package/skills/ai/ai-artist/data/nano-banana-templates.csv +17 -0
  38. package/skills/ai/ai-artist/data/platforms.csv +11 -0
  39. package/skills/ai/ai-artist/data/styles.csv +26 -0
  40. package/skills/ai/ai-artist/data/techniques.csv +19 -0
  41. package/skills/ai/ai-artist/data/use-cases.csv +16 -0
  42. package/skills/ai/ai-artist/references/advanced-techniques.md +184 -0
  43. package/skills/ai/ai-artist/references/awesome-nano-banana-pro-prompts.md +8575 -0
  44. package/skills/ai/ai-artist/references/domain-code.md +66 -0
  45. package/skills/ai/ai-artist/references/domain-data.md +72 -0
  46. package/skills/ai/ai-artist/references/domain-marketing.md +66 -0
  47. package/skills/ai/ai-artist/references/domain-patterns.md +33 -0
  48. package/skills/ai/ai-artist/references/domain-writing.md +68 -0
  49. package/skills/ai/ai-artist/references/image-prompting.md +141 -0
  50. package/skills/ai/ai-artist/references/llm-prompting.md +165 -0
  51. package/skills/ai/ai-artist/references/nano-banana.md +136 -0
  52. package/skills/ai/ai-artist/references/reasoning-techniques.md +201 -0
  53. package/skills/ai/ai-artist/references/validation-workflow.md +117 -0
  54. package/skills/ai/ai-artist/scripts/core.py +197 -0
  55. package/skills/ai/ai-artist/scripts/extract_prompts.py +102 -0
  56. package/skills/ai/ai-artist/scripts/generate.py +370 -0
  57. package/skills/ai/ai-artist/scripts/search.py +147 -0
  58. package/skills/ai/ai-multimodal/.env.example +204 -0
  59. package/skills/ai/ai-multimodal/SKILL.md +110 -0
  60. package/skills/ai/ai-multimodal/references/audio-processing.md +387 -0
  61. package/skills/ai/ai-multimodal/references/image-generation.md +939 -0
  62. package/skills/ai/ai-multimodal/references/music-generation.md +311 -0
  63. package/skills/ai/ai-multimodal/references/video-analysis.md +515 -0
  64. package/skills/ai/ai-multimodal/references/video-generation.md +457 -0
  65. package/skills/ai/ai-multimodal/references/vision-understanding.md +492 -0
  66. package/skills/ai/ai-multimodal/scripts/.coverage +0 -0
  67. package/skills/ai/ai-multimodal/scripts/check_setup.py +315 -0
  68. package/skills/ai/ai-multimodal/scripts/document_converter.py +395 -0
  69. package/skills/ai/ai-multimodal/scripts/gemini_batch_process.py +1185 -0
  70. package/skills/ai/ai-multimodal/scripts/media_optimizer.py +506 -0
  71. package/skills/ai/ai-multimodal/scripts/requirements.txt +26 -0
  72. package/skills/ai/ai-multimodal/scripts/tests/.coverage +0 -0
  73. package/skills/ai/ai-multimodal/scripts/tests/requirements.txt +20 -0
  74. package/skills/ai/ai-multimodal/scripts/tests/test_document_converter.py +74 -0
  75. package/skills/ai/ai-multimodal/scripts/tests/test_gemini_batch_process.py +362 -0
  76. package/skills/ai/ai-multimodal/scripts/tests/test_media_optimizer.py +373 -0
  77. package/skills/ai/mcp-management/README.md +219 -0
  78. package/skills/ai/mcp-management/SKILL.md +210 -0
  79. package/skills/ai/mcp-management/assets/tools.json +3146 -0
  80. package/skills/ai/mcp-management/references/configuration.md +114 -0
  81. package/skills/ai/mcp-management/references/gemini-cli-integration.md +221 -0
  82. package/skills/ai/mcp-management/references/mcp-protocol.md +116 -0
  83. package/skills/ai/mcp-management/scripts/.env.example +10 -0
  84. package/skills/ai/mcp-management/scripts/cli.ts +195 -0
  85. package/skills/ai/mcp-management/scripts/dist/analyze-tools.js +70 -0
  86. package/skills/ai/mcp-management/scripts/dist/cli.js +160 -0
  87. package/skills/ai/mcp-management/scripts/dist/mcp-client.js +183 -0
  88. package/skills/ai/mcp-management/scripts/mcp-client.ts +230 -0
  89. package/skills/ai/mcp-management/scripts/package.json +20 -0
  90. package/skills/ai/mcp-management/scripts/tsconfig.json +15 -0
  91. package/skills/core/brainstorm/SKILL.md +164 -0
  92. package/skills/core/brainstorm/scripts/frame-template.html +214 -0
  93. package/skills/core/brainstorm/scripts/helper.js +88 -0
  94. package/skills/core/brainstorm/scripts/server.cjs +338 -0
  95. package/skills/core/brainstorm/scripts/start-server.sh +153 -0
  96. package/skills/core/brainstorm/scripts/stop-server.sh +55 -0
  97. package/skills/core/brainstorm/spec-document-reviewer-prompt.md +49 -0
  98. package/skills/core/brainstorm/visual-companion.md +286 -0
  99. package/skills/core/code-review/SKILL.md +147 -0
  100. package/skills/core/code-review/references/code-review-reception.md +113 -0
  101. package/skills/core/code-review/references/codebase-scan-workflow.md +29 -0
  102. package/skills/core/code-review/references/edge-case-scouting.md +119 -0
  103. package/skills/core/code-review/references/parallel-review-workflow.md +69 -0
  104. package/skills/core/code-review/references/requesting-code-review.md +116 -0
  105. package/skills/core/code-review/references/task-management-reviews.md +140 -0
  106. package/skills/core/code-review/references/verification-before-completion.md +139 -0
  107. package/skills/core/cook/README.md +86 -0
  108. package/skills/core/cook/SKILL.md +113 -0
  109. package/skills/core/cook/references/intent-detection.md +101 -0
  110. package/skills/core/cook/references/review-cycle.md +75 -0
  111. package/skills/core/cook/references/subagent-patterns.md +75 -0
  112. package/skills/core/cook/references/workflow-steps.md +172 -0
  113. package/skills/core/debug/SKILL.md +121 -0
  114. package/skills/core/debug/references/defense-in-depth.md +124 -0
  115. package/skills/core/debug/references/frontend-verification.md +103 -0
  116. package/skills/core/debug/references/investigation-methodology.md +101 -0
  117. package/skills/core/debug/references/log-and-ci-analysis.md +97 -0
  118. package/skills/core/debug/references/performance-diagnostics.md +113 -0
  119. package/skills/core/debug/references/reporting-standards.md +122 -0
  120. package/skills/core/debug/references/root-cause-tracing.md +122 -0
  121. package/skills/core/debug/references/systematic-debugging.md +102 -0
  122. package/skills/core/debug/references/task-management-debugging.md +155 -0
  123. package/skills/core/debug/references/verification.md +123 -0
  124. package/skills/core/debug/scripts/find-polluter.sh +63 -0
  125. package/skills/core/debug/scripts/find-polluter.test.md +102 -0
  126. package/skills/core/execute/SKILL.md +70 -0
  127. package/skills/core/fix/SKILL.md +111 -0
  128. package/skills/core/fix/references/complexity-assessment.md +72 -0
  129. package/skills/core/fix/references/mode-selection.md +46 -0
  130. package/skills/core/fix/references/parallel-exploration.md +100 -0
  131. package/skills/core/fix/references/review-cycle.md +77 -0
  132. package/skills/core/fix/references/skill-activation-matrix.md +78 -0
  133. package/skills/core/fix/references/task-orchestration.md +103 -0
  134. package/skills/core/fix/references/workflow-ci.md +28 -0
  135. package/skills/core/fix/references/workflow-deep.md +122 -0
  136. package/skills/core/fix/references/workflow-logs.md +72 -0
  137. package/skills/core/fix/references/workflow-quick.md +59 -0
  138. package/skills/core/fix/references/workflow-standard.md +111 -0
  139. package/skills/core/fix/references/workflow-test.md +75 -0
  140. package/skills/core/fix/references/workflow-types.md +33 -0
  141. package/skills/core/fix/references/workflow-ui.md +75 -0
  142. package/skills/core/plan/SKILL.md +145 -0
  143. package/skills/core/plan/plan-document-reviewer-prompt.md +49 -0
  144. package/skills/core/subagent-dev/SKILL.md +277 -0
  145. package/skills/core/subagent-dev/code-quality-reviewer-prompt.md +26 -0
  146. package/skills/core/subagent-dev/implementer-prompt.md +113 -0
  147. package/skills/core/subagent-dev/spec-reviewer-prompt.md +61 -0
  148. package/skills/core/tdd/SKILL.md +371 -0
  149. package/skills/core/tdd/testing-anti-patterns.md +299 -0
  150. package/skills/core/test/SKILL.md +109 -0
  151. package/skills/core/test/references/report-format.md +58 -0
  152. package/skills/core/test/references/test-execution-workflow.md +103 -0
  153. package/skills/core/test/references/ui-testing-workflow.md +65 -0
  154. package/skills/core/verify/SKILL.md +139 -0
  155. package/skills/dev/backend-dev/SKILL.md +96 -0
  156. package/skills/dev/backend-dev/references/backend-api-design.md +495 -0
  157. package/skills/dev/backend-dev/references/backend-architecture.md +454 -0
  158. package/skills/dev/backend-dev/references/backend-authentication.md +338 -0
  159. package/skills/dev/backend-dev/references/backend-code-quality.md +659 -0
  160. package/skills/dev/backend-dev/references/backend-debugging.md +904 -0
  161. package/skills/dev/backend-dev/references/backend-devops.md +494 -0
  162. package/skills/dev/backend-dev/references/backend-mindset.md +387 -0
  163. package/skills/dev/backend-dev/references/backend-performance.md +397 -0
  164. package/skills/dev/backend-dev/references/backend-security.md +290 -0
  165. package/skills/dev/backend-dev/references/backend-technologies.md +256 -0
  166. package/skills/dev/backend-dev/references/backend-testing.md +429 -0
  167. package/skills/dev/context-engineering/SKILL.md +108 -0
  168. package/skills/dev/context-engineering/references/context-compression.md +84 -0
  169. package/skills/dev/context-engineering/references/context-degradation.md +93 -0
  170. package/skills/dev/context-engineering/references/context-fundamentals.md +75 -0
  171. package/skills/dev/context-engineering/references/context-optimization.md +82 -0
  172. package/skills/dev/context-engineering/references/evaluation.md +89 -0
  173. package/skills/dev/context-engineering/references/memory-systems.md +88 -0
  174. package/skills/dev/context-engineering/references/multi-agent-patterns.md +90 -0
  175. package/skills/dev/context-engineering/references/project-development.md +97 -0
  176. package/skills/dev/context-engineering/references/runtime-awareness.md +202 -0
  177. package/skills/dev/context-engineering/references/tool-design.md +86 -0
  178. package/skills/dev/context-engineering/scripts/compression_evaluator.py +349 -0
  179. package/skills/dev/context-engineering/scripts/context_analyzer.py +317 -0
  180. package/skills/dev/context-engineering/scripts/tests/test_edge_cases.py +246 -0
  181. package/skills/dev/databases/SKILL.md +84 -0
  182. package/skills/dev/databases/analytics.md +198 -0
  183. package/skills/dev/databases/db-design.md +188 -0
  184. package/skills/dev/databases/incremental-etl.md +213 -0
  185. package/skills/dev/databases/references/mongodb-aggregation.md +447 -0
  186. package/skills/dev/databases/references/mongodb-atlas.md +465 -0
  187. package/skills/dev/databases/references/mongodb-crud.md +408 -0
  188. package/skills/dev/databases/references/mongodb-indexing.md +442 -0
  189. package/skills/dev/databases/references/postgresql-administration.md +594 -0
  190. package/skills/dev/databases/references/postgresql-performance.md +527 -0
  191. package/skills/dev/databases/references/postgresql-psql-cli.md +467 -0
  192. package/skills/dev/databases/references/postgresql-queries.md +475 -0
  193. package/skills/dev/databases/scripts/.coverage +0 -0
  194. package/skills/dev/databases/scripts/db_backup.py +502 -0
  195. package/skills/dev/databases/scripts/db_migrate.py +426 -0
  196. package/skills/dev/databases/scripts/db_performance_check.py +457 -0
  197. package/skills/dev/databases/scripts/requirements.txt +20 -0
  198. package/skills/dev/databases/scripts/tests/coverage-db.json +1 -0
  199. package/skills/dev/databases/scripts/tests/requirements.txt +4 -0
  200. package/skills/dev/databases/scripts/tests/test_db_backup.py +340 -0
  201. package/skills/dev/databases/scripts/tests/test_db_migrate.py +277 -0
  202. package/skills/dev/databases/scripts/tests/test_db_performance_check.py +370 -0
  203. package/skills/dev/databases/stacks/bigquery.md +231 -0
  204. package/skills/dev/databases/stacks/d1_cloudflare.md +137 -0
  205. package/skills/dev/databases/stacks/mysql.md +216 -0
  206. package/skills/dev/databases/stacks/postgres.md +235 -0
  207. package/skills/dev/databases/stacks/sqlite.md +244 -0
  208. package/skills/dev/databases/transactional.md +176 -0
  209. package/skills/dev/devops/.env.example +76 -0
  210. package/skills/dev/devops/SKILL.md +97 -0
  211. package/skills/dev/devops/references/browser-rendering.md +305 -0
  212. package/skills/dev/devops/references/cloudflare-d1-kv.md +123 -0
  213. package/skills/dev/devops/references/cloudflare-platform.md +271 -0
  214. package/skills/dev/devops/references/cloudflare-r2-storage.md +280 -0
  215. package/skills/dev/devops/references/cloudflare-workers-advanced.md +312 -0
  216. package/skills/dev/devops/references/cloudflare-workers-apis.md +309 -0
  217. package/skills/dev/devops/references/cloudflare-workers-basics.md +418 -0
  218. package/skills/dev/devops/references/docker-basics.md +297 -0
  219. package/skills/dev/devops/references/docker-compose.md +292 -0
  220. package/skills/dev/devops/references/gcloud-platform.md +297 -0
  221. package/skills/dev/devops/references/gcloud-services.md +304 -0
  222. package/skills/dev/devops/references/kubernetes-basics.md +99 -0
  223. package/skills/dev/devops/references/kubernetes-helm-advanced.md +75 -0
  224. package/skills/dev/devops/references/kubernetes-helm.md +81 -0
  225. package/skills/dev/devops/references/kubernetes-kubectl.md +74 -0
  226. package/skills/dev/devops/references/kubernetes-security-advanced.md +98 -0
  227. package/skills/dev/devops/references/kubernetes-security.md +95 -0
  228. package/skills/dev/devops/references/kubernetes-troubleshooting-advanced.md +74 -0
  229. package/skills/dev/devops/references/kubernetes-troubleshooting.md +49 -0
  230. package/skills/dev/devops/references/kubernetes-workflows-advanced.md +75 -0
  231. package/skills/dev/devops/references/kubernetes-workflows.md +78 -0
  232. package/skills/dev/devops/scripts/cloudflare_deploy.py +269 -0
  233. package/skills/dev/devops/scripts/docker_optimize.py +332 -0
  234. package/skills/dev/devops/scripts/requirements.txt +20 -0
  235. package/skills/dev/devops/scripts/tests/requirements.txt +3 -0
  236. package/skills/dev/devops/scripts/tests/test_cloudflare_deploy.py +285 -0
  237. package/skills/dev/devops/scripts/tests/test_docker_optimize.py +436 -0
  238. package/skills/dev/frontend-design/SKILL.md +78 -0
  239. package/skills/dev/frontend-design/references/ai-multimodal-overview.md +165 -0
  240. package/skills/dev/frontend-design/references/analysis-best-practices.md +80 -0
  241. package/skills/dev/frontend-design/references/analysis-prompts.md +141 -0
  242. package/skills/dev/frontend-design/references/analysis-techniques.md +118 -0
  243. package/skills/dev/frontend-design/references/animejs.md +396 -0
  244. package/skills/dev/frontend-design/references/asset-generation.md +337 -0
  245. package/skills/dev/frontend-design/references/design-extraction-overview.md +71 -0
  246. package/skills/dev/frontend-design/references/extraction-best-practices.md +141 -0
  247. package/skills/dev/frontend-design/references/extraction-output-templates.md +162 -0
  248. package/skills/dev/frontend-design/references/extraction-prompts.md +127 -0
  249. package/skills/dev/frontend-design/references/technical-accessibility.md +119 -0
  250. package/skills/dev/frontend-design/references/technical-best-practices.md +97 -0
  251. package/skills/dev/frontend-design/references/technical-optimization.md +44 -0
  252. package/skills/dev/frontend-design/references/technical-overview.md +90 -0
  253. package/skills/dev/frontend-design/references/technical-workflows.md +150 -0
  254. package/skills/dev/frontend-design/references/visual-analysis-overview.md +95 -0
  255. package/skills/dev/frontend-design/references/workflow-3d.md +102 -0
  256. package/skills/dev/frontend-design/references/workflow-describe.md +87 -0
  257. package/skills/dev/frontend-design/references/workflow-immersive.md +87 -0
  258. package/skills/dev/frontend-design/references/workflow-quick.md +57 -0
  259. package/skills/dev/frontend-design/references/workflow-screenshot.md +63 -0
  260. package/skills/dev/frontend-design/references/workflow-video.md +74 -0
  261. package/skills/dev/frontend-dev/SKILL.md +400 -0
  262. package/skills/dev/frontend-dev/resources/common-patterns.md +331 -0
  263. package/skills/dev/frontend-dev/resources/complete-examples.md +872 -0
  264. package/skills/dev/frontend-dev/resources/component-patterns.md +502 -0
  265. package/skills/dev/frontend-dev/resources/data-fetching.md +767 -0
  266. package/skills/dev/frontend-dev/resources/file-organization.md +502 -0
  267. package/skills/dev/frontend-dev/resources/loading-and-error-states.md +501 -0
  268. package/skills/dev/frontend-dev/resources/performance.md +406 -0
  269. package/skills/dev/frontend-dev/resources/routing-guide.md +364 -0
  270. package/skills/dev/frontend-dev/resources/styling-guide.md +428 -0
  271. package/skills/dev/frontend-dev/resources/typescript-standards.md +418 -0
  272. package/skills/dev/git/SKILL.md +114 -0
  273. package/skills/dev/git/references/branch-management.md +88 -0
  274. package/skills/dev/git/references/commit-standards.md +46 -0
  275. package/skills/dev/git/references/gh-cli-guide.md +109 -0
  276. package/skills/dev/git/references/safety-protocols.md +69 -0
  277. package/skills/dev/git/references/workflow-commit.md +58 -0
  278. package/skills/dev/git/references/workflow-merge.md +48 -0
  279. package/skills/dev/git/references/workflow-pr.md +58 -0
  280. package/skills/dev/git/references/workflow-push.md +52 -0
  281. package/skills/dev/git-worktree/SKILL.md +218 -0
  282. package/skills/utils/ask/SKILL.md +58 -0
  283. package/skills/utils/bootstrap/SKILL.md +101 -0
  284. package/skills/utils/bootstrap/references/shared-phases.md +59 -0
  285. package/skills/utils/bootstrap/references/workflow-auto.md +52 -0
  286. package/skills/utils/bootstrap/references/workflow-fast.md +50 -0
  287. package/skills/utils/bootstrap/references/workflow-full.md +60 -0
  288. package/skills/utils/bootstrap/references/workflow-parallel.md +59 -0
  289. package/skills/utils/ck-help/SKILL.md +102 -0
  290. package/skills/utils/ck-help/scripts/ck-help.py +1321 -0
  291. package/skills/utils/ck-help/scripts/commands_data.yaml +3 -0
  292. package/skills/utils/ck-help/scripts/skills_data.yaml +593 -0
  293. package/skills/utils/copywriting/SKILL.md +94 -0
  294. package/skills/utils/copywriting/references/copy-formulas.md +150 -0
  295. package/skills/utils/copywriting/references/cta-patterns.md +168 -0
  296. package/skills/utils/copywriting/references/email-copy.md +193 -0
  297. package/skills/utils/copywriting/references/headline-templates.md +140 -0
  298. package/skills/utils/copywriting/references/landing-page-copy.md +175 -0
  299. package/skills/utils/copywriting/references/power-words.md +189 -0
  300. package/skills/utils/copywriting/references/social-media-copy.md +222 -0
  301. package/skills/utils/copywriting/references/workflow-cro.md +83 -0
  302. package/skills/utils/copywriting/references/workflow-enhance.md +32 -0
  303. package/skills/utils/copywriting/references/workflow-fast.md +29 -0
  304. package/skills/utils/copywriting/references/workflow-good.md +39 -0
  305. package/skills/utils/copywriting/references/writing-styles.md +247 -0
  306. package/skills/utils/copywriting/scripts/extract-writing-styles.py +308 -0
  307. package/skills/utils/copywriting/templates/copy-brief.md +49 -0
  308. package/skills/utils/docs/SKILL.md +55 -0
  309. package/skills/utils/docs/references/init-workflow.md +32 -0
  310. package/skills/utils/docs/references/summarize-workflow.md +18 -0
  311. package/skills/utils/docs/references/update-workflow.md +59 -0
  312. package/skills/utils/journal/SKILL.md +11 -0
  313. package/skills/utils/kanban/SKILL.md +99 -0
  314. package/skills/utils/preview/SKILL.md +75 -0
  315. package/skills/utils/preview/references/generation-modes.md +95 -0
  316. package/skills/utils/preview/references/view-mode.md +42 -0
  317. package/skills/utils/repomix/SKILL.md +248 -0
  318. package/skills/utils/repomix/references/configuration.md +211 -0
  319. package/skills/utils/repomix/references/usage-patterns.md +232 -0
  320. package/skills/utils/repomix/scripts/.coverage +0 -0
  321. package/skills/utils/repomix/scripts/README.md +179 -0
  322. package/skills/utils/repomix/scripts/repomix_batch.py +455 -0
  323. package/skills/utils/repomix/scripts/repos.example.json +15 -0
  324. package/skills/utils/repomix/scripts/requirements.txt +15 -0
  325. package/skills/utils/repomix/scripts/tests/test_repomix_batch.py +531 -0
  326. package/skills/utils/research/SKILL.md +171 -0
  327. package/skills/utils/scout/SKILL.md +89 -0
  328. package/skills/utils/scout/references/external-scouting.md +140 -0
  329. package/skills/utils/scout/references/internal-scouting.md +119 -0
  330. package/skills/utils/scout/references/task-management-scouting.md +125 -0
  331. package/skills/utils/sequential-thinking/.env.example +8 -0
  332. package/skills/utils/sequential-thinking/README.md +183 -0
  333. package/skills/utils/sequential-thinking/SKILL.md +95 -0
  334. package/skills/utils/sequential-thinking/package.json +31 -0
  335. package/skills/utils/sequential-thinking/references/advanced-strategies.md +79 -0
  336. package/skills/utils/sequential-thinking/references/advanced-techniques.md +76 -0
  337. package/skills/utils/sequential-thinking/references/core-patterns.md +95 -0
  338. package/skills/utils/sequential-thinking/references/examples-api.md +88 -0
  339. package/skills/utils/sequential-thinking/references/examples-architecture.md +94 -0
  340. package/skills/utils/sequential-thinking/references/examples-debug.md +90 -0
  341. package/skills/utils/sequential-thinking/scripts/format-thought.js +159 -0
  342. package/skills/utils/sequential-thinking/scripts/process-thought.js +236 -0
  343. package/skills/utils/sequential-thinking/tests/format-thought.test.js +133 -0
  344. package/skills/utils/sequential-thinking/tests/process-thought.test.js +215 -0
  345. package/skills/utils/write-skill/SKILL.md +655 -0
  346. package/skills/utils/write-skill/anthropic-best-practices.md +1150 -0
  347. package/skills/utils/write-skill/examples/CLAUDE_MD_TESTING.md +189 -0
  348. package/skills/utils/write-skill/graphviz-conventions.dot +172 -0
  349. package/skills/utils/write-skill/persuasion-principles.md +187 -0
  350. package/skills/utils/write-skill/render-graphs.js +168 -0
  351. package/skills/utils/write-skill/testing-skills-with-subagents.md +384 -0
  352. package/src/commands/init.js +238 -0
@@ -0,0 +1,122 @@
1
+ # Deep Workflow
2
+
3
+ Full pipeline with research, brainstorming, and planning for complex issues. Uses native Claude Tasks with dependency chains.
4
+
5
+ ## Task Setup (Before Starting)
6
+
7
+ Create all phase tasks upfront. Steps 1+2 run in parallel (no mutual dependency).
8
+
9
+ ```
10
+ T1 = TaskCreate(subject="Debug & investigate", activeForm="Debugging issue", metadata={phase: "diagnose"})
11
+ T2 = TaskCreate(subject="Research solutions", activeForm="Researching solutions", metadata={phase: "research"})
12
+ T3 = TaskCreate(subject="Brainstorm approaches", activeForm="Brainstorming", metadata={phase: "design"}, addBlockedBy=[T1, T2])
13
+ T4 = TaskCreate(subject="Create implementation plan", activeForm="Planning implementation", metadata={phase: "design"}, addBlockedBy=[T3])
14
+ T5 = TaskCreate(subject="Implement fix", activeForm="Implementing fix", metadata={phase: "implement"}, addBlockedBy=[T4])
15
+ T6 = TaskCreate(subject="Run tests", activeForm="Running tests", metadata={phase: "verify"}, addBlockedBy=[T5])
16
+ T7 = TaskCreate(subject="Code review", activeForm="Reviewing code", metadata={phase: "verify"}, addBlockedBy=[T6])
17
+ T8 = TaskCreate(subject="Finalize & docs", activeForm="Finalizing", metadata={phase: "finalize"}, addBlockedBy=[T7])
18
+ ```
19
+
20
+ ## Steps
21
+
22
+ ### Step 1: Debug & Parallel Investigation
23
+ `TaskUpdate(T1, status="in_progress")`
24
+ Activate `ck:debug` skill. Launch 2-3 `Explore` subagents in parallel:
25
+ ```
26
+ Task("Explore", "Find error origin", "Trace error")
27
+ Task("Explore", "Find affected components", "Map deps")
28
+ Task("Explore", "Find similar patterns", "Find patterns")
29
+ ```
30
+ See `references/parallel-exploration.md` for patterns.
31
+
32
+ `TaskUpdate(T1, status="completed")`
33
+ **Output:** `✓ Step 1: Root cause - [summary], system impact: [scope]`
34
+
35
+ ### Step 2: Research (parallel with Step 1)
36
+ `TaskUpdate(T2, status="in_progress")`
37
+ Use `researcher` subagent for external knowledge.
38
+
39
+ - Search latest docs, best practices
40
+ - Find similar issues/solutions
41
+ - Gather security advisories if relevant
42
+
43
+ `TaskUpdate(T2, status="completed")`
44
+ **Output:** `✓ Step 2: Research complete - [key findings]`
45
+
46
+ ### Step 3: Brainstorm
47
+ `TaskUpdate(T3, status="in_progress")` — auto-unblocks when T1 + T2 complete.
48
+ Activate `ck:brainstorm` skill.
49
+
50
+ - Evaluate multiple approaches
51
+ - Consider trade-offs
52
+ - Get user input on preferred direction
53
+
54
+ `TaskUpdate(T3, status="completed")`
55
+ **Output:** `✓ Step 3: Approach selected - [chosen approach]`
56
+
57
+ ### Step 4: Plan
58
+ `TaskUpdate(T4, status="in_progress")`
59
+ Use `planner` subagent to create implementation plan.
60
+
61
+ - Break down into phases
62
+ - Identify dependencies
63
+ - Define success criteria
64
+
65
+ `TaskUpdate(T4, status="completed")`
66
+ **Output:** `✓ Step 4: Plan created - [N] phases`
67
+
68
+ ### Step 5: Implement
69
+ `TaskUpdate(T5, status="in_progress")`
70
+ Implement per plan. Use `ck:context-engineering`, `ck:sequential-thinking`, `ck:problem-solving`.
71
+
72
+ **Parallel Verification:** Launch `Bash` agents: typecheck + lint + build
73
+ See `references/parallel-exploration.md`
74
+
75
+ `TaskUpdate(T5, status="completed")`
76
+ **Output:** `✓ Step 5: Implemented - [N] files, [M] phases, verified`
77
+
78
+ ### Step 6: Test
79
+ `TaskUpdate(T6, status="in_progress")`
80
+ Use `tester` subagent.
81
+
82
+ - Comprehensive testing
83
+ - Edge cases, security, performance
84
+ - If fail → debug, fix, repeat
85
+
86
+ `TaskUpdate(T6, status="completed")`
87
+ **Output:** `✓ Step 6: Tests [X/X passed]`
88
+
89
+ ### Step 7: Review
90
+ `TaskUpdate(T7, status="in_progress")`
91
+ Use `code-reviewer` subagent.
92
+
93
+ See `references/review-cycle.md` for mode-specific handling.
94
+
95
+ `TaskUpdate(T7, status="completed")`
96
+ **Output:** `✓ Step 7: Review [score]/10 - [status]`
97
+
98
+ ### Step 8: Finalize
99
+ `TaskUpdate(T8, status="in_progress")`
100
+ - Use `project-manager` subagent to update roadmap
101
+ - Use `docs-manager` subagent for documentation
102
+ - Use `git-manager` subagent for commit
103
+
104
+ `TaskUpdate(T8, status="completed")`
105
+ **Output:** `✓ Step 8: Complete - [actions taken]`
106
+
107
+ ## Skills/Subagents Activated
108
+
109
+ | Step | Skills/Subagents |
110
+ |------|------------------|
111
+ | 1 | `ck:debug`, parallel `Explore` subagents for investigation |
112
+ | 2 | `researcher` (runs parallel with step 1) |
113
+ | 3 | `ck:brainstorm` |
114
+ | 4 | `planner` |
115
+ | 5 | `ck:problem-solving`, `ck:sequential-thinking`, `ck:context-engineering`, parallel `Bash` |
116
+ | 6 | `tester` |
117
+ | 7 | `code-reviewer` |
118
+ | 8 | `project-manager`, `docs-manager`, `Bash` |
119
+
120
+ **Rules:** Don't skip steps. Validate before proceeding. One phase at a time.
121
+ **Frontend:** Use `chrome`, `ck:chrome-devtools` or any relevant skills/tools to verify.
122
+ **Visual Assets:** Use `ck:ai-multimodal` for visual assets generation, analysis and verification.
@@ -0,0 +1,72 @@
1
+ # Log Analysis Fix Workflow
2
+
3
+ For fixing issues from application logs. Uses native Claude Tasks for phase tracking.
4
+
5
+ ## Prerequisites
6
+ - Log file at `./logs.txt` or similar
7
+
8
+ ## Setup (if logs missing)
9
+
10
+ Add permanent log piping to project config:
11
+ - **Bash/Unix**: `command 2>&1 | tee logs.txt`
12
+ - **PowerShell**: `command *>&1 | Tee-Object logs.txt`
13
+
14
+ ## Task Setup (Before Starting)
15
+
16
+ ```
17
+ T1 = TaskCreate(subject="Read & analyze logs", activeForm="Analyzing logs")
18
+ T2 = TaskCreate(subject="Scout codebase", activeForm="Scouting codebase", addBlockedBy=[T1])
19
+ T3 = TaskCreate(subject="Plan fix", activeForm="Planning fix", addBlockedBy=[T1, T2])
20
+ T4 = TaskCreate(subject="Implement fix", activeForm="Implementing fix", addBlockedBy=[T3])
21
+ T5 = TaskCreate(subject="Test fix", activeForm="Testing fix", addBlockedBy=[T4])
22
+ T6 = TaskCreate(subject="Code review", activeForm="Reviewing code", addBlockedBy=[T5])
23
+ ```
24
+
25
+ ## Workflow
26
+
27
+ ### Step 1: Read & Analyze Logs
28
+ `TaskUpdate(T1, status="in_progress")`
29
+
30
+ - Read logs with `Grep` (use `head_limit: 30` initially, increase if needed)
31
+ - Use `debugger` agent for root cause analysis
32
+ - Focus on last N lines first (most recent errors)
33
+ - Look for stack traces, error codes, timestamps, repeated patterns
34
+
35
+ `TaskUpdate(T1, status="completed")`
36
+
37
+ ### Step 2: Scout Codebase
38
+ `TaskUpdate(T2, status="in_progress")`
39
+ Use `ck:scout` agent or parallel `Explore` subagents to find issue locations.
40
+
41
+ See `references/parallel-exploration.md` for patterns.
42
+
43
+ `TaskUpdate(T2, status="completed")`
44
+
45
+ ### Step 3: Plan Fix
46
+ `TaskUpdate(T3, status="in_progress")` — auto-unblocks when T1 + T2 complete.
47
+ Use `planner` agent.
48
+
49
+ `TaskUpdate(T3, status="completed")`
50
+
51
+ ### Step 4: Implement
52
+ `TaskUpdate(T4, status="in_progress")`
53
+ Implement the fix.
54
+
55
+ `TaskUpdate(T4, status="completed")`
56
+
57
+ ### Step 5: Test
58
+ `TaskUpdate(T5, status="in_progress")`
59
+ Use `tester` agent. If issues remain → keep T5 `in_progress`, loop back to Step 2.
60
+
61
+ `TaskUpdate(T5, status="completed")`
62
+
63
+ ### Step 6: Review
64
+ `TaskUpdate(T6, status="in_progress")`
65
+ Use `code-reviewer` agent.
66
+
67
+ `TaskUpdate(T6, status="completed")`
68
+
69
+ ## Tips
70
+ - Focus on last N lines first (most recent errors)
71
+ - Look for stack traces, error codes, timestamps
72
+ - Check for patterns/repeated errors
@@ -0,0 +1,59 @@
1
+ # Quick Workflow
2
+
3
+ Fast debug-fix-review cycle for simple issues.
4
+
5
+ ## Steps
6
+
7
+ ### Step 1: Debug
8
+ Activate `ck:debug` skill. Find root cause quickly. Verify the root cause with multiple `Explore` subagents in parallel.
9
+ - Read error message/logs
10
+ - Locate affected file(s)
11
+ - Identify exact fix needed
12
+
13
+ **Output:** `✓ Step 1: Root cause - [brief description]`
14
+
15
+ ### Step 2: Fix & Verify
16
+ Implement the fix directly.
17
+ - Make minimal changes
18
+ - Follow existing patterns
19
+
20
+ **Parallel Verification:**
21
+ Launch `Bash` agents in parallel:
22
+ ```
23
+ Task("Bash", "Run typecheck", "Verify types")
24
+ Task("Bash", "Run lint", "Verify lint")
25
+ ```
26
+
27
+ See `references/parallel-exploration.md` for patterns.
28
+
29
+ **Output:** `✓ Step 2: Fixed - [N] files, verified (types/lint passed)`
30
+
31
+ ### Step 3: Verify
32
+ Use `code-reviewer` subagent for quick review.
33
+
34
+ Prompt: "Quick review of fix for [issue]. Check: correctness, security, no regressions. Score X/10."
35
+
36
+ **Review handling:** See `references/review-cycle.md`
37
+
38
+ **Output:** `✓ Step 3: Review [score]/10 - [status]`
39
+
40
+ ### Step 4: Complete
41
+ Report summary to user.
42
+
43
+ **If autonomous mode:** Ask to commit via `git-manager` subagent if score >= 9.0
44
+ **If HITL mode:** Ask user next action
45
+
46
+ **Output:** `✓ Step 4: Complete - [action]`
47
+
48
+ ## Skills/Subagents Activated
49
+
50
+ - `ck:debug` - Always (Step 1)
51
+ - Parallel `git-manager` - Verification (Step 2)
52
+ - `code-reviewer` subagent - Always (Step 3)
53
+ - `ck:context-engineering` - If dealing with AI/LLM code
54
+
55
+ ## Notes
56
+
57
+ - Skip if review fails → escalate to Standard workflow
58
+ - Total steps: 4 (vs 5-6 in Standard/Deep)
59
+ - No planning phase needed
@@ -0,0 +1,111 @@
1
+ # Standard Workflow
2
+
3
+ Full pipeline for moderate complexity issues. Uses native Claude Tasks for phase tracking.
4
+
5
+ ## Task Setup (Before Starting)
6
+
7
+ Create all phase tasks upfront with dependencies. See `references/task-orchestration.md`.
8
+
9
+ ```
10
+ T1 = TaskCreate(subject="Debug & investigate", activeForm="Debugging issue")
11
+ T2 = TaskCreate(subject="Scout related code", activeForm="Scouting codebase")
12
+ T3 = TaskCreate(subject="Implement fix", activeForm="Implementing fix", addBlockedBy=[T1, T2])
13
+ T4 = TaskCreate(subject="Run tests", activeForm="Running tests", addBlockedBy=[T3])
14
+ T5 = TaskCreate(subject="Code review", activeForm="Reviewing code", addBlockedBy=[T4])
15
+ T6 = TaskCreate(subject="Finalize", activeForm="Finalizing", addBlockedBy=[T5])
16
+ ```
17
+
18
+ ## Steps
19
+
20
+ ### Step 1: Debug & Investigate
21
+ `TaskUpdate(T1, status="in_progress")`
22
+ Activate `ck:debug` skill. Use `debugger` subagent if needed.
23
+
24
+ - Read error messages, logs, stack traces
25
+ - Reproduce the issue
26
+ - Trace backward to root cause
27
+ - Identify all affected files
28
+
29
+ `TaskUpdate(T1, status="completed")`
30
+ **Output:** `✓ Step 1: Root cause - [summary], [N] files affected`
31
+
32
+ ### Step 2: Parallel Scout
33
+ `TaskUpdate(T2, status="in_progress")`
34
+ Launch multiple `Explore` subagents in parallel to scout and verify the root cause.
35
+
36
+ **Pattern:** In SINGLE message, launch 2-3 Explore agents:
37
+ ```
38
+ Task("Explore", "Find [area1] files related to issue", "Scout area1")
39
+ Task("Explore", "Find [area2] patterns/usage", "Scout area2")
40
+ Task("Explore", "Find [area3] tests/dependencies", "Scout area3")
41
+ ```
42
+
43
+ - Only if unclear which files need changes
44
+ - Find patterns, similar implementations, dependencies
45
+
46
+ See `references/parallel-exploration.md` for patterns.
47
+
48
+ `TaskUpdate(T2, status="completed")`
49
+ **Output:** `✓ Step 2: Scouted [N] areas - Found [M] related files`
50
+
51
+ ### Step 3: Implement Fix
52
+ `TaskUpdate(T3, status="in_progress")` — auto-unblocked when T1 + T2 complete.
53
+ Fix the issue following debugging findings.
54
+
55
+ - Apply `ck:problem-solving` skill if stuck
56
+ - Use `ck:sequential-thinking` for complex logic
57
+
58
+ **After implementation - Parallel Verification:**
59
+ Launch `Bash` agents in parallel to verify:
60
+ ```
61
+ Task("Bash", "Run typecheck", "Verify types")
62
+ Task("Bash", "Run lint", "Verify lint")
63
+ Task("Bash", "Run build", "Verify build")
64
+ ```
65
+
66
+ `TaskUpdate(T3, status="completed")`
67
+ **Output:** `✓ Step 3: Implemented - [N] files, verified (types/lint/build passed)`
68
+
69
+ ### Step 4: Test
70
+ `TaskUpdate(T4, status="in_progress")`
71
+ Use `tester` subagent to run tests.
72
+
73
+ - Write new tests if needed
74
+ - Run existing test suite
75
+ - If fail → use `debugger`, fix, repeat
76
+
77
+ `TaskUpdate(T4, status="completed")`
78
+ **Output:** `✓ Step 4: Tests [X/X passed]`
79
+
80
+ ### Step 5: Review
81
+ `TaskUpdate(T5, status="in_progress")`
82
+ Use `code-reviewer` subagent.
83
+
84
+ See `references/review-cycle.md` for mode-specific handling.
85
+
86
+ `TaskUpdate(T5, status="completed")`
87
+ **Output:** `✓ Step 5: Review [score]/10 - [status]`
88
+
89
+ ### Step 6: Finalize
90
+ `TaskUpdate(T6, status="in_progress")`
91
+ - Report summary to user
92
+ - Ask to commit via `git-manager` subagent
93
+ - Update docs if needed via `docs-manager`
94
+
95
+ `TaskUpdate(T6, status="completed")`
96
+ **Output:** `✓ Step 6: Complete - [action]`
97
+
98
+ ## Skills/Subagents Activated
99
+
100
+ | Step | Skills/Subagents |
101
+ |------|------------------|
102
+ | 1 | `ck:debug`, `debugger` subagent |
103
+ | 2 | Multiple `Explore` subagents in parallel (optional) |
104
+ | 3 | `ck:problem-solving`, `ck:sequential-thinking`, parallel `Bash` for verification |
105
+ | 4 | `tester` subagent |
106
+ | 5 | `code-reviewer` subagent |
107
+ | 6 | `git-manager`, `docs-manager` subagents |
108
+
109
+ **Rules:** Don't skip steps. Validate before proceeding. One phase at a time.
110
+ **Frontend:** Use `chrome`, `ck:chrome-devtools` or any relevant skills/tools to verify.
111
+ **Visual Assets:** Use `ck:ai-multimodal` for visual assets generation, analysis and verification.
@@ -0,0 +1,75 @@
1
+ # Test Failure Fix Workflow
2
+
3
+ For fixing failing tests and test suite issues. Uses native Claude Tasks for phase tracking.
4
+
5
+ ## Task Setup (Before Starting)
6
+
7
+ ```
8
+ T1 = TaskCreate(subject="Compile & collect failures", activeForm="Compiling and collecting failures")
9
+ T2 = TaskCreate(subject="Debug root causes", activeForm="Debugging test failures", addBlockedBy=[T1])
10
+ T3 = TaskCreate(subject="Plan fixes", activeForm="Planning fixes", addBlockedBy=[T2])
11
+ T4 = TaskCreate(subject="Implement fixes", activeForm="Implementing fixes", addBlockedBy=[T3])
12
+ T5 = TaskCreate(subject="Re-test", activeForm="Re-running tests", addBlockedBy=[T4])
13
+ T6 = TaskCreate(subject="Code review", activeForm="Reviewing code", addBlockedBy=[T5])
14
+ ```
15
+
16
+ ## Workflow
17
+
18
+ ### Step 1: Compile & Collect Failures
19
+ `TaskUpdate(T1, status="in_progress")`
20
+ Use `tester` agent. Fix all syntax errors before running tests.
21
+
22
+ - Run full test suite, collect all failures
23
+ - Group failures by module/area
24
+
25
+ `TaskUpdate(T1, status="completed")`
26
+
27
+ ### Step 2: Debug
28
+ `TaskUpdate(T2, status="in_progress")`
29
+ Use `debugger` agent for root cause analysis.
30
+
31
+ - Analyze each failure group
32
+ - Identify shared root causes across failures
33
+
34
+ `TaskUpdate(T2, status="completed")`
35
+
36
+ ### Step 3: Plan
37
+ `TaskUpdate(T3, status="in_progress")`
38
+ Use `planner` agent for fix strategy.
39
+
40
+ - Prioritize fixes (shared root causes first)
41
+ - Identify dependencies between fixes
42
+
43
+ `TaskUpdate(T3, status="completed")`
44
+
45
+ ### Step 4: Implement
46
+ `TaskUpdate(T4, status="in_progress")`
47
+ Implement fixes step by step per plan.
48
+
49
+ `TaskUpdate(T4, status="completed")`
50
+
51
+ ### Step 5: Re-test
52
+ `TaskUpdate(T5, status="in_progress")`
53
+ Use `tester` agent. If tests still fail → keep T5 `in_progress`, loop back to Step 2.
54
+
55
+ `TaskUpdate(T5, status="completed")`
56
+
57
+ ### Step 6: Review
58
+ `TaskUpdate(T6, status="in_progress")`
59
+ Use `code-reviewer` agent.
60
+
61
+ `TaskUpdate(T6, status="completed")`
62
+
63
+ ## Common Commands
64
+ ```bash
65
+ npm test
66
+ bun test
67
+ pytest
68
+ go test ./...
69
+ ```
70
+
71
+ ## Tips
72
+ - Run single failing test first for faster iteration
73
+ - Check test assertions vs actual behavior
74
+ - Verify test fixtures/mocks are correct
75
+ - Don't modify tests to pass unless test is wrong
@@ -0,0 +1,33 @@
1
+ # Type Error Fix Workflow
2
+
3
+ Quick workflow for TypeScript/type errors.
4
+
5
+ ## Commands
6
+ ```bash
7
+ bun run typecheck
8
+ tsc --noEmit
9
+ npx tsc --noEmit
10
+ ```
11
+
12
+ ## Rules
13
+ - Fix ALL type errors, don't stop at first
14
+ - **NEVER use `any` just to pass** - find proper types
15
+ - Repeat until zero errors
16
+
17
+ ## Common Fixes
18
+ - Missing type imports
19
+ - Incorrect property access
20
+ - Null/undefined handling
21
+ - Generic type parameters
22
+ - Union type narrowing
23
+
24
+ ## Workflow
25
+ 1. Run typecheck command
26
+ 2. Fix errors one by one
27
+ 3. Re-run typecheck
28
+ 4. Repeat until clean
29
+
30
+ ## Tips
31
+ - Group related errors (same root cause)
32
+ - Check `@types/*` packages for library types
33
+ - Use `unknown` + type guards instead of `any`
@@ -0,0 +1,75 @@
1
+ # UI Fix Workflow
2
+
3
+ For fixing visual/UI issues. Requires design skills. Uses native Claude Tasks for phase tracking.
4
+
5
+ ## Required Skills (activate in order)
6
+ 1. `ck:ui-ux-pro-max` - Design database (ALWAYS FIRST)
7
+ 2. `ck:ui-ux-pro-max` - Design principles
8
+ 3. `ck:frontend-design` - Implementation patterns
9
+
10
+ ## Pre-fix Research
11
+ ```bash
12
+ python3 .claude/skills/ui-ux-pro-max/scripts/search.py "<product-type>" --domain product
13
+ python3 .claude/skills/ui-ux-pro-max/scripts/search.py "<style>" --domain style
14
+ python3 .claude/skills/ui-ux-pro-max/scripts/search.py "accessibility" --domain ux
15
+ ```
16
+
17
+ ## Task Setup (Before Starting)
18
+
19
+ ```
20
+ T1 = TaskCreate(subject="Analyze visual issue", activeForm="Analyzing visual issue")
21
+ T2 = TaskCreate(subject="Implement UI fix", activeForm="Implementing UI fix", addBlockedBy=[T1])
22
+ T3 = TaskCreate(subject="Verify visually", activeForm="Verifying visually", addBlockedBy=[T2])
23
+ T4 = TaskCreate(subject="DevTools check", activeForm="Checking with DevTools", addBlockedBy=[T3])
24
+ T5 = TaskCreate(subject="Test compilation", activeForm="Testing compilation", addBlockedBy=[T4])
25
+ T6 = TaskCreate(subject="Update design docs", activeForm="Updating design docs", addBlockedBy=[T5])
26
+ ```
27
+
28
+ ## Workflow
29
+
30
+ ### Step 1: Analyze
31
+ `TaskUpdate(T1, status="in_progress")`
32
+ Analyze screenshots/videos with `ck:ai-multimodal` skill.
33
+
34
+ - Read `./docs/design-guidelines.md` first
35
+ - Identify exact visual discrepancy
36
+
37
+ `TaskUpdate(T1, status="completed")`
38
+
39
+ ### Step 2: Implement
40
+ `TaskUpdate(T2, status="in_progress")`
41
+ Use `ui-ux-designer` agent.
42
+
43
+ `TaskUpdate(T2, status="completed")`
44
+
45
+ ### Step 3: Verify Visually
46
+ `TaskUpdate(T3, status="in_progress")`
47
+ Screenshot + `ck:ai-multimodal` analysis.
48
+
49
+ - Capture parent container, not whole page
50
+ - Compare to design guidelines
51
+ - If incorrect → keep T3 `in_progress`, loop back to Step 2
52
+
53
+ `TaskUpdate(T3, status="completed")`
54
+
55
+ ### Step 4: DevTools Check
56
+ `TaskUpdate(T4, status="in_progress")`
57
+ Use `ck:chrome-devtools` skill.
58
+
59
+ `TaskUpdate(T4, status="completed")`
60
+
61
+ ### Step 5: Test
62
+ `TaskUpdate(T5, status="in_progress")`
63
+ Use `tester` agent for compilation check.
64
+
65
+ `TaskUpdate(T5, status="completed")`
66
+
67
+ ### Step 6: Document
68
+ `TaskUpdate(T6, status="in_progress")`
69
+ Update `./docs/design-guidelines.md` if needed.
70
+
71
+ `TaskUpdate(T6, status="completed")`
72
+
73
+ ## Tips
74
+ - Use `ck:ai-multimodal` for generating visual assets
75
+ - Use `ImageMagick` for image editing
@@ -0,0 +1,145 @@
1
+ ---
2
+ name: writing-plans
3
+ description: Use when you have a spec or requirements for a multi-step task, before touching code
4
+ ---
5
+
6
+ # Writing Plans
7
+
8
+ ## Overview
9
+
10
+ Write comprehensive implementation plans assuming the engineer has zero context for our codebase and questionable taste. Document everything they need to know: which files to touch for each task, code, testing, docs they might need to check, how to test it. Give them the whole plan as bite-sized tasks. DRY. YAGNI. TDD. Frequent commits.
11
+
12
+ Assume they are a skilled developer, but know almost nothing about our toolset or problem domain. Assume they don't know good test design very well.
13
+
14
+ **Announce at start:** "I'm using the writing-plans skill to create the implementation plan."
15
+
16
+ **Context:** This should be run in a dedicated worktree (created by brainstorming skill).
17
+
18
+ **Save plans to:** `docs/superpowers/plans/YYYY-MM-DD-<feature-name>.md`
19
+ - (User preferences for plan location override this default)
20
+
21
+ ## Scope Check
22
+
23
+ If the spec covers multiple independent subsystems, it should have been broken into sub-project specs during brainstorming. If it wasn't, suggest breaking this into separate plans — one per subsystem. Each plan should produce working, testable software on its own.
24
+
25
+ ## File Structure
26
+
27
+ Before defining tasks, map out which files will be created or modified and what each one is responsible for. This is where decomposition decisions get locked in.
28
+
29
+ - Design units with clear boundaries and well-defined interfaces. Each file should have one clear responsibility.
30
+ - You reason best about code you can hold in context at once, and your edits are more reliable when files are focused. Prefer smaller, focused files over large ones that do too much.
31
+ - Files that change together should live together. Split by responsibility, not by technical layer.
32
+ - In existing codebases, follow established patterns. If the codebase uses large files, don't unilaterally restructure - but if a file you're modifying has grown unwieldy, including a split in the plan is reasonable.
33
+
34
+ This structure informs the task decomposition. Each task should produce self-contained changes that make sense independently.
35
+
36
+ ## Bite-Sized Task Granularity
37
+
38
+ **Each step is one action (2-5 minutes):**
39
+ - "Write the failing test" - step
40
+ - "Run it to make sure it fails" - step
41
+ - "Implement the minimal code to make the test pass" - step
42
+ - "Run the tests and make sure they pass" - step
43
+ - "Commit" - step
44
+
45
+ ## Plan Document Header
46
+
47
+ **Every plan MUST start with this header:**
48
+
49
+ ```markdown
50
+ # [Feature Name] Implementation Plan
51
+
52
+ > **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
53
+
54
+ **Goal:** [One sentence describing what this builds]
55
+
56
+ **Architecture:** [2-3 sentences about approach]
57
+
58
+ **Tech Stack:** [Key technologies/libraries]
59
+
60
+ ---
61
+ ```
62
+
63
+ ## Task Structure
64
+
65
+ ````markdown
66
+ ### Task N: [Component Name]
67
+
68
+ **Files:**
69
+ - Create: `exact/path/to/file.py`
70
+ - Modify: `exact/path/to/existing.py:123-145`
71
+ - Test: `tests/exact/path/to/test.py`
72
+
73
+ - [ ] **Step 1: Write the failing test**
74
+
75
+ ```python
76
+ def test_specific_behavior():
77
+ result = function(input)
78
+ assert result == expected
79
+ ```
80
+
81
+ - [ ] **Step 2: Run test to verify it fails**
82
+
83
+ Run: `pytest tests/path/test.py::test_name -v`
84
+ Expected: FAIL with "function not defined"
85
+
86
+ - [ ] **Step 3: Write minimal implementation**
87
+
88
+ ```python
89
+ def function(input):
90
+ return expected
91
+ ```
92
+
93
+ - [ ] **Step 4: Run test to verify it passes**
94
+
95
+ Run: `pytest tests/path/test.py::test_name -v`
96
+ Expected: PASS
97
+
98
+ - [ ] **Step 5: Commit**
99
+
100
+ ```bash
101
+ git add tests/path/test.py src/path/file.py
102
+ git commit -m "feat: add specific feature"
103
+ ```
104
+ ````
105
+
106
+ ## Remember
107
+ - Exact file paths always
108
+ - Complete code in plan (not "add validation")
109
+ - Exact commands with expected output
110
+ - Reference relevant skills with @ syntax
111
+ - DRY, YAGNI, TDD, frequent commits
112
+
113
+ ## Plan Review Loop
114
+
115
+ After writing the complete plan:
116
+
117
+ 1. Dispatch a single plan-document-reviewer subagent (see plan-document-reviewer-prompt.md) with precisely crafted review context — never your session history. This keeps the reviewer focused on the plan, not your thought process.
118
+ - Provide: path to the plan document, path to spec document
119
+ 2. If ❌ Issues Found: fix the issues, re-dispatch reviewer for the whole plan
120
+ 3. If ✅ Approved: proceed to execution handoff
121
+
122
+ **Review loop guidance:**
123
+ - Same agent that wrote the plan fixes it (preserves context)
124
+ - If loop exceeds 3 iterations, surface to human for guidance
125
+ - Reviewers are advisory — explain disagreements if you believe feedback is incorrect
126
+
127
+ ## Execution Handoff
128
+
129
+ After saving the plan, offer execution choice:
130
+
131
+ **"Plan complete and saved to `docs/superpowers/plans/<filename>.md`. Two execution options:**
132
+
133
+ **1. Subagent-Driven (recommended)** - I dispatch a fresh subagent per task, review between tasks, fast iteration
134
+
135
+ **2. Inline Execution** - Execute tasks in this session using executing-plans, batch execution with checkpoints
136
+
137
+ **Which approach?"**
138
+
139
+ **If Subagent-Driven chosen:**
140
+ - **REQUIRED SUB-SKILL:** Use superpowers:subagent-driven-development
141
+ - Fresh subagent per task + two-stage review
142
+
143
+ **If Inline Execution chosen:**
144
+ - **REQUIRED SUB-SKILL:** Use superpowers:executing-plans
145
+ - Batch execution with checkpoints for review