@cubis/foundry 0.3.75 → 0.3.77

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 (263) hide show
  1. package/README.md +98 -76
  2. package/dist/cli/commands/register.js +1 -1
  3. package/dist/cli/commands/register.js.map +1 -1
  4. package/dist/cli/core.js +405 -216
  5. package/dist/cli/core.js.map +1 -1
  6. package/dist/cli/init/execute.js +5 -7
  7. package/dist/cli/init/execute.js.map +1 -1
  8. package/dist/cli/workflows/commands.js +2 -2
  9. package/dist/cli/workflows/commands.js.map +1 -1
  10. package/mcp/src/tools/skillTools.test.ts +34 -1
  11. package/package.json +4 -3
  12. package/src/cli/commands/register.ts +1 -1
  13. package/src/cli/core.ts +495 -267
  14. package/src/cli/init/execute.ts +5 -9
  15. package/src/cli/workflows/commands.ts +2 -2
  16. package/workflows/skills/_schema/skill-platform-attributes.json +14 -0
  17. package/workflows/skills/deep-research/SKILL.md +81 -0
  18. package/workflows/skills/deep-research/evals/assertions.md +17 -0
  19. package/workflows/skills/deep-research/evals/evals.json +56 -0
  20. package/workflows/skills/deep-research/examples/01-latest-docs-check.md +12 -0
  21. package/workflows/skills/deep-research/examples/02-ecosystem-comparison.md +12 -0
  22. package/workflows/skills/deep-research/examples/03-research-to-implementation-handoff.md +12 -0
  23. package/workflows/skills/deep-research/references/comparison-checklist.md +57 -0
  24. package/workflows/skills/deep-research/references/research-output.md +69 -0
  25. package/workflows/skills/deep-research/references/source-ladder.md +81 -0
  26. package/workflows/skills/generated/skill-audit.json +20 -2
  27. package/workflows/skills/generated/skill-catalog.json +62 -4
  28. package/workflows/skills/skills_index.json +58 -0
  29. package/workflows/skills/stitch/SKILL.md +79 -0
  30. package/workflows/skills/stitch/evals/assertions.md +45 -0
  31. package/workflows/skills/stitch/evals/evals.json +68 -0
  32. package/workflows/skills/stitch/examples/01-new-screen.md +13 -0
  33. package/workflows/skills/stitch/examples/02-update-existing-screen.md +13 -0
  34. package/workflows/skills/stitch/examples/03-mobile-handoff.md +13 -0
  35. package/workflows/skills/stitch/examples/04-prompt-enhancement.md +21 -0
  36. package/workflows/skills/stitch/examples/05-design-sync-loop.md +16 -0
  37. package/workflows/skills/stitch/references/implementation-patterns.md +20 -0
  38. package/workflows/skills/stitch/references/platform-setup.md +46 -0
  39. package/workflows/skills/stitch/references/update-diff-workflow.md +23 -0
  40. package/workflows/workflows/agent-environment-setup/generated/route-manifest.json +21 -13
  41. package/workflows/workflows/agent-environment-setup/manifest.json +32 -1
  42. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/frontend-specialist.md +10 -2
  43. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/mobile-developer.md +6 -2
  44. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/orchestrator.md +6 -5
  45. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/project-planner.md +4 -3
  46. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/researcher.md +8 -4
  47. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/accessibility.toml +2 -0
  48. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/backend.toml +2 -0
  49. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/create.toml +2 -0
  50. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/database.toml +2 -0
  51. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/debug.toml +2 -0
  52. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/devops.toml +2 -0
  53. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/implement-track.toml +2 -0
  54. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/migrate.toml +2 -0
  55. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/mobile.toml +2 -0
  56. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/onboard.toml +2 -0
  57. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/orchestrate.toml +2 -0
  58. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/plan.toml +2 -0
  59. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/refactor.toml +2 -0
  60. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/release.toml +2 -0
  61. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/review.toml +2 -0
  62. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/security.toml +2 -0
  63. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/test.toml +2 -0
  64. package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/vercel.toml +2 -0
  65. package/workflows/workflows/agent-environment-setup/platforms/antigravity/rules/GEMINI.md +14 -8
  66. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/deep-research/SKILL.md +89 -0
  67. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/deep-research/evals/assertions.md +17 -0
  68. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/deep-research/evals/evals.json +56 -0
  69. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/deep-research/examples/01-latest-docs-check.md +12 -0
  70. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/deep-research/examples/02-ecosystem-comparison.md +12 -0
  71. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/deep-research/examples/03-research-to-implementation-handoff.md +12 -0
  72. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/deep-research/references/comparison-checklist.md +57 -0
  73. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/deep-research/references/research-output.md +69 -0
  74. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/deep-research/references/source-ladder.md +81 -0
  75. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/stitch/SKILL.md +87 -0
  76. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/stitch/evals/assertions.md +45 -0
  77. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/stitch/evals/evals.json +68 -0
  78. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/stitch/examples/01-new-screen.md +13 -0
  79. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/stitch/examples/02-update-existing-screen.md +13 -0
  80. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/stitch/examples/03-mobile-handoff.md +13 -0
  81. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/stitch/examples/04-prompt-enhancement.md +21 -0
  82. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/stitch/examples/05-design-sync-loop.md +16 -0
  83. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/stitch/references/implementation-patterns.md +20 -0
  84. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/stitch/references/platform-setup.md +46 -0
  85. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/stitch/references/update-diff-workflow.md +23 -0
  86. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/create.md +3 -2
  87. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/mobile.md +4 -3
  88. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/onboard.md +3 -3
  89. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/orchestrate.md +2 -2
  90. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/plan.md +4 -4
  91. package/workflows/workflows/agent-environment-setup/platforms/claude/agents/frontend-specialist.md +10 -2
  92. package/workflows/workflows/agent-environment-setup/platforms/claude/agents/mobile-developer.md +6 -2
  93. package/workflows/workflows/agent-environment-setup/platforms/claude/agents/orchestrator.md +6 -5
  94. package/workflows/workflows/agent-environment-setup/platforms/claude/agents/project-planner.md +4 -3
  95. package/workflows/workflows/agent-environment-setup/platforms/claude/agents/researcher.md +8 -4
  96. package/workflows/workflows/agent-environment-setup/platforms/claude/hooks/README.md +15 -0
  97. package/workflows/workflows/agent-environment-setup/platforms/claude/hooks/route-research-guard.mjs +39 -0
  98. package/workflows/workflows/agent-environment-setup/platforms/claude/hooks/settings.snippet.json +15 -0
  99. package/workflows/workflows/agent-environment-setup/platforms/claude/rules/CLAUDE.md +16 -8
  100. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/deep-research/SKILL.md +95 -0
  101. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/deep-research/evals/assertions.md +17 -0
  102. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/deep-research/evals/evals.json +56 -0
  103. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/deep-research/examples/01-latest-docs-check.md +12 -0
  104. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/deep-research/examples/02-ecosystem-comparison.md +12 -0
  105. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/deep-research/examples/03-research-to-implementation-handoff.md +12 -0
  106. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/deep-research/references/comparison-checklist.md +57 -0
  107. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/deep-research/references/research-output.md +69 -0
  108. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/deep-research/references/source-ladder.md +81 -0
  109. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/skills_index.json +58 -0
  110. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/stitch/SKILL.md +93 -0
  111. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/stitch/evals/assertions.md +45 -0
  112. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/stitch/evals/evals.json +68 -0
  113. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/stitch/examples/01-new-screen.md +13 -0
  114. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/stitch/examples/02-update-existing-screen.md +13 -0
  115. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/stitch/examples/03-mobile-handoff.md +13 -0
  116. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/stitch/examples/04-prompt-enhancement.md +21 -0
  117. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/stitch/examples/05-design-sync-loop.md +16 -0
  118. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/stitch/references/implementation-patterns.md +20 -0
  119. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/stitch/references/platform-setup.md +46 -0
  120. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/stitch/references/update-diff-workflow.md +23 -0
  121. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/create.md +3 -2
  122. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/mobile.md +4 -3
  123. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/onboard.md +3 -3
  124. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/orchestrate.md +2 -2
  125. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/plan.md +4 -4
  126. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/frontend-specialist.md +10 -2
  127. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/mobile-developer.md +6 -2
  128. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/orchestrator.md +6 -5
  129. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/project-planner.md +4 -3
  130. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/researcher.md +8 -4
  131. package/workflows/workflows/agent-environment-setup/platforms/codex/rules/AGENTS.md +14 -8
  132. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/deep-research/SKILL.md +89 -0
  133. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/deep-research/evals/assertions.md +17 -0
  134. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/deep-research/evals/evals.json +56 -0
  135. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/deep-research/examples/01-latest-docs-check.md +12 -0
  136. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/deep-research/examples/02-ecosystem-comparison.md +12 -0
  137. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/deep-research/examples/03-research-to-implementation-handoff.md +12 -0
  138. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/deep-research/references/comparison-checklist.md +57 -0
  139. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/deep-research/references/research-output.md +69 -0
  140. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/deep-research/references/source-ladder.md +81 -0
  141. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/stitch/SKILL.md +87 -0
  142. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/stitch/evals/assertions.md +45 -0
  143. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/stitch/evals/evals.json +68 -0
  144. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/stitch/examples/01-new-screen.md +13 -0
  145. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/stitch/examples/02-update-existing-screen.md +13 -0
  146. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/stitch/examples/03-mobile-handoff.md +13 -0
  147. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/stitch/examples/04-prompt-enhancement.md +21 -0
  148. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/stitch/examples/05-design-sync-loop.md +16 -0
  149. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/stitch/references/implementation-patterns.md +20 -0
  150. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/stitch/references/platform-setup.md +46 -0
  151. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/stitch/references/update-diff-workflow.md +23 -0
  152. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/create.md +3 -2
  153. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/mobile.md +4 -3
  154. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/onboard.md +3 -3
  155. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/orchestrate.md +2 -2
  156. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/plan.md +4 -4
  157. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/frontend-specialist.md +6 -2
  158. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/mobile-developer.md +6 -2
  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 +2 -1
  163. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-backend.prompt.md +2 -1
  164. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-create.prompt.md +2 -1
  165. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-database.prompt.md +2 -1
  166. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-debug.prompt.md +2 -1
  167. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-devops.prompt.md +2 -1
  168. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-implement-track.prompt.md +2 -1
  169. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-migrate.prompt.md +2 -1
  170. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-mobile.prompt.md +2 -1
  171. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-onboard.prompt.md +2 -1
  172. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-orchestrate.prompt.md +2 -1
  173. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-plan.prompt.md +2 -1
  174. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-refactor.prompt.md +2 -1
  175. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-release.prompt.md +2 -1
  176. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-review.prompt.md +2 -1
  177. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-security.prompt.md +2 -1
  178. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-test.prompt.md +2 -1
  179. package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-vercel.prompt.md +2 -1
  180. package/workflows/workflows/agent-environment-setup/platforms/copilot/rules/copilot-instructions.md +14 -8
  181. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/deep-research/SKILL.md +94 -0
  182. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/deep-research/evals/assertions.md +17 -0
  183. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/deep-research/evals/evals.json +56 -0
  184. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/deep-research/examples/01-latest-docs-check.md +12 -0
  185. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/deep-research/examples/02-ecosystem-comparison.md +12 -0
  186. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/deep-research/examples/03-research-to-implementation-handoff.md +12 -0
  187. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/deep-research/references/comparison-checklist.md +57 -0
  188. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/deep-research/references/research-output.md +69 -0
  189. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/deep-research/references/source-ladder.md +81 -0
  190. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/skills_index.json +58 -0
  191. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/stitch/SKILL.md +92 -0
  192. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/stitch/evals/assertions.md +45 -0
  193. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/stitch/evals/evals.json +68 -0
  194. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/stitch/examples/01-new-screen.md +13 -0
  195. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/stitch/examples/02-update-existing-screen.md +13 -0
  196. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/stitch/examples/03-mobile-handoff.md +13 -0
  197. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/stitch/examples/04-prompt-enhancement.md +21 -0
  198. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/stitch/examples/05-design-sync-loop.md +16 -0
  199. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/stitch/references/implementation-patterns.md +20 -0
  200. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/stitch/references/platform-setup.md +46 -0
  201. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/stitch/references/update-diff-workflow.md +23 -0
  202. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/create.md +3 -2
  203. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/mobile.md +4 -3
  204. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/onboard.md +3 -3
  205. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/orchestrate.md +2 -2
  206. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/plan.md +4 -4
  207. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/accessibility.toml +2 -0
  208. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/backend.toml +2 -0
  209. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/create.toml +2 -0
  210. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/database.toml +2 -0
  211. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/debug.toml +2 -0
  212. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/devops.toml +2 -0
  213. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/implement-track.toml +2 -0
  214. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/migrate.toml +2 -0
  215. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/mobile.toml +2 -0
  216. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/onboard.toml +2 -0
  217. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/orchestrate.toml +2 -0
  218. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/plan.toml +2 -0
  219. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/refactor.toml +2 -0
  220. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/release.toml +2 -0
  221. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/review.toml +2 -0
  222. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/security.toml +2 -0
  223. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/test.toml +2 -0
  224. package/workflows/workflows/agent-environment-setup/platforms/gemini/commands/vercel.toml +2 -0
  225. package/workflows/workflows/agent-environment-setup/platforms/gemini/rules/GEMINI.md +14 -8
  226. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/deep-research/SKILL.md +89 -0
  227. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/deep-research/evals/assertions.md +17 -0
  228. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/deep-research/evals/evals.json +56 -0
  229. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/deep-research/examples/01-latest-docs-check.md +12 -0
  230. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/deep-research/examples/02-ecosystem-comparison.md +12 -0
  231. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/deep-research/examples/03-research-to-implementation-handoff.md +12 -0
  232. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/deep-research/references/comparison-checklist.md +57 -0
  233. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/deep-research/references/research-output.md +69 -0
  234. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/deep-research/references/source-ladder.md +81 -0
  235. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/stitch/SKILL.md +87 -0
  236. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/stitch/evals/assertions.md +45 -0
  237. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/stitch/evals/evals.json +68 -0
  238. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/stitch/examples/01-new-screen.md +13 -0
  239. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/stitch/examples/02-update-existing-screen.md +13 -0
  240. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/stitch/examples/03-mobile-handoff.md +13 -0
  241. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/stitch/examples/04-prompt-enhancement.md +21 -0
  242. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/stitch/examples/05-design-sync-loop.md +16 -0
  243. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/stitch/references/implementation-patterns.md +20 -0
  244. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/stitch/references/platform-setup.md +46 -0
  245. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/stitch/references/update-diff-workflow.md +23 -0
  246. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/create.md +3 -2
  247. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/mobile.md +4 -3
  248. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/onboard.md +3 -3
  249. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/orchestrate.md +2 -2
  250. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/plan.md +4 -4
  251. package/workflows/workflows/agent-environment-setup/shared/agents/frontend-specialist.md +10 -2
  252. package/workflows/workflows/agent-environment-setup/shared/agents/mobile-developer.md +6 -2
  253. package/workflows/workflows/agent-environment-setup/shared/agents/orchestrator.md +2 -1
  254. package/workflows/workflows/agent-environment-setup/shared/agents/project-planner.md +2 -1
  255. package/workflows/workflows/agent-environment-setup/shared/agents/researcher.md +5 -1
  256. package/workflows/workflows/agent-environment-setup/shared/rules/STEERING.md +44 -13
  257. package/workflows/workflows/agent-environment-setup/shared/rules/overrides/claude.md +2 -0
  258. package/workflows/workflows/agent-environment-setup/shared/rules/overrides/gemini.md +20 -0
  259. package/workflows/workflows/agent-environment-setup/shared/workflows/create.md +3 -2
  260. package/workflows/workflows/agent-environment-setup/shared/workflows/mobile.md +4 -3
  261. package/workflows/workflows/agent-environment-setup/shared/workflows/onboard.md +1 -1
  262. package/workflows/workflows/agent-environment-setup/shared/workflows/orchestrate.md +1 -1
  263. package/workflows/workflows/agent-environment-setup/shared/workflows/plan.md +2 -2
