@cubis/foundry 0.3.77 → 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 (206) 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 +787 -25
  6. package/dist/cli/core.js.map +1 -1
  7. package/package.json +4 -3
  8. package/src/cli/build/commands.ts +39 -0
  9. package/src/cli/commands/register.ts +6 -0
  10. package/src/cli/core.ts +960 -28
  11. package/workflows/skills/generated/skill-audit.json +11 -2
  12. package/workflows/skills/generated/skill-catalog.json +38 -4
  13. package/workflows/skills/skills_index.json +34 -0
  14. package/workflows/skills/spec-driven-delivery/SKILL.md +63 -0
  15. package/workflows/workflows/agent-environment-setup/generated/route-manifest.json +117 -4
  16. package/workflows/workflows/agent-environment-setup/manifest.json +21 -0
  17. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/accessibility.toml +10 -5
  18. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/architecture.toml +19 -0
  19. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/backend.toml +10 -5
  20. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/create.toml +10 -5
  21. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/database.toml +10 -5
  22. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/debug.toml +10 -5
  23. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/devops.toml +10 -5
  24. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/implement-track.toml +10 -5
  25. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/migrate.toml +10 -5
  26. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/mobile.toml +10 -5
  27. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/onboard.toml +10 -5
  28. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/orchestrate.toml +10 -5
  29. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/plan.toml +10 -5
  30. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/refactor.toml +10 -5
  31. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/release.toml +10 -5
  32. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/review.toml +10 -5
  33. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/security.toml +10 -5
  34. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/spec.toml +19 -0
  35. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/test.toml +10 -5
  36. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/vercel.toml +10 -5
  37. package/workflows/workflows/agent-environment-setup/platforms/antigravity/rules/GEMINI.md +3 -1
  38. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/spec-driven-delivery/SKILL.md +65 -0
  39. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/architecture.md +82 -0
  40. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/backend.md +3 -0
  41. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/create.md +4 -1
  42. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/database.md +3 -0
  43. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/implement-track.md +7 -1
  44. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/migrate.md +4 -1
  45. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/mobile.md +3 -0
  46. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/onboard.md +1 -0
  47. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/orchestrate.md +6 -1
  48. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/plan.md +12 -2
  49. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/refactor.md +3 -0
  50. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/release.md +3 -0
  51. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/spec.md +81 -0
  52. package/workflows/workflows/agent-environment-setup/platforms/claude/rules/CLAUDE.md +3 -1
  53. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/skills_index.json +34 -0
  54. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/spec-driven-delivery/SKILL.md +66 -0
  55. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/architecture.md +80 -0
  56. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/backend.md +3 -0
  57. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/create.md +4 -1
  58. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/database.md +3 -0
  59. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/implement-track.md +7 -1
  60. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/migrate.md +4 -1
  61. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/mobile.md +3 -0
  62. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/onboard.md +1 -0
  63. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/orchestrate.md +6 -1
  64. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/plan.md +12 -2
  65. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/refactor.md +3 -0
  66. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/release.md +3 -0
  67. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/spec.md +79 -0
  68. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/backend-specialist.md +1 -1
  69. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/code-archaeologist.md +1 -1
  70. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/database-architect.md +1 -1
  71. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/debugger.md +1 -1
  72. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/devops-engineer.md +1 -1
  73. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/documentation-writer.md +1 -1
  74. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/frontend-specialist.md +1 -1
  75. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/game-developer.md +1 -1
  76. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/mobile-developer.md +1 -1
  77. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/orchestrator.md +1 -1
  78. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/penetration-tester.md +1 -1
  79. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/performance-optimizer.md +1 -1
  80. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/product-manager.md +1 -1
  81. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/project-planner.md +1 -1
  82. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/qa-automation-engineer.md +1 -1
  83. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/researcher.md +1 -1
  84. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/security-auditor.md +1 -1
  85. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/seo-specialist.md +1 -1
  86. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/sre-engineer.md +1 -1
  87. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/test-engineer.md +1 -1
  88. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/validator.md +1 -1
  89. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/vercel-expert.md +1 -1
  90. package/workflows/workflows/agent-environment-setup/platforms/codex/rules/AGENTS.md +3 -1
  91. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/spec-driven-delivery/SKILL.md +65 -0
  92. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/accessibility.md +1 -1
  93. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/architecture.md +82 -0
  94. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/backend.md +4 -1
  95. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/create.md +5 -2
  96. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/database.md +4 -1
  97. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/debug.md +1 -1
  98. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/devops.md +1 -1
  99. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/implement-track.md +8 -2
  100. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/migrate.md +5 -2
  101. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/mobile.md +4 -1
  102. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/onboard.md +2 -1
  103. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/orchestrate.md +7 -2
  104. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/plan.md +13 -3
  105. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/refactor.md +4 -1
  106. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/release.md +4 -1
  107. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/review.md +1 -1
  108. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/security.md +1 -1
  109. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/spec.md +81 -0
  110. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/test.md +1 -1
  111. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/vercel.md +1 -1
  112. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-accessibility.prompt.md +9 -4
  113. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-architecture.prompt.md +18 -0
  114. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-backend.prompt.md +9 -4
  115. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-create.prompt.md +9 -4
  116. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-database.prompt.md +9 -4
  117. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-debug.prompt.md +9 -4
  118. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-devops.prompt.md +9 -4
  119. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-implement-track.prompt.md +9 -4
  120. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-migrate.prompt.md +9 -4
  121. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-mobile.prompt.md +9 -4
  122. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-onboard.prompt.md +9 -4
  123. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-orchestrate.prompt.md +9 -4
  124. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-plan.prompt.md +9 -4
  125. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-refactor.prompt.md +9 -4
  126. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-release.prompt.md +9 -4
  127. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-review.prompt.md +9 -4
  128. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-security.prompt.md +9 -4
  129. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-spec.prompt.md +18 -0
  130. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-test.prompt.md +9 -4
  131. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-vercel.prompt.md +9 -4
  132. package/workflows/workflows/agent-environment-setup/platforms/copilot/rules/copilot-instructions.md +3 -1
  133. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/skills_index.json +34 -0
  134. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/spec-driven-delivery/SKILL.md +70 -0
  135. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/architecture.md +80 -0
  136. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/backend.md +3 -0
  137. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/create.md +4 -1
  138. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/database.md +3 -0
  139. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/implement-track.md +7 -1
  140. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/migrate.md +4 -1
  141. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/mobile.md +3 -0
  142. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/onboard.md +1 -0
  143. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/orchestrate.md +6 -1
  144. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/plan.md +12 -2
  145. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/refactor.md +3 -0
  146. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/release.md +3 -0
  147. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/spec.md +79 -0
  148. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/accessibility.toml +10 -5
  149. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/architecture.toml +19 -0
  150. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/backend.toml +10 -5
  151. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/create.toml +10 -5
  152. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/database.toml +10 -5
  153. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/debug.toml +10 -5
  154. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/devops.toml +10 -5
  155. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/implement-track.toml +10 -5
  156. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/migrate.toml +10 -5
  157. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/mobile.toml +10 -5
  158. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/onboard.toml +10 -5
  159. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/orchestrate.toml +10 -5
  160. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/plan.toml +10 -5
  161. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/refactor.toml +10 -5
  162. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/release.toml +10 -5
  163. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/review.toml +10 -5
  164. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/security.toml +10 -5
  165. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/spec.toml +19 -0
  166. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/test.toml +10 -5
  167. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/vercel.toml +10 -5
  168. package/workflows/workflows/agent-environment-setup/platforms/gemini/rules/GEMINI.md +3 -1
  169. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/spec-driven-delivery/SKILL.md +65 -0
  170. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/architecture.md +82 -0
  171. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/backend.md +3 -0
  172. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/create.md +4 -1
  173. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/database.md +3 -0
  174. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/implement-track.md +7 -1
  175. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/migrate.md +4 -1
  176. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/mobile.md +3 -0
  177. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/onboard.md +1 -0
  178. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/orchestrate.md +6 -1
  179. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/plan.md +12 -2
  180. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/refactor.md +3 -0
  181. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/release.md +3 -0
  182. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/spec.md +81 -0
  183. package/workflows/workflows/agent-environment-setup/shared/agents/backend-specialist.md +5 -5
  184. package/workflows/workflows/agent-environment-setup/shared/agents/database-architect.md +3 -3
  185. package/workflows/workflows/agent-environment-setup/shared/agents/orchestrator.md +8 -8
  186. package/workflows/workflows/agent-environment-setup/shared/agents/penetration-tester.md +3 -3
  187. package/workflows/workflows/agent-environment-setup/shared/agents/product-manager.md +6 -6
  188. package/workflows/workflows/agent-environment-setup/shared/agents/project-planner.md +8 -8
  189. package/workflows/workflows/agent-environment-setup/shared/agents/researcher.md +8 -8
  190. package/workflows/workflows/agent-environment-setup/shared/agents/security-auditor.md +2 -2
  191. package/workflows/workflows/agent-environment-setup/shared/rules/STEERING.md +13 -0
  192. package/workflows/workflows/agent-environment-setup/shared/rules/overrides/codex.md +3 -3
  193. package/workflows/workflows/agent-environment-setup/shared/workflows/architecture.md +80 -0
  194. package/workflows/workflows/agent-environment-setup/shared/workflows/backend.md +8 -5
  195. package/workflows/workflows/agent-environment-setup/shared/workflows/create.md +5 -2
  196. package/workflows/workflows/agent-environment-setup/shared/workflows/database.md +6 -3
  197. package/workflows/workflows/agent-environment-setup/shared/workflows/implement-track.md +12 -6
  198. package/workflows/workflows/agent-environment-setup/shared/workflows/migrate.md +7 -4
  199. package/workflows/workflows/agent-environment-setup/shared/workflows/mobile.md +3 -0
  200. package/workflows/workflows/agent-environment-setup/shared/workflows/onboard.md +6 -5
  201. package/workflows/workflows/agent-environment-setup/shared/workflows/orchestrate.md +10 -5
  202. package/workflows/workflows/agent-environment-setup/shared/workflows/plan.md +17 -7
  203. package/workflows/workflows/agent-environment-setup/shared/workflows/refactor.md +5 -2
  204. package/workflows/workflows/agent-environment-setup/shared/workflows/release.md +3 -0
  205. package/workflows/workflows/agent-environment-setup/shared/workflows/security.md +2 -2
  206. package/workflows/workflows/agent-environment-setup/shared/workflows/spec.md +79 -0
