@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,171 @@
1
+ ---
2
+ name: research
3
+ description: "Research technical solutions, analyze architectures, gather requirements thoroughly. Use for technology evaluation, best practices research, solution design, scalability/security/maintainability analysis."
4
+ license: MIT
5
+ argument-hint: "[topic]"
6
+ ---
7
+
8
+ # Research
9
+
10
+ ## Research Methodology
11
+
12
+ Always honoring **YAGNI**, **KISS**, and **DRY** principles.
13
+ **Be honest, be brutal, straight to the point, and be concise.**
14
+
15
+ ### Phase 1: Scope Definition
16
+
17
+ First, you will clearly define the research scope by:
18
+ - Identifying key terms and concepts to investigate
19
+ - Determining the recency requirements (how current must information be)
20
+ - Establishing evaluation criteria for sources
21
+ - Setting boundaries for the research depth
22
+
23
+ ### Phase 2: Systematic Information Gathering
24
+
25
+ You will employ a multi-source research strategy:
26
+
27
+ 1. **Search Strategy**:
28
+ - **Gemini Toggle**: Check `.claude/.ck.json` (or `~/.claude/.ck.json`) for `skills.research.useGemini` (default: `true`). If `false`, skip Gemini and use WebSearch.
29
+ - **Gemini Model**: Read from `.claude/.ck.json`: `gemini.model` (default: `gemini-3-flash-preview`)
30
+ - If `useGemini` is enabled and `gemini` bash command is available, execute `gemini -y -m <gemini.model> "...your search prompt..."` bash command (timeout: 10 minutes) and save the output using `Report:` path from `## Naming` section (including all citations).
31
+ - If `useGemini` is disabled or `gemini` bash command is not available, use `WebSearch` tool.
32
+ - Run multiple `gemini` bash commands or `WebSearch` tools in parallel to search for relevant information.
33
+ - Craft precise search queries with relevant keywords
34
+ - Include terms like "best practices", "2024", "latest", "security", "performance"
35
+ - Search for official documentation, GitHub repositories, and authoritative blogs
36
+ - Prioritize results from recognized authorities (official docs, major tech companies, respected developers)
37
+ - **IMPORTANT:** You are allowed to perform at most **5 researches (max 5 tool calls)**, user might request less than this amount, **strictly respect it**, think carefully based on the task before performing each related research topic.
38
+
39
+ 2. **Deep Content Analysis**:
40
+ - When you found a potential Github repository URL, use `ck:docs-seeker` skill to find read it.
41
+ - Focus on official documentation, API references, and technical specifications
42
+ - Analyze README files from popular GitHub repositories
43
+ - Review changelog and release notes for version-specific information
44
+
45
+ 3. **Video Content Research**:
46
+ - Prioritize content from official channels, recognized experts, and major conferences
47
+ - Focus on practical demonstrations and real-world implementations
48
+
49
+ 4. **Cross-Reference Validation**:
50
+ - Verify information across multiple independent sources
51
+ - Check publication dates to ensure currency
52
+ - Identify consensus vs. controversial approaches
53
+ - Note any conflicting information or debates in the community
54
+
55
+ ### Phase 3: Analysis and Synthesis
56
+
57
+ You will analyze gathered information by:
58
+ - Identifying common patterns and best practices
59
+ - Evaluating pros and cons of different approaches
60
+ - Assessing maturity and stability of technologies
61
+ - Recognizing security implications and performance considerations
62
+ - Determining compatibility and integration requirements
63
+
64
+ ### Phase 4: Report Generation
65
+
66
+ **Notes:**
67
+ - Research reports are saved using `Report:` path from `## Naming` section.
68
+ - If `## Naming` section is not available, ask main agent to provide the output path.
69
+
70
+ You will create a comprehensive markdown report with the following structure:
71
+
72
+ ```markdown
73
+ # Research Report: [Topic]
74
+
75
+ ## Executive Summary
76
+ [2-3 paragraph overview of key findings and recommendations]
77
+
78
+ ## Research Methodology
79
+ - Sources consulted: [number]
80
+ - Date range of materials: [earliest to most recent]
81
+ - Key search terms used: [list]
82
+
83
+ ## Key Findings
84
+
85
+ ### 1. Technology Overview
86
+ [Comprehensive description of the technology/topic]
87
+
88
+ ### 2. Current State & Trends
89
+ [Latest developments, version information, adoption trends]
90
+
91
+ ### 3. Best Practices
92
+ [Detailed list of recommended practices with explanations]
93
+
94
+ ### 4. Security Considerations
95
+ [Security implications, vulnerabilities, and mitigation strategies]
96
+
97
+ ### 5. Performance Insights
98
+ [Performance characteristics, optimization techniques, benchmarks]
99
+
100
+ ## Comparative Analysis
101
+ [If applicable, comparison of different solutions/approaches]
102
+
103
+ ## Implementation Recommendations
104
+
105
+ ### Quick Start Guide
106
+ [Step-by-step getting started instructions]
107
+
108
+ ### Code Examples
109
+ [Relevant code snippets with explanations]
110
+
111
+ ### Common Pitfalls
112
+ [Mistakes to avoid and their solutions]
113
+
114
+ ## Resources & References
115
+
116
+ ### Official Documentation
117
+ - [Linked list of official docs]
118
+
119
+ ### Recommended Tutorials
120
+ - [Curated list with descriptions]
121
+
122
+ ### Community Resources
123
+ - [Forums, Discord servers, Stack Overflow tags]
124
+
125
+ ### Further Reading
126
+ - [Advanced topics and deep dives]
127
+
128
+ ## Appendices
129
+
130
+ ### A. Glossary
131
+ [Technical terms and definitions]
132
+
133
+ ### B. Version Compatibility Matrix
134
+ [If applicable]
135
+
136
+ ### C. Raw Research Notes
137
+ [Optional: detailed notes from research process]
138
+ ```
139
+
140
+ ## Quality Standards
141
+
142
+ You will ensure all research meets these criteria:
143
+ - **Accuracy**: Information is verified across multiple sources
144
+ - **Currency**: Prioritize information from the last 12 months unless historical context is needed
145
+ - **Completeness**: Cover all aspects requested by the user
146
+ - **Actionability**: Provide practical, implementable recommendations
147
+ - **Clarity**: Use clear language, define technical terms, provide examples
148
+ - **Attribution**: Always cite sources and provide links for verification
149
+
150
+ ## Special Considerations
151
+
152
+ - When researching security topics, always check for recent CVEs and security advisories
153
+ - For performance-related research, look for benchmarks and real-world case studies
154
+ - When investigating new technologies, assess community adoption and support levels
155
+ - For API documentation, verify endpoint availability and authentication requirements
156
+ - Always note deprecation warnings and migration paths for older technologies
157
+
158
+ ## Output Requirements
159
+
160
+ Your final report must:
161
+ 1. Be saved using the `Report:` path from `## Naming` section with a descriptive filename
162
+ 2. Include a timestamp of when the research was conducted
163
+ 3. Provide clear section navigation with a table of contents for longer reports
164
+ 4. Use code blocks with appropriate syntax highlighting
165
+ 5. Include diagrams or architecture descriptions where helpful (in mermaid or ASCII art)
166
+ 6. Conclude with specific, actionable next steps
167
+
168
+ **IMPORTANT:** Sacrifice grammar for the sake of concision when writing reports.
169
+ **IMPORTANT:** In reports, list any unresolved questions at the end, if any.
170
+
171
+ **Remember:** You are not just collecting information, but providing strategic technical intelligence that enables informed decision-making. Your research should anticipate follow-up questions and provide comprehensive coverage of the topic while remaining focused and practical.
@@ -0,0 +1,89 @@
1
+ ---
2
+ name: scout
3
+ description: "Fast codebase scouting using parallel agents. Use for file discovery, task context gathering, quick searches across directories. Supports internal (Explore) and external (Gemini/OpenCode) agents."
4
+ version: 1.0.0
5
+ argument-hint: "[search-target] [ext]"
6
+ ---
7
+
8
+ # Scout
9
+
10
+ Fast, token-efficient codebase scouting using parallel agents to find files needed for tasks.
11
+
12
+ ## Arguments
13
+ - Default: Scout using built-in Explore subagents in parallel (`./references/internal-scouting.md`)
14
+ - `ext`: Scout using external Gemini/OpenCode CLI tools in parallel (`./references/external-scouting.md`)
15
+
16
+ ## When to Use
17
+
18
+ - Beginning work on feature spanning multiple directories
19
+ - User mentions needing to "find", "locate", or "search for" files
20
+ - Starting debugging session requiring file relationships understanding
21
+ - User asks about project structure or where functionality lives
22
+ - Before changes that might affect multiple codebase parts
23
+
24
+ ## Quick Start
25
+
26
+ 1. Analyze user prompt to identify search targets
27
+ 2. Use a wide range of Grep and Glob patterns to find relevant files and estimate scale of the codebase
28
+ 3. Spawn parallel agents with divided directories
29
+ 4. Collect results into concise report
30
+
31
+ ## Configuration
32
+
33
+ Read from `.claude/.ck.json`:
34
+ - `gemini.model` - Gemini model (default: `gemini-3-flash-preview`)
35
+
36
+ ## Workflow
37
+
38
+ ### 1. Analyze Task
39
+ - Parse user prompt for search targets
40
+ - Identify key directories, patterns, file types, lines of code
41
+ - Determine optimal SCALE value of subagents to spawn
42
+
43
+ ### 2. Divide and Conquer
44
+ - Split codebase into logical segments per agent
45
+ - Assign each agent specific directories or patterns
46
+ - Ensure no overlap, maximize coverage
47
+
48
+ ### 3. Register Scout Tasks
49
+ - **Skip if:** Agent count ≤ 2 (overhead exceeds benefit)
50
+ - `TaskList` first — check for existing scout tasks in session
51
+ - If not found, `TaskCreate` per agent with scope metadata
52
+ - See `references/task-management-scouting.md` for patterns and examples
53
+
54
+ ### 4. Spawn Parallel Agents
55
+ Load appropriate reference based on decision tree:
56
+ - **Internal (Default):** `references/internal-scouting.md` (Explore subagents)
57
+ - **External:** `references/external-scouting.md` (Gemini/OpenCode)
58
+
59
+ **Notes:**
60
+ - `TaskUpdate` each task to `in_progress` before spawning its agent
61
+ - Prompt detailed instructions for each subagent with exact directories or files it should read
62
+ - Remember that each subagent has less than 200K tokens of context window
63
+ - Amount of subagents to-be-spawned depends on the current system resources available and amount of files to be scanned
64
+ - Each subagent must return a detailed summary report to a main agent
65
+
66
+ ### 5. Collect Results
67
+ - Timeout: 3 minutes per agent (skip non-responders)
68
+ - `TaskUpdate` completed tasks; log timed-out agents in report
69
+ - Aggregate findings into single report
70
+ - List unresolved questions at end
71
+
72
+ ## Report Format
73
+
74
+ ```markdown
75
+ # Scout Report
76
+
77
+ ## Relevant Files
78
+ - `path/to/file.ts` - Brief description
79
+ - ...
80
+
81
+ ## Unresolved Questions
82
+ - Any gaps in findings
83
+ ```
84
+
85
+ ## References
86
+
87
+ - `references/internal-scouting.md` - Using Explore subagents
88
+ - `references/external-scouting.md` - Using Gemini/OpenCode CLI
89
+ - `references/task-management-scouting.md` - Claude Task patterns for scout coordination
@@ -0,0 +1,140 @@
1
+ # External Scouting with Gemini/OpenCode
2
+
3
+ Use external agentic tools for faster searches with large context windows (1M+ tokens).
4
+
5
+ ## Tool Selection
6
+
7
+ ```
8
+ SCALE <= 3 → gemini CLI
9
+ SCALE 4-5 → opencode CLI
10
+ SCALE >= 6 → Use internal scouting instead
11
+ ```
12
+
13
+ ## Configuration
14
+
15
+ Read from `.claude/.ck.json`:
16
+ ```json
17
+ {
18
+ "gemini": {
19
+ "model": "gemini-3-flash-preview"
20
+ }
21
+ }
22
+ ```
23
+
24
+ Default model: `gemini-3-flash-preview`
25
+
26
+ ## Gemini CLI (SCALE <= 3)
27
+
28
+ ### Command
29
+ ```bash
30
+ gemini -y -m <model> "[prompt]"
31
+ ```
32
+
33
+ ### Example
34
+ ```bash
35
+ gemini -y -m gemini-3-flash-preview "Search src/ for authentication files. List paths with brief descriptions."
36
+ ```
37
+
38
+ ## OpenCode CLI (SCALE 4-5)
39
+
40
+ ### Command
41
+ ```bash
42
+ opencode run "[prompt]" --model opencode/grok-code
43
+ ```
44
+
45
+ ### Example
46
+ ```bash
47
+ opencode run "Find all payment-related files in lib/ and api/" --model opencode/grok-code
48
+ ```
49
+
50
+ ## Installation Check
51
+
52
+ Before using, verify tools installed:
53
+ ```bash
54
+ which gemini
55
+ which opencode
56
+ ```
57
+
58
+ If not installed, ask user:
59
+ 1. **Yes** - Provide installation instructions (may need manual auth steps)
60
+ 2. **No** - Fall back to Explore subagents (`internal-scouting.md`)
61
+
62
+ ## Spawning Parallel Bash Agents
63
+
64
+ Use `Task` tool with `subagent_type: "Bash"` to spawn parallel agents:
65
+
66
+ ```
67
+ Task 1: subagent_type="Bash", prompt="Run: gemini -y -m gemini-3-flash-preview '[prompt1]'"
68
+ Task 2: subagent_type="Bash", prompt="Run: gemini -y -m gemini-3-flash-preview '[prompt2]'"
69
+ Task 3: subagent_type="Bash", prompt="Run: gemini -y -m gemini-3-flash-preview '[prompt3]'"
70
+ ```
71
+
72
+ Spawn all in single message for parallel execution.
73
+
74
+ ## Prompt Guidelines
75
+
76
+ - Be specific about directories to search
77
+ - Request file paths with descriptions
78
+ - Set clear scope boundaries
79
+ - Ask for patterns/relationships if relevant
80
+
81
+ ## Example Workflow
82
+
83
+ User: "Find database migration files"
84
+
85
+ Spawn 3 parallel Bash agents via Task tool:
86
+ ```
87
+ Task 1 (Bash): "Run: gemini -y -m gemini-3-flash-preview 'Search db/, migrations/ for migration files'"
88
+ Task 2 (Bash): "Run: gemini -y -m gemini-3-flash-preview 'Search lib/, src/ for database schema files'"
89
+ Task 3 (Bash): "Run: gemini -y -m gemini-3-flash-preview 'Search config/ for database configuration'"
90
+ ```
91
+
92
+ ## Reading File Content
93
+
94
+ When needing to read file content, use chunking to stay within context limits (<150K tokens safe zone).
95
+
96
+ ### Step 1: Get Line Counts
97
+ ```bash
98
+ wc -l path/to/file1.ts path/to/file2.ts path/to/file3.ts
99
+ ```
100
+
101
+ ### Step 2: Calculate Chunks
102
+ - **Target:** ~500 lines per chunk (safe for most files)
103
+ - **Max files per agent:** 3-5 small files OR 1 large file chunked
104
+
105
+ **Chunking formula:**
106
+ ```
107
+ chunks = ceil(total_lines / 500)
108
+ lines_per_chunk = ceil(total_lines / chunks)
109
+ ```
110
+
111
+ ### Step 3: Spawn Parallel Bash Agents
112
+
113
+ **Small files (<500 lines each):**
114
+ ```
115
+ Task 1: subagent_type="Bash", prompt="cat file1.ts file2.ts"
116
+ Task 2: subagent_type="Bash", prompt="cat file3.ts file4.ts"
117
+ ```
118
+
119
+ **Large file (>500 lines) - use sed for ranges:**
120
+ ```
121
+ Task 1: subagent_type="Bash", prompt="sed -n '1,500p' large-file.ts"
122
+ Task 2: subagent_type="Bash", prompt="sed -n '501,1000p' large-file.ts"
123
+ Task 3: subagent_type="Bash", prompt="sed -n '1001,1500p' large-file.ts"
124
+ ```
125
+
126
+ ### Chunking Decision Tree
127
+ ```
128
+ File < 500 lines → Read entire file
129
+ File 500-1500 lines → Split into 2-3 chunks
130
+ File > 1500 lines → Split into ceil(lines/500) chunks
131
+ ```
132
+
133
+ Spawn all in single message for parallel execution.
134
+
135
+ ## Timeout and Error Handling
136
+
137
+ - Set 3-minute timeout per bash call
138
+ - Skip timed-out agents
139
+ - Don't restart failed agents
140
+ - On persistent failures, fall back to internal scouting
@@ -0,0 +1,119 @@
1
+ # Internal Scouting with Explore Subagents
2
+
3
+ Use Explore subagents when SCALE >= 6 or external tools unavailable.
4
+
5
+ ## How It Works
6
+
7
+ Spawn multiple `Explore` subagents via `Task` tool to search codebase in parallel.
8
+
9
+ ## Task Tool Configuration
10
+
11
+ ```
12
+ subagent_type: "Explore"
13
+ ```
14
+
15
+ ## Prompt Template
16
+
17
+ ```
18
+ Quickly scout {DIRECTORY} for files related to: {USER_PROMPT}
19
+
20
+ Instructions:
21
+ - Search for relevant files matching the task
22
+ - Use Glob/Grep for file discovery
23
+ - List files with brief descriptions
24
+ - Timeout: 3 minutes max
25
+ - Skip if timeout reached
26
+
27
+ Report format:
28
+ ## Found Files
29
+ - `path/file.ext` - description
30
+
31
+ ## Patterns
32
+ - Key patterns observed
33
+ ```
34
+
35
+ ## Spawning Strategy
36
+
37
+ ### Directory Division
38
+ Split codebase logically:
39
+ - `src/` - Source code
40
+ - `lib/` - Libraries
41
+ - `tests/` - Test files
42
+ - `config/` - Configuration
43
+ - `api/` - API routes
44
+
45
+ ### Parallel Execution
46
+ - Spawn all agents in single `Task` tool call
47
+ - Each agent gets distinct directory scope
48
+ - No overlap between agents
49
+
50
+ ## Example
51
+
52
+ User prompt: "Find authentication-related files"
53
+
54
+ ```
55
+ Agent 1: Scout src/auth/, src/middleware/ for auth files
56
+ Agent 2: Scout src/api/, src/routes/ for auth endpoints
57
+ Agent 3: Scout tests/ for auth tests
58
+ Agent 4: Scout lib/, utils/ for auth utilities
59
+ Agent 5: Scout config/ for auth configuration
60
+ Agent 6: Scout types/, interfaces/ for auth types
61
+ ```
62
+
63
+ ## Timeout Handling
64
+
65
+ - Set 3-minute timeout per agent
66
+ - Skip non-responding agents
67
+ - Don't restart timed-out agents
68
+ - Aggregate available results
69
+
70
+ ## Reading File Content
71
+
72
+ When needing to read file content, use chunking to stay within context limits (<150K tokens safe zone).
73
+
74
+ ### Step 1: Get Line Counts
75
+ ```bash
76
+ wc -l path/to/file1.ts path/to/file2.ts path/to/file3.ts
77
+ ```
78
+
79
+ ### Step 2: Calculate Chunks
80
+ - **Target:** ~500 lines per chunk (safe for most files)
81
+ - **Max files per agent:** 3-5 small files OR 1 large file chunked
82
+
83
+ **Chunking formula:**
84
+ ```
85
+ chunks = ceil(total_lines / 500)
86
+ lines_per_chunk = ceil(total_lines / chunks)
87
+ ```
88
+
89
+ ### Step 3: Spawn Parallel Bash Agents
90
+
91
+ **Small files (<500 lines each):**
92
+ ```
93
+ Task 1: subagent_type="Bash", prompt="cat file1.ts file2.ts"
94
+ Task 2: subagent_type="Bash", prompt="cat file3.ts file4.ts"
95
+ ```
96
+
97
+ **Large file (>500 lines) - use sed for ranges:**
98
+ ```
99
+ Task 1: subagent_type="Bash", prompt="sed -n '1,500p' large-file.ts"
100
+ Task 2: subagent_type="Bash", prompt="sed -n '501,1000p' large-file.ts"
101
+ Task 3: subagent_type="Bash", prompt="sed -n '1001,1500p' large-file.ts"
102
+ ```
103
+
104
+ ### Chunking Decision Tree
105
+ ```
106
+ File < 500 lines → Read entire file
107
+ File 500-1500 lines → Split into 2-3 chunks
108
+ File > 1500 lines → Split into ceil(lines/500) chunks
109
+ ```
110
+
111
+ Spawn all in single message for parallel execution.
112
+
113
+ ## Result Aggregation
114
+
115
+ Combine results from all agents:
116
+ 1. Deduplicate file paths
117
+ 2. Merge descriptions
118
+ 3. Note any gaps/timeouts
119
+ 4. List unresolved questions
@@ -0,0 +1,125 @@
1
+ # Scout Task Management Patterns
2
+
3
+ Track parallel scout agent execution via Claude Native Tasks (TaskCreate, TaskUpdate, TaskList).
4
+
5
+ ## When to Create Tasks
6
+
7
+ | Agents | Create Tasks? | Rationale |
8
+ |--------|--------------|-----------|
9
+ | ≤ 2 | No | Overhead exceeds benefit, finishes quickly |
10
+ | ≥ 3 | Yes | Meaningful coordination, progress monitoring |
11
+
12
+ ## Task Registration Flow
13
+
14
+ ```
15
+ TaskList() // Check for existing scout tasks
16
+ → Found tasks? → Skip creation, reuse existing
17
+ → Empty? → TaskCreate per agent (see schema below)
18
+ ```
19
+
20
+ ## Metadata Schema
21
+
22
+ ```
23
+ TaskCreate(
24
+ subject: "Scout {directory} for {target}",
25
+ activeForm: "Scouting {directory}",
26
+ description: "Search {directories} for {patterns}",
27
+ metadata: {
28
+ agentType: "Explore", // "Explore" (internal) or "Bash" (external)
29
+ scope: "src/auth/,src/middleware/",
30
+ scale: 6,
31
+ agentIndex: 1, // 1-indexed position
32
+ totalAgents: 6,
33
+ toolMode: "internal", // "internal" or "external"
34
+ priority: "P2", // Always P2 for scout coordination
35
+ effort: "3m" // Fixed timeout per agent
36
+ }
37
+ )
38
+ ```
39
+
40
+ ### Required Fields
41
+
42
+ - `agentType` — Subagent type: `"Explore"` for internal, `"Bash"` for external
43
+ - `scope` — Comma-separated directory boundaries for this agent
44
+ - `scale` — Total SCALE value determined in Step 1
45
+ - `agentIndex` / `totalAgents` — Position tracking (e.g., 3 of 6)
46
+ - `toolMode` — `"internal"` or `"external"`
47
+ - `priority` — Always `"P2"` (scout = coordination, not primary work)
48
+ - `effort` — Always `"3m"` (fixed timeout)
49
+
50
+ ### Optional Fields
51
+
52
+ - `searchPatterns` — Key patterns searched (aids debugging)
53
+ - `externalTool` — If external: `"gemini"` or `"opencode"`
54
+
55
+ ## Task Lifecycle
56
+
57
+ ```
58
+ Step 3: TaskCreate per agent → status: pending
59
+ Step 4: Before spawning agent → TaskUpdate → status: in_progress
60
+ Step 5: Agent returns report → TaskUpdate → status: completed
61
+ Step 5: Agent times out (3m) → Keep in_progress, add error metadata
62
+ ```
63
+
64
+ ### Timeout Handling
65
+
66
+ ```
67
+ TaskUpdate(taskId, {
68
+ metadata: { ...existing, error: "timeout" }
69
+ })
70
+ // Task stays in_progress — distinguishes timeout from incomplete
71
+ // Log in final report's "Unresolved Questions" section
72
+ ```
73
+
74
+ ## Examples
75
+
76
+ ### Internal Scouting (SCALE=6)
77
+
78
+ ```
79
+ // Step 3: Register 6 tasks
80
+ TaskCreate(subject: "Scout src/auth/ for auth files",
81
+ activeForm: "Scouting src/auth/",
82
+ metadata: { agentType: "Explore", scope: "src/auth/", scale: 6,
83
+ agentIndex: 1, totalAgents: 6, toolMode: "internal",
84
+ priority: "P2", effort: "3m" }) // → taskId1
85
+
86
+ // Repeat for agents 2-6 with different scopes
87
+
88
+ // Step 4: Spawn agents
89
+ TaskUpdate(taskId1, { status: "in_progress" })
90
+ // ... spawn all Explore subagents in single Task tool call
91
+
92
+ // Step 5: Collect
93
+ TaskUpdate(taskId1, { status: "completed" }) // report received
94
+ TaskUpdate(taskId3, { metadata: { error: "timeout" } }) // timed out
95
+ ```
96
+
97
+ ### External Scouting (SCALE=3, gemini)
98
+
99
+ ```
100
+ TaskCreate(subject: "Scout db/ for migrations via gemini",
101
+ activeForm: "Scouting db/ via gemini",
102
+ metadata: { agentType: "Bash", scope: "db/,migrations/", scale: 3,
103
+ agentIndex: 1, totalAgents: 3, toolMode: "external",
104
+ externalTool: "gemini", priority: "P2", effort: "3m" })
105
+ ```
106
+
107
+ ## Integration with Cook/Planning
108
+
109
+ Scout tasks are **independent** from cook/planning phase tasks — NOT parent-child.
110
+
111
+ **Rationale:** Different lifecycle. Scout completes before cook continues. Mixing creates confusion in TaskList.
112
+
113
+ **Sequence when cook spawns scout:**
114
+ 1. Cook Step 2 → spawns planner → planner spawns scout
115
+ 2. Scout registers its own tasks (Step 3), executes (Step 4-5)
116
+ 3. Scout returns aggregated report → planner continues
117
+ 4. Cook Step 3 hydrates phase tasks (separate from scout tasks)
118
+
119
+ ## Quality Check Output
120
+
121
+ After registration: `✓ Registered [N] scout tasks ([internal|external] mode, SCALE={scale})`
122
+
123
+ ## Error Handling
124
+
125
+ If `TaskCreate` fails: log warning, continue without task tracking. Scout remains fully functional — tasks add observability, not functionality.
@@ -0,0 +1,8 @@
1
+ # Sequential Thinking Configuration
2
+
3
+ # Disable thought logging output (useful for automated processing)
4
+ # Set to "true" to disable console logging
5
+ DISABLE_THOUGHT_LOGGING=false
6
+
7
+ # History file location (optional, defaults to scripts/.thought-history.json)
8
+ # THOUGHT_HISTORY_FILE=/path/to/custom/history.json