Skip to content
Back to skills

Generating Stitch Screens

ASecurity

Generates Stitch screens from authored prompts using MCP tools. Use when user wants to generate screens in Stitch, mentions "generate in stitch", "create stitch screens", "run prompts in stitch", or has prompt files ready. Requires Stitch MCP server (see /stitch-setup for configuration).

  • 21 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 8, 2026
documentationgo

Works with

  • mcp

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add joaquimscosta/arkhe-claude-plugins --skill generating-stitch-screens --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Generating Stitch Screens?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Generating Stitch Screens
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/joaquimscosta-generating-stitch-screens/badge)](https://www.skillsdirectory.com/skills/joaquimscosta-generating-stitch-screens)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: generating-stitch-screens
description: >
  Generates Stitch screens from authored prompts using MCP tools.
  Use when user wants to generate screens in Stitch, mentions "generate in stitch",
  "create stitch screens", "run prompts in stitch", or has prompt files ready.
  Requires Stitch MCP server (see /stitch-setup for configuration).
---

# Generating Stitch Screens

Orchestrate screen generation in Google Stitch using MCP tools. Reads authored prompt files, sends each section to Stitch for generation, and fetches resulting images and code.

## Prerequisites

Requires Stitch MCP server (`@_davideast/stitch-mcp`). If MCP tools are not available, display:

```
Stitch MCP is not configured.
Run /stitch-setup for guided setup, or see the plugin README for manual configuration.
```

Never fail silently. Always inform the user if MCP is unavailable.

## Quick Start

1. **Read prompt file** from `design-intent/google-stitch/{feature}/prompt-v{N}.md`
2. **Parse sections** by `---` separators, extracting `<!-- Layout: -->` and `<!-- Component: -->` markers
3. **Create or select project** via MCP (`create_project` / `list_projects`)
4. **Generate screens** — for each section: call `generate_screen_from_text` with prompt text
5. **Fetch images** — for each screen: call `fetch_screen_image`, save to `{feature}/exports/`
6. **Fetch code** (optional) — call `fetch_screen_code`, save to `{feature}/code/`
7. **Extract design context** (optional) — call `extract_design_context`, save design DNA
8. **Report** — project URL, screen list, file paths

## Output Structure

```
design-intent/google-stitch/{feature}/
├── prompt-v{N}.md              <- Source prompts
├── exports/                    <- Generated images
│   ├── {layout-name}.png
│   ├── {component-1}.png
│   └── {component-2}.png
├── code/                       <- Generated code (optional)
│   ├── {layout-name}/
│   └── {component-1}/
└── design-dna.md               <- Extracted design context (optional)
```

## Section Parsing

Prompt files use `---` separators with HTML comment labels:

```markdown
<!-- Layout: Analytics Dashboard -->
[layout prompt text]

---

<!-- Component: KPI Metrics -->
[component prompt text]

---

<!-- Component: Revenue Chart -->
[component prompt text]
```

Parse each section independently. Use the label text as the screen name in Stitch.

## Error Handling

- **Partial failure**: If some screens fail to generate, continue with remaining sections and report failures
- **Generation timeout**: Wait, then retry once. If still pending, report and suggest checking Stitch directly
- **Empty result from fetch**: Generation may still be in progress — wait briefly and retry

## Workflow Details

See [WORKFLOW.md](WORKFLOW.md) for detailed steps, error handling, and retry logic.

## Examples

See [EXAMPLES.md](EXAMPLES.md) for end-to-end generation scenarios.

## Troubleshooting

See [TROUBLESHOOTING.md](TROUBLESHOOTING.md) for MCP-specific issues.

Files in this skill

  • EXAMPLES.md7.3 KB
  • SKILL.md3 KB
  • TROUBLESHOOTING.md4.8 KB
  • WORKFLOW.md6.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.