@cubis/foundry 0.3.76 → 0.3.78

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 (276) hide show
  1. package/dist/cli/build/commands.js +19 -0
  2. package/dist/cli/build/commands.js.map +1 -0
  3. package/dist/cli/commands/register.js +4 -0
  4. package/dist/cli/commands/register.js.map +1 -1
  5. package/dist/cli/core.js +844 -25
  6. package/dist/cli/core.js.map +1 -1
  7. package/mcp/src/tools/skillTools.test.ts +34 -1
  8. package/package.json +4 -3
  9. package/src/cli/build/commands.ts +39 -0
  10. package/src/cli/commands/register.ts +6 -0
  11. package/src/cli/core.ts +1026 -28
  12. package/workflows/skills/_schema/skill-platform-attributes.json +7 -0
  13. package/workflows/skills/deep-research/SKILL.md +81 -0
  14. package/workflows/skills/deep-research/evals/assertions.md +17 -0
  15. package/workflows/skills/deep-research/evals/evals.json +56 -0
  16. package/workflows/skills/deep-research/examples/01-latest-docs-check.md +12 -0
  17. package/workflows/skills/deep-research/examples/02-ecosystem-comparison.md +12 -0
  18. package/workflows/skills/deep-research/examples/03-research-to-implementation-handoff.md +12 -0
  19. package/workflows/skills/deep-research/references/comparison-checklist.md +57 -0
  20. package/workflows/skills/deep-research/references/research-output.md +69 -0
  21. package/workflows/skills/deep-research/references/source-ladder.md +81 -0
  22. package/workflows/skills/generated/skill-audit.json +20 -2
  23. package/workflows/skills/generated/skill-catalog.json +70 -4
  24. package/workflows/skills/skills_index.json +66 -0
  25. package/workflows/skills/spec-driven-delivery/SKILL.md +63 -0
  26. package/workflows/workflows/agent-environment-setup/generated/route-manifest.json +123 -10
  27. package/workflows/workflows/agent-environment-setup/manifest.json +48 -1
  28. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/orchestrator.md +6 -5
  29. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/project-planner.md +4 -3
  30. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/researcher.md +8 -4
  31. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/accessibility.toml +10 -3
  32. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/architecture.toml +19 -0
  33. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/backend.toml +10 -3
  34. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/create.toml +10 -3
  35. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/database.toml +10 -3
  36. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/debug.toml +10 -3
  37. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/devops.toml +10 -3
  38. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/implement-track.toml +10 -3
  39. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/migrate.toml +10 -3
  40. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/mobile.toml +10 -3
  41. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/onboard.toml +10 -3
  42. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/orchestrate.toml +10 -3
  43. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/plan.toml +10 -3
  44. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/refactor.toml +10 -3
  45. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/release.toml +10 -3
  46. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/review.toml +10 -3
  47. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/security.toml +10 -3
  48. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/spec.toml +19 -0
  49. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/test.toml +10 -3
  50. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/vercel.toml +10 -3
  51. package/workflows/workflows/agent-environment-setup/platforms/antigravity/rules/GEMINI.md +15 -8
  52. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/deep-research/SKILL.md +89 -0
  53. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/deep-research/evals/assertions.md +17 -0
  54. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/deep-research/evals/evals.json +56 -0
  55. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/deep-research/examples/01-latest-docs-check.md +12 -0
  56. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/deep-research/examples/02-ecosystem-comparison.md +12 -0
  57. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/deep-research/examples/03-research-to-implementation-handoff.md +12 -0
  58. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/deep-research/references/comparison-checklist.md +57 -0
  59. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/deep-research/references/research-output.md +69 -0
  60. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/deep-research/references/source-ladder.md +81 -0
  61. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/spec-driven-delivery/SKILL.md +65 -0
  62. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/architecture.md +82 -0
  63. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/backend.md +3 -0
  64. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/create.md +4 -1
  65. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/database.md +3 -0
  66. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/implement-track.md +7 -1
  67. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/migrate.md +4 -1
  68. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/mobile.md +3 -0
  69. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/onboard.md +4 -3
  70. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/orchestrate.md +8 -3
  71. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/plan.md +16 -6
  72. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/refactor.md +3 -0
  73. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/release.md +3 -0
  74. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/spec.md +81 -0
  75. package/workflows/workflows/agent-environment-setup/platforms/claude/agents/orchestrator.md +6 -5
  76. package/workflows/workflows/agent-environment-setup/platforms/claude/agents/project-planner.md +4 -3
  77. package/workflows/workflows/agent-environment-setup/platforms/claude/agents/researcher.md +8 -4
  78. package/workflows/workflows/agent-environment-setup/platforms/claude/hooks/README.md +15 -0
  79. package/workflows/workflows/agent-environment-setup/platforms/claude/hooks/route-research-guard.mjs +39 -0
  80. package/workflows/workflows/agent-environment-setup/platforms/claude/hooks/settings.snippet.json +15 -0
  81. package/workflows/workflows/agent-environment-setup/platforms/claude/rules/CLAUDE.md +17 -8
  82. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/deep-research/SKILL.md +95 -0
  83. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/deep-research/evals/assertions.md +17 -0
  84. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/deep-research/evals/evals.json +56 -0
  85. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/deep-research/examples/01-latest-docs-check.md +12 -0
  86. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/deep-research/examples/02-ecosystem-comparison.md +12 -0
  87. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/deep-research/examples/03-research-to-implementation-handoff.md +12 -0
  88. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/deep-research/references/comparison-checklist.md +57 -0
  89. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/deep-research/references/research-output.md +69 -0
  90. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/deep-research/references/source-ladder.md +81 -0
  91. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/skills_index.json +66 -0
  92. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/spec-driven-delivery/SKILL.md +66 -0
  93. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/architecture.md +80 -0
  94. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/backend.md +3 -0
  95. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/create.md +4 -1
  96. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/database.md +3 -0
  97. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/implement-track.md +7 -1
  98. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/migrate.md +4 -1
  99. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/mobile.md +3 -0
  100. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/onboard.md +4 -3
  101. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/orchestrate.md +8 -3
  102. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/plan.md +16 -6
  103. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/refactor.md +3 -0
  104. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/release.md +3 -0
  105. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/spec.md +79 -0
  106. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/backend-specialist.md +1 -1
  107. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/code-archaeologist.md +1 -1
  108. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/database-architect.md +1 -1
  109. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/debugger.md +1 -1
  110. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/devops-engineer.md +1 -1
  111. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/documentation-writer.md +1 -1
  112. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/frontend-specialist.md +1 -1
  113. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/game-developer.md +1 -1
  114. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/mobile-developer.md +1 -1
  115. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/orchestrator.md +7 -6
  116. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/penetration-tester.md +1 -1
  117. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/performance-optimizer.md +1 -1
  118. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/product-manager.md +1 -1
  119. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/project-planner.md +5 -4
  120. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/qa-automation-engineer.md +1 -1
  121. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/researcher.md +9 -5
  122. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/security-auditor.md +1 -1
  123. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/seo-specialist.md +1 -1
  124. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/sre-engineer.md +1 -1
  125. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/test-engineer.md +1 -1
  126. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/validator.md +1 -1
  127. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/vercel-expert.md +1 -1
  128. package/workflows/workflows/agent-environment-setup/platforms/codex/rules/AGENTS.md +15 -8
  129. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/deep-research/SKILL.md +89 -0
  130. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/deep-research/evals/assertions.md +17 -0
  131. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/deep-research/evals/evals.json +56 -0
  132. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/deep-research/examples/01-latest-docs-check.md +12 -0
  133. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/deep-research/examples/02-ecosystem-comparison.md +12 -0
  134. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/deep-research/examples/03-research-to-implementation-handoff.md +12 -0
  135. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/deep-research/references/comparison-checklist.md +57 -0
  136. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/deep-research/references/research-output.md +69 -0
  137. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/deep-research/references/source-ladder.md +81 -0
  138. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/spec-driven-delivery/SKILL.md +65 -0
  139. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/accessibility.md +1 -1
  140. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/architecture.md +82 -0
  141. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/backend.md +4 -1
  142. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/create.md +5 -2
  143. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/database.md +4 -1
  144. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/debug.md +1 -1
  145. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/devops.md +1 -1
  146. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/implement-track.md +8 -2
  147. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/migrate.md +5 -2
  148. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/mobile.md +4 -1
  149. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/onboard.md +5 -4
  150. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/orchestrate.md +9 -4
  151. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/plan.md +17 -7
  152. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/refactor.md +4 -1
  153. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/release.md +4 -1
  154. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/review.md +1 -1
  155. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/security.md +1 -1
  156. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/spec.md +81 -0
  157. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/test.md +1 -1
  158. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/vercel.md +1 -1
  159. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/orchestrator.md +6 -5
  160. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/project-planner.md +4 -3
  161. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/researcher.md +8 -4
  162. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-accessibility.prompt.md +9 -3
  163. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-architecture.prompt.md +18 -0
  164. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-backend.prompt.md +9 -3
  165. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-create.prompt.md +9 -3
  166. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-database.prompt.md +9 -3
  167. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-debug.prompt.md +9 -3
  168. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-devops.prompt.md +9 -3
  169. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-implement-track.prompt.md +9 -3
  170. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-migrate.prompt.md +9 -3
  171. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-mobile.prompt.md +9 -3
  172. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-onboard.prompt.md +9 -3
  173. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-orchestrate.prompt.md +9 -3
  174. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-plan.prompt.md +9 -3
  175. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-refactor.prompt.md +9 -3
  176. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-release.prompt.md +9 -3
  177. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-review.prompt.md +9 -3
  178. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-security.prompt.md +9 -3
  179. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-spec.prompt.md +18 -0
  180. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-test.prompt.md +9 -3
  181. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-vercel.prompt.md +9 -3
  182. package/workflows/workflows/agent-environment-setup/platforms/copilot/rules/copilot-instructions.md +15 -8
  183. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/deep-research/SKILL.md +94 -0
  184. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/deep-research/evals/assertions.md +17 -0
  185. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/deep-research/evals/evals.json +56 -0
  186. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/deep-research/examples/01-latest-docs-check.md +12 -0
  187. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/deep-research/examples/02-ecosystem-comparison.md +12 -0
  188. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/deep-research/examples/03-research-to-implementation-handoff.md +12 -0
  189. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/deep-research/references/comparison-checklist.md +57 -0
  190. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/deep-research/references/research-output.md +69 -0
  191. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/deep-research/references/source-ladder.md +81 -0
  192. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/skills_index.json +66 -0
  193. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/spec-driven-delivery/SKILL.md +70 -0
  194. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/architecture.md +80 -0
  195. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/backend.md +3 -0
  196. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/create.md +4 -1
  197. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/database.md +3 -0
  198. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/implement-track.md +7 -1
  199. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/migrate.md +4 -1
  200. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/mobile.md +3 -0
  201. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/onboard.md +4 -3
  202. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/orchestrate.md +8 -3
  203. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/plan.md +16 -6
  204. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/refactor.md +3 -0
  205. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/release.md +3 -0
  206. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/spec.md +79 -0
  207. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/accessibility.toml +10 -3
  208. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/architecture.toml +19 -0
  209. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/backend.toml +10 -3
  210. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/create.toml +10 -3
  211. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/database.toml +10 -3
  212. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/debug.toml +10 -3
  213. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/devops.toml +10 -3
  214. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/implement-track.toml +10 -3
  215. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/migrate.toml +10 -3
  216. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/mobile.toml +10 -3
  217. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/onboard.toml +10 -3
  218. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/orchestrate.toml +10 -3
  219. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/plan.toml +10 -3
  220. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/refactor.toml +10 -3
  221. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/release.toml +10 -3
  222. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/review.toml +10 -3
  223. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/security.toml +10 -3
  224. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/spec.toml +19 -0
  225. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/test.toml +10 -3
  226. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/vercel.toml +10 -3
  227. package/workflows/workflows/agent-environment-setup/platforms/gemini/rules/GEMINI.md +15 -8
  228. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/deep-research/SKILL.md +89 -0
  229. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/deep-research/evals/assertions.md +17 -0
  230. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/deep-research/evals/evals.json +56 -0
  231. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/deep-research/examples/01-latest-docs-check.md +12 -0
  232. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/deep-research/examples/02-ecosystem-comparison.md +12 -0
  233. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/deep-research/examples/03-research-to-implementation-handoff.md +12 -0
  234. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/deep-research/references/comparison-checklist.md +57 -0
  235. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/deep-research/references/research-output.md +69 -0
  236. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/deep-research/references/source-ladder.md +81 -0
  237. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/spec-driven-delivery/SKILL.md +65 -0
  238. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/architecture.md +82 -0
  239. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/backend.md +3 -0
  240. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/create.md +4 -1
  241. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/database.md +3 -0
  242. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/implement-track.md +7 -1
  243. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/migrate.md +4 -1
  244. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/mobile.md +3 -0
  245. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/onboard.md +4 -3
  246. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/orchestrate.md +8 -3
  247. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/plan.md +16 -6
  248. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/refactor.md +3 -0
  249. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/release.md +3 -0
  250. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/spec.md +81 -0
  251. package/workflows/workflows/agent-environment-setup/shared/agents/backend-specialist.md +5 -5
  252. package/workflows/workflows/agent-environment-setup/shared/agents/database-architect.md +3 -3
  253. package/workflows/workflows/agent-environment-setup/shared/agents/orchestrator.md +10 -9
  254. package/workflows/workflows/agent-environment-setup/shared/agents/penetration-tester.md +3 -3
  255. package/workflows/workflows/agent-environment-setup/shared/agents/product-manager.md +6 -6
  256. package/workflows/workflows/agent-environment-setup/shared/agents/project-planner.md +10 -9
  257. package/workflows/workflows/agent-environment-setup/shared/agents/researcher.md +13 -9
  258. package/workflows/workflows/agent-environment-setup/shared/agents/security-auditor.md +2 -2
  259. package/workflows/workflows/agent-environment-setup/shared/rules/STEERING.md +57 -13
  260. package/workflows/workflows/agent-environment-setup/shared/rules/overrides/claude.md +2 -0
  261. package/workflows/workflows/agent-environment-setup/shared/rules/overrides/codex.md +3 -3
  262. package/workflows/workflows/agent-environment-setup/shared/rules/overrides/gemini.md +20 -0
  263. package/workflows/workflows/agent-environment-setup/shared/workflows/architecture.md +80 -0
  264. package/workflows/workflows/agent-environment-setup/shared/workflows/backend.md +8 -5
  265. package/workflows/workflows/agent-environment-setup/shared/workflows/create.md +5 -2
  266. package/workflows/workflows/agent-environment-setup/shared/workflows/database.md +6 -3
  267. package/workflows/workflows/agent-environment-setup/shared/workflows/implement-track.md +12 -6
  268. package/workflows/workflows/agent-environment-setup/shared/workflows/migrate.md +7 -4
  269. package/workflows/workflows/agent-environment-setup/shared/workflows/mobile.md +3 -0
  270. package/workflows/workflows/agent-environment-setup/shared/workflows/onboard.md +6 -5
  271. package/workflows/workflows/agent-environment-setup/shared/workflows/orchestrate.md +10 -5
  272. package/workflows/workflows/agent-environment-setup/shared/workflows/plan.md +18 -8
  273. package/workflows/workflows/agent-environment-setup/shared/workflows/refactor.md +5 -2
  274. package/workflows/workflows/agent-environment-setup/shared/workflows/release.md +3 -0
  275. package/workflows/workflows/agent-environment-setup/shared/workflows/security.md +2 -2
  276. package/workflows/workflows/agent-environment-setup/shared/workflows/spec.md +79 -0
