Skip to content

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.tsx
index 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.md
index 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-design
description: >-
Convert frontend code (Vite, React, etc.) to a Stitch Design by chaining
static 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 Design
diff --git a/plugins/stitch-design/skills/extract-design-md/SKILL.md b/plugins/stitch-design/skills/extract-design-md/SKILL.md
index 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, or
understand the styling patterns in a frontend repo — even if they just say "what
does 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 Code
diff --git a/plugins/stitch-design/skills/extract-static-html/SKILL.md b/plugins/stitch-design/skills/extract-static-html/SKILL.md
index 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-html
description: >-
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-c
2. **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-c
3. **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.md
index 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 using
Stitch MCP. Includes prompt enhancement pipeline, design mappings, professional
UI/UX terminology, design tokens and theme system capabilities.
+allowed-tools:
+ - "stitch*:*"
+ - "Bash"
+ - "Read"
+ - "Write"
+ - "web_fetch"
---
# Generate Design
diff --git a/plugins/stitch-design/skills/manage-design-system/SKILL.md b/plugins/stitch-design/skills/manage-design-system/SKILL.md
index 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-system
description: >-
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-System
diff --git a/plugins/stitch-design/skills/upload-to-stitch/SKILL.md b/plugins/stitch-design/skills/upload-to-stitch/SKILL.md
index 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 pages
to Stitch, particularly when direct MCP tool calls fail or truncate due to
base64 token limits.
+allowed-tools:
+ - "stitch*:*"
+ - "Bash"
+ - "Read"
+ - "Write"
+ - "web_fetch"
---
# Upload-to-Stitch