@@ -4,11 +4,16 @@ Follow the /review workflow from .gemini/workflows/review.md.
4
4
 
5
5
  Execution contract:
6
6
  1. Treat route selection as already resolved by this command; do not begin with skill discovery.
7
- 2. Confirm the request fits the workflow's "When to use" section.
8
- 3. Execute according to "Workflow steps" and apply "Context notes".
9
- 4. Complete "Verification" checks and report concrete evidence.
10
- 5. If freshness, public comparison, or explicit research needs appear, pause implementation and load `deep-research` or route to the researcher posture first.
11
- 6. For outside evidence: repo first, official docs next, Reddit/community only as labeled secondary evidence.
7
+ 2. Read `ENGINEERING_RULES.md` first and `TECH.md` next when they exist before non-trivial execution.
8
+ Attached skills:
9
+ - Load these exact skill IDs first: `code-review`, `unit-testing`, `owasp-security-review`, `performance-testing`, `react`, `nextjs`, `typescript-best-practices`, `javascript-best-practices`, `python-best-practices`, `golang-best-practices`.
10
+ - Local skill file hints if installed: `.gemini/skills/code-review/SKILL.md`, `.gemini/skills/unit-testing/SKILL.md`, `.gemini/skills/owasp-security-review/SKILL.md`, `.gemini/skills/performance-testing/SKILL.md`, `.gemini/skills/react/SKILL.md`, `.gemini/skills/nextjs/SKILL.md`, `.gemini/skills/typescript-best-practices/SKILL.md`, `.gemini/skills/javascript-best-practices/SKILL.md`.
11
+ - Treat the skill bundle as already resolved for this workflow. Do not start with route discovery.
12
+ 3. Confirm the request fits the workflow's "When to use" section.
13
+ 4. Execute according to "Workflow steps" and apply "Context notes".
14
+ 5. Complete "Verification" checks and report concrete evidence.
15
+ 6. If freshness, public comparison, or explicit research needs appear, pause implementation and load `deep-research` or route to the researcher posture first.
16
+ 7. For outside evidence: repo first, official docs next, Reddit/community only as labeled secondary evidence.
12
17
 
