@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
@@ -19,7 +19,7 @@ triggers:
19
19
  tools: Read, Grep, Glob, Bash
20
20
  model: inherit
21
21
  maxTurns: 25
22
- skills: architecture-designer, api-designer, skill-creator, typescript-pro, javascript-pro
22
+ skills: system-design, api-design, skill-creator, typescript-pro, javascript-pro
23
23
  ---
24
24
 
25
25
  # Product Manager
@@ -28,9 +28,9 @@ Turn ambiguous requests into clear, testable feature definitions with prioritize
28
28
 
29
29
  ## Skill Loading Contract
30
30
 
31
- - Do not call `skill_search` for `architecture-designer` or `api-designer` when the task is clearly product definition, requirements, or feature scoping.
32
- - Load `architecture-designer` when the product decision has system design implications.
33
- - Load `api-designer` when the feature definition needs API contract clarity.
31
+ - Do not call `skill_search` for `system-design` or `api-design` when the task is clearly product definition, requirements, or feature scoping.
32
+ - Load `system-design` when the product decision has system design implications.
33
+ - Load `api-design` when the feature definition needs API contract clarity.
34
34
  - Load `skill-creator` only when defining requirements for skill packages.
35
35
  - Use `skill_validate` before `skill_get`, and use `skill_get_reference` only for the specific sidecar file needed.
36
36
 
@@ -38,8 +38,8 @@ Turn ambiguous requests into clear, testable feature definitions with prioritize
38
38
 
39
39
  | File | Load when |
40
40
  | ----------------------- | ------------------------------------------------------------------- |
41
- | `architecture-designer` | Product decision has system design or architecture implications. |
42
- | `api-designer` | Feature needs API contract definition or integration specification. |
41
+ | `system-design` | Product decision has system design or architecture implications. |
42
+ | `api-design` | Feature needs API contract definition or integration specification. |
43
43
  | `skill-creator` | Defining requirements for skill packages. |
44
44
 
45
45
  ## Operating Stance
@@ -5,7 +5,7 @@ tools: Read, Grep, Glob, Bash, Edit, Write
5
5
  model: inherit
6
6
  maxTurns: 30
7
7
  memory: project
8
- skills: architecture-designer, api-designer, database-skills, deep-research, mcp-builder, openai-docs, prompt-engineer, skill-creator, typescript-pro, javascript-pro, python-pro
8
+ skills: system-design, api-design, database-design, deep-research, mcp-server-builder, openai-docs, prompt-engineering, skill-creator, typescript-pro, javascript-pro, python-pro
9
9
  handoffs:
10
10
  - agent: "orchestrator"
11
11
  title: "Start Implementation"
@@ -21,21 +21,21 @@ Decompose complex requests into implementable plans with clear ownership, depend
21
21
  ## Skill Loading Contract
22
22
 
23
23
  - Do not call `skill_search` for any skill in the pre-declared list when the task is clearly project planning, architecture design, or task decomposition.
24
- - Load `architecture-designer` for system design tradeoffs in the plan.
25
- - Load `api-designer` when the plan involves API contract decisions.
26
- - Load `database-skills` when the plan involves data modeling or migration.
27
- - Load `deep-research` when planning requires external information or comparison.
24
+ - Load `system-design` for system design tradeoffs in the plan.
25
+ - Load `api-design` when the plan involves API contract decisions.
26
+ - Load `database-design` when the plan involves data modeling or migration.
27
+ - Load `deep-research` when planning requires fresh external information, public comparison, or evidence beyond the repo.
28
28
  - Use `skill_validate` before `skill_get`, and use `skill_get_reference` only for the specific sidecar file needed.
29
29
 
30
30
  ## Skill References
31
31
 
32
32
  | File | Load when |
33
33
  | ----------------------- | ------------------------------------------------------------------ |
34
- | `architecture-designer` | Plan involves system design tradeoffs or component boundaries. |
35
- | `api-designer` | Plan involves API contract decisions or integration points. |
36
- | `database-skills` | Plan involves data modeling, schema design, or migration strategy. |
34
+ | `system-design` | Plan involves system design tradeoffs or component boundaries. |
35
+ | `api-design` | Plan involves API contract decisions or integration points. |
36
+ | `database-design` | Plan involves data modeling, schema design, or migration strategy. |
37
37
  | `deep-research` | Planning requires external research or approach comparison. |
38
- | `mcp-builder` | Plan involves MCP server or tool implementation. |
38
+ | `mcp-server-builder` | Plan involves MCP server or tool implementation. |
39
39
  | `skill-creator` | Plan involves skill package creation or modification. |
40
40
 
41
41
  ## Operating Stance