@@ -193,6 +193,38 @@
193
193
  "databases"
194
194
  ]
195
195
  },
196
+ {
197
+ "id": "deep-research",
198
+ "package_id": "deep-research",
199
+ "catalog_id": "deep-research",
200
+ "kind": "skill",
201
+ "name": "deep-research",
202
+ "canonical": true,
203
+ "canonical_id": "deep-research",
204
+ "deprecated": false,
205
+ "replaced_by": null,
206
+ "aliases": [],
207
+ "category": "core-operating",
208
+ "layer": "core-operating",
209
+ "maturity": "incubating",
210
+ "tier": "experimental",
211
+ "tags": [
212
+ "core-operating",
213
+ "deep",
214
+ "deep research",
215
+ "deep-research",
216
+ "research"
217
+ ],
218
+ "path": ".github/skills/deep-research/SKILL.md",
219
+ "description": "Use when investigating latest vendor behavior, comparing tools or platforms, verifying claims beyond the repo, or gathering external evidence before implementation.",
220
+ "triggers": [
221
+ "deep-research",
222
+ "deep research",
223
+ "deep",
224
+ "research",
225
+ "core-operating"
226
+ ]
227
+ },
196
228
  {
197
229
  "id": "django-drf",
198
230
  "package_id": "django-drf",
@@ -1747,6 +1779,32 @@
1747
1779
  "workflow-specialists"
1748
1780
  ]