13
18
  If command arguments are provided, treat them as additional user context.
14
19
  '''
@@ -4,11 +4,16 @@ Follow the /security workflow from .gemini/workflows/security.md.
4
4
 
5
5
  Execution contract:
6
6
  1. Treat route selection as already resolved by this command; do not begin with skill discovery.
7
- 2. Confirm the request fits the workflow's "When to use" section.
8
- 3. Execute according to "Workflow steps" and apply "Context notes".
9
- 4. Complete "Verification" checks and report concrete evidence.
10
- 5. If freshness, public comparison, or explicit research needs appear, pause implementation and load `deep-research` or route to the researcher posture first.
11
- 6. For outside evidence: repo first, official docs next, Reddit/community only as labeled secondary evidence.
7
+ 2. Read `ENGINEERING_RULES.md` first and `TECH.md` next when they exist before non-trivial execution.
8
+ Attached skills:
9
+ - Load these exact skill IDs first: `owasp-security-review`, `code-review`, `api-design`, `typescript-best-practices`, `javascript-best-practices`, `python-best-practices`, `golang-best-practices`, `rust-best-practices`.
10
+ - Local skill file hints if installed: `.gemini/skills/owasp-security-review/SKILL.md`, `.gemini/skills/code-review/SKILL.md`, `.gemini/skills/api-design/SKILL.md`, `.gemini/skills/typescript-best-practices/SKILL.md`, `.gemini/skills/javascript-best-practices/SKILL.md`, `.gemini/skills/python-best-practices/SKILL.md`, `.gemini/skills/golang-best-practices/SKILL.md`, `.gemini/skills/rust-best-practices/SKILL.md`.
11
+ - Treat the skill bundle as already resolved for this workflow. Do not start with route discovery.
12
+ 3. Confirm the request fits the workflow's "When to use" section.
13
+ 4. Execute according to "Workflow steps" and apply "Context notes".
14
+ 5. Complete "Verification" checks and report concrete evidence.
15
+ 6. If freshness, public comparison, or explicit research needs appear, pause implementation and load `deep-research` or route to the researcher posture first.
16
+ 7. For outside evidence: repo first, official docs next, Reddit/community only as labeled secondary evidence.
12
17
 
13
18
  If command arguments are provided, treat them as additional user context.
14
19
  '''
