oh-my-customcodex 0.1.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 (351) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +327 -0
  3. package/dist/cli/index.js +32054 -0
  4. package/dist/index.js +5469 -0
  5. package/package.json +89 -0
  6. package/templates/.claude/agents/arch-documenter.md +38 -0
  7. package/templates/.claude/agents/arch-speckit-agent.md +66 -0
  8. package/templates/.claude/agents/be-django-expert.md +47 -0
  9. package/templates/.claude/agents/be-express-expert.md +31 -0
  10. package/templates/.claude/agents/be-fastapi-expert.md +45 -0
  11. package/templates/.claude/agents/be-go-backend-expert.md +45 -0
  12. package/templates/.claude/agents/be-nestjs-expert.md +29 -0
  13. package/templates/.claude/agents/be-springboot-expert.md +42 -0
  14. package/templates/.claude/agents/db-alembic-expert.md +73 -0
  15. package/templates/.claude/agents/db-postgres-expert.md +38 -0
  16. package/templates/.claude/agents/db-redis-expert.md +38 -0
  17. package/templates/.claude/agents/db-supabase-expert.md +37 -0
  18. package/templates/.claude/agents/de-airflow-expert.md +48 -0
  19. package/templates/.claude/agents/de-dbt-expert.md +36 -0
  20. package/templates/.claude/agents/de-kafka-expert.md +83 -0
  21. package/templates/.claude/agents/de-pipeline-expert.md +34 -0
  22. package/templates/.claude/agents/de-snowflake-expert.md +38 -0
  23. package/templates/.claude/agents/de-spark-expert.md +38 -0
  24. package/templates/.claude/agents/fe-design-expert.md +120 -0
  25. package/templates/.claude/agents/fe-flutter-agent.md +48 -0
  26. package/templates/.claude/agents/fe-svelte-agent.md +33 -0
  27. package/templates/.claude/agents/fe-vercel-agent.md +40 -0
  28. package/templates/.claude/agents/fe-vuejs-agent.md +34 -0
  29. package/templates/.claude/agents/infra-aws-expert.md +49 -0
  30. package/templates/.claude/agents/infra-docker-expert.md +49 -0
  31. package/templates/.claude/agents/lang-golang-expert.md +46 -0
  32. package/templates/.claude/agents/lang-java21-expert.md +42 -0
  33. package/templates/.claude/agents/lang-kotlin-expert.md +45 -0
  34. package/templates/.claude/agents/lang-python-expert.md +45 -0
  35. package/templates/.claude/agents/lang-rust-expert.md +45 -0
  36. package/templates/.claude/agents/lang-typescript-expert.md +45 -0
  37. package/templates/.claude/agents/mgr-claude-code-bible.md +62 -0
  38. package/templates/.claude/agents/mgr-creator.md +57 -0
  39. package/templates/.claude/agents/mgr-gitnerd.md +50 -0
  40. package/templates/.claude/agents/mgr-sauron.md +163 -0
  41. package/templates/.claude/agents/mgr-supplier.md +39 -0
  42. package/templates/.claude/agents/mgr-updater.md +40 -0
  43. package/templates/.claude/agents/qa-engineer.md +36 -0
  44. package/templates/.claude/agents/qa-planner.md +78 -0
  45. package/templates/.claude/agents/qa-writer.md +32 -0
  46. package/templates/.claude/agents/sec-codeql-expert.md +56 -0
  47. package/templates/.claude/agents/slack-cli-expert.md +98 -0
  48. package/templates/.claude/agents/souls/lang-golang-expert.soul.md +21 -0
  49. package/templates/.claude/agents/sys-memory-keeper.md +123 -0
  50. package/templates/.claude/agents/sys-naggy.md +76 -0
  51. package/templates/.claude/agents/tool-bun-expert.md +26 -0
  52. package/templates/.claude/agents/tool-npm-expert.md +31 -0
  53. package/templates/.claude/agents/tool-optimizer.md +37 -0
  54. package/templates/.claude/agents/wiki-curator.md +72 -0
  55. package/templates/.claude/config/required-plugins.json +30 -0
  56. package/templates/.claude/contexts/dev.md +20 -0
  57. package/templates/.claude/contexts/ecomode.md +110 -0
  58. package/templates/.claude/contexts/index.yaml +41 -0
  59. package/templates/.claude/contexts/research.md +28 -0
  60. package/templates/.claude/contexts/review.md +23 -0
  61. package/templates/.claude/hooks/hooks.json +533 -0
  62. package/templates/.claude/hooks/scripts/adaptive-harness-scan.sh +45 -0
  63. package/templates/.claude/hooks/scripts/agent-start-recorder.sh +40 -0
  64. package/templates/.claude/hooks/scripts/agent-teams-advisor.sh +76 -0
  65. package/templates/.claude/hooks/scripts/audit-log.sh +64 -0
  66. package/templates/.claude/hooks/scripts/auto-continue-guard.sh +33 -0
  67. package/templates/.claude/hooks/scripts/content-hash-validator.sh +75 -0
  68. package/templates/.claude/hooks/scripts/context-budget-advisor.sh +107 -0
  69. package/templates/.claude/hooks/scripts/cost-cap-advisor.sh +71 -0
  70. package/templates/.claude/hooks/scripts/cwd-change-detector.sh +36 -0
  71. package/templates/.claude/hooks/scripts/eval-core-batch-save.sh +46 -0
  72. package/templates/.claude/hooks/scripts/feedback-collector.sh +92 -0
  73. package/templates/.claude/hooks/scripts/file-change-validator.sh +26 -0
  74. package/templates/.claude/hooks/scripts/git-delegation-guard.sh +57 -0
  75. package/templates/.claude/hooks/scripts/model-escalation-advisor.sh +106 -0
  76. package/templates/.claude/hooks/scripts/omcodex-auto-update.sh +4 -0
  77. package/templates/.claude/hooks/scripts/omcustom-auto-update.sh +177 -0
  78. package/templates/.claude/hooks/scripts/rtk-intercept.sh +77 -0
  79. package/templates/.claude/hooks/scripts/rule-deletion-guard.sh +60 -0
  80. package/templates/.claude/hooks/scripts/schema-validator.sh +106 -0
  81. package/templates/.claude/hooks/scripts/secret-filter.sh +100 -0
  82. package/templates/.claude/hooks/scripts/session-autofix-prompt.sh +34 -0
  83. package/templates/.claude/hooks/scripts/session-autofix.sh +146 -0
  84. package/templates/.claude/hooks/scripts/session-env-check.sh +254 -0
  85. package/templates/.claude/hooks/scripts/skill-extractor-analyzer.sh +49 -0
  86. package/templates/.claude/hooks/scripts/stage-blocker.sh +16 -0
  87. package/templates/.claude/hooks/scripts/stale-todo-scanner.sh +91 -0
  88. package/templates/.claude/hooks/scripts/stall-detection-advisor.sh +112 -0
  89. package/templates/.claude/hooks/scripts/stop-console-audit.sh +46 -0
  90. package/templates/.claude/hooks/scripts/stuck-detector.sh +199 -0
  91. package/templates/.claude/hooks/scripts/task-outcome-recorder.sh +119 -0
  92. package/templates/.claude/hooks/scripts/task-state-precompact.sh +58 -0
  93. package/templates/.claude/hooks/scripts/user-prompt-preprocessor.sh +32 -0
  94. package/templates/.claude/hooks/skill-count-reminder.sh +34 -0
  95. package/templates/.claude/install-hooks.sh +100 -0
  96. package/templates/.claude/ontology/agents.yaml +546 -0
  97. package/templates/.claude/ontology/graphs/agent-skill.json +102 -0
  98. package/templates/.claude/ontology/graphs/full-graph.json +629 -0
  99. package/templates/.claude/ontology/graphs/routing.json +112 -0
  100. package/templates/.claude/ontology/graphs/skill-rule.json +78 -0
  101. package/templates/.claude/ontology/rules.yaml +251 -0
  102. package/templates/.claude/ontology/schema.yaml +144 -0
  103. package/templates/.claude/ontology/skills.yaml +575 -0
  104. package/templates/.claude/rules/MAY-optimization.md +42 -0
  105. package/templates/.claude/rules/MUST-agent-design.md +340 -0
  106. package/templates/.claude/rules/MUST-agent-identification.md +77 -0
  107. package/templates/.claude/rules/MUST-agent-teams.md +293 -0
  108. package/templates/.claude/rules/MUST-completion-verification.md +112 -0
  109. package/templates/.claude/rules/MUST-continuous-improvement.md +69 -0
  110. package/templates/.claude/rules/MUST-enforcement-policy.md +50 -0
  111. package/templates/.claude/rules/MUST-intent-transparency.md +74 -0
  112. package/templates/.claude/rules/MUST-language-policy.md +28 -0
  113. package/templates/.claude/rules/MUST-orchestrator-coordination.md +399 -0
  114. package/templates/.claude/rules/MUST-parallel-execution.md +184 -0
  115. package/templates/.claude/rules/MUST-permissions.md +32 -0
  116. package/templates/.claude/rules/MUST-safety.md +23 -0
  117. package/templates/.claude/rules/MUST-sync-verification.md +145 -0
  118. package/templates/.claude/rules/MUST-tool-identification.md +97 -0
  119. package/templates/.claude/rules/SHOULD-ecomode.md +123 -0
  120. package/templates/.claude/rules/SHOULD-error-handling.md +33 -0
  121. package/templates/.claude/rules/SHOULD-hud-statusline.md +51 -0
  122. package/templates/.claude/rules/SHOULD-interaction.md +77 -0
  123. package/templates/.claude/rules/SHOULD-memory-integration.md +371 -0
  124. package/templates/.claude/rules/SHOULD-ontology-rag-routing.md +49 -0
  125. package/templates/.claude/rules/SHOULD-wiki-sync.md +73 -0
  126. package/templates/.claude/rules/index.yaml +141 -0
  127. package/templates/.claude/schemas/tool-inputs.json +62 -0
  128. package/templates/.claude/skills/action-validator/SKILL.md +89 -0
  129. package/templates/.claude/skills/adaptive-harness/SKILL.md +335 -0
  130. package/templates/.claude/skills/adversarial-review/SKILL.md +80 -0
  131. package/templates/.claude/skills/agora/SKILL.md +194 -0
  132. package/templates/.claude/skills/airflow-best-practices/SKILL.md +94 -0
  133. package/templates/.claude/skills/alembic-best-practices/SKILL.md +295 -0
  134. package/templates/.claude/skills/ambiguity-gate/SKILL.md +94 -0
  135. package/templates/.claude/skills/analysis/SKILL.md +223 -0
  136. package/templates/.claude/skills/audit-agents/SKILL.md +118 -0
  137. package/templates/.claude/skills/aws-best-practices/SKILL.md +281 -0
  138. package/templates/.claude/skills/claude-code-bible/SKILL.md +93 -0
  139. package/templates/.claude/skills/claude-code-bible/scripts/fetch-docs.js +244 -0
  140. package/templates/.claude/skills/claude-native/SKILL.md +215 -0
  141. package/templates/.claude/skills/codex-exec/SKILL.md +206 -0
  142. package/templates/.claude/skills/codex-exec/scripts/codex-wrapper.cjs +430 -0
  143. package/templates/.claude/skills/create-agent/SKILL.md +94 -0
  144. package/templates/.claude/skills/cve-triage/SKILL.md +91 -0
  145. package/templates/.claude/skills/dag-orchestration/SKILL.md +201 -0
  146. package/templates/.claude/skills/dbt-best-practices/SKILL.md +55 -0
  147. package/templates/.claude/skills/de-lead-routing/SKILL.md +230 -0
  148. package/templates/.claude/skills/deep-plan/SKILL.md +344 -0
  149. package/templates/.claude/skills/deep-verify/SKILL.md +111 -0
  150. package/templates/.claude/skills/dev-lead-routing/SKILL.md +161 -0
  151. package/templates/.claude/skills/dev-refactor/SKILL.md +234 -0
  152. package/templates/.claude/skills/dev-review/SKILL.md +172 -0
  153. package/templates/.claude/skills/django-best-practices/SKILL.md +334 -0
  154. package/templates/.claude/skills/docker-best-practices/SKILL.md +276 -0
  155. package/templates/.claude/skills/evaluator-optimizer/SKILL.md +421 -0
  156. package/templates/.claude/skills/fastapi-best-practices/SKILL.md +271 -0
  157. package/templates/.claude/skills/fix-refs/SKILL.md +109 -0
  158. package/templates/.claude/skills/flutter-best-practices/SKILL.md +325 -0
  159. package/templates/.claude/skills/gemini-exec/SKILL.md +215 -0
  160. package/templates/.claude/skills/gemini-exec/scripts/gemini-wrapper.cjs +485 -0
  161. package/templates/.claude/skills/go-backend-best-practices/SKILL.md +135 -0
  162. package/templates/.claude/skills/go-best-practices/SKILL.md +204 -0
  163. package/templates/.claude/skills/hada-scout/SKILL.md +92 -0
  164. package/templates/.claude/skills/harness-eval/SKILL.md +95 -0
  165. package/templates/.claude/skills/harness-synthesizer/SKILL.md +145 -0
  166. package/templates/.claude/skills/help/SKILL.md +127 -0
  167. package/templates/.claude/skills/idea/SKILL.md +88 -0
  168. package/templates/.claude/skills/impeccable-design/SKILL.md +173 -0
  169. package/templates/.claude/skills/intent-detection/SKILL.md +293 -0
  170. package/templates/.claude/skills/intent-detection/patterns/agent-triggers.yaml +438 -0
  171. package/templates/.claude/skills/java21-best-practices/SKILL.md +190 -0
  172. package/templates/.claude/skills/jinja2-prompts/SKILL.md +86 -0
  173. package/templates/.claude/skills/kafka-best-practices/SKILL.md +53 -0
  174. package/templates/.claude/skills/kotlin-best-practices/SKILL.md +257 -0
  175. package/templates/.claude/skills/lists/SKILL.md +80 -0
  176. package/templates/.claude/skills/memory-management/SKILL.md +196 -0
  177. package/templates/.claude/skills/memory-recall/SKILL.md +172 -0
  178. package/templates/.claude/skills/memory-save/SKILL.md +128 -0
  179. package/templates/.claude/skills/model-escalation/SKILL.md +62 -0
  180. package/templates/.claude/skills/monitoring-setup/SKILL.md +215 -0
  181. package/templates/.claude/skills/multi-model-verification/SKILL.md +130 -0
  182. package/templates/.claude/skills/npm-audit/SKILL.md +74 -0
  183. package/templates/.claude/skills/npm-publish/SKILL.md +65 -0
  184. package/templates/.claude/skills/npm-version/SKILL.md +104 -0
  185. package/templates/.claude/skills/omcodex-auto-improve/SKILL.md +136 -0
  186. package/templates/.claude/skills/omcodex-feedback/SKILL.md +205 -0
  187. package/templates/.claude/skills/omcodex-improve-report/SKILL.md +65 -0
  188. package/templates/.claude/skills/omcodex-loop/SKILL.md +45 -0
  189. package/templates/.claude/skills/omcodex-release-notes/SKILL.md +117 -0
  190. package/templates/.claude/skills/omcodex-takeover/SKILL.md +115 -0
  191. package/templates/.claude/skills/omcodex-web/SKILL.md +95 -0
  192. package/templates/.claude/skills/optimize-analyze/SKILL.md +57 -0
  193. package/templates/.claude/skills/optimize-bundle/SKILL.md +69 -0
  194. package/templates/.claude/skills/optimize-report/SKILL.md +76 -0
  195. package/templates/.claude/skills/peer-messaging/SKILL.md +59 -0
  196. package/templates/.claude/skills/pipeline/SKILL.md +103 -0
  197. package/templates/.claude/skills/pipeline-architecture-patterns/SKILL.md +84 -0
  198. package/templates/.claude/skills/pipeline-guards/SKILL.md +173 -0
  199. package/templates/.claude/skills/post-release-followup/SKILL.md +134 -0
  200. package/templates/.claude/skills/postgres-best-practices/SKILL.md +67 -0
  201. package/templates/.claude/skills/pr-auto-improve/SKILL.md +129 -0
  202. package/templates/.claude/skills/professor-triage/SKILL.md +321 -0
  203. package/templates/.claude/skills/python-best-practices/SKILL.md +223 -0
  204. package/templates/.claude/skills/qa-lead-routing/SKILL.md +104 -0
  205. package/templates/.claude/skills/react-best-practices/SKILL.md +102 -0
  206. package/templates/.claude/skills/reasoning-sandwich/SKILL.md +64 -0
  207. package/templates/.claude/skills/redis-best-practices/SKILL.md +84 -0
  208. package/templates/.claude/skills/release-plan/SKILL.md +207 -0
  209. package/templates/.claude/skills/research/SKILL.md +493 -0
  210. package/templates/.claude/skills/result-aggregation/SKILL.md +165 -0
  211. package/templates/.claude/skills/rtk-exec/SKILL.md +199 -0
  212. package/templates/.claude/skills/rtk-exec/scripts/rtk-wrapper.cjs +377 -0
  213. package/templates/.claude/skills/rust-best-practices/SKILL.md +268 -0
  214. package/templates/.claude/skills/sauron-watch/SKILL.md +239 -0
  215. package/templates/.claude/skills/scout/SKILL.md +250 -0
  216. package/templates/.claude/skills/sdd/SKILL.md +24 -0
  217. package/templates/.claude/skills/sdd-dev/SKILL.md +257 -0
  218. package/templates/.claude/skills/sdd-development/SKILL.md +24 -0
  219. package/templates/.claude/skills/secretary-routing/SKILL.md +132 -0
  220. package/templates/.claude/skills/skill-extractor/SKILL.md +155 -0
  221. package/templates/.claude/skills/skills-sh-search/SKILL.md +210 -0
  222. package/templates/.claude/skills/snowflake-best-practices/SKILL.md +66 -0
  223. package/templates/.claude/skills/spark-best-practices/SKILL.md +53 -0
  224. package/templates/.claude/skills/springboot-best-practices/SKILL.md +74 -0
  225. package/templates/.claude/skills/springboot-best-practices/examples/config-properties-example.java +22 -0
  226. package/templates/.claude/skills/springboot-best-practices/examples/controller-example.java +28 -0
  227. package/templates/.claude/skills/springboot-best-practices/examples/controller-test-example.java +33 -0
  228. package/templates/.claude/skills/springboot-best-practices/examples/entity-example.java +22 -0
  229. package/templates/.claude/skills/springboot-best-practices/examples/exception-handler-example.java +30 -0
  230. package/templates/.claude/skills/springboot-best-practices/examples/repository-example.java +17 -0
  231. package/templates/.claude/skills/springboot-best-practices/examples/repository-test-example.java +23 -0
  232. package/templates/.claude/skills/springboot-best-practices/examples/security-config-example.java +27 -0
  233. package/templates/.claude/skills/springboot-best-practices/examples/service-example.java +33 -0
  234. package/templates/.claude/skills/status/SKILL.md +155 -0
  235. package/templates/.claude/skills/structured-dev-cycle/SKILL.md +200 -0
  236. package/templates/.claude/skills/stuck-recovery/SKILL.md +80 -0
  237. package/templates/.claude/skills/supabase-postgres-best-practices/SKILL.md +100 -0
  238. package/templates/.claude/skills/systematic-debugging/SKILL.md +288 -0
  239. package/templates/.claude/skills/systematic-debugging/condition-based-waiting-example.ts +278 -0
  240. package/templates/.claude/skills/systematic-debugging/condition-based-waiting.md +240 -0
  241. package/templates/.claude/skills/systematic-debugging/defense-in-depth.md +252 -0
  242. package/templates/.claude/skills/systematic-debugging/find-polluter.sh +147 -0
  243. package/templates/.claude/skills/systematic-debugging/root-cause-tracing.md +87 -0
  244. package/templates/.claude/skills/task-decomposition/SKILL.md +197 -0
  245. package/templates/.claude/skills/typescript-best-practices/SKILL.md +322 -0
  246. package/templates/.claude/skills/update-docs/SKILL.md +142 -0
  247. package/templates/.claude/skills/update-external/SKILL.md +169 -0
  248. package/templates/.claude/skills/vercel-deploy/SKILL.md +75 -0
  249. package/templates/.claude/skills/web-design-guidelines/SKILL.md +119 -0
  250. package/templates/.claude/skills/wiki/SKILL.md +426 -0
  251. package/templates/.claude/skills/wiki-rag/SKILL.md +154 -0
  252. package/templates/.claude/skills/worker-reviewer-pipeline/SKILL.md +165 -0
  253. package/templates/.claude/skills/writing-clearly-and-concisely/SKILL.md +66 -0
  254. package/templates/.claude/statusline.sh +380 -0
  255. package/templates/.claude/uninstall-hooks.sh +52 -0
  256. package/templates/.github/workflows/wiki-sync.yml +132 -0
  257. package/templates/AGENTS.md.en +255 -0
  258. package/templates/AGENTS.md.ko +255 -0
  259. package/templates/CLAUDE.md +263 -0
  260. package/templates/CLAUDE.md.en +256 -0
  261. package/templates/CLAUDE.md.ko +256 -0
  262. package/templates/deprecated-files.json +10 -0
  263. package/templates/guides/agents-md-quality/README.md +110 -0
  264. package/templates/guides/airflow/README.md +47 -0
  265. package/templates/guides/alembic/README.md +438 -0
  266. package/templates/guides/aws/common-patterns.md +169 -0
  267. package/templates/guides/aws/index.yaml +26 -0
  268. package/templates/guides/aws/well-architected.md +143 -0
  269. package/templates/guides/cc-token-saver/README.md +97 -0
  270. package/templates/guides/claude-code/01-overview.md +42 -0
  271. package/templates/guides/claude-code/03-tools.md +107 -0
  272. package/templates/guides/claude-code/04-agent-skills.md +90 -0
  273. package/templates/guides/claude-code/05-agent-sdk.md +129 -0
  274. package/templates/guides/claude-code/06-mcp.md +165 -0
  275. package/templates/guides/claude-code/07-prompt-engineering.md +100 -0
  276. package/templates/guides/claude-code/08-testing.md +56 -0
  277. package/templates/guides/claude-code/09-guardrails.md +78 -0
  278. package/templates/guides/claude-code/10-monitoring.md +87 -0
  279. package/templates/guides/claude-code/11-sub-agents.md +159 -0
  280. package/templates/guides/claude-code/12-workflow-patterns.md +182 -0
  281. package/templates/guides/claude-code/13-cli-flags.md +151 -0
  282. package/templates/guides/claude-code/index.yaml +61 -0
  283. package/templates/guides/dbt/README.md +32 -0
  284. package/templates/guides/django-best-practices/README.md +476 -0
  285. package/templates/guides/docker/compose-best-practices.md +284 -0
  286. package/templates/guides/docker/dockerfile-best-practices.md +262 -0
  287. package/templates/guides/docker/index.yaml +26 -0
  288. package/templates/guides/drizzle-orm/README.md +69 -0
  289. package/templates/guides/elements-of-style/elements-of-style.html +2609 -0
  290. package/templates/guides/fastapi/best-practices.md +232 -0
  291. package/templates/guides/fastapi/index.yaml +21 -0
  292. package/templates/guides/flutter/architecture.md +141 -0
  293. package/templates/guides/flutter/fundamentals.md +119 -0
  294. package/templates/guides/flutter/index.yaml +44 -0
  295. package/templates/guides/flutter/performance.md +119 -0
  296. package/templates/guides/flutter/security.md +120 -0
  297. package/templates/guides/flutter/state-management.md +144 -0
  298. package/templates/guides/flutter/testing.md +155 -0
  299. package/templates/guides/git-worktree-workflow/README.md +138 -0
  300. package/templates/guides/go-backend/index.yaml +26 -0
  301. package/templates/guides/go-backend/project-layout.md +243 -0
  302. package/templates/guides/go-backend/uber-style.md +212 -0
  303. package/templates/guides/golang/concurrency.md +282 -0
  304. package/templates/guides/golang/effective-go.md +309 -0
  305. package/templates/guides/golang/error-handling.md +250 -0
  306. package/templates/guides/golang/index.yaml +27 -0
  307. package/templates/guides/hook-data-flow/README.md +135 -0
  308. package/templates/guides/iceberg/README.md +49 -0
  309. package/templates/guides/impeccable-design/color-and-contrast.md +278 -0
  310. package/templates/guides/impeccable-design/index.yaml +12 -0
  311. package/templates/guides/impeccable-design/motion-design.md +390 -0
  312. package/templates/guides/impeccable-design/typography.md +386 -0
  313. package/templates/guides/impeccable-design/ux-writing.md +400 -0
  314. package/templates/guides/index.yaml +265 -0
  315. package/templates/guides/java21/index.yaml +29 -0
  316. package/templates/guides/java21/java-style-guide.md +248 -0
  317. package/templates/guides/java21/modern-java21.md +303 -0
  318. package/templates/guides/kafka/README.md +32 -0
  319. package/templates/guides/kotlin/coding-conventions.md +247 -0
  320. package/templates/guides/kotlin/idioms.md +234 -0
  321. package/templates/guides/kotlin/index.yaml +26 -0
  322. package/templates/guides/multi-model-routing/README.md +101 -0
  323. package/templates/guides/multi-provider-exec/README.md +83 -0
  324. package/templates/guides/postgres/README.md +58 -0
  325. package/templates/guides/python/index.yaml +26 -0
  326. package/templates/guides/python/pep8-style-guide.md +202 -0
  327. package/templates/guides/python/zen-of-python.md +79 -0
  328. package/templates/guides/redis/README.md +50 -0
  329. package/templates/guides/rust/error-handling.md +262 -0
  330. package/templates/guides/rust/index.yaml +26 -0
  331. package/templates/guides/rust/ownership.md +180 -0
  332. package/templates/guides/skill-bundle-design/README.md +106 -0
  333. package/templates/guides/slack-cli/README.md +145 -0
  334. package/templates/guides/snowflake/README.md +32 -0
  335. package/templates/guides/spark/README.md +32 -0
  336. package/templates/guides/springboot/best-practices.md +361 -0
  337. package/templates/guides/springboot/index.yaml +22 -0
  338. package/templates/guides/supabase-postgres/README.md +32 -0
  339. package/templates/guides/supabase-postgres/index.yaml +19 -0
  340. package/templates/guides/typescript/advanced-types.md +225 -0
  341. package/templates/guides/typescript/index.yaml +26 -0
  342. package/templates/guides/typescript/type-system.md +219 -0
  343. package/templates/guides/web-design/accessibility.md +66 -0
  344. package/templates/guides/web-design/index.yaml +20 -0
  345. package/templates/guides/web-design/performance.md +102 -0
  346. package/templates/guides/web-scraping/README.md +926 -0
  347. package/templates/guides/web-scraping/index.yaml +19 -0
  348. package/templates/guides/worktree-lifecycle/README.md +104 -0
  349. package/templates/index.yaml +18 -0
  350. package/templates/manifest.json +49 -0
  351. package/templates/workflows/auto-dev.yaml +46 -0