@@ -45,6 +45,7 @@ Decompose complex requests into implementable plans with clear ownership, depend
45
45
  - Every task needs an owner (agent), acceptance criteria, and verification approach.
46
46
  - Plan for rollback — every change should be reversible.
47
47
  - Front-load risk — tackle the hardest technical uncertainty first.
48
+ - When outside evidence is needed, send research through `deep-research` first instead of mixing web browsing into every implementation stream.
48
49
 
49
50
  ## Planning Methodology
50
51
 
@@ -18,7 +18,7 @@ tools: Read, Grep, Glob, Bash
18
18
  model: inherit
19
19
  maxTurns: 30
20
20
  memory: project
21
- skills: deep-research, architecture-designer, database-skills, openai-docs, prompt-engineer
21
+ skills: deep-research, system-design, database-design, openai-docs, prompt-engineering
22
22
  handoffs:
23
23
  - agent: "project-planner"
24
24
  title: "Plan Implementation"
@@ -30,12 +30,12 @@ Investigate thoroughly, synthesize findings, and deliver structured knowledge be
30
30
 
31
31
  ## Skill Loading Contract
32
32
 
33
- - Do not call `skill_search` for `deep-research`, `architecture-designer`, `database-skills`, `openai-docs`, or `prompt-engineer` when the task is clearly research work.
34
- - Load `deep-research` first for all research tasks — it defines the research methodology.
35
- - Add `architecture-designer` when research involves system design patterns or tradeoffs.
36
- - Add `database-skills` when research involves data storage options or migration approaches.
33
+ - Do not call `skill_search` for `deep-research`, `system-design`, `database-design`, `openai-docs`, or `prompt-engineering` when the task is clearly research work.
34
+ - Load `deep-research` first for all research tasks — it defines the source ladder, evidence labeling, and research output contract.
35
+ - Add `system-design` when research involves system design patterns or tradeoffs.
36
+ - Add `database-design` when research involves data storage options or migration approaches.
37
37
  - Add `openai-docs` when research involves OpenAI API or model behavior verification.
38
- - Add `prompt-engineer` when research involves prompt design or instruction optimization.
38
+ - Add `prompt-engineering` when research involves prompt design or instruction optimization.
39
39
  - Use `skill_validate` before `skill_get`, and use `skill_get_reference` only for the specific sidecar file needed.
40
40
 
41
41
  ## Skill References
@@ -43,14 +43,17 @@ Investigate thoroughly, synthesize findings, and deliver structured knowledge be
43
43
  | File | Load when |
44
44
  | ----------------------- | --------------------------------------------------------------------- |
45
45
  | `deep-research` | All research tasks — defines the core research methodology. |
46
- | `architecture-designer` | Research involves system design patterns or architectural tradeoffs. |
47
- | `database-skills` | Research involves data storage, database comparison, or migration. |
46
+ | `system-design` | Research involves system design patterns or architectural tradeoffs. |
47
+ | `database-design` | Research involves data storage, database comparison, or migration. |
48
48
  | `openai-docs` | Research involves OpenAI API, model behavior, or version differences. |
49
- | `prompt-engineer` | Research involves prompt design or instruction optimization. |
49
+ | `prompt-engineering` | Research involves prompt design or instruction optimization. |
50
50
 
51
51
  ## Operating Stance
52
52
 
53
53
  - Breadth first, then depth — survey the landscape before drilling into specifics.
54
+ - Repo first, then web — inspect local code, configs, and docs before using external sources.
55
+ - Official docs first — use vendor or maintainer documentation as primary evidence.
56
+ - Community evidence is secondary — Reddit, blog posts, and forum threads can inform implementation, but label them as lower-trust support.
54
57
  - Cite sources — every finding should be traceable to evidence.
55
58
  - Distinguish fact from inference — clearly label assumptions.
56
59
  - Produce actionable findings — research without recommendations is incomplete.
@@ -72,3 +75,4 @@ Investigate thoroughly, synthesize findings, and deliver structured knowledge be
72
75
  - Clear distinction between verified facts and educated guesses.
73
76
  - Actionable recommendations with tradeoff analysis.
74
77
  - Remaining knowledge gaps identified.
78
+ - Output order: verified facts, secondary/community evidence, gaps, recommended next route.
@@ -30,7 +30,7 @@ triggers:
30
30
  tools: Read, Grep, Glob, Bash, Edit, Write
31
31
  model: inherit
32
32
  maxTurns: 25