1749
1781
  },
1782
+ {
1783
+ "id": "stitch",
1784
+ "package_id": "stitch",
1785
+ "catalog_id": "stitch",
1786
+ "kind": "skill",
1787
+ "name": "stitch",
1788
+ "canonical": true,
1789
+ "canonical_id": "stitch",
1790
+ "deprecated": false,
1791
+ "replaced_by": null,
1792
+ "aliases": [],
1793
+ "category": "workflow-specialists",
1794
+ "layer": "workflow-specialists",
1795
+ "maturity": "incubating",
1796
+ "tier": "experimental",
1797
+ "tags": [
1798
+ "stitch",
1799
+ "workflow-specialists"
1800
+ ],
1801
+ "path": ".github/skills/stitch/SKILL.md",
1802
+ "description": "Use when implementing or updating UI from Google Stitch artifacts, screen-to-code handoff, design-to-code diffs, or syncing an existing screen with the latest Stitch output through Cubis Foundry MCP.",
1803
+ "triggers": [
1804
+ "stitch",
1805
+ "workflow-specialists"
1806
+ ]
1807
+ },
1750
1808
  {
1751
1809
  "id": "stripe-integration",
1752
1810
  "package_id": "stripe-integration",
@@ -0,0 +1,92 @@
1
+ ---
2
+ name: stitch
3
+ description: Use when implementing or updating UI from Google Stitch artifacts, screen-to-code handoff, design-to-code diffs, or syncing an existing screen with the latest Stitch output through Cubis Foundry MCP.
4
+ license: MIT
5
+ metadata:
6
+ author: cubis-foundry
7
+ version: "1.0"
8
+ compatibility: Claude Code, Codex, GitHub Copilot
9
+ ---
10
+ # Stitch
11
+
12
+ ## Purpose
13
+
14
+ Turn Google Stitch artifacts into production-ready UI changes without guessing the design. This skill is for real Stitch-driven implementation and update work: fetch the latest Stitch artifacts through Cubis Foundry MCP, map them into the repo's actual stack and design system, and apply minimal, accessible changes.
15
+
16
+ ## When to Use
17
+
18
+ - Implementing a new screen from Stitch artifacts
19
+ - Updating an existing screen from refreshed Stitch output
20
+ - Performing design-to-code diffs against local UI
21
+ - Translating Stitch artifacts into React, Next.js, React Native, Flutter, SwiftUI, or another project framework
22
+ - Auditing whether the local screen still matches the current Stitch version
23
+
24
+ ## Instructions
25
+
26
+ 1. **Verify Stitch is reachable before relying on it**. Check `stitch_get_status` and `mcp_gateway_status` first. If Stitch is misconfigured or unavailable, say so clearly and do not invent screen details. See `references/platform-setup.md`.
27
+
28
+ 2. **List enabled Stitch tools before choosing a workflow**. Use `stitch_list_enabled_tools` or the Stitch passthrough namespace to confirm which real upstream tools are available in the current environment.
29
+
30
+ 3. **Normalize the request into a concrete implementation brief**. If the prompt is vague, restate the target screen, destination route or component, framework, responsive expectations, and reuse constraints before editing anything. This follows the same prompt-sharpening idea used in Stitch-first design workflows, but the output here should stay implementation-oriented.
31
+
32
+ 4. **Pull Stitch artifacts before planning implementation**. Fetch the actual screen artifact, code, metadata, and image/snapshot when available. Do not reconstruct the UI from a natural-language guess.
33
+
34
+ 5. **Map Stitch output into the repo's real stack**. Re-express the artifact in the project's framework, routing model, state layer, styling system, and component primitives. Do not paste generated output blindly. See `references/implementation-patterns.md`.
35
+
36
+ 6. **Prefer local component reuse over one-off markup**. If the project already has buttons, cards, typography, layout shells, tokens, or navigation primitives, use them instead of cloning raw Stitch structure.
37
+
38
+ 7. **Keep diffs minimal when updating an existing screen**. Compare the local implementation against the latest Stitch artifact and patch only the changed structure, spacing, copy, tokens, states, and assets. Preserve validated business logic and local architecture. See `references/update-diff-workflow.md`.
39
+
40
+ 8. **Use existing local exports or prior implementations as a diff baseline**. If the repo already contains the target screen or a prior Stitch-derived implementation, compare against that first. Refresh from Stitch when the task requires live parity; otherwise use the local baseline to reduce churn.
41
+
42
+ 9. **Preserve accessibility and interaction states**. Maintain semantic structure, keyboard flow, focus treatment, labels, contrast, loading/error/empty states, and responsive behavior while translating the design.
43
+
44
+ 10. **Call out unavoidable drift explicitly**. If the repo's design system, data model, or framework constraints prevent a literal Stitch match, explain the exact deviation and why it was necessary.
45
+
46
+ 11. **Ask only targeted clarification questions**. Ask when the artifact is ambiguous, multiple Stitch screens plausibly match, or the repo has competing destination surfaces. Otherwise proceed with the best repo-grounded implementation.
47
+
48
+ ## Output Format
49
+
50
+ Deliver:
51
+
52
+ 1. **Artifact summary** — which Stitch artifact or screen was used
53
+ 2. **Implementation plan** — target files, framework mapping, and any deviations
54
+ 3. **Code changes** — minimal production-ready implementation or patch
55
+ 4. **Diff notes** — what changed relative to the prior local UI, if applicable
56
+ 5. **Verification** — accessibility, responsive behavior, and any remaining gaps
57
+
58
+ ## References
59
+
60
+ Load only what the current task requires.
61
+
62
+ | File | Load when |
63
+ | --- | --- |
64
+ | `references/platform-setup.md` | Need to verify Stitch availability, gateway status, profile setup, or secure credential expectations. |
65
+ | `references/implementation-patterns.md` | Need guidance for mapping Stitch artifacts into web/mobile stacks and existing design systems. |
66
+ | `references/update-diff-workflow.md` | Updating an existing implementation from revised Stitch artifacts or running a UI diff workflow. |
67
+
68
+ ## Examples
69
+
70
+ Use these when the task closely matches the example shape.
71
+
72
+ | File | Use when |
73
+ | --- | --- |
74
+ | `examples/01-new-screen.md` | Creating a new screen from Stitch output. |
75
+ | `examples/02-update-existing-screen.md` | Patching an existing screen from updated Stitch artifacts. |
76
+ | `examples/03-mobile-handoff.md` | Translating Stitch into a mobile framework or native stack. |
77
+ | `examples/04-prompt-enhancement.md` | Turning a vague Stitch request into a concrete implementation brief before coding. |
78
+ | `examples/05-design-sync-loop.md` | Running an iterative Stitch refresh-and-patch loop for an existing product surface. |
79
+
80
+ ## Copilot Stitch Flow
81
+
82
+ - Treat the user prompt itself as the skill argument. Restate the target screen, framework, and reuse constraints before editing code.
83
+ - Pull extra context from the mirrored references when needed, for example `#file:references/platform-setup.md` and `#file:references/update-diff-workflow.md`.
84
+ - Keep the task inline: verify Foundry gateway access from workspace `.vscode/mcp.json`, fetch the Stitch artifact, then apply a minimal repo-native patch without assuming subagents or custom tool restrictions.
85
+
86
+ ## Copilot Platform Notes
87
+
88
+ - Skill files are stored under `.github/prompts/` (prompt files) and `.github/instructions/` (instruction files).
89
+ - Copilot does not support subagent spawning — all skill guidance executes within the current conversation context.
90
+ - User arguments are provided as natural language input in the prompt, not through a `$ARGUMENTS` variable.
91
+ - Frontmatter keys `context`, `agent`, and `allowed-tools` are not supported; guidance is advisory only.
92
+ - Reference files can be included via `#file:references/<name>.md` syntax in Copilot Chat.
@@ -0,0 +1,45 @@
1
+ # Stitch Eval Assertions
2
+
3
+ ## Eval 1: New Screen From Stitch Artifact
4
+
5
+ This eval checks the default Stitch-first implementation loop for a new web screen: verify availability, inspect enabled tools, fetch the real artifact, then map it into the current stack and design system.
6
+
7
+ ### Assertions
8
+
9
+ | # | Type | What it checks | Why it matters |
10
+ | --- | --- | --- | --- |
11
+ | 1 | contains | `stitch_get_status` | A Stitch workflow that does not verify reachability first can fabricate screen details or assume the wrong profile. |
12
+ | 2 | contains | `mcp_gateway_status` | Cubis Foundry is the client-facing runtime, so the skill must confirm the MCP gateway is healthy before depending on Stitch passthrough tools. |
13
+ | 3 | contains | `stitch_list_enabled_tools` | Stitch environments can expose different upstream capabilities; the skill should discover those instead of hardcoding an assumed toolset. |
14
+ | 4 | pattern | `PageShell|Card|Button|design system|token` | The implementation must reuse the repo's existing primitives or tokens rather than dumping raw generated markup into production. |
15
+ | 5 | pattern | `responsive|mobile|desktop|accessib` | Production-ready Stitch usage still has to preserve accessibility and responsive behavior. |
16
+
17
+ ### What a passing response looks like
18
+
19
+ - Starts with Stitch and gateway preflight instead of guessing the artifact.
20
+ - Mentions enabled Stitch tool discovery before choosing a retrieval path.
21
+ - Maps the design into the existing Next.js route and shared primitives.
22
+ - Calls out responsive and accessibility verification as part of the implementation.
23
+
24
+ ---
25
+
26
+ ## Eval 2: Minimal-Diff Stitch Sync For Existing Screen
27
+
28
+ This eval checks the update workflow: use the latest Stitch artifact as a diff source, preserve working local logic, and patch only the changed UI surface in a mobile implementation.
29
+
30
+ ### Assertions
31
+
32
+ | # | Type | What it checks | Why it matters |
33
+ | --- | --- | --- | --- |
34
+ | 1 | contains | `stitch_get_status` | The skill must verify that the refreshed Stitch artifact is actually reachable before claiming design parity. |
35
+ | 2 | contains | `stitch_list_enabled_tools` | Tool discovery matters for update flows too, especially when comparing local UI against the current Stitch surface. |
36
+ | 3 | pattern | `minimal diff|patch only|changed only|diff` | Refreshing from Stitch should not default to a full rewrite when an implementation already exists. |
37
+ | 4 | pattern | `analytics|feature flag|business logic|preserve` | Existing instrumentation and product logic are usually validated already and should survive the UI sync. |
38
+ | 5 | pattern | `React Native|mobile|component|accessib|token` | The final patch must respect the target mobile stack and retain design-system and accessibility quality. |
39
+
40
+ ### What a passing response looks like
41
+
42
+ - Treats Stitch as the source of truth for changed UI details, not for reauthoring the whole screen.
43
+ - Preserves analytics hooks, feature flags, and business logic.
44
+ - Describes a targeted patch path in React Native or another mobile stack.
45
+ - Mentions accessibility, component reuse, and design-token consistency in the final implementation notes.
@@ -0,0 +1,68 @@
1
+ [
2
+ {
3
+ "id": "stitch-eval-01",
4
+ "name": "New screen from Stitch artifact",
5
+ "description": "Validate that the skill starts with Stitch and gateway preflight, pulls real Stitch artifacts, and maps them into the existing web stack instead of copying raw generated output.",
6
+ "prompt": "Implement a new account overview screen for a Next.js app from the latest Google Stitch artifact. The app already has `PageShell`, `Card`, `Button`, and tokenized typography primitives. Put the screen at `/account`, support desktop and mobile layouts, and keep the implementation aligned with the existing design system instead of pasting raw generated markup.",
7
+ "assertions": [
8
+ {
9
+ "type": "contains",
10
+ "value": "stitch_get_status",
11
+ "description": "Must verify Stitch availability before relying on any artifact details."
12
+ },
13
+ {
14
+ "type": "contains",
15
+ "value": "mcp_gateway_status",
16
+ "description": "Must check Cubis Foundry MCP gateway status so the skill confirms Stitch passthrough is actually reachable."
17
+ },
18
+ {
19
+ "type": "contains",
20
+ "value": "stitch_list_enabled_tools",
21
+ "description": "Must inspect enabled Stitch tools before choosing which upstream artifact workflow to use."
22
+ },
23
+ {
24
+ "type": "pattern",
25
+ "value": "PageShell|Card|Button|design system|token",
26
+ "description": "Must map the Stitch output into the repo's existing primitives or token system rather than cloning raw one-off markup."
27
+ },
28
+ {
29
+ "type": "pattern",
30
+ "value": "responsive|mobile|desktop|accessib",
31
+ "description": "Must preserve responsive behavior and accessibility as part of the production implementation."
32
+ }
33
+ ]
34
+ },
35
+ {
36
+ "id": "stitch-eval-02",
37
+ "name": "Minimal-diff Stitch sync for existing screen",
38
+ "description": "Validate that the skill treats refreshed Stitch output as a diff input, preserves local business logic, and translates the update into the destination mobile stack.",
39
+ "prompt": "Update an existing React Native settings screen from refreshed Google Stitch output. Preserve analytics hooks, feature flags, and business logic already in the app. Only patch the visual and structural differences between the current local screen and the latest Stitch artifact, and keep the final result accessible and consistent with the app's existing components.",
40
+ "assertions": [
41
+ {
42
+ "type": "contains",
43
+ "value": "stitch_get_status",
44
+ "description": "Must start with Stitch reachability checks before claiming parity with the latest artifact."
45
+ },
46
+ {
47
+ "type": "contains",
48
+ "value": "stitch_list_enabled_tools",
49
+ "description": "Must confirm which Stitch passthrough tools are enabled for the current environment."
50
+ },
51
+ {
52
+ "type": "pattern",
53
+ "value": "minimal diff|patch only|changed only|diff",
54
+ "description": "Must frame the work as a minimal patch against the existing implementation rather than a full rewrite."
55
+ },
56
+ {
57
+ "type": "pattern",
58
+ "value": "analytics|feature flag|business logic|preserve",
59
+ "description": "Must explicitly preserve validated local logic while updating only the UI surface."
60
+ },
61
+ {
62
+ "type": "pattern",
63
+ "value": "React Native|mobile|component|accessib|token",
64
+ "description": "Must translate the Stitch artifact into the destination mobile stack with accessibility and design-system awareness."
65
+ }
66
+ ]
67
+ }
68
+ ]
@@ -0,0 +1,13 @@
1
+ # Example: New Screen From Stitch
2
+
3
+ Prompt shape:
4
+
5
+ > Use Stitch to find the "Billing Overview" screen, fetch the latest artifacts, and implement it in my Next.js app using the existing design system. Keep accessibility and responsive behavior intact.
6
+
7
+ Expected workflow:
8
+
9
+ 1. Confirm Stitch is available with `stitch_get_status` and `stitch_list_enabled_tools`.
10
+ 2. Fetch the target screen artifact.
11
+ 3. Identify the destination route, layout shell, and shared components in the repo.
12
+ 4. Implement the screen with project tokens/components instead of raw generated markup.
13
+ 5. Summarize any intentional deviations from Stitch.
@@ -0,0 +1,13 @@
1
+ # Example: Update Existing Screen
2
+
3
+ Prompt shape:
4
+
5
+ > Re-fetch the "Profile Settings" Stitch screen and patch my existing implementation in `app/settings/profile/page.tsx`. Only update the parts that changed.
6
+
7
+ Expected workflow:
8
+
9
+ 1. Pull the refreshed Stitch artifact first.
10
+ 2. Compare the local screen against the latest design.
11
+ 3. Apply a minimal diff to structure, tokens, copy, or states.
12
+ 4. Preserve working local logic and component boundaries.
13
+ 5. Report what changed and any remaining drift.
@@ -0,0 +1,13 @@
1
+ # Example: Mobile Handoff
2
+
3
+ Prompt shape:
4
+
5
+ > Use Stitch to implement the "Trip Details" screen in React Native. Match the design intent, but keep it idiomatic to the existing mobile app.
6
+
7
+ Expected workflow:
8
+
9
+ 1. Verify Stitch availability and fetch the target artifact.
10
+ 2. Map the layout into the app's mobile navigation and component structure.
11
+ 3. Reuse tokens, spacing, and shared mobile primitives.
12
+ 4. Preserve safe areas, touch targets, text scaling, and loading/error states.
13
+ 5. Document any differences between the Stitch source and the mobile implementation.
@@ -0,0 +1,21 @@
1
+ # Example: Prompt Enhancement Before Implementation
2
+
3
+ Prompt shape:
4
+
5
+ > Use Stitch to make the dashboard better and more polished.
6
+
7
+ Improved internal brief before touching code:
8
+
9
+ 1. Target surface: existing dashboard landing page.
10
+ 2. Framework: preserve the repo's current web stack and component primitives.
11
+ 3. Scope: refresh layout structure, spacing, hierarchy, and states from the latest Stitch artifact.
12
+ 4. Reuse constraints: keep existing navigation, data plumbing, and validated business logic.
13
+ 5. Quality bar: preserve accessibility, responsive behavior, and token usage.
14
+
15
+ Expected workflow:
16
+
17
+ 1. Rewrite the vague request into a concrete implementation brief like the one above.
18
+ 2. Verify Stitch availability with `stitch_get_status`, `mcp_gateway_status`, and `stitch_list_enabled_tools`.
19
+ 3. Fetch the matching Stitch artifact instead of guessing which screen the user meant.
20
+ 4. Patch the local dashboard with minimal diffs.
21
+ 5. Summarize the exact changes and any unavoidable drift from Stitch.
@@ -0,0 +1,16 @@
1
+ # Example: Iterative Design Sync Loop
2
+
3
+ Prompt shape:
4
+
5
+ > Re-sync the account settings screen from Stitch, patch only the UI diff, and leave the saved form logic intact.
6
+
7
+ Expected workflow:
8
+
9
+ 1. Verify the Foundry gateway and Stitch tool availability first.
10
+ 2. Identify the existing local settings screen and use it as the current diff baseline.
11
+ 3. Fetch the latest Stitch artifact for the matching settings screen.
12
+ 4. Compare local UI structure, spacing, copy, states, and assets against the refreshed Stitch artifact.
13
+ 5. Apply the smallest patch that restores visual parity while preserving the repo's routing, validation, and submission logic.
14
+ 6. Report what changed in this pass and what the next Stitch refresh should check if the screen evolves again.
15
+
16
+ This pattern is intentionally iterative: treat each Stitch refresh as a controlled sync pass, not a full rewrite.
@@ -0,0 +1,20 @@
1
+ # Stitch Implementation Patterns
2
+
3
+ ## Web stacks
4
+
5
+ - Translate layout intent first: shell, sections, cards, navigation, and hierarchy.
6
+ - Reuse the repo's token layer, typography scale, spacing system, and component primitives.
7
+ - Prefer existing app-shell conventions, routing boundaries, and data-loading patterns over literal generated structure.
8
+ - Preserve semantic HTML and keyboard/focus behavior.
9
+
10
+ ## Mobile stacks
11
+
12
+ - Preserve layout rhythm, states, and information hierarchy rather than copying web-specific markup.
13
+ - Map Stitch components into platform-native primitives such as React Native components, Flutter widgets, or SwiftUI views.
14
+ - Respect platform navigation, safe areas, typography scaling, and gesture behavior.
15
+
16
+ ## Design system mapping
17
+
18
+ - Convert raw visual values into the project's design tokens.
19
+ - Reuse shared primitives before introducing new component variants.
20
+ - If a missing primitive blocks fidelity, add the smallest reusable abstraction instead of a screen-local workaround.
@@ -0,0 +1,46 @@
1
+ # Stitch Platform Setup
2
+
3
+ ## Verification order
4
+
5
+ 1. Run `stitch_get_status` to confirm the active profile, URL, env-var alias, and scope.
6
+ 2. Run `mcp_gateway_status` to confirm the Cubis Foundry gateway sees Stitch as available.
7
+ 3. Run `stitch_list_enabled_tools` to confirm the enabled upstream Stitch tools.
8
+
9
+ If any of those fail, stop treating Stitch as authoritative input.
10
+
11
+ ## Credential expectations
12
+
13
+ - Stitch credentials are machine-scoped and should come from `~/.cbx/credentials.env` or an already-exported environment variable.
14
+ - Project files and generated MCP config should never contain raw API keys.
15
+ - The gateway path is the default client-facing path. The local client should connect to `cubis-foundry`, then use the Stitch passthrough tools exposed through that server.
16
+
17
+ ## Client-specific verification
18
+
19
+ Use the platform runtime surface that actually owns the `cubis-foundry` registration:
20
+
21
+ - Codex:
22
+ - project: `.vscode/mcp.json`
23
+ - global: `~/.codex/config.toml`
24
+ - Claude Code:
25
+ - project: `.mcp.json`
26
+ - global: `~/.claude/mcp.json`
27
+ - GitHub Copilot:
28
+ - project: `.vscode/mcp.json`
29
+ - global: `~/.copilot/mcp-config.json`
30
+ - Gemini CLI:
31
+ - project: `.gemini/settings.json`
32
+ - global: `~/.gemini/settings.json`
33
+ - Antigravity:
34
+ - project: `.gemini/settings.json`
35
+ - global: `~/.gemini/settings.json`
36
+
37
+ For every platform, the expected secure model is the same:
38
+
39
+ - client config points at `cubis-foundry`
40
+ - `cbx_config.json` stores the Stitch env-var alias only
41
+ - `~/.cbx/credentials.env` or the live shell environment stores the actual key
42
+
43
+ ## Secure fallback behavior
44
+
45
+ - If Stitch is configured but unavailable, continue only with a repo-grounded fallback and call out that the implementation is not verified against live Stitch artifacts.
46
+ - If a task explicitly requires live Stitch parity, stop and report the configuration/runtime issue instead of guessing.
@@ -0,0 +1,23 @@
1
+ # Stitch Update and Diff Workflow
2
+
3
+ ## Recommended sequence
4
+
5
+ 1. Fetch the latest Stitch artifact for the target screen.
6
+ 2. Identify the current local implementation files before editing anything.
7
+ 3. Compare structure, copy, spacing, tokens, states, assets, and responsive behavior.
8
+ 4. Patch only the deltas that come from Stitch.
9
+ 5. Re-check accessibility and regression risk after the patch.
10
+
11
+ ## Minimal-diff rules
12
+
13
+ - Keep existing data flow, component ownership, and test seams unless Stitch requires a structural change.
14
+ - Avoid replacing an entire screen when a smaller patch will preserve local stability.
15
+ - Preserve local fixes that are unrelated to the new Stitch diff.
16
+
17
+ ## Report drift explicitly
18
+
19
+ If you keep a local deviation from Stitch, document:
20
+
21
+ - what differs
22
+ - why the local version stays different
23
+ - whether the difference is architectural, product-driven, or temporary
@@ -26,8 +26,9 @@ Use this for net-new implementation after design is stable.
26
26
  ## Skill Routing
27
27
 
28
28
  - Primary skills: `typescript-best-practices`, `javascript-best-practices`, `python-best-practices`, `golang-best-practices`, `java-best-practices`, `csharp-best-practices`, `kotlin-best-practices`, `rust-best-practices`, `php-best-practices`, `php-best-practices`, `rust-best-practices`, `rust-best-practices`, `expo-app`, `swift-best-practices`
29
- - Supporting skills (optional): `api-design`, `api-design`, `javascript-best-practices`, `nestjs`, `fastapi`, `api-design`, `drizzle-orm`, `database-design`, `mcp-server-builder`, `react`, `react`, `nextjs`, `frontend-design`, `frontend-design`, `frontend-design`, `performance-testing`, `skill-creator`, `stripe-integration`, `ci-cd-pipeline`, `frontend-design`
29
+ - Supporting skills (optional): `api-design`, `api-design`, `javascript-best-practices`, `nestjs`, `fastapi`, `api-design`, `drizzle-orm`, `database-design`, `mcp-server-builder`, `stitch`, `react`, `react`, `nextjs`, `frontend-design`, `frontend-design`, `frontend-design`, `performance-testing`, `skill-creator`, `stripe-integration`, `ci-cd-pipeline`, `frontend-design`
30
30
  - 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
+ - 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.
31
32
 
32
33
  ## Workflow steps
33
34
 
@@ -49,7 +50,7 @@ CREATE_WORKFLOW_RESULT:
49
50
  primary_agent: orchestrator
50
51
  supporting_agents: [backend-specialist?, frontend-specialist?, mobile-developer?, test-engineer?]
51
52
  primary_skills: [<dominant-language-skill>]
52
- supporting_skills: [<framework-specific-skills-used>]
53
+ supporting_skills: [stitch?, <framework-specific-skills-used>]
53
54
  implemented_scope:
54
55
  summary: <string>
55
56
  changed_artifacts: [<path-or-artifact>]
@@ -8,7 +8,7 @@ triggers: ["mobile", "flutter", "ios", "android", "navigation"]
8
8
 
9
9
  ## When to use
10
10
 
11
- Use this for mobile app development, Flutter architecture, native integrations, or platform-specific behavior.
11
+ Use this for mobile app development, Flutter architecture, Stitch-driven mobile screen handoff, native integrations, or platform-specific behavior.
12
12
 
13
13
  ## Routing
14
14
 
@@ -24,8 +24,9 @@ Use this for mobile app development, Flutter architecture, native integrations,
24
24
  ## Skill Routing
25
25
 
26
26
  - Primary skills: `expo-app`, `react-native`
27
- - Supporting skills (optional): `frontend-design`, `expo-app`, `expo-app`, `expo-app`, `expo-app`, `expo-app`, `expo-app`, `expo-app`, `expo-app`, `expo-app`, `swift-best-practices`, `kotlin-best-practices`
27
+ - Supporting skills (optional): `stitch`, `frontend-design`, `expo-app`, `expo-app`, `expo-app`, `expo-app`, `expo-app`, `expo-app`, `expo-app`, `expo-app`, `expo-app`, `swift-best-practices`, `kotlin-best-practices`
28
28
  - Start with `expo-app` for feature implementation and `react-native` for UX patterns. Add framework-specific Flutter skill when applicable. Add `frontend-design` for multi-language support.
29
+ - When the request starts from Stitch artifacts or a design sync, load `stitch` first and then pair it with `react-native` plus the narrowest mobile implementation skill for the target stack.
29
30
 
30
31
  ## Workflow steps
31
32
 
@@ -50,7 +51,7 @@ MOBILE_WORKFLOW_RESULT:
50
51
  primary_agent: mobile-developer
51
52
  supporting_agents: [frontend-specialist?, test-engineer?]
52
53
  primary_skills: [expo-app, react-native]
53
- supporting_skills: [frontend-design?, expo-app?, expo-app?, <flutter-specific>?]
54
+ supporting_skills: [stitch?, frontend-design?, expo-app?, expo-app?, <flutter-specific>?]
54
55
  implementation:
55
56
  platforms: [ios, android]
56
57
  architecture_decisions: [<string>]
@@ -30,9 +30,9 @@ Use this when joining a new project, exploring an unfamiliar codebase, or prepar
30
30
 
31
31
  ## Skill Routing
32
32
 
33
- - Primary skills: `architecture-doc`, `system-design`
33
+ - Primary skills: `deep-research`, `system-design`
34
34
  - Supporting skills (optional): `system-design`, `database-design`, `typescript-best-practices`, `javascript-best-practices`, `python-best-practices`
35
- - Start with `architecture-doc` for systematic exploration and `system-design` for architecture mapping. Add `system-design` for undocumented systems.
35
+ - Start with `deep-research` for systematic exploration and `system-design` for architecture mapping. Add `system-design` for undocumented systems. Prefer repo evidence first; use external sources only when setup or dependency behavior cannot be confirmed locally.
36
36
 
37
37
  ## Workflow steps
38
38
 
@@ -55,7 +55,7 @@ Use this when joining a new project, exploring an unfamiliar codebase, or prepar
55
55
  ONBOARD_WORKFLOW_RESULT:
56
56
  primary_agent: researcher
57
57
  supporting_agents: [code-archaeologist?, backend-specialist?, frontend-specialist?]
58
- primary_skills: [architecture-doc, system-design]
58
+ primary_skills: [deep-research, system-design]
59
59
  supporting_skills: [system-design?, database-design?]
60
60
  project_overview:
61
61
  purpose: <string>
@@ -24,8 +24,8 @@ Use this when a task spans multiple domains (backend + frontend, security + infr
24
24
  ## Skill Routing
25
25
 
26
26
  - Primary skills: `system-design`, `api-design`
27
- - Supporting skills (optional): `database-design`, `architecture-doc`, `mcp-server-builder`, `tech-doc`, `prompt-engineering`, `skill-creator`
28
- - Start with `system-design` for system design coordination and `api-design` for integration contracts. Add supporting skills based on the coordination challenge.
27
+ - Supporting skills (optional): `database-design`, `deep-research`, `mcp-server-builder`, `tech-doc`, `prompt-engineering`, `skill-creator`
28
+ - Start with `system-design` for system design coordination and `api-design` for integration contracts. Add `deep-research` before implementation when the coordination challenge depends on fresh external facts or public comparison.
29
29
 
30
30
  ## Workflow steps
31
31
 
@@ -36,13 +36,13 @@ Use this when starting a new feature, project, or significant change that needs
36
36
  ## Skill Routing
37
37
 
38
38
  - Primary skills: `system-design`, `api-design`
39
- - Supporting skills (optional): `database-design`, `architecture-doc`, `mcp-server-builder`, `tech-doc`, `prompt-engineering`, `skill-creator`
40
- - Start with `system-design` for system design and `api-design` for API contracts. Add `database-design` when data modeling is central, `architecture-doc` when external knowledge is needed.
39
+ - Supporting skills (optional): `database-design`, `deep-research`, `mcp-server-builder`, `tech-doc`, `prompt-engineering`, `skill-creator`
40
+ - Start with `system-design` for system design and `api-design` for API contracts. Add `database-design` when data modeling is central, `deep-research` when fresh external knowledge or public comparison is needed.
41
41
 
42
42
  ## Workflow steps
43
43
 
44
44
  1. Clarify scope, success criteria, and constraints.
45
- 2. Research existing patterns and dependencies.
45
+ 2. Research existing patterns and dependencies, starting in-repo and escalating to `deep-research` only when outside evidence is required.
46
46
  3. Decompose into tasks with ownership and dependencies.
47
47
  4. Define interfaces, contracts, and failure modes.
48
48
  5. Produce acceptance criteria for each milestone.
@@ -62,7 +62,7 @@ PLAN_WORKFLOW_RESULT:
62
62
  primary_agent: project-planner
63
63
  supporting_agents: [orchestrator?, backend-specialist?, frontend-specialist?, database-architect?]
64
64
  primary_skills: [system-design, api-design]
65
- supporting_skills: [database-design?, architecture-doc?, mcp-server-builder?]
65
+ supporting_skills: [database-design?, deep-research?, mcp-server-builder?]
66
66
  plan:
67
67
  scope_summary: <string>
68
68
  tasks:
@@ -7,6 +7,8 @@ Execution contract:
7
7
  2. Confirm the request fits the workflow's "When to use" section.
8
8
  3. Execute according to "Workflow steps" and apply "Context notes".
9
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.
10
12
 
11
13
  If command arguments are provided, treat them as additional user context.
12
14
  '''
@@ -7,6 +7,8 @@ Execution contract:
7
7
  2. Confirm the request fits the workflow's "When to use" section.
8
8
  3. Execute according to "Workflow steps" and apply "Context notes".
9
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.
10
12
 
11
13
  If command arguments are provided, treat them as additional user context.
12
14
  '''
@@ -7,6 +7,8 @@ Execution contract:
7
7
  2. Confirm the request fits the workflow's "When to use" section.
8
8
  3. Execute according to "Workflow steps" and apply "Context notes".
9
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.
10
12
 
11
13
  If command arguments are provided, treat them as additional user context.
12
14
  '''
@@ -7,6 +7,8 @@ Execution contract:
7
7
  2. Confirm the request fits the workflow's "When to use" section.
8
8
  3. Execute according to "Workflow steps" and apply "Context notes".
9
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.
10
12
 
11
13
  If command arguments are provided, treat them as additional user context.
12
14
  '''
@@ -7,6 +7,8 @@ Execution contract:
7
7
  2. Confirm the request fits the workflow's "When to use" section.
8
8
  3. Execute according to "Workflow steps" and apply "Context notes".
9
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.
10
12
 
11
13
  If command arguments are provided, treat them as additional user context.
12
14
  '''
@@ -7,6 +7,8 @@ Execution contract:
7
7
  2. Confirm the request fits the workflow's "When to use" section.
8
8
  3. Execute according to "Workflow steps" and apply "Context notes".
9
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.
10
12
 
11
13
  If command arguments are provided, treat them as additional user context.
12
14
  '''