A library of Agent Skills designed to work with the Stitch MCP server. Each skill follows the Agent Skills open standard, for compatibility with coding agents such as Antigravity, Gemini CLI, Claude Code, Cursor.
TypeScript
fix minor issues
jilinxia681a283c669e
diff --git a/plugins/stitch-build/skills/react-components/examples/gold-standard-card.tsx b/plugins/stitch-build/skills/react-components/examples/gold-standard-card.tsxindex df5e108..1e275e8 100644--- a/plugins/stitch-build/skills/react-components/examples/gold-standard-card.tsx+++ b/plugins/stitch-build/skills/react-components/examples/gold-standard-card.tsx@@ -1,18 +1,3 @@-/**- * Copyright 2026 Google LLC- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */import React from 'react';// Note for Agent: The '@' alias refers to the target project's src directory.diff --git a/plugins/stitch-design/skills/code-to-design/SKILL.md b/plugins/stitch-design/skills/code-to-design/SKILL.mdindex 55510de..0e182d7 100644--- a/plugins/stitch-design/skills/code-to-design/SKILL.md+++ b/plugins/stitch-design/skills/code-to-design/SKILL.md@@ -3,6 +3,12 @@ name: stitch::code-to-designdescription: >-Convert frontend code (Vite, React, etc.) to a Stitch Design by chainingstatic HTML extraction, design system extraction, and file upload. **ALWAYS** use this skill when the user's intent is to move existing web apps or React components into Stitch (e.g., requests to "save", "migrate", or "upload"). You must use this skill even for simple "save" operations, as it is the only way to ensure the design system is extracted and assets are properly linked.+allowed-tools:+ - "stitch*:*"+ - "Bash"+ - "Read"+ - "Write"+ - "web_fetch"---# Code to Designdiff --git a/plugins/stitch-design/skills/extract-design-md/SKILL.md b/plugins/stitch-design/skills/extract-design-md/SKILL.mdindex 91170f9..94228a6 100644--- a/plugins/stitch-design/skills/extract-design-md/SKILL.md+++ b/plugins/stitch-design/skills/extract-design-md/SKILL.md@@ -9,6 +9,12 @@ description: >-the visual language of a project, extract design tokens from source files, orunderstand the styling patterns in a frontend repo — even if they just say "whatdoes this app look like?" or "pull out the design from this code."+allowed-tools:+ - "stitch*:*"+ - "Bash"+ - "Read"+ - "Write"+ - "web_fetch"---# Extract Design System from Frontend Codediff --git a/plugins/stitch-design/skills/extract-static-html/SKILL.md b/plugins/stitch-design/skills/extract-static-html/SKILL.mdindex 5397d54..5b627b4 100644--- a/plugins/stitch-design/skills/extract-static-html/SKILL.md+++ b/plugins/stitch-design/skills/extract-static-html/SKILL.md@@ -2,6 +2,12 @@name: stitch::extract-static-htmldescription: >-Extract self-contained static HTML from a built web application or React components by inlining CSS and images. Use this skill whenever you need to capture a specific UI state, share a static version of a page, or prepare assets for Stitch upload, even if the user just asks to 'save the HTML' or 'mock the view'.+allowed-tools:+ - "stitch*:*"+ - "Bash"+ - "Read"+ - "Write"+ - "web_fetch"---# Extract Static HTML@@ -52,7 +58,7 @@ Launches headless Chrome, captures the fully rendered DOM, and produces a self-c2. **Run the Snapshot Script**:```bash- npx tsx .agents/skills/extract-static-html/scripts/snapshot.ts \+ npx tsx <SKILL_DIR>/scripts/snapshot.ts \--url http://localhost:5173 \--output .stitch/home.html \--wait 2000@@ -60,11 +66,11 @@ Launches headless Chrome, captures the fully rendered DOM, and produces a self-c3. **Multiple pages** — run once per route:```bash- npx tsx .agents/skills/extract-static-html/scripts/snapshot.ts \+ npx tsx <SKILL_DIR>/scripts/snapshot.ts \--url http://localhost:5173 --output .stitch/home.html --wait 2000- npx tsx .agents/skills/extract-static-html/scripts/snapshot.ts \+ npx tsx <SKILL_DIR>/scripts/snapshot.ts \--url http://localhost:5173/pricing --output .stitch/pricing.html --wait 2000- npx tsx .agents/skills/extract-static-html/scripts/snapshot.ts \+ npx tsx <SKILL_DIR>/scripts/snapshot.ts \--url http://localhost:5173/dashboard --output .stitch/dashboard.html --wait 2000 --html-class dark```@@ -148,7 +154,7 @@ Use when you need to **interact with the page** (click buttons, fill forms, navi### Quick Reference```bash-npx tsx .agents/skills/extract-static-html/scripts/extract_inline_html.ts \+npx tsx <SKILL_DIR>/scripts/extract_inline_html.ts \--index-css src/css/App.css \--extra-css index.html \--outdir .stitch \@@ -171,6 +177,6 @@ npx tsx .agents/skills/extract-static-html/scripts/extract_inline_html.ts \Inline local images:```bash-npx tsx .agents/skills/extract-static-html/scripts/post_process.ts \+npx tsx <SKILL_DIR>/scripts/post_process.ts \.stitch/Page.html --base-dir <app-directory>```diff --git a/plugins/stitch-design/skills/generate-design/SKILL.md b/plugins/stitch-design/skills/generate-design/SKILL.mdindex 31adf4a..f434ad1 100644--- a/plugins/stitch-design/skills/generate-design/SKILL.md+++ b/plugins/stitch-design/skills/generate-design/SKILL.md@@ -5,6 +5,12 @@ description: >-with prompts and design system tokens, and generate design variants usingStitch MCP. Includes prompt enhancement pipeline, design mappings, professionalUI/UX terminology, design tokens and theme system capabilities.+allowed-tools:+ - "stitch*:*"+ - "Bash"+ - "Read"+ - "Write"+ - "web_fetch"---# Generate Designdiff --git a/plugins/stitch-design/skills/manage-design-system/SKILL.md b/plugins/stitch-design/skills/manage-design-system/SKILL.mdindex cf3de1f..8ffcc58 100644--- a/plugins/stitch-design/skills/manage-design-system/SKILL.md+++ b/plugins/stitch-design/skills/manage-design-system/SKILL.md@@ -3,6 +3,12 @@ name: stitch::manage-design-systemdescription: >-Manage design systems in Stitch using MCP tools. Includes retrieval of assets,creating/updating design systems in Stitch, and applying them to screens.+allowed-tools:+ - "stitch*:*"+ - "Bash"+ - "Read"+ - "Write"+ - "web_fetch"---# Design-Systemdiff --git a/plugins/stitch-design/skills/upload-to-stitch/SKILL.md b/plugins/stitch-design/skills/upload-to-stitch/SKILL.mdindex deeabfc..4129828 100644--- a/plugins/stitch-design/skills/upload-to-stitch/SKILL.md+++ b/plugins/stitch-design/skills/upload-to-stitch/SKILL.md@@ -5,6 +5,12 @@ description: >-ALWAYS use this skill when you need to upload visual assets or full HTML pagesto Stitch, particularly when direct MCP tool calls fail or truncate due tobase64 token limits.+allowed-tools:+ - "stitch*:*"+ - "Bash"+ - "Read"+ - "Write"+ - "web_fetch"---# Upload-to-Stitch