33
- skills: security-engineer, auth-architect, vulnerability-scanner, static-analysis, api-designer, graphql-architect, nodejs-best-practices, nestjs-expert, fastapi-expert, typescript-pro, javascript-pro, python-pro, golang-pro, rust-pro
33
+ skills: security-engineer, auth-architect, vulnerability-scanner, static-analysis, api-design, graphql-architect, nodejs-best-practices, nestjs-expert, fastapi-expert, typescript-pro, javascript-pro, python-pro, golang-pro, rust-pro
34
34
  handoffs:
35
35
  - agent: "penetration-tester"
36
36
  title: "Run Exploit Simulation"
@@ -61,7 +61,7 @@ Review code and architecture for exploitability with evidence-first triage and a
61
61
  | `auth-architect` | Auth flow review, token management, session design, or access control audit. |
62
62
  | `vulnerability-scanner` | Dependency scanning, SAST/DAST results, or CVE triage. |
63
63
  | `static-analysis` | Automated code analysis, linting for security rules, or code quality tools. |
64
- | `api-designer` | API security review — rate limiting, input validation, auth headers. |
64
+ | `api-design` | API security review — rate limiting, input validation, auth headers. |
65
65
  | `graphql-architect` | GraphQL-specific security — depth limiting, introspection, authorization. |
66
66
 
67
67
  ## Exploitability-First Triage
@@ -1,9 +1,9 @@
1
1
  # Cubis Foundry — Shared Steering Protocol
2
2
 
3
- This is the canonical steering template. Platform-specific rules files are generated from this template
4
- plus per-platform overrides. Edit only here never edit platform rules files directly.
3
+ This is the canonical steering source for routing policy and managed MCP block language.
4
+ Keep platform rule files aligned with this template plus per-platform overrides, and do not duplicate the managed block into agent or workflow markdown.
5
5
 
6
- Generation: `npm run generate:platform-assets` (or `cbx workflows sync-rules`)
6
+ Managed-block sync: `npm run inject:mcp-rules:all` (or `cbx workflows sync-rules`)
7
7
 
8
8
  ---
9
9
 
@@ -17,6 +17,14 @@ Follow this decision tree for EVERY user request:
17
17
  │ └─ Execute directly. No routing needed. Stop.
18
18
  ├─ Did user explicitly name a workflow or agent?
19
19
  │ └─ Honor that route first. Stop.
20
+ ├─ Did user explicitly name an exact skill ID?
21
+ │ └─ Run skill_validate on that exact ID.
22
+ │ ├─ Valid? → Load it and proceed. Stop.
23
+ │ └─ Invalid/unavailable? → Fall through. Do not guess.
24
+ ├─ Is it non-trivial work with requirements, traceability, or spec language?
25
+ │ └─ Prefer /spec unless the user already chose another valid route. Stop.
26
+ ├─ Is it architecture, design-system, ADR, or structure-governance work?
27
+ │ └─ Prefer /architecture unless the user already chose another valid route. Stop.
20
28
  ├─ Is it multi-step work in ONE domain?
21
29
  │ └─ Pick the best-fit workflow. Load it. Stop.
22
30
  ├─ Is it cross-domain work spanning 2+ specialties?