@@ -0,0 +1,19 @@
1
+ description = "Create or refresh a Git-tracked spec pack for non-trivial work, including acceptance criteria, traceability, architecture impact, and next-route handoff."
2
+ prompt = '''
3
+ Follow the /spec workflow from .gemini/workflows/spec.md.
4
+
5
+ Execution contract:
6
+ 1. Treat route selection as already resolved by this command; do not begin with skill discovery.
7
+ 2. Read `ENGINEERING_RULES.md` first and `TECH.md` next when they exist before non-trivial execution.
8
+ Attached skills:
9
+ - Load these exact skill IDs first: `spec-driven-delivery`, `sadd`, `system-design`, `architecture-doc`, `deep-research`, `api-design`, `database-design`, `tech-doc`.
10
+ - Local skill file hints if installed: `.gemini/skills/spec-driven-delivery/SKILL.md`, `.gemini/skills/sadd/SKILL.md`, `.gemini/skills/system-design/SKILL.md`, `.gemini/skills/architecture-doc/SKILL.md`, `.gemini/skills/deep-research/SKILL.md`, `.gemini/skills/api-design/SKILL.md`, `.gemini/skills/database-design/SKILL.md`, `.gemini/skills/tech-doc/SKILL.md`.
11
+ - Treat the skill bundle as already resolved for this workflow. Do not start with route discovery.
12
+ 3. Confirm the request fits the workflow's "When to use" section.
13
+ 4. Execute according to "Workflow steps" and apply "Context notes".
14
+ 5. Complete "Verification" checks and report concrete evidence.
15
+ 6. If freshness, public comparison, or explicit research needs appear, pause implementation and load `deep-research` or route to the researcher posture first.
16
+ 7. For outside evidence: repo first, official docs next, Reddit/community only as labeled secondary evidence.
17
+
18
+ If command arguments are provided, treat them as additional user context.
19
+ '''
@@ -4,11 +4,16 @@ Follow the /test workflow from .gemini/workflows/test.md.
4
4
 
