stitch-cli
Skill215 starsChanged 3 months agoMITView on GitHub
Drives Google Stitch (stitch.withgoogle.com), the AI UI design tool, via the cli-web-stitch command-line tool — create design projects from text prompts, iterate on designs with AI (flash/pro/redesign models), manage projects (rename, duplicate, delete, download), and view or download generated screen HTML. Use when the user asks about Google Stitch, AI UI design, generating app mockups or screens from prompts, or managing Stitch projects. Prefer this CLI over browsing stitch.withgoogle.com. Requires Google login.
- Installs packages
In this repository21 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- airbnb-cliSkill
- amazon-cliSkill
- booking-cliSkill
- capitoltrades-cliSkill
- chatgpt-cliSkill
- codewiki-cliSkill
- futbin-cliSkill
- gai-cliSkill
- gh-trending-cliSkill
- hackernews-cliSkill
- linkedin-cliSkill
- notebooklm-cliSkill
- pexels-cliSkill
- producthunt-cliSkill
- reddit-cliSkill
- sync-checkSkill
- tripadvisor-cliSkill
- unsplash-cliSkill
- worldcup-cliSkill
- youtube-cliSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 44
Every command accepts --json.
- Very specific: line 54
Run doctor to diagnose auth setup.
- Very specific: line 62
Use --wait on projects create and design generate — generation is async and the CLI polls with backoff (--retry N for rate limits).
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
cli-web-stitch
Generate and manage Google Stitch AI UI designs. Requires Google SSO auth (auth login).
Install: pip install "cli-web-stitch[auth]", then playwright install chromium.
Commands
| Command | Purpose | Key options |
projects create PROMPT | New project + first design generation | --platform app|web, --wait/--no-wait |
projects list|get|rename|duplicate|delete | Manage projects | rename takes NEW_NAME; delete takes -y/--yes |
projects download PROJECT_ID | Download all screen HTML files | -o/--output DIR |
design generate PROMPT | Generate/modify design with an AI prompt | --project ID, --model flash|pro|redesign, --device mobile|web|tablet|agnostic, --wait/--no-wait, --retry N |
design theme | Design system (colors, typography) for a project | --project ID |
design history | Generation sessions (prompt history) | --project ID |
screens list|get|download SCREEN_ID | View/save generated screens | --project ID, -o/--output |
use PROJECT_ID / status | Set/show active project context | once set, --project is optional |
Examples
# Create a mobile app design and wait for generation
cli-web-stitch projects create "A fitness tracking app" --platform app --wait --json
# Set context, then iterate on the design
cli-web-stitch use <project-id>
cli-web-stitch design generate "Add a dark header with a search bar" --model pro --wait --json
# List screens and download all HTML exports
cli-web-stitch screens list --json
cli-web-stitch projects download <project-id> -o ./stitch-export --json
# Inspect the project's design system
cli-web-stitch design theme --jsonJSON output
Every command accepts --json. Success responses are {"success": true, "data": ...}; errors are {"error": true, "code": "...", "message": "..."}.
Auth
cli-web-stitch auth login # browser-based Google SSO (--headed default, --headless available)
cli-web-stitch auth status --json
cli-web-stitch auth import FILE # import cookies from a JSON fileRun doctor to diagnose auth setup. For CI, set CLI_WEB_STITCH_AUTH_JSON with the cookies JSON.
Utilities
cli-web-stitch doctor [--json] self-diagnoses the local setup (install, auth, dependencies). cli-web-stitch mcp-serve serves the commands as MCP tools over stdio.
Agent tips
- Use
--waitonprojects createanddesign generate— generation is async and the CLI polls with backoff (--retry Nfor rate limits). projects createcontrols platform (--platform app|web);design generatecontrols model and device type.- Grab IDs from
projects list/screens listJSON (.data[].id), thenuse <project-id>to avoid repeating--project.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