@@ -28,6 +36,8 @@ Follow this decision tree for EVERY user request:
28
36
  ```
29
37
 
30
38
  > **Rule:** Inspect the repo and task locally BEFORE choosing a route or loading any skill.
39
+ > **Rule:** If the user already chose the route, do not re-route it unless the named workflow, agent, or skill is invalid.
40
+ > **Rule:** For non-trivial work, read `ENGINEERING_RULES.md` first and `TECH.md` next when they exist before planning or implementing.
31
41
 
32
42
  ---
33
43
 
@@ -38,26 +48,56 @@ Follow this decision tree for EVERY user request:
38
48
  | **Direct execution** | No routing needed | Small, clear, single-step tasks | Just do it | "rename this variable" |
39
49
  | **Workflow** | Multi-step recipe with verification | Structured task with known pattern | `/plan`, `/create`, `/debug`, `/test` | "plan the auth system" |
40
50
  | **Agent** | Specialist persona with domain skills | Domain expertise needed for execution | `@backend-specialist`, `@security-auditor` | "design the API schema" |
51
+ | **Named skill** | Exact skill selected by the user | User already named the skill and it validates cleanly | `skill_validate` → `skill_get` | "use stitch for this screen" |
41
52
  | **Skill (MCP)** | Supporting domain knowledge | Domain context that a workflow or agent doesn't cover | `skill_get` after `skill_validate` | loading `typescript-pro` for TS conventions |
42
53
  | **skill_search** | Fuzzy discovery tool | Domain unclear, no skill ID known yet | One narrow search AFTER route_resolve | "what skill covers Prisma?" |
43
54
  | **route_resolve** | Intent → route mapper | Free-text request doesn't match any known route | MCP tool call with task description | "I need to optimize my database" |
44
55
  | **Orchestrator** | Multi-specialist coordinator | Work genuinely spans 2+ domains | `/orchestrate` or `@orchestrator` | "build full-stack feature with auth" |
56
+ | **Spec workflow** | Git-tracked spec pack | Non-trivial work needs durable scope, acceptance, and traceability | `/spec` | "turn this feature into an implementation spec" |
57
+ | **Architecture workflow** | Architecture and design-system memory | Need to refresh structure, flows, ADRs, or design-system rules | `/architecture` | "update the clean architecture contract" |
45
58
 
46
59
  ---
47
60
 
48
61
  ## 3) Skill Loading Protocol
49
62
 
50
- Skills are **supporting context** always route first, then load what the route recommends.
63
+ Skills are **supporting context** unless the user explicitly named the exact skill. In that case validate the named skill first, then proceed without route discovery.
51
64
 
52
65
  1. **Never begin with `skill_search`.** Inspect the repo/task locally first.
53
- 2. Resolve the route (workflow, agent, or direct execution) before loading any skills.
54
- 3. **After routing: if `route_resolve` returned `primarySkillHint` or `primarySkills`, load the first via `skill_validate` → `skill_get` before executing. Not optional for non-trivial tasks.**
55
- 4. If `detectedLanguageSkill` is returned and matches the project, load it too (if not already loaded this session).
56
- 5. Domain still unclear after routing? ONE narrow `skill_search`. Not two.
57
- 6. Call `skill_get` with `includeReferences: false` by default.
58
- 7. Load reference files one at a time with `skill_get_reference` only when a specific reference is needed.
59
- 8. Do not auto-prime every specialist. Only load what `primarySkills` recommends or the task clearly needs.
60
- 9. Never pass workflow IDs or agent IDs to skill tools.
66
+ 2. If the user explicitly named an exact skill ID, run `skill_validate` on that ID before any `route_resolve` call.
67
+ 3. Resolve the route (workflow, agent, or direct execution) before loading any non-explicit skills.
68
+ 4. **After routing: if `route_resolve` returned `primarySkillHint` or `primarySkills`, load the first via `skill_validate` `skill_get` before executing. Not optional for non-trivial tasks.**
69
+ 5. If `detectedLanguageSkill` is returned and matches the project, load it too (if not already loaded this session).
70
+ 6. Domain still unclear after routing? → ONE narrow `skill_search`. Not two.
71
+ 7. Call `skill_get` with `includeReferences: false` by default.
72
+ 8. Load reference files one at a time with `skill_get_reference` only when a specific reference is needed.
73
+ 9. Do not auto-prime every specialist. Only load what `primarySkills` recommends or the task clearly needs.
74
+ 10. Never pass workflow IDs or agent IDs to skill tools.
75
+ 11. For `/architecture` and strict subprocess architecture generation, treat the skill bundle as already resolved. Attach the named skills directly instead of discovering them lazily.
76
+
77
+ ---
78
+
79
+ ## 4A) Research Escalation
80
+
81
+ Use external research only when one of these is true:
82
+
83
+ 1. Freshness matters: latest APIs, model behavior, vendor docs, pricing, policies, releases, or client capabilities.
84
+ 2. Public comparison matters: tradeoff analysis across tools, frameworks, libraries, or hosted services.
85
+ 3. The user explicitly asks to research, compare, verify, or gather outside evidence.
86
+
87
+ Research source ladder:
88
+
89
+ 1. **Repo/local evidence first** — inspect code, config, docs, tests, and installed artifacts before going outside the workspace.
90
+ 2. **Official docs next** — vendor docs, upstream repos, standards, or maintainer documentation are primary evidence.
91
+ 3. **Community evidence last** — Reddit, blog posts, issue threads, and forum posts are allowed only as labeled secondary evidence.
92
+
93
+ Research output contract:
94
+
95
+ - **Verified facts** — claims backed by primary sources or local repo evidence.
96
+ - **Secondary/community evidence** — useful but lower-trust signals, clearly labeled.
97
+ - **Gaps / unknowns** — what could not be verified.
98
+ - **Recommended next route** — workflow, agent, or skill to use after research.
99
+
100
+ When the research result shows a change to project structure, boundaries, design system, or testing strategy, surface `doc_impact` and recommend `/architecture` or a managed-doc refresh before or after implementation.
61
101
 
62
102
  ---
63
103
 
@@ -124,7 +164,9 @@ Use the best specialist first:
124
164
 
125
165
  | Intent Pattern | Workflow | Primary Agent |
126
166
  | --------------------------------------- | ------------------ | ---------------------- |
167
+ | Build a spec pack with traceability | `/spec` | `@project-planner` |
127
168
  | Plan a feature, design, or architecture | `/plan` | `@project-planner` |
169
+ | Refresh architecture or design-system docs | `/architecture` | `@project-planner` |
128
170
  | Implement a feature with quality gates | `/create` | varies by domain |
129
171
  | Debug a complex issue | `/debug` | `@debugger` |
130
172
  | Write or verify tests | `/test` | `@test-engineer` |
@@ -151,7 +193,9 @@ Use the best specialist first:
151
193
  2. Keep diffs small and reversible when possible.
152
194
  3. Verify with focused checks before finalizing.
153
195
  4. State what was NOT validated.
154
- 5. Use web search only when information may be stale or the user explicitly asks.
196
+ 5. Use web search only when information may be stale, public comparison matters, or the user explicitly asks.
197
+ 6. Prefer official docs first. Treat Reddit/community sources as secondary evidence and label them that way.
198
+ 7. If the task changes project structure, scaling assumptions, or design-system rules, update or flag `ENGINEERING_RULES.md` and `TECH.md`.
155
199
 
156
200
  ---
157
201
 
@@ -5,6 +5,7 @@
5
5
  - Workflows: `.claude/workflows`
6
6
  - Agents: `.claude/agents`
7
7
  - Skills: `.claude/skills`
8
+ - Hook templates: `.claude/hooks`
8
9
  - Rules file: `CLAUDE.md`
9
10
  - Scoped rules: `.claude/rules/*.md` (with `paths:` frontmatter)
10
11
 
@@ -26,4 +27,5 @@
26
27
  - Scoped rules in `.claude/rules/*.md` use `paths:` frontmatter for targeted file-pattern matching.
27
28
  - Global rules live in `~/.claude/CLAUDE.md` and apply to all projects.
28
29
  - Skills with `context: fork` spawn as isolated subagents for research-heavy or exploratory tasks.
30
+ - Optional hook templates in `.claude/hooks/` can reinforce explicit-route honoring and research escalation at `UserPromptSubmit`.
29
31
  - Use `$ARGUMENTS` in skill content for dynamic parameterization from user queries.
@@ -16,8 +16,8 @@
16
16
  ## Sandbox Constraints
17
17
 
18
18
  - Codex runs in an isolated sandbox — no persistent external network access by default.
19
- - All specialist references are **postures within the current session** Codex does not spawn isolated subagents.
20
- - `@specialist` means: adopt that specialist's domain, reasoning style, and scope constraints internally.
19
+ - Prefer native Codex delegation when the host exposes it cleanly. If native delegation is unavailable, treat specialist references as in-session postures.
20
+ - `@specialist` means: use the platform's native delegation surface when available, otherwise adopt that specialist's domain, reasoning style, and scope constraints inline.
21
21
  - Prefer local file inspection over external fetches. Default to repo-grounded reasoning.
22
22
  - Foundry MCP tools (`skill_get`, `skill_search`, `skill_validate`, `route_resolve`) are available when the MCP server is connected. After `route_resolve`, load the returned `primarySkillHint` or `primarySkills[0]` via `skill_validate` → `skill_get` before executing non-trivial tasks.
23
23
 
@@ -25,5 +25,5 @@
25
25
 
26
26
  - Codex supports three autonomy levels: `suggest` (propose only), `auto-edit` (edit with confirmation), `full-auto` (autonomous execution).
27
27
  - Codex operates in a sandboxed environment — destructive operations are inherently limited.
28
- - Orchestration in Codex is sequential (no parallel subagent spawning) adopt specialist postures one at a time.
28
+ - Orchestration in Codex is capability-based: use native delegation when available, otherwise coordinate specialist postures sequentially.
29
29
  - Keep workflow instructions self-contained since network access for external docs may be restricted.
@@ -0,0 +1,20 @@
1
+ # Gemini CLI — Platform Overrides
2
+
3
+ ## Platform Paths
4
+
5
+ - Workflows: `.gemini/workflows`
6
+ - Skills: `.gemini/skills`
7
+ - Commands: `.gemini/commands`
8
+ - Rules file: `.gemini/GEMINI.md` (or `GEMINI.md` at repo root when used directly)
9
+
10
+ ## Platform-Specific Routing
11
+
12
+ 1. **Explicit Gemini command** (`.gemini/commands/*.toml`) — highest priority route.
13
+ 2. **Explicit workflow or named skill** — honor it directly before route discovery.
14
+ 3. Standard workflow and MCP routing from shared steering.
15
+
16
+ ## Platform Notes
17
+
18
+ - Gemini CLI uses GEMINI.md plus TOML commands as the primary enforcement surface.
19
+ - Gemini specialist behavior is posture-based; it does not rely on standalone agent markdown in the project profile.
20
+ - Use command wrappers to reinforce route-resolved execution and research escalation when freshness or public comparison matters.
@@ -0,0 +1,80 @@
1
+ ---
2
+ command: "/architecture"
3
+ description: "Refresh the project architecture contract and current-state map in ENGINEERING_RULES.md and TECH.md with explicit structure, design-system, testing, and flow guidance."
4
+ triggers:
5
+ [
6
+ "architecture",
7
+ "design system",
8
+ "adr",
9
+ "clean architecture",
10
+ "system map",
11
+ "app structure",
12
+ "technical governance",
13
+ "flow diagram",
14
+ ]
15
+ ---
16
+
17
+ # Architecture Workflow
18
+
19
+ ## When to use
20
+
21
+ Use this when the task is to declare, refresh, or validate the project architecture contract and current-state map, especially after structure changes, scale changes, design-system changes, migrations, or major feature additions.
22
+
23
+ ## Routing
24
+
25
+ - Primary coordinator: `@project-planner`
26
+ - Documentation support: `@documentation-writer`
27
+ - Research support: `@researcher`
28
+ - Domain validation: `@backend-specialist`, `@frontend-specialist`, `@database-architect`
29
+
30
+ ## Skill Routing
31
+
32
+ - Primary skills: `architecture-doc`, `system-design`, `tech-doc`, `frontend-design`
33
+ - Supporting skills (optional): `api-design`, `database-design`, `sadd`, `deep-research`
34
+ - Load the four primary skills directly for this workflow. Add `api-design` or `database-design` when service or data boundaries are central, `sadd` when tying the architecture update to an active spec pack, and `deep-research` only when outside evidence is required.
35
+
36
+ ## Workflow steps
37
+
38
+ 1. Inspect the repo first and read `ENGINEERING_RULES.md` followed by `TECH.md` if they exist.
39
+ 2. Determine the current architecture style, module boundaries, design-system source of truth, and testing strategy from the codebase.
40
+ 3. Update only the managed architecture sections in `ENGINEERING_RULES.md` and `TECH.md`.
41
+ 4. Add or refresh Mermaid diagrams and flow narratives inside `TECH.md` when they clarify system behavior.
42
+ 5. Record whether the update was driven by a broader spec and whether future implementation must follow newly declared rules.
43
+
44
+ ## Context notes
45
+
46
+ - This workflow is route-fixed and skill-fixed: do not start with `route_resolve` or `skill_search`.
47
+ - `ENGINEERING_RULES.md` is normative. `TECH.md` is descriptive. Keep them aligned but not redundant.
48
+ - Preserve manual content outside the managed architecture sections.
49
+ - Mark non-applicable sections explicitly instead of silently omitting them.
50
+
51
+ ## Verification
52
+
53
+ - Managed architecture sections exist in both target docs.
54
+ - Architecture style, dependency rules, and design-system guidance are explicit.
55
+ - `TECH.md` includes flow text and at least one Mermaid diagram when the repo has meaningful flow complexity.
56
+ - The update records `doc_impact` and whether future feature work must refresh the docs again.
57
+
58
+ ## Output Contract
59
+
60
+ ```yaml
61
+ ARCHITECTURE_WORKFLOW_RESULT:
62
+ primary_agent: project-planner
63
+ supporting_agents: [documentation-writer?, researcher?, backend-specialist?, frontend-specialist?, database-architect?]
64
+ primary_skills: [architecture-doc, system-design, tech-doc, frontend-design]
65
+ supporting_skills: [api-design?, database-design?, sadd?, deep-research?]
66
+ managed_targets:
67
+ rules_doc: ENGINEERING_RULES.md
68
+ tech_doc: TECH.md
69
+ files_updated: [ENGINEERING_RULES.md, TECH.md]
70
+ architecture_contract:
71
+ style: <string>
72
+ dependency_rules: [<string>]
73
+ design_system_source: <string>
74
+ technical_snapshot:
75
+ topology: [<string>]
76
+ flows: [<string>]
77
+ diagrams: [<string>] | []
78
+ doc_impact: rules | tech | both
79
+ next_actions: [<string>] | []
80
+ ```
@@ -36,12 +36,13 @@ Use this for backend architecture, API design, service implementation, or Postma
36
36
 
37
37
  - This workflow file, active platform rules, and selected agents or skills guide execution.
38
38
  - Attach API specifications, schema diagrams, Postman collections, and relevant service code.
39
+ - Read `ENGINEERING_RULES.md` and `TECH.md` before changing service boundaries or shared backend structure.
39
40
 
40
41
  ## Skill Routing
41
42
 
42
- - Primary skills: `api-designer`, `api-patterns`, `nodejs-best-practices`
43
- - Supporting skills (optional): `auth-architect`, `database-skills`, `database-design`, `nestjs-expert`, `fastapi-expert`, `graphql-architect`, `microservices-architect`, `drizzle-expert`, `firebase`, `stripe-best-practices`, `serverless-patterns`, `i18n-localization`, `typescript-pro`, `javascript-pro`, `python-pro`, `golang-pro`
44
- - Start with `api-designer` for API contract work and `nodejs-best-practices` for Node.js services. Add framework-specific skill when applicable.
43
+ - Primary skills: `api-design`, `api-patterns`, `nodejs-best-practices`
44
+ - Supporting skills (optional): `auth-architect`, `database-design`, `database-design`, `nestjs-expert`, `fastapi-expert`, `graphql-architect`, `microservices-architect`, `drizzle-expert`, `firebase`, `stripe-best-practices`, `serverless-patterns`, `i18n-localization`, `typescript-pro`, `javascript-pro`, `python-pro`, `golang-pro`
45
+ - Start with `api-design` for API contract work and `nodejs-best-practices` for Node.js services. Add framework-specific skill when applicable.
45
46
 
46
47
  ## Workflow steps
47
48
 
@@ -50,6 +51,7 @@ Use this for backend architecture, API design, service implementation, or Postma
50
51
  3. Implement backend logic with proper error handling and validation.
51
52
  4. Write integration tests covering happy path and error cases.
52
53
  5. Review for security, performance, and reliability.
54
+ 6. Set `doc_impact` if the change alters service boundaries, shared contracts, or operational shape.
53
55
 
54
56
  ## Verification
55
57
 
@@ -65,8 +67,8 @@ Use this for backend architecture, API design, service implementation, or Postma
65
67
  BACKEND_WORKFLOW_RESULT:
66
68
  primary_agent: backend-specialist
67
69
  supporting_agents: [database-architect?, security-auditor?, test-engineer?]
68
- primary_skills: [api-designer, api-patterns, nodejs-best-practices]
69
- supporting_skills: [auth-architect?, database-skills?, <framework-skill>?]
70
+ primary_skills: [api-design, api-patterns, nodejs-best-practices]
71
+ supporting_skills: [auth-architect?, database-design?, <framework-skill>?]
70
72
  api_changes:
71
73
  endpoints_created: [<string>] | []
72
74
  endpoints_modified: [<string>] | []
@@ -74,6 +76,7 @@ BACKEND_WORKFLOW_RESULT:
74
76
  implementation:
75
77
  files_changed: [<path>]
76
78
  tests_added: [<path>]
79
+ doc_impact: none | tech | rules | both
77
80
  verification:
78
81
  checks_run: [<command-or-test>]
79
82
  evidence: [<string>]
@@ -22,11 +22,12 @@ 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
 
28
29
  - Primary skills: `typescript-pro`, `javascript-pro`, `python-pro`, `golang-pro`, `java-pro`, `csharp-pro`, `kotlin-pro`, `rust-pro`, `php-pro`, `ruby-pro`, `c-pro`, `cpp-pro`, `dart-pro`, `swift-pro`
29
- - Supporting skills (optional): `api-designer`, `api-patterns`, `nodejs-best-practices`, `nestjs-expert`, `fastapi-expert`, `graphql-architect`, `drizzle-expert`, `firebase`, `mcp-builder`, `stitch`, `react-expert`, `react-best-practices`, `nextjs-developer`, `tailwind-patterns`, `frontend-design`, `design-system-builder`, `web-perf`, `skill-creator`, `stripe-best-practices`, `serverless-patterns`, `i18n-localization`
30
+ - Supporting skills (optional): `api-design`, `api-patterns`, `nodejs-best-practices`, `nestjs-expert`, `fastapi-expert`, `graphql-architect`, `drizzle-expert`, `firebase`, `mcp-server-builder`, `stitch`, `react-expert`, `react-best-practices`, `nextjs-developer`, `tailwind-patterns`, `frontend-design`, `design-system-builder`, `web-perf`, `skill-creator`, `stripe-best-practices`, `serverless-patterns`, `i18n-localization`
30
31
  - Pick one primary language skill from repo signals or touched files. Add the narrowest specialist only when the feature is clearly backend or frontend framework-specific.
31
32
  - If the request references Stitch screens, artifacts, design-to-code, or UI sync, add `stitch` first and route the implementation through the frontend or mobile specialist based on the destination surface.
32
33
 
@@ -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>]
@@ -20,12 +20,13 @@ 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
 
26
- - Primary skills: `database-design`, `database-optimizer`, `database-skills`
27
+ - Primary skills: `database-design`, `database-optimizer`, `database-design`
27
28
  - Supporting skills (optional): `drizzle-expert`, `postgres`, `mysql`, `sqlite`, `mongodb`, `redis`, `supabase`, `firebase`, `vitess`, `typescript-pro`, `javascript-pro`, `python-pro`
28
- - Start with `database-design` for schema work, `database-optimizer` for performance, or `database-skills` for general database operations. Add engine-specific skill when applicable.
29
+ - Start with `database-design` for schema work, `database-optimizer` for performance, or `database-design` for general database operations. Add engine-specific skill when applicable.
29
30
 
30
31
  ## Workflow steps
31
32
 
@@ -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
 
@@ -48,7 +50,7 @@ Use this for schema design, query optimization, migration planning, or database
48
50
  DATABASE_WORKFLOW_RESULT:
49
51
  primary_agent: database-architect
50
52
  supporting_agents: [backend-specialist?, test-engineer?]
51
- primary_skills: [database-design, database-optimizer, database-skills]
53
+ primary_skills: [database-design, database-optimizer, database-design]
52
54
  supporting_skills: [<engine-specific-skill>?, drizzle-expert?]
53
55
  schema_changes:
54
56
  tables_affected: [<string>]
@@ -57,6 +59,7 @@ 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
  ```
@@ -20,12 +20,14 @@ 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
 
26
- - Primary skills: `architecture-designer`, `api-designer`
27
- - Supporting skills (optional): `database-skills`, `typescript-pro`, `javascript-pro`, `python-pro`, `golang-pro`, `react-expert`, `nextjs-developer`
28
- - Start with `architecture-designer` for milestone planning. Load domain-specific skills per milestone based on implementation needs.
28
+ - Primary skills: `system-design`, `api-design`
29
+ - Supporting skills (optional): `database-design`, `typescript-pro`, `javascript-pro`, `python-pro`, `golang-pro`, `react-expert`, `nextjs-developer`
30
+ - Start with `system-design` for milestone planning. Load domain-specific skills per milestone based on implementation needs.
29
31
 
30
32
  ## Workflow steps
31
33
 
@@ -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
@@ -49,8 +51,8 @@ Use this for large-scale implementation work that spans multiple sessions or mil
49
51
  IMPLEMENT_TRACK_WORKFLOW_RESULT:
50
52
  primary_agent: orchestrator
51
53
  supporting_agents: [<milestone-agents>]
52
- primary_skills: [architecture-designer, api-designer]
53
- supporting_skills: [database-skills?, typescript-pro?, javascript-pro?, python-pro?, golang-pro?, react-expert?, nextjs-developer?]
54
+ primary_skills: [system-design, api-design]
55
+ supporting_skills: [database-design?, typescript-pro?, javascript-pro?, python-pro?, golang-pro?, react-expert?, nextjs-developer?]
54
56
  milestones:
55
57
  - id: <milestone-id>
56
58
  description: <string>
@@ -59,5 +61,9 @@ 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
  ```
@@ -28,12 +28,13 @@ 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
 
34
- - Primary skills: `legacy-modernizer`, `architecture-designer`
35
+ - Primary skills: `legacy-modernizer`, `system-design`
35
36
  - Supporting skills (optional): `static-analysis`, `testing-patterns`, `typescript-pro`, `javascript-pro`, `python-pro`, `golang-pro`
36
- - Start with `legacy-modernizer` for migration methodology and `architecture-designer` for system impact. Add `static-analysis` for automated codemod or compatibility analysis.
37
+ - Start with `legacy-modernizer` for migration methodology and `system-design` for system impact. Add `static-analysis` for automated codemod or compatibility analysis.
37
38
 
38
39
  ## Workflow steps
39
40
 
@@ -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
 
@@ -58,7 +60,7 @@ Use this for technology migrations, framework upgrades, dependency updates, or m
58
60
  MIGRATE_WORKFLOW_RESULT:
59
61
  primary_agent: code-archaeologist
60
62
  supporting_agents: [backend-specialist?, frontend-specialist?, test-engineer?, validator?]
61
- primary_skills: [legacy-modernizer, architecture-designer]
63
+ primary_skills: [legacy-modernizer, system-design]
62
64
  supporting_skills: [static-analysis?, testing-patterns?]
63
65
  migration:
64
66
  from: <string>
@@ -69,5 +71,6 @@ 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
  ```