From stitch-skills
Request Google Stitch through the bundled SDK runner or by writing @google/stitch-sdk code. Trigger when creating or listing Stitch projects, generating screens, editing screens, generating variants, building or applying design systems, downloading HTML or images, exposing Stitch tools to the Vercel AI SDK or Google ADK, configuring STITCH_API_KEY or OAuth parameters, or converting Stitch output into React, Vue, or other app code.
How this skill is triggered — by the user, by Claude, or both
Slash command
/stitch-skills:stitchThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill when the task needs to actually talk to the Stitch service. Prefer the bundled runner in `scripts/run.sh` over ad-hoc one-off code when the request is operational: listing projects, generating screens, editing, variants, design systems, or exports.
Use this skill when the task needs to actually talk to the Stitch service. Prefer the bundled runner in scripts/run.sh over ad-hoc one-off code when the request is operational: listing projects, generating screens, editing, variants, design systems, or exports.
The runner wraps the official @google/stitch-sdk (v0.1.1+) and exposes the same surface as the documented Stitch SDK at stitch.withgoogle.com/docs.
Resolve configuration first.
--config /abs/path/to/file.json when the user points to a config file.STITCH_SKILL_CONFIG, then .stitch.json, then stitch.json in the current working directory.references/config.md and assets/stitch.example.json.save-config or --save-config when the user wants resolved parameters written back to .stitch.json or another target config path.Resolve authentication.
STITCH_API_KEY for local scripted use.STITCH_ACCESS_TOKEN plus GOOGLE_CLOUD_PROJECT. The official SDK requires both together when not using apiKey.STITCH_HOST overrides the MCP server URL when the user is pointed at a non-default endpoint.Choose the execution path.
list-projectscreate-projectlist-screensget-screengenerateeditvariantslist-design-systemscreate-design-systemupdate-design-systemapply-design-systemdownload-htmldownload-imagelist-toolscall-toolsave-config@google/stitch-sdk only when the user wants checked-in code, automation inside an application, or a custom integration (e.g. agent toolset, MCP proxy).Bootstrap the SDK runtime through the wrapper.
scripts/run.sh install-sdk before first use, or let the first SDK-backed command auto-install the package.@google/stitch-sdk into a user cache directory by default, so it does not need to modify the repository.--runtime-dir or STITCH_SKILL_RUNTIME_DIR if needed, and pin a specific version with --sdk-package.Execute the Stitch operation with the smallest sufficient command.
create-project and generate for first-pass concepts.edit for focused revisions.variants for exploration.create-design-system plus apply-design-system to enforce one visual language across multiple screens.download-html or download-image when the user needs local artifacts instead of URLs.Always prefer the wrapper:
skills/stitch/scripts/run.sh <command> [options]
Common options:
--config: explicit config file--api-key--access-token--google-cloud-project--base-url--timeout-ms--runtime-dir--sdk-package--json--save-configPrompt-bearing commands also support:
--prompt "..." for short prompts--prompt-file /abs/path/to/prompt.txt for long promptsGeneration defaults can come from config, then be overridden per command:
--device-type MOBILE|DESKTOP|TABLET|AGNOSTIC--model-id GEMINI_3_PRO|GEMINI_3_FLASH--variant-count (1–5)--creative-range REFINE|EXPLORE|REIMAGINE--aspects LAYOUT,COLOR_SCHEME,IMAGES,TEXT_FONT,TEXT_CONTENTscripts/run.sh list-projects --json.stitch.json:
scripts/run.sh save-config --api-key "$STITCH_API_KEY" --project-id 123 --device-type DESKTOP --jsonscripts/run.sh create-project --title "My App" --jsonscripts/run.sh generate --project-id 123 --prompt-file ./prompt.txt --device-type DESKTOP --model-id GEMINI_3_PRO --json--save-config to persist the resolved auth/default parameters after a successful run.scripts/run.sh edit --project-id 123 --screen-id abc --prompt "Make the hero more compact" --jsonscripts/run.sh variants --project-id 123 --screen-id abc --prompt "Explore cleaner layouts" --variant-count 3 --creative-range EXPLORE --aspects LAYOUT,COLOR_SCHEME --jsonscripts/run.sh create-design-system --project-id 123 --design-system-file ./design.json --jsonscripts/run.sh apply-design-system --project-id 123 --asset-id 9 --selections-file ./selections.json --jsonscripts/run.sh download-html --project-id 123 --screen-id abc --out ./tmp/screen.htmlUse direct @google/stitch-sdk code when:
stitchTools() from @google/stitch-sdk/ai with the Vercel AI SDKstitchAdkTools() from @google/stitch-sdk/adk with Google's Agent Development KitStitchProxyWhen writing code, prefer the official object model:
stitch.projects()stitch.project(id)stitch.callTool("create_project", { title }) (canonical project creation)project.generate(prompt, deviceType?, modelId?)project.screens()project.getScreen(screenId)project.createDesignSystem(designSystem)project.listDesignSystems()project.designSystem(id)screen.edit(prompt, deviceType?, modelId?)screen.variants(prompt, variantOptions, deviceType?, modelId?)screen.getHtml()screen.getImage()designSystem.update(designSystem)designSystem.apply(selectedScreenInstances)For agent integrations:
import { stitchTools } from "@google/stitch-sdk/ai" — Vercel AI SDK toolsimport { stitchAdkTools } from "@google/stitch-sdk/adk" — Google ADK FunctionToolsimport { StitchProxy } from "@google/stitch-sdk" — MCP server proxySTITCH_API_KEY, STITCH_ACCESS_TOKEN, or copied auth headers.save-config and --save-config can write secrets into .stitch.json; keep that file out of version control when it contains credentials.StitchError in handwritten code and inspect error.code (AUTH_FAILED, NOT_FOUND, PERMISSION_DENIED, RATE_LIMITED, NETWORK_ERROR, VALIDATION_ERROR, UNKNOWN_ERROR) before retrying.scripts/run.sh: stable entrypoint for the skill.scripts/stitch.mjs: SDK-backed Stitch runner with config support.assets/stitch.example.json: example config file.references/config.md: config lookup order and schema.references/mcp-sdk.md: SDK methods, ADK and AI-SDK exports, auth fields, error codes, and low-level tool usage.references/prompting.md: prompt-writing guidance for generation and edits.references/design-md.md: DESIGN.md guidance when the user wants consistent multi-screen design systems.Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub itamaker/stitch-skills --plugin itamaker-stitch-skills