@cubis/foundry 0.3.75 → 0.3.76

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 (115) 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 +348 -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/package.json +4 -3
  11. package/src/cli/commands/register.ts +1 -1
  12. package/src/cli/core.ts +429 -267
  13. package/src/cli/init/execute.ts +5 -9
  14. package/src/cli/workflows/commands.ts +2 -2
  15. package/workflows/skills/_schema/skill-platform-attributes.json +7 -0
  16. package/workflows/skills/generated/skill-audit.json +11 -2
  17. package/workflows/skills/generated/skill-catalog.json +30 -4
  18. package/workflows/skills/skills_index.json +26 -0
  19. package/workflows/skills/stitch/SKILL.md +79 -0
  20. package/workflows/skills/stitch/evals/assertions.md +45 -0
  21. package/workflows/skills/stitch/evals/evals.json +68 -0
  22. package/workflows/skills/stitch/examples/01-new-screen.md +13 -0
  23. package/workflows/skills/stitch/examples/02-update-existing-screen.md +13 -0
  24. package/workflows/skills/stitch/examples/03-mobile-handoff.md +13 -0
  25. package/workflows/skills/stitch/examples/04-prompt-enhancement.md +21 -0
  26. package/workflows/skills/stitch/examples/05-design-sync-loop.md +16 -0
  27. package/workflows/skills/stitch/references/implementation-patterns.md +20 -0
  28. package/workflows/skills/stitch/references/platform-setup.md +46 -0
  29. package/workflows/skills/stitch/references/update-diff-workflow.md +23 -0
  30. package/workflows/workflows/agent-environment-setup/generated/route-manifest.json +15 -7
  31. package/workflows/workflows/agent-environment-setup/manifest.json +5 -0
  32. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/frontend-specialist.md +10 -2
  33. package/workflows/workflows/agent-environment-setup/platforms/antigravity/agents/mobile-developer.md +6 -2
  34. package/workflows/workflows/agent-environment-setup/platforms/antigravity/rules/GEMINI.md +1 -0
  35. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/stitch/SKILL.md +87 -0
  36. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/stitch/evals/assertions.md +45 -0
  37. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/stitch/evals/evals.json +68 -0
  38. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/stitch/examples/01-new-screen.md +13 -0
  39. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/stitch/examples/02-update-existing-screen.md +13 -0
  40. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/stitch/examples/03-mobile-handoff.md +13 -0
  41. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/stitch/examples/04-prompt-enhancement.md +21 -0
  42. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/stitch/examples/05-design-sync-loop.md +16 -0
  43. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/stitch/references/implementation-patterns.md +20 -0
  44. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/stitch/references/platform-setup.md +46 -0
  45. package/workflows/workflows/agent-environment-setup/platforms/antigravity/skills/stitch/references/update-diff-workflow.md +23 -0
  46. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/create.md +3 -2
  47. package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/mobile.md +4 -3
  48. package/workflows/workflows/agent-environment-setup/platforms/claude/agents/frontend-specialist.md +10 -2
  49. package/workflows/workflows/agent-environment-setup/platforms/claude/agents/mobile-developer.md +6 -2
  50. package/workflows/workflows/agent-environment-setup/platforms/claude/rules/CLAUDE.md +1 -0
  51. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/skills_index.json +26 -0
  52. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/stitch/SKILL.md +93 -0
  53. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/stitch/evals/assertions.md +45 -0
  54. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/stitch/evals/evals.json +68 -0
  55. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/stitch/examples/01-new-screen.md +13 -0
  56. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/stitch/examples/02-update-existing-screen.md +13 -0
  57. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/stitch/examples/03-mobile-handoff.md +13 -0
  58. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/stitch/examples/04-prompt-enhancement.md +21 -0
  59. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/stitch/examples/05-design-sync-loop.md +16 -0
  60. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/stitch/references/implementation-patterns.md +20 -0
  61. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/stitch/references/platform-setup.md +46 -0
  62. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/stitch/references/update-diff-workflow.md +23 -0
  63. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/create.md +3 -2
  64. package/workflows/workflows/agent-environment-setup/platforms/claude/workflows/mobile.md +4 -3
  65. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/frontend-specialist.md +10 -2
  66. package/workflows/workflows/agent-environment-setup/platforms/codex/agents/mobile-developer.md +6 -2
  67. package/workflows/workflows/agent-environment-setup/platforms/codex/rules/AGENTS.md +1 -0
  68. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/stitch/SKILL.md +87 -0
  69. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/stitch/evals/assertions.md +45 -0
  70. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/stitch/evals/evals.json +68 -0
  71. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/stitch/examples/01-new-screen.md +13 -0
  72. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/stitch/examples/02-update-existing-screen.md +13 -0
  73. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/stitch/examples/03-mobile-handoff.md +13 -0
  74. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/stitch/examples/04-prompt-enhancement.md +21 -0
  75. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/stitch/examples/05-design-sync-loop.md +16 -0
  76. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/stitch/references/implementation-patterns.md +20 -0
  77. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/stitch/references/platform-setup.md +46 -0
  78. package/workflows/workflows/agent-environment-setup/platforms/codex/skills/stitch/references/update-diff-workflow.md +23 -0
  79. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/create.md +3 -2
  80. package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/mobile.md +4 -3
  81. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/frontend-specialist.md +6 -2
  82. package/workflows/workflows/agent-environment-setup/platforms/copilot/agents/mobile-developer.md +6 -2
  83. package/workflows/workflows/agent-environment-setup/platforms/copilot/rules/copilot-instructions.md +1 -0
  84. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/skills_index.json +26 -0
  85. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/stitch/SKILL.md +92 -0
  86. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/stitch/evals/assertions.md +45 -0
  87. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/stitch/evals/evals.json +68 -0
  88. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/stitch/examples/01-new-screen.md +13 -0
  89. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/stitch/examples/02-update-existing-screen.md +13 -0
  90. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/stitch/examples/03-mobile-handoff.md +13 -0
  91. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/stitch/examples/04-prompt-enhancement.md +21 -0
  92. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/stitch/examples/05-design-sync-loop.md +16 -0
  93. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/stitch/references/implementation-patterns.md +20 -0
  94. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/stitch/references/platform-setup.md +46 -0
  95. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/stitch/references/update-diff-workflow.md +23 -0
  96. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/create.md +3 -2
  97. package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/mobile.md +4 -3
  98. package/workflows/workflows/agent-environment-setup/platforms/gemini/rules/GEMINI.md +1 -0
  99. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/stitch/SKILL.md +87 -0
  100. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/stitch/evals/assertions.md +45 -0
  101. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/stitch/evals/evals.json +68 -0
  102. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/stitch/examples/01-new-screen.md +13 -0
  103. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/stitch/examples/02-update-existing-screen.md +13 -0
  104. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/stitch/examples/03-mobile-handoff.md +13 -0
  105. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/stitch/examples/04-prompt-enhancement.md +21 -0
  106. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/stitch/examples/05-design-sync-loop.md +16 -0
  107. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/stitch/references/implementation-patterns.md +20 -0
  108. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/stitch/references/platform-setup.md +46 -0
  109. package/workflows/workflows/agent-environment-setup/platforms/gemini/skills/stitch/references/update-diff-workflow.md +23 -0
  110. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/create.md +3 -2
  111. package/workflows/workflows/agent-environment-setup/platforms/gemini/workflows/mobile.md +4 -3
  112. package/workflows/workflows/agent-environment-setup/shared/agents/frontend-specialist.md +10 -2
  113. package/workflows/workflows/agent-environment-setup/shared/agents/mobile-developer.md +6 -2
  114. package/workflows/workflows/agent-environment-setup/shared/workflows/create.md +3 -2
  115. package/workflows/workflows/agent-environment-setup/shared/workflows/mobile.md +4 -3