@@ -22,6 +22,7 @@ Use this for net-new implementation after design is stable.
22
22
 
23
23
  - This workflow file, active platform rules, and selected agents or skills guide execution.
24
24
  - Attach logs, screenshots, failing output, and relevant paths when context is incomplete.
25
+ - Read `ENGINEERING_RULES.md` first and `TECH.md` next for non-trivial work so new code follows the declared architecture and design-system rules.
25
26
 
26
27
  ## Skill Routing
27
28
 
@@ -35,7 +36,8 @@ Use this for net-new implementation after design is stable.
35
36
  1. Confirm target files and contracts.
36
37
  2. Implement smallest coherent increment.
37
38
  3. Validate behavior with focused tests.
38
- 4. Capture remaining gaps and follow-ups.
39
+ 4. Capture `doc_impact` when the feature changes architecture, boundaries, scale, or design-system rules.
40
+ 5. Capture remaining gaps and follow-ups.
39
41
 
40
42
  ## Verification
41
43
 
@@ -55,6 +57,7 @@ CREATE_WORKFLOW_RESULT:
55
57
  summary: <string>
56
58
  changed_artifacts: [<path-or-artifact>]
57
59
  behavioral_impact: [<string>]
60
+ doc_impact: none | tech | rules | both
58
61
  verification:
59
62
  checks_run: [<command-or-test>]
60
63
  evidence: [<string>]
@@ -62,4 +65,4 @@ CREATE_WORKFLOW_RESULT:
62
65
  follow_up_items: [<string>] | []
63
66
  ```
64
67
 
65
- > **Codex note:** This workflow runs inside a network-restricted sandbox. Specialists are reasoning postures defined in AGENTS.md, not spawned processes.
68
+ > **Codex note:** Prefer native Codex delegation when the host exposes it. Otherwise follow AGENTS.md specialist postures inline while keeping the same routing and verification contract.
@@ -20,6 +20,7 @@ Use this for schema design, query optimization, migration planning, or database
20
20
 
21
21
  - This workflow file, active platform rules, and selected agents or skills guide execution.
22
22
  - Attach existing schema, migration history, query patterns, and performance requirements.
23
+ - Read `ENGINEERING_RULES.md` and `TECH.md` before changing data ownership, persistence boundaries, or shared schema conventions.
23
24
 
24
25
  ## Skill Routing
25
26
 
@@ -34,6 +35,7 @@ Use this for schema design, query optimization, migration planning, or database
34
35
  3. Plan migration with rollback strategy.
35
36
  4. Optimize queries and indexes for known access patterns.
36
37
  5. Validate data integrity constraints.
38
+ 6. Set `doc_impact` if the change alters data boundaries, core entities, or persistence patterns that future work should follow.
37
39
 
38
40
  ## Verification
39
41
 
@@ -57,8 +59,9 @@ DATABASE_WORKFLOW_RESULT:
57
59
  query_optimization:
58
60
  queries_reviewed: <number>
59
61
  indexes_recommended: [<string>] | []
62
+ doc_impact: none | tech | rules | both
60
63
  integrity_checks: [<string>]
61
64
  follow_up_items: [<string>] | []
62
65
  ```
63
66
 
64
- > **Codex note:** This workflow runs inside a network-restricted sandbox. Specialists are reasoning postures defined in AGENTS.md, not spawned processes.
67
+ > **Codex note:** Prefer native Codex delegation when the host exposes it. Otherwise follow AGENTS.md specialist postures inline while keeping the same routing and verification contract.
@@ -60,4 +60,4 @@ DEBUG_WORKFLOW_RESULT:
60
60
  follow_up_items: [<string>] | []
61
61
  ```
62
62
 
63
- > **Codex note:** This workflow runs inside a network-restricted sandbox. Specialists are reasoning postures defined in AGENTS.md, not spawned processes.
63
+ > **Codex note:** Prefer native Codex delegation when the host exposes it. Otherwise follow AGENTS.md specialist postures inline while keeping the same routing and verification contract.
@@ -75,4 +75,4 @@ DEVOPS_WORKFLOW_RESULT:
75
75
  follow_up_items: [<string>] | []
76
76
  ```
77
77
 
78
- > **Codex note:** This workflow runs inside a network-restricted sandbox. Specialists are reasoning postures defined in AGENTS.md, not spawned processes.
78
+ > **Codex note:** Prefer native Codex delegation when the host exposes it. Otherwise follow AGENTS.md specialist postures inline while keeping the same routing and verification contract.
@@ -20,6 +20,8 @@ Use this for large-scale implementation work that spans multiple sessions or mil
20
20
 
21
21
  - This workflow file, active platform rules, and selected agents or skills guide execution.
22
22
  - Attach the implementation plan, milestone definitions, and acceptance criteria per milestone.
23
+ - Reuse `docs/specs/<spec-id>/` when present instead of maintaining a separate progress source of truth.
24
+ - Read `ENGINEERING_RULES.md` first and `TECH.md` next before starting milestone execution.
23
25
 
24
26
  ## Skill Routing
25
27
 