5
5
  Execution contract:
6
6
  1. Treat route selection as already resolved by this command; do not begin with skill discovery.
7
- 2. Confirm the request fits the workflow's "When to use" section.
8
- 3. Execute according to "Workflow steps" and apply "Context notes".
9
- 4. Complete "Verification" checks and report concrete evidence.
10
- 5. If freshness, public comparison, or explicit research needs appear, pause implementation and load `deep-research` or route to the researcher posture first.
11
- 6. For outside evidence: repo first, official docs next, Reddit/community only as labeled secondary evidence.
7
+ 2. Read `ENGINEERING_RULES.md` first and `TECH.md` next when they exist before non-trivial execution.
8
+ Attached skills:
9
+ - Load these exact skill IDs first: `unit-testing`, `integration-testing`, `playwright-interactive`, `observability`, `systematic-debugging`, `code-review`, `typescript-best-practices`, `javascript-best-practices`, `python-best-practices`, `golang-best-practices`, `java-best-practices`.
10
+ - Local skill file hints if installed: `.gemini/skills/unit-testing/SKILL.md`, `.gemini/skills/integration-testing/SKILL.md`, `.gemini/skills/playwright-interactive/SKILL.md`, `.gemini/skills/observability/SKILL.md`, `.gemini/skills/systematic-debugging/SKILL.md`, `.gemini/skills/code-review/SKILL.md`, `.gemini/skills/typescript-best-practices/SKILL.md`, `.gemini/skills/javascript-best-practices/SKILL.md`.
11
+ - Treat the skill bundle as already resolved for this workflow. Do not start with route discovery.
12
+ 3. Confirm the request fits the workflow's "When to use" section.
13
+ 4. Execute according to "Workflow steps" and apply "Context notes".
14
+ 5. Complete "Verification" checks and report concrete evidence.
15
+ 6. If freshness, public comparison, or explicit research needs appear, pause implementation and load `deep-research` or route to the researcher posture first.
16
+ 7. For outside evidence: repo first, official docs next, Reddit/community only as labeled secondary evidence.
12
17
 
13
18
  If command arguments are provided, treat them as additional user context.
14
19
  '''
@@ -4,11 +4,16 @@ Follow the /vercel workflow from .gemini/workflows/vercel.md.
4
4
 
5
5
  Execution contract:
6
6
  1. Treat route selection as already resolved by this command; do not begin with skill discovery.
7
- 2. Confirm the request fits the workflow's "When to use" section.
8
- 3. Execute according to "Workflow steps" and apply "Context notes".
9
- 4. Complete "Verification" checks and report concrete evidence.
10
- 5. If freshness, public comparison, or explicit research needs appear, pause implementation and load `deep-research` or route to the researcher posture first.
11
- 6. For outside evidence: repo first, official docs next, Reddit/community only as labeled secondary evidence.
7
+ 2. Read `ENGINEERING_RULES.md` first and `TECH.md` next when they exist before non-trivial execution.
8
+ Attached skills:
9
+ - Load these exact skill IDs first: `nextjs`, `ci-cd-pipeline`, `performance-testing`, `react`, `frontend-design`, `javascript-best-practices`, `typescript-best-practices`.
10
+ - Local skill file hints if installed: `.gemini/skills/nextjs/SKILL.md`, `.gemini/skills/ci-cd-pipeline/SKILL.md`, `.gemini/skills/performance-testing/SKILL.md`, `.gemini/skills/react/SKILL.md`, `.gemini/skills/frontend-design/SKILL.md`, `.gemini/skills/javascript-best-practices/SKILL.md`, `.gemini/skills/typescript-best-practices/SKILL.md`.
11
+ - Treat the skill bundle as already resolved for this workflow. Do not start with route discovery.
12
+ 3. Confirm the request fits the workflow's "When to use" section.
13
+ 4. Execute according to "Workflow steps" and apply "Context notes".
14
+ 5. Complete "Verification" checks and report concrete evidence.
15
+ 6. If freshness, public comparison, or explicit research needs appear, pause implementation and load `deep-research` or route to the researcher posture first.
16
+ 7. For outside evidence: repo first, official docs next, Reddit/community only as labeled secondary evidence.
12
17
 
13
18
  If command arguments are provided, treat them as additional user context.
14
19
  '''
