Stitch Design Bridge
Use this skill as the Stitch layer in the UI/UX skill system. Stitch is an exploration accelerator, not the central architect, not the final design authority, and not the source of truth.
Role In The System
Default sequence for substantial UI projects:
task-plan-v2-orchestrator
-> ui-ux-llm-product-architect
-> seo-llm-site-architect when public discoverability matters
-> ui-ux-pro-max
-> stitch-design-bridge
-> senior-figma-orchestrator when Figma is involved
-> implementation specialist
-> validation
-> obsidian/wiki context capture for large projects
Stitch belongs after ui-ux-pro-max because Pro Max should define the design intelligence inputs: product type, style candidates, color/typography direction, UX risks, accessibility priorities, and stack guidance. Stitch then explores visual/screen variants under those constraints.
Operating Modes
brief: create a Stitch-ready prompt from project constraints.
variant-plan: define several Stitch exploration directions and success criteria.
review-output: critique Stitch outputs against UX, SEO/LLM, accessibility, brand, and implementation constraints.
figma-handoff: prepare Stitch output for senior-figma-orchestrator.
code-handoff: prepare Stitch output for local implementation.
config-check: check local Stitch API/MCP readiness without printing secrets.
council: run or prepare a senior UI/UX/SEO/LLM council decision when recommendations conflict.
Required Workflow
- Read references/orchestration-contract.md before routing Stitch inside the broader system.
- For prompt generation or output review, read references/prompt-quality-rubric.md.
- For API, MCP, credentials, or external upload decisions, read references/safety-and-api.md.
- Confirm inputs available:
- product/UX brief;
- SEO/LLM constraints when public pages are involved;
ui-ux-pro-max recommendations;
- brand constraints and forbidden directions;
- target output: Stitch prompt, variants, Figma handoff, code handoff, or review.
- If using an external Stitch service, record what data will be sent and require explicit approval for private project data.
- Never include API keys, tokens, cookies, private URLs, private screenshots, or
.env contents in prompts, reports, wiki pages, or task plans.
- Treat Stitch output as a candidate artifact. It must be reviewed before Figma, code, or production use.
API And MCP Credentials
Use environment variables. Do not store credentials in this skill.
Expected variable:
STITCH_API_KEY
Run the config checker when needed:
python3 $CODEX_SKILLS_DIR/stitch-design-bridge/scripts/check_stitch_config.py
The checker reports only presence, likely shape, and redacted metadata. It must not print the full key.
Decision Rules
Stitch may propose:
- visual directions;
- layout variants;
- component arrangements;
- screen-level concepts;
- first-pass code or canvas ideas when available.
Stitch must not override:
- visible facts and business constraints;
- SEO/LLM content architecture;
- accessibility requirements;
- semantic HTML and deterministic action labels;
- security/privacy boundaries;
- Figma design-system tokens without review;
- final implementation validation.
Senior Council Trigger
Use council mode when any of these are true:
- UX wants to simplify content but SEO/LLM needs visible semantic content.
- SEO/LLM wants content density that harms comprehension or conversion.
- Stitch output is visually strong but weak on accessibility, facts, or implementation feasibility.
- Figma design-system constraints conflict with Stitch output.
- A large project changes public pages, Figma, code, and SEO/LLM artifacts in one workflow.
Council roles:
UI/UX lead: journeys, IA, hierarchy, accessibility, interaction quality.
SEO/LLM lead: crawlability, schema, metadata, llms.txt, visible factual content.
Figma lead: design-system fit, variables, components, asset workflow.
Implementation lead: framework feasibility, responsive behavior, validation evidence.
Planning lead: task-plan gates, blockers, alarms, evidence, rollback.
Decision order:
- Security, privacy, legal accuracy, and user safety.
- Accessibility and primary task completion.
- Truthful visible content and product facts.
- Semantic HTML, crawlability, and LLM-readable structure.
- Conversion UX and user comprehension.
- Design-system consistency and implementation maintainability.
- Visual novelty, trend alignment, and Stitch aesthetics.
Output Shapes
Brief Mode
Use assets/stitch-brief.template.md.
Return:
- Stitch prompt;
- input constraints used;
- private data excluded;
- variants requested;
- acceptance criteria;
- required review owners.
Review Mode
Return:
- output reviewed;
- pass/fail against the prompt;
- UX findings;
- SEO/LLM findings;
- accessibility findings;
- design-system/Figma findings;
- implementation risks;
- recommendation: accept, iterate, send to Figma, implement locally, or reject.
Handoff Mode
Return:
- chosen Stitch variant;
- rationale;
- required Figma/code next owner;
- assets or screenshots needed;
- tokens/components to preserve;
- checks before marking done.
Validation
When editing this skill, run:
python3 $CODEX_SKILLS_DIR/.system/skill-creator/scripts/quick_validate.py $CODEX_SKILLS_DIR/stitch-design-bridge
python3 $CODEX_SKILLS_DIR/senior-skill-architect/scripts/lint_production_skill.py $CODEX_SKILLS_DIR/stitch-design-bridge
python3 $CODEX_SKILLS_DIR/stitch-design-bridge/scripts/check_stitch_config.py
python3 -m json.tool $CODEX_SKILLS_DIR/stitch-design-bridge/evals/evals.json >/dev/null
1---2name: stitch-design-bridge3description: Use this skill when a UI/UX project should use Google Stitch or a Stitch MCP/API workflow for rapid AI UI exploration after `ui-ux-pro-max` has produced design intelligence and before Figma/code implementation. This skill turns UX, SEO/LLM, brand, accessibility, and Pro Max constraints into Stitch-ready prompts, evaluates Stitch outputs, prepares Figma/code handoff, checks Stitch API/MCP configuration without exposing secrets, and prevents Stitch from becoming a conflicting source of truth.4---56# Stitch Design Bridge78Use this skill as the Stitch layer in the UI/UX skill system. Stitch is an exploration accelerator, not the central architect, not the final design authority, and not the source of truth.910## Role In The System1112Default sequence for substantial UI projects:1314```text15task-plan-v2-orchestrator16-> ui-ux-llm-product-architect17-> seo-llm-site-architect when public discoverability matters18-> ui-ux-pro-max19-> stitch-design-bridge20-> senior-figma-orchestrator when Figma is involved21-> implementation specialist22-> validation23-> obsidian/wiki context capture for large projects24```2526Stitch belongs after `ui-ux-pro-max` because Pro Max should define the design intelligence inputs: product type, style candidates, color/typography direction, UX risks, accessibility priorities, and stack guidance. Stitch then explores visual/screen variants under those constraints.2728## Operating Modes2930- `brief`: create a Stitch-ready prompt from project constraints.31- `variant-plan`: define several Stitch exploration directions and success criteria.32- `review-output`: critique Stitch outputs against UX, SEO/LLM, accessibility, brand, and implementation constraints.33- `figma-handoff`: prepare Stitch output for `senior-figma-orchestrator`.34- `code-handoff`: prepare Stitch output for local implementation.35- `config-check`: check local Stitch API/MCP readiness without printing secrets.36- `council`: run or prepare a senior UI/UX/SEO/LLM council decision when recommendations conflict.3738## Required Workflow39401. Read [references/orchestration-contract.md](references/orchestration-contract.md) before routing Stitch inside the broader system.412. For prompt generation or output review, read [references/prompt-quality-rubric.md](references/prompt-quality-rubric.md).423. For API, MCP, credentials, or external upload decisions, read [references/safety-and-api.md](references/safety-and-api.md).434. Confirm inputs available:44 - product/UX brief;45 - SEO/LLM constraints when public pages are involved;46 - `ui-ux-pro-max` recommendations;47 - brand constraints and forbidden directions;48 - target output: Stitch prompt, variants, Figma handoff, code handoff, or review.495. If using an external Stitch service, record what data will be sent and require explicit approval for private project data.506. Never include API keys, tokens, cookies, private URLs, private screenshots, or `.env` contents in prompts, reports, wiki pages, or task plans.517. Treat Stitch output as a candidate artifact. It must be reviewed before Figma, code, or production use.5253## API And MCP Credentials5455Use environment variables. Do not store credentials in this skill.5657Expected variable:5859```bash60STITCH_API_KEY61```6263Run the config checker when needed:6465```bash66python3 $CODEX_SKILLS_DIR/stitch-design-bridge/scripts/check_stitch_config.py67```6869The checker reports only presence, likely shape, and redacted metadata. It must not print the full key.7071## Decision Rules7273Stitch may propose:7475- visual directions;76- layout variants;77- component arrangements;78- screen-level concepts;79- first-pass code or canvas ideas when available.8081Stitch must not override:8283- visible facts and business constraints;84- SEO/LLM content architecture;85- accessibility requirements;86- semantic HTML and deterministic action labels;87- security/privacy boundaries;88- Figma design-system tokens without review;89- final implementation validation.9091## Senior Council Trigger9293Use `council` mode when any of these are true:9495- UX wants to simplify content but SEO/LLM needs visible semantic content.96- SEO/LLM wants content density that harms comprehension or conversion.97- Stitch output is visually strong but weak on accessibility, facts, or implementation feasibility.98- Figma design-system constraints conflict with Stitch output.99- A large project changes public pages, Figma, code, and SEO/LLM artifacts in one workflow.100101Council roles:102103- `UI/UX lead`: journeys, IA, hierarchy, accessibility, interaction quality.104- `SEO/LLM lead`: crawlability, schema, metadata, llms.txt, visible factual content.105- `Figma lead`: design-system fit, variables, components, asset workflow.106- `Implementation lead`: framework feasibility, responsive behavior, validation evidence.107- `Planning lead`: task-plan gates, blockers, alarms, evidence, rollback.108109Decision order:1101111. Security, privacy, legal accuracy, and user safety.1122. Accessibility and primary task completion.1133. Truthful visible content and product facts.1144. Semantic HTML, crawlability, and LLM-readable structure.1155. Conversion UX and user comprehension.1166. Design-system consistency and implementation maintainability.1177. Visual novelty, trend alignment, and Stitch aesthetics.118119## Output Shapes120121### Brief Mode122123Use [assets/stitch-brief.template.md](assets/stitch-brief.template.md).124125Return:126127- Stitch prompt;128- input constraints used;129- private data excluded;130- variants requested;131- acceptance criteria;132- required review owners.133134### Review Mode135136Return:137138- output reviewed;139- pass/fail against the prompt;140- UX findings;141- SEO/LLM findings;142- accessibility findings;143- design-system/Figma findings;144- implementation risks;145- recommendation: accept, iterate, send to Figma, implement locally, or reject.146147### Handoff Mode148149Return:150151- chosen Stitch variant;152- rationale;153- required Figma/code next owner;154- assets or screenshots needed;155- tokens/components to preserve;156- checks before marking done.157158## Validation159160When editing this skill, run:161162```bash163python3 $CODEX_SKILLS_DIR/.system/skill-creator/scripts/quick_validate.py $CODEX_SKILLS_DIR/stitch-design-bridge164python3 $CODEX_SKILLS_DIR/senior-skill-architect/scripts/lint_production_skill.py $CODEX_SKILLS_DIR/stitch-design-bridge165python3 $CODEX_SKILLS_DIR/stitch-design-bridge/scripts/check_stitch_config.py166python3 -m json.tool $CODEX_SKILLS_DIR/stitch-design-bridge/evals/evals.json >/dev/null167```