@@ -33,7 +35,7 @@ Use this for large-scale implementation work that spans multiple sessions or mil
33
35
  2. Execute current milestone with focused implementation.
34
36
  3. Run quality gate validation at milestone completion.
35
37
  4. Update progress tracking and capture status.
36
- 5. Adjust remaining plan based on learnings.
38
+ 5. Adjust remaining plan, spec traceability, and doc refresh needs based on learnings.
37
39
  6. Proceed to next milestone or report completion.
38
40
 
39
41
  ## Verification
@@ -59,7 +61,11 @@ IMPLEMENT_TRACK_WORKFLOW_RESULT:
59
61
  validation_evidence: <string>
60
62
  overall_progress: <percentage>
61
63
  scope_changes: [<string>] | []
64
+ spec_id: <string> | null
65
+ spec_root: docs/specs/<spec-id> | null
66
+ traceability_status: complete | partial | blocked
67
+ doc_impact: none | tech | rules | both
62
68
  follow_up_items: [<string>] | []
63
69
  ```
64
70
 
65
- > **Codex note:** This workflow runs inside a network-restricted sandbox. Specialists are reasoning postures defined in AGENTS.md, not spawned processes.
71
+ > **Codex note:** Prefer native Codex delegation when the host exposes it. Otherwise follow AGENTS.md specialist postures inline while keeping the same routing and verification contract.
@@ -28,6 +28,7 @@ Use this for technology migrations, framework upgrades, dependency updates, or m
28
28
 
29
29
  - This workflow file, active platform rules, and selected agents or skills guide execution.
30
30
  - Attach the migration target, current versions, breaking change lists, and impact assessment.
31
+ - Read `ENGINEERING_RULES.md` and `TECH.md` first because migrations often change accepted patterns and current-state architecture at the same time.
31
32
 
32
33
  ## Skill Routing
33
34
 
@@ -42,7 +43,8 @@ Use this for technology migrations, framework upgrades, dependency updates, or m
42
43
  3. Plan incremental migration steps with rollback points.
43
44
  4. Execute migration one step at a time with verification.
44
45
  5. Update tests and documentation for new patterns.
45
- 6. Verify full system behavior after migration complete.
46
+ 6. Set `doc_impact` when the migration changes architecture, deployment shape, boundaries, or design-system rules.
47
+ 7. Verify full system behavior after migration complete.
46
48
 
47
49
  ## Verification
48
50
 
@@ -69,7 +71,8 @@ MIGRATE_WORKFLOW_RESULT:
69
71
  verification:
70
72
  tests_passed: true | false
71
73
  performance_impact: <string>
74
+ doc_impact: none | tech | rules | both
72
75
  follow_up_items: [<string>] | []
73
76
  ```
74
77
 
75
- > **Codex note:** This workflow runs inside a network-restricted sandbox. Specialists are reasoning postures defined in AGENTS.md, not spawned processes.
78
+ > **Codex note:** Prefer native Codex delegation when the host exposes it. Otherwise follow AGENTS.md specialist postures inline while keeping the same routing and verification contract.
@@ -20,6 +20,7 @@ Use this for mobile app development, Flutter architecture, Stitch-driven mobile
20
20
 
21
21
  - This workflow file, active platform rules, and selected agents or skills guide execution.
22
22
  - Attach platform targets (iOS, Android, both), Flutter version, and relevant screen/feature context.
23
+ - Read `ENGINEERING_RULES.md` and `TECH.md` before implementing non-trivial mobile work so screens and features follow the declared architecture and design-system rules.
23
24
 
24
25
  ## Skill Routing
25
26
 
@@ -35,6 +36,7 @@ Use this for mobile app development, Flutter architecture, Stitch-driven mobile
35
36
  3. Implement with consideration for iOS/Android differences.
36
37
  4. Write widget and integration tests.
37
38
  5. Review for platform-specific edge cases and UX conventions.
39
+ 6. Set `doc_impact` if the feature changes navigation, shared UI rules, or mobile architecture conventions.
38
40
 
39
41
  ## Verification
40
42
 
@@ -62,7 +64,8 @@ MOBILE_WORKFLOW_RESULT:
62
64
  platform_notes:
63
65
  ios: [<string>] | []
64
66
  android: [<string>] | []
67
+ doc_impact: none | tech | rules | both
65
68
  follow_up_items: [<string>] | []
66
69
  ```
67
70
 
68
- > **Codex note:** This workflow runs inside a network-restricted sandbox. Specialists are reasoning postures defined in AGENTS.md, not spawned processes.
71
+ > **Codex note:** Prefer native Codex delegation when the host exposes it. Otherwise follow AGENTS.md specialist postures inline while keeping the same routing and verification contract.
@@ -27,12 +27,13 @@ Use this when joining a new project, exploring an unfamiliar codebase, or prepar
27
27
 
28
28
  - This workflow file, active platform rules, and selected agents or skills guide execution.
29
29
  - Provide the repo URL, focus areas, and any specific questions to answer during onboarding.
30
+ - Read `ENGINEERING_RULES.md` first and `TECH.md` next when present so onboarding distinguishes the intended contract from current implementation reality.
30
31
 
31
32
  ## Skill Routing
32
33
 
33
- - Primary skills: `architecture-doc`, `system-design`
34
+ - Primary skills: `deep-research`, `system-design`
34
35
  - Supporting skills (optional): `system-design`, `database-design`, `typescript-best-practices`, `javascript-best-practices`, `python-best-practices`
35
- - Start with `architecture-doc` for systematic exploration and `system-design` for architecture mapping. Add `system-design` for undocumented systems.
36
+ - Start with `deep-research` for systematic exploration and `system-design` for architecture mapping. Add `system-design` for undocumented systems. Prefer repo evidence first; use external sources only when setup or dependency behavior cannot be confirmed locally.
36
37
 
37
38
  ## Workflow steps
38
39
 
@@ -55,7 +56,7 @@ Use this when joining a new project, exploring an unfamiliar codebase, or prepar
55
56
  ONBOARD_WORKFLOW_RESULT:
56
57
  primary_agent: researcher
57
58
  supporting_agents: [code-archaeologist?, backend-specialist?, frontend-specialist?]
58
- primary_skills: [architecture-doc, system-design]
59
+ primary_skills: [deep-research, system-design]
59
60
  supporting_skills: [system-design?, database-design?]
60
61
  project_overview:
61
62
  purpose: <string>
@@ -68,4 +69,4 @@ ONBOARD_WORKFLOW_RESULT:
68
69
  knowledge_gaps: [<string>] | []
69
70
  ```
70
71
 