@@ -0,0 +1,493 @@
1
+ ---
2
+ name: research
3
+ description: 10-team parallel deep analysis with cross-verification for any topic, repository, or technology. Use when user invokes /research or asks for comprehensive research.
4
+ scope: core
5
+ user-invocable: true
6
+ teams-compatible: true
7
+ ---
8
+
9
+ # Research Skill
10
+
11
+ Orchestrates 10 parallel research teams for comprehensive deep analysis of any topic, GitHub repository, or technology. Produces a structured report with ADOPT/ADAPT/AVOID taxonomy.
12
+
13
+ **Teams-compatible** — works both from the main conversation (R010) and inside Agent Teams members. When used in Teams, the member directly executes the research workflow without Skill tool invocation.
14
+
15
+ ## Usage
16
+
17
+ ```
18
+ /research <topic-or-url>
19
+ /research https://github.com/user/repo
20
+ /research "distributed consensus algorithms"
21
+ /research Rust async runtime comparison
22
+ ```
23
+
24
+ ## When NOT to Use
25
+
26
+ | Scenario | Better Alternative |
27
+ |----------|--------------------|
28
+ | Simple factual question | Direct answer or single WebSearch |
29
+ | Single-file code review | `/dev-review` with specific file |
30
+ | Known solution implementation | `/structured-dev-cycle` |
31
+ | Topic with < 3 comparison dimensions | Single Explore agent |
32
+
33
+ **Pre-execution check**: If the query can be answered with < 3 sources, skip 10-team research.
34
+
35
+ ## Pre-flight Guards
36
+
37
+ Before executing the 10-team research workflow, the agent MUST run these checks. Research is a high-cost operation (~$8-15) — these guards prevent wasteful execution.
38
+
39
+ ### Guard Levels
40
+
41
+ | Level | Meaning | Action |
42
+ |-------|---------|--------|
43
+ | PASS | No issues detected | Proceed with research |
44
+ | INFO | Minor suggestion | Log note, proceed |
45
+ | WARN | Potentially wasteful | Show warning with cost estimate, ask confirmation |
46
+ | GATE | Wrong tool — use simpler alternative | Block execution, suggest alternative |
47
+
48
+ ### Guard 1: Query Complexity Assessment
49
+
50
+ **Level**: GATE or PASS
51
+
52
+ **Check**: Assess if the query requires multi-team research
53
+
54
+ ```
55
+ # Simple factual questions → GATE
56
+ indicators_simple:
57
+ - Query is < 10 words
58
+ - Query asks "what is", "how to", "when was" (factual)
59
+ - Query has a single definitive answer
60
+ - Can be answered from a single documentation source
61
+
62
+ # Complex research questions → PASS
63
+ indicators_complex:
64
+ - Query involves comparison of 3+ alternatives
65
+ - Query requires analysis across multiple dimensions
66
+ - Query mentions "compare", "evaluate", "analyze", "research"
67
+ - Query references a repository or ecosystem for deep analysis
68
+ ```
69
+
70
+ **Action (GATE)**: `[Pre-flight] GATE: Query appears to be a simple factual question. Use direct answer or single WebSearch instead. 10-team research (~$8-15) would be wasteful. Override with /research --force if intended.`
71
+
72
+ ### Guard 2: Single-File Review Detection
73
+
74
+ **Level**: GATE
75
+
76
+ **Check**: If the query references a single file for review
77
+
78
+ ```
79
+ # Detection
80
+ - Query mentions a specific file path (e.g., src/main.go)
81
+ - Query asks to "review" or "analyze" a single file
82
+ - No broader context requested
83
+ ```
84
+
85
+ **Action**: `[Pre-flight] GATE: For single-file review, use /dev-review {file} instead. Research is for multi-source analysis.`
86
+
87
+ ### Guard 3: Known Solution Detection
88
+
89
+ **Level**: INFO
90
+
91
+ **Check**: If the query is about implementing a known solution
92
+
93
+ ```
94
+ # Detection
95
+ keywords: implement, build, create, add feature, 구현, 만들어
96
+ # AND the solution approach is well-known (not requiring research)
97
+ ```
98
+
99
+ **Action**: `[Pre-flight] INFO: If the implementation approach is already known, consider /structured-dev-cycle instead of research. Proceeding with research.`
100
+
101
+ ### Guard 4: Context Budget Check
102
+
103
+ **Level**: WARN
104
+
105
+ **Check**: Estimate context impact of 10-team research
106
+
107
+ ```bash
108
+ # Check current context usage from statusline data
109
+ CONTEXT_FILE="/tmp/.codex-context-$PPID"
110
+ if [ -f "$CONTEXT_FILE" ]; then
111
+ context_pct=$(cat "$CONTEXT_FILE")
112
+ if [ "$context_pct" -gt 40 ]; then
113
+ # WARN — research will consume significant additional context
114
+ fi
115
+ fi
116
+ ```
117
+
118
+ **Action**: `[Pre-flight] WARN: Context usage at {pct}%. 10-team research typically adds 30-40% context. Consider /compact before proceeding, or results may be truncated.`
119
+
120
+ ### Display Format
121
+
122
+ ```
123
+ [Pre-flight] research
124
+ ├── Query complexity: PASS — multi-dimensional comparison detected
125
+ ├── Single-file review: PASS
126
+ ├── Known solution: PASS
127
+ └── Context budget: WARN — context at 45%, research adds ~35%
128
+ Result: PROCEED WITH CAUTION (0 GATE, 1 WARN, 0 INFO)
129
+ Cost estimate: ~$8-15 for 10-team parallel research
130
+ ```
131
+
132
+ If any GATE: block and suggest alternative. User can override with `--force`.
133
+ If any WARN: show warning with cost context, ask user to confirm.
134
+ If only PASS/INFO: proceed automatically.
135
+
136
+ ## Architecture — 4 Phases
137
+
138
+ ### Phase 1: Parallel Research (10 teams, batched per R009)
139
+
140
+ **Step 0**: Pre-flight guards pass (see Pre-flight Guards section)
141
+
142
+ Teams operate in breadth/depth pairs across 5 domains:
143
+
144
+ | Pair | Domain | Team | Role | Focus |
145
+ |------|--------|------|------|-------|
146
+ | 1 | Architecture | T1 | Breadth | Survey, catalog, enumerate structure |
147
+ | | | T2 | Depth | Deep-dive patterns, validate assumptions |
148
+ | 2 | Security | T3 | Breadth | Vulnerability scan, attack surface enumeration |
149
+ | | | T4 | Depth | Exploit validation, risk quantification |
150
+ | 3 | Integration | T5 | Breadth | Compatibility mapping, dependency analysis |
151
+ | | | T6 | Depth | Effort estimation, value assessment |
152
+ | 4 | Comparative | T7 | Breadth | Alternative survey, market landscape |
153
+ | | | T8 | Depth | Feature comparison, benchmark data |
154
+ | 5 | Innovation | T9 | Breadth | Novel pattern identification, idea extraction |
155
+ | | | T10 | Depth | Feasibility validation, adaptation design |
156
+
157
+ **Batching order** (max 4 concurrent per R009):
158
+ ```
159
+ Batch 1: T1, T2, T3, T4 (Architecture + Security)
160
+ Batch 2: T5, T6, T7, T8 (Integration + Comparative)
161
+ Batch 3: T9, T10 (Innovation)
162
+ ```
163
+
164
+ ### Phase 2: Cross-Verification Loop (min 2, max 30 rounds)
165
+
166
+ #### Codex Availability Check
167
+
168
+ Before starting verification rounds, check codex availability:
169
+
170
+ ```bash
171
+ # Run this check once before Phase 2 begins
172
+ which codex &>/dev/null && [ -n "$OPENAI_API_KEY" ]
173
+ # Exit 0 → codex available: enable dual-model verification (opus + codex)
174
+ # Exit 1 → codex unavailable: display notice and proceed with opus-only
175
+ ```
176
+
177
+ If unavailable, display: `[Phase 2] Codex unavailable — opus-only verification`
178
+
179
+ ```
180
+ Team findings ──→ opus 4.6 verification ──→ codex-exec xhigh verification (if available)
181
+ │ │
182
+ └── Contradiction detected? ── YES ──→ Round N+1
183
+ NO ──→ Consensus reached → Phase 3
184
+ ```
185
+
186
+ Each round:
187
+ 1. **opus 4.6**: Deep reasoning verification — checks logical consistency, identifies gaps, challenges assumptions
188
+ 2. **codex-exec xhigh** (when available): Independent code-level verification — validates technical claims, tests feasibility
189
+ - If unavailable: display `[Phase 2] Round {N}: Codex unavailable, proceeding with opus verification only`
190
+ 3. **Contradiction resolution**: Reconcile divergent findings between teams and verifiers
191
+ 4. **Convergence check**: All major claims verified with no outstanding contradictions → proceed
192
+
193
+ Convergence expected by round 3. Hard stop at round 30.
194
+
195
+ ### Phase 3: Synthesis
196
+
197
+ 1. Cross-team gap analysis — identify areas no team covered
198
+ 2. Unified priority ranking — weight findings by confidence and impact
199
+ 3. ADOPT / ADAPT / AVOID taxonomy generation
200
+
201
+ ### Phase 4: Output
202
+
203
+ 1. Structured markdown report (see Output Format below)
204
+ 2. **Artifact persistence**: The Phase 4 synthesis agent (opus) writes the report to:
205
+ ```
206
+ .codex/outputs/sessions/{YYYY-MM-DD}/research-{HHmmss}.md
207
+ ```
208
+ With metadata header:
209
+ ```markdown
210
+ ---
211
+ skill: research
212
+ date: {ISO-8601 with timezone}
213
+ query: "{original user query}"
214
+ ---
215
+ ```
216
+ The agent creates the directory (`mkdir -p`) before writing. This is a subagent operation (R010 compliance).
217
+ 3. GitHub issue auto-created with findings
218
+ 4. Action items with effort estimates
219
+
220
+ ## Execution Rules
221
+
222
+ | Rule | Detail |
223
+ |------|--------|
224
+ | Max parallel teams | 4 concurrent (R009) |
225
+ | Batching | T1-T4 → T5-T8 → T9-T10 |
226
+ | Agent Teams gate | If enabled, use for cross-team coordination (R018) |
227
+ | Orchestrator only | Main conversation manages all phases (R010) |
228
+ | Ecomode | Auto-activate for team result aggregation (R013) |
229
+ | Intent display | Show research plan before execution (R015) |
230
+
231
+ ## Retrieval-Reasoning Separation
232
+
233
+ Retrieval and reasoning are distinct cognitive operations that benefit from explicit role separation. Mixing them in a single agent degrades both: retrieval becomes biased by premature conclusions, and reasoning gets polluted by search noise.
234
+
235
+ ### Principle
236
+
237
+ | Role | Phase | Model | Responsibility |
238
+ |------|-------|-------|----------------|
239
+ | Retriever | Phase 1 | sonnet (fast, broad) | Gather, catalog, enumerate — no judgment |
240
+ | Reasoner | Phase 2-3 | opus (deep, precise) | Verify, synthesize, judge — no new retrieval |
241
+
242
+ ### Why Separate
243
+
244
+ - **Retrieval bias**: A reasoning agent searching for evidence tends to confirm existing hypotheses (confirmation bias)
245
+ - **Context pollution**: Raw search results mixed with analysis obscure both
246
+ - **Cost efficiency**: Retrieval needs speed and breadth (cheaper model); reasoning needs depth (capable model)
247
+ - **Debuggability**: When results are wrong, separated roles make it clear whether the problem was bad retrieval or bad reasoning
248
+
249
+ ### Application in Research Workflow
250
+
251
+ | Phase | Role | Separation Rule |
252
+ |-------|------|-----------------|
253
+ | Phase 1 (10 teams) | Retriever | Teams gather and catalog only. No ADOPT/AVOID judgments. |
254
+ | Phase 2 (Verification) | Reasoner | Verifiers challenge claims using Phase 1 data. No new searches. |
255
+ | Phase 3 (Synthesis) | Reasoner | Synthesizer produces taxonomy from verified findings only. |
256
+ | Phase 4 (Output) | Reporter | Formats and persists. No new analysis. |
257
+
258
+ ## Model Selection
259
+
260
+ | Phase | Model | Rationale |
261
+ |-------|-------|-----------|
262
+ | Phase 1 (Research teams) | sonnet | Balanced speed/quality for parallel research |
263
+ | Phase 2 (opus verification) | opus | Deep reasoning for cross-verification |
264
+ | Phase 2 (codex verification) | codex xhigh | Code-level validation of technical claims |
265
+ | Phase 3 (Synthesis) | opus | Complex multi-source reasoning and taxonomy |
266
+
267
+ ## Team Prompt Templates
268
+
269
+ ### Breadth Teams (T1, T3, T5, T7, T9)
270
+
271
+ ```
272
+ Role: {domain} breadth analyst
273
+ Scope: {topic}
274
+
275
+ Tasks:
276
+ 1. Survey the full landscape of {focus area}
277
+ 2. Catalog all {artifacts/components/alternatives} found
278
+ 3. Enumerate {structure/surface/compatibility/options/patterns}
279
+ 4. Produce structured inventory with confidence levels
280
+
281
+ Output format:
282
+ - Inventory table (item | description | confidence)
283
+ - Coverage map (what was examined vs what remains)
284
+ - Key observations (max 5)
285
+ - Questions for depth team
286
+ ```
287
+
288
+ ### Depth Teams (T2, T4, T6, T8, T10)
289
+
290
+ ```
291
+ Role: {domain} depth analyst
292
+ Scope: {topic}
293
+
294
+ Tasks:
295
+ 1. Deep-dive into {specific patterns/risks/efforts/benchmarks/feasibility}
296
+ 2. Validate assumptions from breadth analysis (if available)
297
+ 3. Quantify {quality/risk/effort/performance/value}
298
+ 4. Produce evidence-backed assessment
299
+
300
+ Output format:
301
+ - Detailed analysis (claim | evidence | confidence)
302
+ - Validated/invalidated assumptions
303
+ - Quantified metrics where possible
304
+ - Risk/opportunity assessment
305
+ ```
306
+
307
+ ## Verification Loop Detail
308
+
309
+ ```
310
+ Round N:
311
+ Input: All 10 team findings + previous round feedback (if any)
312
+ Step 1: opus reviews each team pair for:
313
+ - Internal consistency (breadth ↔ depth alignment)
314
+ - Cross-domain consistency (security ↔ architecture)
315
+ - Evidence quality (claims without backing)
316
+ Step 2: codex-exec validates technical claims (when available):
317
+ a. Invoke: /codex-exec with findings from all teams
318
+ b. Prompt: "Validate technical claims: {findings}.
319
+ Check code patterns, benchmark reproducibility,
320
+ dependency resolution."
321
+ c. Effort: --effort xhigh
322
+ d. Parse: contradictions → merge with opus findings
323
+ e. On timeout/error: log "[Phase 2] Round {N}: codex-exec error — {reason},
324
+ continuing with opus results only"
325
+ If unavailable: log "[Phase 2] Round {N}: Codex unavailable, proceeding with opus verification only"
326
+ Step 3: Compile contradiction list
327
+ - 0 contradictions → CONVERGED
328
+ - >0 contradictions → feedback to relevant teams → Round N+1
329
+ ```
330
+
331
+ ## Output Format
332
+
333
+ ```markdown
334
+ # Research Report: {topic}
335
+
336
+ ## Executive Summary
337
+ {2-3 paragraph overview of findings, key recommendation, confidence level}
338
+
339
+ ## Team Findings
340
+
341
+ ### Architecture (Teams 1-2)
342
+ **Breadth**: {inventory summary}
343
+ **Depth**: {analysis summary}
344
+ **Confidence**: {High/Medium/Low}
345
+
346
+ ### Security (Teams 3-4)
347
+ **Breadth**: {attack surface summary}
348
+ **Depth**: {risk assessment summary}
349
+ **Confidence**: {High/Medium/Low}
350
+
351
+ ### Integration (Teams 5-6)
352
+ **Breadth**: {compatibility summary}
353
+ **Depth**: {effort/value summary}
354
+ **Confidence**: {High/Medium/Low}
355
+
356
+ ### Comparative (Teams 7-8)
357
+ **Breadth**: {landscape summary}
358
+ **Depth**: {benchmark summary}
359
+ **Confidence**: {High/Medium/Low}
360
+
361
+ ### Innovation (Teams 9-10)
362
+ **Breadth**: {pattern summary}
363
+ **Depth**: {feasibility summary}
364
+ **Confidence**: {High/Medium/Low}
365
+
366
+ ## Cross-Verification Results
367
+ **Rounds completed**: {N}
368
+ **Contradictions found**: {count}
369
+ **Resolution**: {summary of how contradictions were resolved}
370
+
371
+ ## Taxonomy
372
+
373
+ ### ADOPT (Safe + High Value)
374
+ | Item | Rationale | Confidence |
375
+ |------|-----------|------------|
376
+
377
+ ### ADAPT (Valuable but needs modification)
378
+ | Item | Required Changes | Effort |
379
+ |------|-----------------|--------|
380
+
381
+ ### AVOID (Risk > Value)
382
+ | Item | Risk | Alternatives |
383
+ |------|------|-------------|
384
+
385
+ ## Action Items
386
+ | # | Item | Effort | Priority | Owner |
387
+ |---|------|--------|----------|-------|
388
+ ```
389
+
390
+ ## Post-Research Advisory
391
+
392
+ After research completion, the orchestrator SHOULD display:
393
+
394
+ ```
395
+ [Advisory] Research complete.
396
+ ├── For complex implementations (10+ files): /structured-dev-cycle
397
+ ├── For quick planning: EnterPlanMode (plan mode)
398
+ └── For simple tasks (< 3 files): proceed directly
399
+ ```
400
+
401
+ This advisory is informational only and does not block execution.
402
+
403
+ ## Fallback Behavior
404
+
405
+ | Scenario | Fallback |
406
+ |----------|----------|
407
+ | codex-exec unavailable | opus-only verification (still min 2 rounds) |
408
+ | Agent Teams unavailable | Standard Agent tool with R009 batching |
409
+ | Partial team failure | Synthesize from available results, note gaps in report |
410
+ | GitHub issue creation fails | Output report to conversation only |
411
+
412
+ ## Display Format
413
+
414
+ Before execution:
415
+ ```
416
+ [Research Plan] {topic}
417
+ ├── Phase 1: 10 teams (3 batches × 4/4/2)
418
+ ├── Phase 2: Cross-verification (2-5 rounds, opus + codex)
419
+ ├── Phase 3: Synthesis (opus)
420
+ └── Phase 4: Report + GitHub issue
421
+
422
+ Estimated: {time} | Teams: 10 | Models: sonnet → opus → codex
423
+ Stopping: max 30 verification rounds, convergence at 0 contradictions
424
+ Cost: ~$8-15 (10 teams × sonnet + opus verification)
425
+ Execute? [Y/n]
426
+ ```
427
+
428
+ Progress:
429
+ ```
430
+ [Research Progress] Phase 1 — Batch 2/3
431
+ ├── T1-T4: ✓ Complete
432
+ ├── T5-T8: → Running
433
+ └── T9-T10: ○ Pending
434
+ ```
435
+
436
+ ## Teams Mode
437
+
438
+ When running inside an Agent Teams member (not via Skill tool), the research workflow operates identically but with these adaptations:
439
+
440
+ ### How It Works
441
+
442
+ The orchestrator reads this SKILL.md and includes the research instructions directly in the Teams member's prompt. The member then:
443
+
444
+ 1. Executes Phase 1-4 autonomously using its own Agent tool access
445
+ 2. Spawns research teams as sub-agents (Teams members CAN spawn sub-agents)
446
+ 3. Delivers results via `SendMessage` to the team lead instead of returning to orchestrator
447
+
448
+ ### Prompt Embedding Pattern
449
+
450
+ ```
451
+ # When spawning a Teams member for research:
452
+ Agent(
453
+ name: "researcher-1",
454
+ team_name: "my-team",
455
+ prompt: """
456
+ You are a research agent. Follow the research skill workflow below:
457
+ {contents of research/SKILL.md}
458
+
459
+ Topic: {user's research topic}
460
+ Deliver results via SendMessage to team lead when complete.
461
+ """
462
+ )
463
+ ```
464
+
465
+ ### Differences from Orchestrator Mode
466
+
467
+ | Aspect | Orchestrator Mode | Teams Mode |
468
+ |--------|------------------|------------|
469
+ | Invocation | `Skill(research)` | Prompt embedding |
470
+ | Result delivery | Return to main conversation | `SendMessage` to team lead |
471
+ | Artifact persistence | Teams member writes artifact | Same |
472
+ | GitHub issue creation | Orchestrator handles | Teams member handles directly |
473
+ | Phase management | Orchestrator manages phases | Member manages phases autonomously |
474
+
475
+ ### Constraints
476
+
477
+ - Each Teams member running research still respects R009 (max 4 concurrent sub-agents)
478
+ - Batching order remains: T1-T4 → T5-T8 → T9-T10
479
+ - Cost is identical to orchestrator mode (~$8-15 per research invocation)
480
+ - Multiple Teams members running research simultaneously will multiply costs proportionally
481
+
482
+ ## Integration
483
+
484
+ | Rule | Integration |
485
+ |------|-------------|
486
+ | R009 | Max 4 parallel teams; batch in groups of 4/4/2 |
487
+ | R010 | Orchestrator manages all phases; teams are subagents |
488
+ | R013 | Ecomode auto-activates for 10-team aggregation |
489
+ | R015 | Display research plan with team breakdown before execution |
490
+ | R018 | Agent Teams for cross-team coordination if enabled |
491
+ | dag-orchestration | Phase sequencing follows DAG pattern |
492
+ | result-aggregation | Team results formatted per aggregation skill |
493
+ | multi-model-verification | Phase 2 uses multi-model verification pattern |
@@ -0,0 +1,165 @@
1
+ ---
2
+ name: result-aggregation
3
+ description: Aggregate parallel agent results into concise output
4
+ scope: core
5
+ user-invocable: false
6
+ ---
7
+
8
+ ## Purpose
9
+
10
+ Aggregate and format results from multiple parallel agent executions into concise, scannable output.
11
+
12
+ ## When to Use
13
+
14
+ - After parallel agent execution completes
15
+ - When ecomode is active
16
+ - For batch operation summaries
17
+ - When reporting multi-agent task results
18
+
19
+ ## Aggregation Formats
20
+
21
+ ### Standard Batch Format
22
+
23
+ ```
24
+ [Batch Complete] {completed}/{total}
25
+ ├── {agent}: {icon} {summary}
26
+ ├── {agent}: {icon} {summary}
27
+ └── {agent}: {icon} {summary}
28
+ ```
29
+
30
+ ### Detailed Batch Format
31
+
32
+ ```
33
+ [Batch Complete] {completed}/{total}
34
+
35
+ [1] {agent-name}
36
+ Status: {success|failed|partial}
37
+ Target: {file/path}
38
+ Result: {summary}
39
+
40
+ [2] {agent-name}
41
+ Status: {success|failed|partial}
42
+ Target: {file/path}
43
+ Result: {summary}
44
+ ```
45
+
46
+ ### Error Summary Format
47
+
48
+ ```
49
+ [Batch Complete] {completed}/{total} ({failures} failed)
50
+
51
+ Failures:
52
+ ├── {agent}: {error summary}
53
+ └── {agent}: {error summary}
54
+
55
+ Successes:
56
+ ├── {agent}: ✓ {summary}
57
+ └── {agent}: ✓ {summary}
58
+ ```
59
+
60
+ ## Status Icons
61
+
62
+ | Icon | Status | Use When |
63
+ |------|--------|----------|
64
+ | ✓ | Success | Task completed successfully |
65
+ | ✗ | Failed | Task failed with error |
66
+ | ⚠ | Warning | Completed with warnings |
67
+ | ⏳ | Pending | Still in progress |
68
+ | ⊘ | Skipped | Task was skipped |
69
+
70
+ ## Aggregation Rules
71
+
72
+ ### 1. Ordering
73
+
74
+ ```yaml
75
+ order:
76
+ - Failed results first (need attention)
77
+ - Warnings second
78
+ - Successes last
79
+ - Within category: alphabetical by agent
80
+ ```
81
+
82
+ ### 2. Summary Length
83
+
84
+ ```yaml
85
+ ecomode_on:
86
+ max_length: 50 characters
87
+ truncate_with: "..."
88
+
89
+ ecomode_off:
90
+ max_length: 200 characters
91
+ allow_multiline: true
92
+ ```
93
+
94
+ ### 3. Grouping
95
+
96
+ ```yaml
97
+ group_by:
98
+ - status (success/failed/warning)
99
+ - agent_type (when mixed types)
100
+ - target_path (when same agent, different targets)
101
+ ```
102
+
103
+ ## Integration
104
+
105
+ ### With Secretary
106
+
107
+ ```
108
+ Secretary receives:
109
+ - List of agent results
110
+ - Ecomode status
111
+ - User display preferences
112
+
113
+ Secretary outputs:
114
+ - Aggregated summary using this skill
115
+ - Individual details if requested
116
+ ```
117
+
118
+ ### With Ecomode
119
+
120
+ ```
121
+ When ecomode active:
122
+ - Use compact format
123
+ - One line per agent
124
+ - Icons for status
125
+ - Truncate long summaries
126
+ ```
127
+
128
+ ## Examples
129
+
130
+ ### Code Review Batch
131
+
132
+ ```
133
+ [Batch Complete] 4/4
134
+
135
+ ├── lang-golang-expert: ✓ src/main.go - 2 issues (1 naming, 1 error handling)
136
+ ├── lang-python-expert: ✓ scripts/*.py - Clean
137
+ ├── lang-rust-expert: ⚠ lib/core.rs - 1 unsafe block flagged
138
+ └── lang-typescript-expert: ✓ web/app.tsx - 3 suggestions
139
+ ```
140
+
141
+ ### Agent Creation Batch
142
+
143
+ ```
144
+ [Batch Complete] 3/4 (1 failed)
145
+
146
+ ✗ lang-kotlin-expert: Skill not found: kotlin-best-practices
147
+ ✓ lang-golang-expert: Agent created at .codex/agents/lang-golang-expert.md
148
+ ✓ lang-python-expert: Agent created at .codex/agents/lang-python-expert.md
149
+ ✓ lang-rust-expert: Agent created at .codex/agents/lang-rust-expert.md
150
+ ```
151
+
152
+ ### Audit Batch
153
+
154
+ ```
155
+ [Batch Complete] 5/5
156
+
157
+ Agents Audited:
158
+ ├── mgr-creator: ✓ All refs valid
159
+ ├── mgr-updater: ✓ All refs valid
160
+ ├── mgr-supplier: ⚠ 1 deprecated ref
161
+ ├── lang-golang-expert: ✓ All refs valid
162
+ └── lang-python-expert: ✓ All refs valid
163
+
164
+ Summary: 5 agents checked, 1 warning
165
+ ```