@@ -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>]
@@ -1,11 +1,15 @@
1
1
  ---
2
2
  name: frontend-specialist
3
- description: Senior frontend specialist for React, Next.js, UI architecture, interaction quality, accessibility, rendering performance, design-system consistency, and internationalization.
3
+ description: Senior frontend specialist for React, Next.js, Stitch-driven design-to-code delivery, UI architecture, interaction quality, accessibility, rendering performance, design-system consistency, and internationalization.
4
4
  triggers:
5
5
  [
6
6
  "component",
7
7
  "react",
8
8
  "next",
9
+ "stitch",
10
+ "design-to-code",
11
+ "screen-to-code",
12
+ "ui diff",
9
13
  "ui",
10
14
  "ux",
11
15
  "css",
@@ -18,7 +22,7 @@ triggers:
18
22
  tools: Read, Grep, Glob, Bash, Edit, Write
19
23
  model: inherit
20
24
  maxTurns: 25
21
- skills: react-expert, nextjs-developer, frontend-design, tailwind-patterns, design-system-builder, web-perf, frontend-code-review, react-best-practices, i18n-localization, error-ux-observability, typescript-pro, javascript-pro
25
+ skills: stitch, react-expert, nextjs-developer, frontend-design, tailwind-patterns, design-system-builder, web-perf, frontend-code-review, react-best-practices, i18n-localization, error-ux-observability, typescript-pro, javascript-pro
22
26
  handoffs:
23
27
  - agent: "test-engineer"
24
28
  title: "Test UI Components"
@@ -34,6 +38,7 @@ Build and review frontend systems that stay maintainable under real product pres
34
38
 
35
39
  - Do not call `skill_search` for any skill in the pre-declared list when the task clearly falls into that domain.
36
40
  - Load one primary skill first:
41
+ - `stitch` for Stitch artifacts, design-to-code diffs, screen sync work, and implementation grounded in real Stitch output
37
42
  - `react-expert` for component boundaries, state, and runtime behavior
38
43
  - `react-best-practices` for React performance optimization, patterns, and anti-patterns
39
44
  - `nextjs-developer` for App Router, server/client boundaries, caching, and route behavior
@@ -45,6 +50,7 @@ Build and review frontend systems that stay maintainable under real product pres
45
50
  - `i18n-localization` for RTL support, locale switching, pluralization, and date/number formatting
46
51
  - `error-ux-observability` for error boundary design, user-facing error states, and frontend observability
47
52
  - Add one supporting skill only when the task genuinely crosses concerns.
53
+ - If the request explicitly references Stitch screens, artifacts, UI diffs, or design sync, load `stitch` first and then add the narrowest implementation skill for the actual stack.
48
54
  - Use `skill_validate` before `skill_get`, and use `skill_get_reference` only for the specific sidecar file needed by the current step.
49
55
 
50
56
  ## Skill References
@@ -53,6 +59,7 @@ Load on demand. Do not preload all references.
53
59
 
54
60
  | File | Load when |
55
61
  | ------------------------ | --------------------------------------------------------------------------------------------- |
62
+ | `stitch` | The task starts from Stitch artifacts, design-to-code requests, screen sync, or UI diffs. |
56
63
  | `react-expert` | React runtime behavior, component boundaries, hooks, or client-state design are primary. |
57
64
  | `react-best-practices` | React performance optimization, memoization patterns, or React anti-patterns are the focus. |
58
65
  | `nextjs-developer` | Next.js route behavior, server/client boundaries, caching, or deployment posture are primary. |
@@ -67,6 +74,7 @@ Load on demand. Do not preload all references.
67
74
  ## Operating Stance
68
75
 
69
76
  - Prefer clear state ownership and small client boundaries.
77
+ - When Stitch is the source of truth, fetch and map the real artifact before editing local UI.
70
78
  - Treat accessibility and loading or error states as product correctness, not polish.
71
79
  - Measure performance before optimizing.
72
80
  - Keep one-off product logic out of shared primitives.
@@ -1,10 +1,10 @@
1
1
  ---
2
2
  name: mobile-developer
3
- description: Expert in Flutter delivery and mobile product design for cross-platform apps. Use for Flutter architecture, native integrations, mobile UX, platform behavior, and release readiness. Triggers on mobile, flutter, ios, android, app store, play store, touch UX.
3
+ description: Expert in Flutter delivery and mobile product design for cross-platform apps. Use for Flutter architecture, Stitch-driven mobile handoff, native integrations, mobile UX, platform behavior, and release readiness. Triggers on mobile, flutter, ios, android, app store, play store, touch UX.
4
4
  tools: Read, Grep, Glob, Bash, Edit, Write
5
5
  model: inherit
6
6
  maxTurns: 25
7
- skills: mobile-design, i18n-localization, dart-pro, swift-pro, kotlin-pro, react-expert, debugging-strategies, webapp-testing, typescript-pro, javascript-pro, flutter-design-system, flutter-drift, flutter-feature, flutter-go-router, flutter-offline-sync, flutter-repository, flutter-riverpod, flutter-state-machine, flutter-testing
7
+ skills: stitch, mobile-design, i18n-localization, dart-pro, swift-pro, kotlin-pro, react-expert, debugging-strategies, webapp-testing, typescript-pro, javascript-pro, flutter-design-system, flutter-drift, flutter-feature, flutter-go-router, flutter-offline-sync, flutter-repository, flutter-riverpod, flutter-state-machine, flutter-testing
8
8
  handoffs:
9
9
  - agent: "test-engineer"
10
10
  title: "Test Mobile"
@@ -20,6 +20,7 @@ Build and ship cross-platform mobile apps that feel native and perform reliably.
20
20
 
21
21
  - Do not call `skill_search` for any skill in the pre-declared list when the task clearly falls into those domains.
22
22
  - Load one primary skill first:
23
+ - `stitch` for Stitch-driven mobile screen handoff, design sync, and artifact-grounded UI updates
23
24
  - `mobile-design` for touch psychology, platform-native patterns, iOS/Android design guidelines
24
25
  - `flutter-feature` for feature implementation in Flutter
25
26
  - `flutter-riverpod` for state management with Riverpod
@@ -31,12 +32,14 @@ Build and ship cross-platform mobile apps that feel native and perform reliably.
31
32
  - `flutter-state-machine` for complex state flows
32
33
  - `flutter-repository` for repository pattern and data layer
33
34
  - `i18n-localization` for internationalization, RTL support, and locale handling
35
+ - If the request starts from Stitch artifacts or a design sync, load `stitch` first and then pair it with the narrowest mobile implementation skill for the target stack.
34
36
  - Use `skill_validate` before `skill_get`, and use `skill_get_reference` only for the specific sidecar file needed.
35
37
 
36
38
  ## Skill References
37
39
 
38
40
  | File | Load when |
39
41
  | ----------------------- | -------------------------------------------------------------------- |
42
+ | `stitch` | The task starts from Stitch artifacts, design sync, or screen-to-code handoff. |
40
43
  | `mobile-design` | Touch UX, platform conventions, iOS/Android design guidelines. |
41
44
  | `flutter-feature` | Implementing features, widgets, or screens in Flutter. |
42
45
  | `flutter-riverpod` | State management architecture with Riverpod. |
@@ -52,6 +55,7 @@ Build and ship cross-platform mobile apps that feel native and perform reliably.
52
55
  ## Operating Stance
53
56
 
54
57
  - Respect platform conventions — iOS and Android users expect different behaviors.
58
+ - When work starts from Stitch, translate the artifact into native/mobile patterns instead of copying raw layout output.
55
59
  - Treat touch targets and gesture feedback as correctness, not polish.
56
60
  - Test on real devices for performance-sensitive features.
57
61
  - Design for offline-first when the app may lose connectivity.
@@ -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-pro`, `javascript-pro`, `python-pro`, `golang-pro`, `java-pro`, `csharp-pro`, `kotlin-pro`, `rust-pro`, `php-pro`, `ruby-pro`, `c-pro`, `cpp-pro`, `dart-pro`, `swift-pro`
29
- - Supporting skills (optional): `api-designer`, `api-patterns`, `nodejs-best-practices`, `nestjs-expert`, `fastapi-expert`, `graphql-architect`, `drizzle-expert`, `firebase`, `mcp-builder`, `react-expert`, `react-best-practices`, `nextjs-developer`, `tailwind-patterns`, `frontend-design`, `design-system-builder`, `web-perf`, `skill-creator`, `stripe-best-practices`, `serverless-patterns`, `i18n-localization`
29
+ - Supporting skills (optional): `api-designer`, `api-patterns`, `nodejs-best-practices`, `nestjs-expert`, `fastapi-expert`, `graphql-architect`, `drizzle-expert`, `firebase`, `mcp-builder`, `stitch`, `react-expert`, `react-best-practices`, `nextjs-developer`, `tailwind-patterns`, `frontend-design`, `design-system-builder`, `web-perf`, `skill-creator`, `stripe-best-practices`, `serverless-patterns`, `i18n-localization`
30
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: `flutter-feature`, `mobile-design`
27
- - Supporting skills (optional): `i18n-localization`, `flutter-riverpod`, `flutter-go-router`, `flutter-design-system`, `flutter-testing`, `flutter-drift`, `flutter-offline-sync`, `flutter-state-machine`, `flutter-repository`, `dart-pro`, `swift-pro`, `kotlin-pro`
27
+ - Supporting skills (optional): `stitch`, `i18n-localization`, `flutter-riverpod`, `flutter-go-router`, `flutter-design-system`, `flutter-testing`, `flutter-drift`, `flutter-offline-sync`, `flutter-state-machine`, `flutter-repository`, `dart-pro`, `swift-pro`, `kotlin-pro`
28
28
  - Start with `flutter-feature` for feature implementation and `mobile-design` for UX patterns. Add framework-specific Flutter skill when applicable. Add `i18n-localization` for multi-language support.
29
+ - When the request starts from Stitch artifacts or a design sync, load `stitch` first and then pair it with `mobile-design` 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: [flutter-feature, mobile-design]
53
- supporting_skills: [i18n-localization?, flutter-riverpod?, flutter-testing?, <flutter-specific>?]
54
+ supporting_skills: [stitch?, i18n-localization?, flutter-riverpod?, flutter-testing?, <flutter-specific>?]
54
55
  implementation:
55
56
  platforms: [ios, android]
56
57
  architecture_decisions: [<string>]