71
- > **Codex note:** This workflow runs inside a network-restricted sandbox. Specialists are reasoning postures defined in AGENTS.md, not spawned processes.
72
+ > **Codex note:** Prefer native Codex delegation when the host exposes it. Otherwise follow AGENTS.md specialist postures inline while keeping the same routing and verification contract.
@@ -20,12 +20,13 @@ Use this when a task spans multiple domains (backend + frontend, security + infr
20
20
 
21
21
  - This workflow file, active platform rules, and selected agents or skills guide execution.
22
22
  - Attach the full task description, constraints, acceptance criteria, and relevant context when starting.
23
+ - Read `ENGINEERING_RULES.md` and `TECH.md` before decomposing non-trivial work, then reuse any existing `docs/specs/<spec-id>/` pack as the handoff source of truth.
23
24
 
24
25
  ## Skill Routing
25
26
 
26
27
  - Primary skills: `system-design`, `api-design`
27
- - Supporting skills (optional): `database-design`, `architecture-doc`, `mcp-server-builder`, `tech-doc`, `prompt-engineering`, `skill-creator`
28
- - Start with `system-design` for system design coordination and `api-design` for integration contracts. Add supporting skills based on the coordination challenge.
28
+ - Supporting skills (optional): `database-design`, `deep-research`, `mcp-server-builder`, `tech-doc`, `prompt-engineering`, `skill-creator`
29
+ - Start with `system-design` for system design coordination and `api-design` for integration contracts. Add `deep-research` before implementation when the coordination challenge depends on fresh external facts or public comparison.
29
30
 
30
31
  ## Workflow steps
31
32
 
@@ -34,7 +35,8 @@ Use this when a task spans multiple domains (backend + frontend, security + infr
34
35
  3. Delegate each task to the best specialist agent with full context.
35
36
  4. Validate each deliverable against acceptance criteria via independent validation.
36
37
  5. Iterate on failed validations with specific feedback (max 3 iterations).
37
- 6. Integrate outputs, verify cross-task consistency, and report results.
38
+ 6. Surface `doc_impact` when the coordinated work changes architecture, boundaries, scale, or the design system.
39
+ 7. Integrate outputs, verify cross-task consistency, and report results.
38
40
 
39
41
  ## Verification
40
42
 
@@ -51,6 +53,8 @@ ORCHESTRATE_WORKFLOW_RESULT:
51
53
  supporting_agents: [<specialist-agents-used>]
52
54
  primary_skills: [system-design, api-design]
53
55
  supporting_skills: [<supporting-skills-used>]
56
+ spec_id: <string> | null
57
+ spec_root: docs/specs/<spec-id> | null
54
58
  task_count: <number>
55
59
  completed: <number>
56
60
  failed: <number>
@@ -61,8 +65,9 @@ ORCHESTRATE_WORKFLOW_RESULT:
61
65
  iterations: <number>
62
66
  validation_evidence: <string>
63
67
  integration_status: clean | conflicts_resolved | issues_remaining
68
+ doc_impact: none | tech | rules | both
64
69
  remaining_risks: [<string>] | []
65
70
  follow_up_actions: [<string>] | []
66
71
  ```
67
72
 
68
- > **Codex note:** This workflow runs inside a network-restricted sandbox. Specialists are reasoning postures defined in AGENTS.md, not spawned processes.
73
+ > **Codex note:** Prefer native Codex delegation when the host exposes it. Otherwise follow AGENTS.md specialist postures inline while keeping the same routing and verification contract.
@@ -4,7 +4,6 @@ description: "Build a decision-complete implementation plan with interfaces, fai
4
4
  triggers:
5
5
  [
6
6
  "plan",
7
- "spec",
8
7
  "design",
9
8
  "roadmap",
10
9
  "acceptance",
@@ -32,21 +31,24 @@ Use this when starting a new feature, project, or significant change that needs
32
31
 
33
32
  - This workflow file, active platform rules, and selected agents or skills guide execution.
34
33
  - Attach the feature request, problem statement, constraints, and any existing design documents.
34
+ - Read `ENGINEERING_RULES.md` first and `TECH.md` next when they exist before finalizing a non-trivial plan.
35
+ - Reuse an existing `docs/specs/<spec-id>/` pack when the change already has one instead of creating a parallel planning track.
35
36
 
36
37
  ## Skill Routing
37
38
 
38
39
  - Primary skills: `system-design`, `api-design`
39
- - Supporting skills (optional): `database-design`, `architecture-doc`, `mcp-server-builder`, `tech-doc`, `prompt-engineering`, `skill-creator`
40
- - Start with `system-design` for system design and `api-design` for API contracts. Add `database-design` when data modeling is central, `architecture-doc` when external knowledge is needed.
40
+ - Supporting skills (optional): `database-design`, `deep-research`, `mcp-server-builder`, `tech-doc`, `prompt-engineering`, `skill-creator`
41
+ - Start with `system-design` for system design and `api-design` for API contracts. Add `database-design` when data modeling is central, `deep-research` when fresh external knowledge or public comparison is needed.
41
42
 
42
43
  ## Workflow steps
43
44
 
44
45
  1. Clarify scope, success criteria, and constraints.
45
- 2. Research existing patterns and dependencies.
46
+ 2. Research existing patterns and dependencies, starting in-repo and escalating to `deep-research` only when outside evidence is required.
46
47
  3. Decompose into tasks with ownership and dependencies.
47
48
  4. Define interfaces, contracts, and failure modes.
48
49
  5. Produce acceptance criteria for each milestone.
49
- 6. Identify risks, unknowns, and mitigation strategies.
50
+ 6. Record `architecture_impact`, `doc_impact`, and `traceability_status` when the work is non-trivial.
51
+ 7. Identify risks, unknowns, and mitigation strategies.
50
52
 
51
53
  ## Verification
52
54
 
@@ -62,7 +64,9 @@ PLAN_WORKFLOW_RESULT:
62
64
  primary_agent: project-planner
63
65
  supporting_agents: [orchestrator?, backend-specialist?, frontend-specialist?, database-architect?]
64
66
  primary_skills: [system-design, api-design]
65
- supporting_skills: [database-design?, architecture-doc?, mcp-server-builder?]
67
+ supporting_skills: [database-design?, deep-research?, mcp-server-builder?]
68
+ spec_id: <string> | null
69
+ spec_root: docs/specs/<spec-id> | null
66
70
  plan:
67
71
  scope_summary: <string>
68
72
  tasks:
@@ -74,7 +78,13 @@ PLAN_WORKFLOW_RESULT:
74
78
  interfaces: [<string>]
75
79
  risks: [<string>]
76
80
  milestones: [<string>]
81
+ architecture_impact:
82
+ summary: <string>
83
+ affects_structure: true | false
84
+ affects_design_system: true | false
85
+ doc_impact: none | tech | rules | both
86
+ traceability_status: complete | partial | blocked
77
87
  follow_up_items: [<string>] | []
78
88
  ```
79
89
 
80
- > **Codex note:** This workflow runs inside a network-restricted sandbox. Specialists are reasoning postures defined in AGENTS.md, not spawned processes.
90
+ > **Codex note:** Prefer native Codex delegation when the host exposes it. Otherwise follow AGENTS.md specialist postures inline while keeping the same routing and verification contract.
@@ -20,6 +20,7 @@ Use this when improving code structure, reducing tech debt, or modularizing with
20
20
 
21
21
  - This workflow file, active platform rules, and selected agents or skills guide execution.
22
22
  - Attach the target code, pain points, and any constraints on what can change.
23
+ - Read `ENGINEERING_RULES.md` and `TECH.md` first so behavior-preserving structure changes do not drift from the accepted architecture contract.
23
24
 
24
25
  ## Skill Routing
25
26
 
@@ -34,6 +35,7 @@ Use this when improving code structure, reducing tech debt, or modularizing with
34
35
  3. Apply one refactoring at a time with behavior preservation.
35
36
  4. Verify behavior unchanged after each step.
36
37
  5. Document the improved structure and any conventions established.
38
+ 6. Set `doc_impact` when the refactor changes project structure, module boundaries, or design-system conventions.
37
39
 
38
40
  ## Verification
39
41
 
@@ -57,8 +59,9 @@ REFACTOR_WORKFLOW_RESULT:
57
59
  quality_improvement:
58
60
  complexity_before: <string>
59
61
  complexity_after: <string>
62
+ doc_impact: none | tech | rules | both
60
63
  tests_added: [<test-file-path>] | []
61
64
  follow_up_items: [<string>] | []
62
65
  ```
63
66
 
64
- > **Codex note:** This workflow runs inside a network-restricted sandbox. Specialists are reasoning postures defined in AGENTS.md, not spawned processes.
67
+ > **Codex note:** Prefer native Codex delegation when the host exposes it. Otherwise follow AGENTS.md specialist postures inline while keeping the same routing and verification contract.
@@ -20,6 +20,7 @@ Use this when preparing a release, deploying to production, or managing a rollou
20
20
 
21
21
  - This workflow file, active platform rules, and selected agents or skills guide execution.
22
22
  - Attach the release scope, version number, changelog draft, and deployment target.
23
+ - Read `ENGINEERING_RULES.md` and `TECH.md` before release if the shipped changes touched architecture, scaling assumptions, or design-system rules.
23
24
 
24
25
  ## Skill Routing
25
26
 
@@ -35,6 +36,7 @@ Use this when preparing a release, deploying to production, or managing a rollou
35
36
  4. Execute staged rollout with health checks at each stage.
36
37
  5. Verify production health post-deployment.
37
38
  6. Document rollback procedure and post-release status.
39
+ 7. Set `doc_impact` if the release includes architecture-affecting work that should refresh the managed docs.
38
40
 
39
41
  ## Verification
40
42
 
@@ -61,7 +63,8 @@ RELEASE_WORKFLOW_RESULT:
61
63
  stages_completed: [<string>]
62
64
  health_checks: [<string>]
63
65
  rollback_plan: <string>
66
+ doc_impact: none | tech | rules | both
64
67
  follow_up_items: [<string>] | []
65
68
  ```
66
69
 
67
- > **Codex note:** This workflow runs inside a network-restricted sandbox. Specialists are reasoning postures defined in AGENTS.md, not spawned processes.
70
+ > **Codex note:** Prefer native Codex delegation when the host exposes it. Otherwise follow AGENTS.md specialist postures inline while keeping the same routing and verification contract.
@@ -63,4 +63,4 @@ REVIEW_WORKFLOW_RESULT:
63
63
  follow_up_items: [<string>] | []
64
64
  ```
65
65
 
66
- > **Codex note:** This workflow runs inside a network-restricted sandbox. Specialists are reasoning postures defined in AGENTS.md, not spawned processes.
66
+ > **Codex note:** Prefer native Codex delegation when the host exposes it. Otherwise follow AGENTS.md specialist postures inline while keeping the same routing and verification contract.
@@ -66,4 +66,4 @@ SECURITY_WORKFLOW_RESULT:
66
66
  follow_up_items: [<string>] | []
67
67
  ```
68
68
 
69
- > **Codex note:** This workflow runs inside a network-restricted sandbox. Specialists are reasoning postures defined in AGENTS.md, not spawned processes.
69
+ > **Codex note:** Prefer native Codex delegation when the host exposes it. Otherwise follow AGENTS.md specialist postures inline while keeping the same routing and verification contract.
@@ -0,0 +1,81 @@
1
+ ---
2
+ command: "/spec"
3
+ description: "Create or refresh a Git-tracked spec pack for non-trivial work, including acceptance criteria, traceability, architecture impact, and next-route handoff."
4
+ triggers:
5
+ [
6
+ "spec",
7
+ "sdd",
8
+ "source of truth",
9
+ "traceability",
10
+ "acceptance criteria",
11
+ "openspec",
12
+ "requirements",
13
+ "architecture impact",
14
+ ]
15
+ ---
16
+
17
+ # Spec Workflow
18
+
19
+ ## When to use
20
+
21
+ Use this for non-trivial work that needs durable planning in Git before implementation: medium or large features, multi-step changes, cross-session work, migrations, risky refactors, or any request that needs explicit acceptance and traceability.
22
+
23
+ ## Routing
24
+
25
+ - Primary coordinator: `the project-planner posture`
26
+ - Traceability and requirements support: `the researcher posture`
27
+ - Cross-domain coordination: `the orchestrator posture`
28
+ - Documentation and structure support: `the documentation-writer posture`
29
+
30
+ ## Skill Routing
31
+
32
+ - Primary skills: `spec-driven-delivery`, `sadd`
33
+ - Supporting skills (optional): `system-design`, `architecture-doc`, `deep-research`, `api-design`, `database-design`, `tech-doc`
34
+ - Start with `spec-driven-delivery` for the pack structure and handoff contract. Add `sadd` when mining requirements into testable assertions, `system-design` or `architecture-doc` when the spec changes structure, and `deep-research` only when repo-local evidence is insufficient.
35
+
36
+ ## Workflow steps
37
+
38
+ 1. Determine whether the task is non-trivial enough to justify a spec pack.
39
+ 2. Find an existing `docs/specs/<spec-id>/` pack or create a new stable `spec_id`.
40
+ 3. Write or refresh the spec pack with brief, acceptance, tasks, traceability, and handoff files.
41
+ 4. Record `architecture_impact`, `doc_impact`, and any required updates to `ENGINEERING_RULES.md` or `TECH.md`.
42
+ 5. Identify the next execution route and hand off without replanning the same work.
43
+
44
+ ## Context notes
45
+
46
+ - Read `ENGINEERING_RULES.md` first and `TECH.md` next when they exist because they define the accepted architecture contract and current state.
47
+ - Prefer repo evidence first; escalate to `deep-research` only when freshness, public comparison, or explicit research requests require it.
48
+ - Keep spec packs lean. Trivial one-step tasks should stay on the lightweight path with no new spec directory.
49
+
50
+ ## Verification
51
+
52
+ - `spec_id` and `spec_root` are stable and explicit.
53
+ - Acceptance criteria are testable and traceable.
54
+ - Task dependencies form a valid execution order.
55
+ - `architecture_impact`, `doc_impact`, and `traceability_status` are present.
56
+
57
+ ## Output Contract
58
+
59
+ ```yaml
60
+ SPEC_WORKFLOW_RESULT:
61
+ primary_agent: project-planner
62
+ supporting_agents: [researcher?, orchestrator?, documentation-writer?]
63
+ primary_skills: [spec-driven-delivery, sadd]
64
+ supporting_skills: [system-design?, architecture-doc?, deep-research?, api-design?, database-design?, tech-doc?]
65
+ spec_id: <string>
66
+ spec_root: docs/specs/<spec-id>
67
+ architecture_impact:
68
+ summary: <string>
69
+ affects_structure: true | false
70
+ affects_design_system: true | false
71
+ affects_testing_strategy: true | false
72
+ doc_impact: none | tech | rules | both
73
+ traceability_status: complete | partial | blocked
74
+ documents:
75
+ created: [<path>] | []
76
+ updated: [<path>] | []
77
+ next_route: </create | /implement-track | /orchestrate | /architecture | direct>
78
+ gaps: [<string>] | []
79
+ ```
80
+
81
+ > **Codex note:** Prefer native Codex delegation when the host exposes it. Otherwise follow AGENTS.md specialist postures inline while keeping the same routing and verification contract.
@@ -63,4 +63,4 @@ TEST_WORKFLOW_RESULT:
63
63
  follow_up_items: [<string>] | []
64
64
  ```
65
65
 
66
- > **Codex note:** This workflow runs inside a network-restricted sandbox. Specialists are reasoning postures defined in AGENTS.md, not spawned processes.
66
+ > **Codex note:** Prefer native Codex delegation when the host exposes it. Otherwise follow AGENTS.md specialist postures inline while keeping the same routing and verification contract.
@@ -73,4 +73,4 @@ VERCEL_WORKFLOW_RESULT:
73
73
  follow_up_items: [<string>] | []
74
74
  ```
75
75
 
76
- > **Codex note:** This workflow runs inside a network-restricted sandbox. Specialists are reasoning postures defined in AGENTS.md, not spawned processes.
76
+ > **Codex note:** Prefer native Codex delegation when the host exposes it. Otherwise follow AGENTS.md specialist postures inline while keeping the same routing and verification contract.
@@ -28,8 +28,8 @@ Your only permitted actions:
28
28
 
29
29
  ## Skill Loading Contract
30
30
 
31
- - Do not call `skill_search` for `system-design`, `api-design`, `database-design`, `architecture-doc`, `mcp-server-builder`, `tech-doc`, `prompt-engineering`, or `skill-creator` when the task is clearly multi-stream coordination, planning, architecture design, contract design, research, or skill package work.
32
- - Use `system-design` when the coordination problem is really a design tradeoff problem, `api-design` when integration contracts are the coordination bottleneck, `database-design` when the shared dependency is a data-model or migration concern, `architecture-doc` when the coordination risk is stale or conflicting external information, `mcp-server-builder` for MCP-specific streams, `tech-doc` for OpenAI-doc verification streams, `prompt-engineering` for instruction-quality streams, and `skill-creator` when the coordinated changes are in skills, mirrors, routing, or packaging.
31
+ - Do not call `skill_search` for `system-design`, `api-design`, `database-design`, `deep-research`, `mcp-server-builder`, `tech-doc`, `prompt-engineering`, or `skill-creator` when the task is clearly multi-stream coordination, planning, architecture design, contract design, research, or skill package work.
32
+ - Use `system-design` when the coordination problem is really a design tradeoff problem, `api-design` when integration contracts are the coordination bottleneck, `database-design` when the shared dependency is a data-model or migration concern, `deep-research` when the coordination risk is stale or conflicting external information, `mcp-server-builder` for MCP-specific streams, `tech-doc` for OpenAI-doc verification streams, `prompt-engineering` for instruction-quality streams, and `skill-creator` when the coordinated changes are in skills, mirrors, routing, or packaging.
33
33
  - Prefer platform-native delegation features when available, but keep the orchestration contract stable even when execution stays in a single track.
34
34
  - Use `skill_validate` before `skill_get`, and use `skill_get_reference` only for the specific sidecar file needed by the current coordination step.
35
35
 
@@ -42,7 +42,7 @@ Load on demand. Do not preload all references.
42
42
  | `system-design` | Coordination depends on resolving system design or interface tradeoffs first. |
43
43
  | `api-design` | The critical shared dependency is an API contract or integration boundary. |
44
44
  | `database-design` | The coordination risk centers on schema, migration, data ownership, or engine choice. |
45
- | `architecture-doc` | External sources, latest information, or public-repo comparisons are blocking confident execution. |
45
+ | `deep-research` | External sources, latest information, or public-repo comparisons are blocking confident execution. |
46
46
  | `mcp-server-builder` | One stream is MCP server design, tool shape, or transport selection. |
47
47
  | `tech-doc` | One stream needs current OpenAI docs or version-specific behavior verification. |
48
48
  | `prompt-engineering` | One stream is repairing prompts, agent rules, or instruction quality. |
@@ -155,7 +155,8 @@ ANTI-LAZINESS:
155
155
  5. **Iterate, don't accept mediocrity** — if output is incomplete or wrong, re-delegate with feedback.
156
156
  6. **Track progress visibly** — maintain a task list showing status of each work item.
157
157
  7. **Fail fast on blockers** — if a dependency is missing or a task is stuck after 3 iterations, escalate.
158
- 8. **Synthesize at the end** — combine outputs with concrete actions, risks, and verification evidence.
158
+ 8. **Route research explicitly** — when freshness or public comparison matters, delegate to `@researcher` or load `deep-research` before implementation.
159
+ 9. **Synthesize at the end** — combine outputs with concrete actions, risks, and verification evidence.
159
160
 
160
161
  ## Anti-Patterns to Prevent
161
162
 
@@ -185,6 +186,6 @@ ORCHESTRATION_RESULT:
185
186
  ```
186
187
 
187
188
  ## Skill routing
188
- Prefer these skills when task intent matches: `system-design`, `api-design`, `database-design`, `architecture-doc`, `mcp-server-builder`, `tech-doc`, `prompt-engineering`, `skill-creator`, `typescript-best-practices`, `javascript-best-practices`, `python-best-practices`.
189
+ Prefer these skills when task intent matches: `system-design`, `api-design`, `database-design`, `deep-research`, `mcp-server-builder`, `tech-doc`, `prompt-engineering`, `skill-creator`, `typescript-best-practices`, `javascript-best-practices`, `python-best-practices`.
189
190
 
190
191
  If none apply directly, use the closest specialist guidance and state the fallback.
@@ -21,7 +21,7 @@ Decompose complex requests into implementable plans with clear ownership, depend
21
21
  - Load `system-design` for system design tradeoffs in the plan.
22
22
  - Load `api-design` when the plan involves API contract decisions.
23
23
  - Load `database-design` when the plan involves data modeling or migration.
24
- - Load `architecture-doc` when planning requires external information or comparison.
24
+ - Load `deep-research` when planning requires fresh external information, public comparison, or evidence beyond the repo.
25
25
  - Use `skill_validate` before `skill_get`, and use `skill_get_reference` only for the specific sidecar file needed.
26
26
 
27
27
  ## Skill References
@@ -31,7 +31,7 @@ Decompose complex requests into implementable plans with clear ownership, depend
31
31
  | `system-design` | Plan involves system design tradeoffs or component boundaries. |
32
32
  | `api-design` | Plan involves API contract decisions or integration points. |
33
33
  | `database-design` | Plan involves data modeling, schema design, or migration strategy. |
34
- | `architecture-doc` | Planning requires external research or approach comparison. |
34
+ | `deep-research` | Planning requires external research or approach comparison. |
35
35
  | `mcp-server-builder` | Plan involves MCP server or tool implementation. |
36
36
  | `skill-creator` | Plan involves skill package creation or modification. |
37
37
 
@@ -42,6 +42,7 @@ Decompose complex requests into implementable plans with clear ownership, depend
42
42
  - Every task needs an owner (agent), acceptance criteria, and verification approach.
43
43
  - Plan for rollback — every change should be reversible.
44
44
  - Front-load risk — tackle the hardest technical uncertainty first.
45
+ - When outside evidence is needed, send research through `deep-research` first instead of mixing web browsing into every implementation stream.
45
46
 
46
47
  ## Planning Methodology
47
48
 
@@ -63,6 +64,6 @@ Decompose complex requests into implementable plans with clear ownership, depend
63
64
  - Clear definition of done for the overall effort.
64
65
 
65
66
  ## Skill routing
66
- Prefer these skills when task intent matches: `system-design`, `api-design`, `database-design`, `architecture-doc`, `mcp-server-builder`, `tech-doc`, `prompt-engineering`, `skill-creator`, `typescript-best-practices`, `javascript-best-practices`, `python-best-practices`.
67
+ Prefer these skills when task intent matches: `system-design`, `api-design`, `database-design`, `deep-research`, `mcp-server-builder`, `tech-doc`, `prompt-engineering`, `skill-creator`, `typescript-best-practices`, `javascript-best-practices`, `python-best-practices`.
67
68
 
68
69
  If none apply directly, use the closest specialist guidance and state the fallback.
@@ -14,8 +14,8 @@ Investigate thoroughly, synthesize findings, and deliver structured knowledge be
14
14
 
15
15
  ## Skill Loading Contract
16
16
 
17
- - Do not call `skill_search` for `architecture-doc`, `system-design`, `database-design`, `tech-doc`, or `prompt-engineering` when the task is clearly research work.
18
- - Load `architecture-doc` first for all research tasks — it defines the research methodology.
17
+ - Do not call `skill_search` for `deep-research`, `system-design`, `database-design`, `tech-doc`, or `prompt-engineering` when the task is clearly research work.
18
+ - Load `deep-research` first for all research tasks — it defines the source ladder, evidence labeling, and research output contract.
19
19
  - Add `system-design` when research involves system design patterns or tradeoffs.
20
20
  - Add `database-design` when research involves data storage options or migration approaches.
21
21
  - Add `tech-doc` when research involves OpenAI API or model behavior verification.
@@ -26,7 +26,7 @@ Investigate thoroughly, synthesize findings, and deliver structured knowledge be
26
26
 
27
27
  | File | Load when |
28
28
  | ----------------------- | --------------------------------------------------------------------- |
29
- | `architecture-doc` | All research tasks — defines the core research methodology. |
29
+ | `deep-research` | All research tasks — defines the core research methodology. |
30
30
  | `system-design` | Research involves system design patterns or architectural tradeoffs. |
31
31
  | `database-design` | Research involves data storage, database comparison, or migration. |
32
32
  | `tech-doc` | Research involves OpenAI API, model behavior, or version differences. |
@@ -35,6 +35,9 @@ Investigate thoroughly, synthesize findings, and deliver structured knowledge be
35
35
  ## Operating Stance
36
36
 
37
37
  - Breadth first, then depth — survey the landscape before drilling into specifics.
38
+ - Repo first, then web — inspect local code, configs, and docs before using external sources.
39
+ - Official docs first — use vendor or maintainer documentation as primary evidence.
40
+ - Community evidence is secondary — Reddit, blog posts, and forum threads can inform implementation, but label them as lower-trust support.
38
41
  - Cite sources — every finding should be traceable to evidence.
39
42
  - Distinguish fact from inference — clearly label assumptions.
40
43
  - Produce actionable findings — research without recommendations is incomplete.
@@ -56,8 +59,9 @@ Investigate thoroughly, synthesize findings, and deliver structured knowledge be
56
59
  - Clear distinction between verified facts and educated guesses.
57
60
  - Actionable recommendations with tradeoff analysis.
58
61
  - Remaining knowledge gaps identified.
62
+ - Output order: verified facts, secondary/community evidence, gaps, recommended next route.
59
63
 
60
64
  ## Skill routing
61
- Prefer these skills when task intent matches: `architecture-doc`, `system-design`, `database-design`, `tech-doc`, `prompt-engineering`.
65
+ Prefer these skills when task intent matches: `deep-research`, `system-design`, `database-design`, `tech-doc`, `prompt-engineering`.
62
66
 
63
67
  If none apply directly, use the closest specialist guidance and state the fallback.
@@ -7,6 +7,12 @@ Use this prompt with the matching workflow file:
7
7
 
8
8
  Execution contract:
9
9
  1. Treat route selection as already resolved by this prompt; do not begin with skill discovery.
10
- 2. Apply workflow sections in order: When to use, Workflow steps, Context notes, Verification.
11
- 3. Route to the workflow's primary specialist and only add supporting specialists when needed.
12
- 4. Return actions taken, verification evidence, and any gaps.
10
+ 2. Read `ENGINEERING_RULES.md` first and `TECH.md` next when they exist before non-trivial execution.
11
+ Attached skills:
12
+ - Load these exact skill IDs first: `code-review`, `frontend-design`, `performance-testing`, `react`, `nextjs`, `playwright-interactive`, `typescript-best-practices`, `javascript-best-practices`.
13
+ - Local skill file hints if installed: `.github/skills/code-review/SKILL.md`, `.github/skills/frontend-design/SKILL.md`, `.github/skills/performance-testing/SKILL.md`, `.github/skills/react/SKILL.md`, `.github/skills/nextjs/SKILL.md`, `.github/skills/playwright-interactive/SKILL.md`, `.github/skills/typescript-best-practices/SKILL.md`, `.github/skills/javascript-best-practices/SKILL.md`.
14
+ - Treat the skill bundle as already resolved for this workflow. Do not start with route discovery.
15
+ 3. Apply workflow sections in order: When to use, Workflow steps, Context notes, Verification.
16
+ 4. Route to the workflow's primary specialist and only add supporting specialists when needed.
17
+ 5. If freshness or public comparison matters, run `deep-research` before implementation and use official docs as primary evidence.
18
+ 6. Return actions taken, verification evidence, and any gaps.