@@ -265,6 +265,8 @@ Keep MCP context lazy and exact. Skills are supporting context, not the route la
265
265
  8. Do not auto-prime every specialist with a skill. Load only what the task clearly needs.
266
266
  9. For research: repo/local evidence first, official docs next, Reddit/community only as labeled secondary evidence.
267
267
  10. Escalate to research only when freshness matters, public comparison matters, or the user explicitly asks to research/verify.
268
- 11. Use upstream MCP servers such as `postman`, `stitch`, or `playwright` for real cloud/browser actions when available.
268
+ 11. For non-trivial work, read `ENGINEERING_RULES.md` first and `TECH.md` next when they exist.
269
+ 12. If those docs declare architecture or design-system rules, follow them unless the current spec or task explicitly changes them.
270
+ 13. Use upstream MCP servers such as `postman`, `stitch`, or `playwright` for real cloud/browser actions when available.
269
271
 
270
272
  <!-- cbx:mcp:auto:end -->
@@ -0,0 +1,65 @@
1
+ ---
2
+ name: spec-driven-delivery
3
+ description: Use when turning a non-trivial request into a Git-tracked spec pack, maintaining traceability during execution, and updating specs before code when requirements or architecture change.
4
+ ---
5
+ # Spec-Driven Delivery
6
+
7
+ ## Purpose
8
+
9
+ Create and maintain a lightweight source of truth for non-trivial work. This skill turns requirements, decisions, acceptance criteria, and architecture impact into a spec pack under the `docs/specs/<spec-id>/` workspace area, then keeps that pack aligned as implementation evolves.
10
+
11
+ ## When to Use
12
+
13
+ - Planning a medium or large feature before implementation
14
+ - Capturing acceptance criteria, traceability, and architecture impact in Git
15
+ - Reusing or refreshing an existing spec pack for a follow-up change
16
+ - Bridging native plan-mode output into durable project documents
17
+ - Keeping implementation, verification, and documentation aligned across sessions
18
+
19
+ ## Instructions
20
+
21
+ 1. **Classify the task first** because trivial work should not pay spec overhead. Use this skill only when the task is multi-step, cross-session, cross-domain, risky, or likely to change architecture, testing strategy, or team coordination.
22
+ 2. **Look for an existing spec pack before creating a new one** because duplicate specs create drift. Reuse the closest matching spec directory when the current request extends an active initiative.
23
+ 3. **Create a stable `spec_id` and spec root** because the same identifier should survive planning, execution, review, and follow-up changes.
24
+ 4. **Write the minimum viable pack** because the goal is durable coordination, not bureaucracy. Keep the brief, acceptance, tasks, traceability, and handoff documents concise and testable.
25
+ 5. **Use `sadd` when turning requirements into assertions** because spec quality depends on extracting testable behavior instead of leaving requirements vague.
26
+ 6. **Record architecture impact explicitly** because implementation must stay aligned with the project architecture contract and current-state tech map. Mark whether the change affects architecture style, module boundaries, dependency rules, design system, deployment shape, or testing strategy.
27
+ 7. **Update the spec before implementation changes behavior** because traceability breaks when code changes first and docs lag behind.
28
+ 8. **Keep the task graph execution-ready** because `/implement-track` and `/orchestrate` should be able to act on the spec without replanning. Every task should have ownership, dependencies, acceptance criteria, and a verification path.
29
+ 9. **Route external research through `deep-research`** because repo-first planning still needs disciplined escalation when freshness or public comparison matters.
30
+ 10. **Emit a clear next route** because spec work usually hands off into `/create`, `/implement-track`, `/orchestrate`, or `/architecture`.
31
+ 11. **Report `doc_impact` and `traceability_status`** because feature work should surface whether the architecture contract or tech map must be refreshed at the end.
32
+ 12. **Keep the pack alive during execution** because a stale spec is worse than none. Update acceptance, tasks, and traceability when scope or constraints change.
33
+
34
+ ## Output Format
35
+
36
+ Deliver:
37
+
38
+ 1. **Spec summary** — `spec_id`, `spec_root`, goal, scope, and why spec mode is warranted
39
+ 2. **Acceptance and traceability state** — requirements, open gaps, and `traceability_status`
40
+ 3. **Execution-ready plan** — tasks, owners, dependencies, and verification checkpoints
41
+ 4. **Architecture and doc impact** — `architecture_impact` plus `doc_impact`
42
+ 5. **Recommended next route** — exact workflow, agent, or skill to continue from the spec
43
+
44
+ ## References
45
+
46
+ | File | Load when |
47
+ | --- | --- |
48
+ | `../sadd/SKILL.md` | Need requirement mining, GIVEN-WHEN-THEN specs, or traceability patterns. |
49
+ | `../architecture-doc/SKILL.md` | Need ADRs, system boundaries, or architecture-document structure. |
50
+ | `../deep-research/SKILL.md` | Need repo-first research escalation or evidence labeling rules. |
51
+
52
+ ## Examples
53
+
54
+ | File | Use when |
55
+ | --- | --- |
56
+ | `../sadd/references/spec-mining.md` | Turning loose requirements into testable spec entries. |
57
+ | `../sadd/references/coverage-mapping.md` | Building a traceability matrix that links specs, tests, and code. |
58
+
59
+ ## Gemini Platform Notes
60
+
61
+ - Use `activate_skill` to invoke skills by name from Gemini CLI or Gemini Code Assist.
62
+ - Skill files are stored under `.gemini/skills/` in the project root.
63
+ - Gemini does not support `context: fork` — all skill execution is inline.
64
+ - User arguments are passed as natural language in the activation prompt.
65
+ - Reference files are loaded relative to the skill directory under `.gemini/skills/<skill-id>/`.
@@ -0,0 +1,82 @@
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: `the project-planner posture`
26
+ - Documentation support: `the documentation-writer posture`
27
+ - Research support: `the researcher posture`
28
+ - Domain validation: `the backend-specialist posture`, `the frontend-specialist posture`, `the database-architect posture`
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
+ ```
81
+
82
+ > **Gemini note:** Commands route into workflow files under `.gemini/workflows/`. Specialists are inline postures coordinated through GEMINI.md guidance, not separate agent artifacts.
@@ -36,6 +36,7 @@ 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
 
@@ -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
 
@@ -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,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>]
@@ -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,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,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,6 +61,10 @@ 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
 
@@ -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,6 +71,7 @@ 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
 
@@ -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,6 +64,7 @@ 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
 
@@ -27,6 +27,7 @@ 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
 
@@ -20,6 +20,7 @@ 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
 
@@ -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,6 +65,7 @@ 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
  ```
@@ -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,6 +31,8 @@ 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
 
@@ -46,7 +47,8 @@ Use this when starting a new feature, project, or significant change that needs
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
 
@@ -63,6 +65,8 @@ PLAN_WORKFLOW_RESULT:
63
65
  supporting_agents: [orchestrator?, backend-specialist?, frontend-specialist?, database-architect?]
64
66
  primary_skills: [system-design, api-design]
65
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,6 +78,12 @@ 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
 
@@ -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,6 +59,7 @@ 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
  ```
@@ -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,6 +63,7 @@ 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