google-labs-code/stitch-skills
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★ 9,805+529 that day#7 on trending
C63.7/100
Duplication73
3.9% in typescript, tsx, python, bash, javascriptDead code71
4%Complexity50
62.5% The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.
2.97%duplicated over all files · 439 of 14,770 lines
22clones
144files scanned
Most complex files
- plugins/stitch-design/skills/extract-static-html/scripts/snapshot.ts346 cx
- plugins/stitch-design/skills/extract-static-html/scripts/extract_inline_html.ts263 cx
- plugins/stitch-design/skills/extract-static-html/scripts/post_process.ts97 cx
- plugins/stitch-build/skills/react-native/scripts/validate.js29 cx
- plugins/stitch-build/skills/react-components/scripts/validate.js25 cx
- plugins/stitch-build/skills/shadcn-ui/examples/data-table.tsx25 cx
- plugins/stitch-build/skills/shadcn-ui/scripts/verify-setup.sh22 cx
- plugins/stitch-design/skills/upload-to-stitch/scripts/upload_to_stitch.py20 cx
- plugins/stitch-build/skills/remotion/examples/WalkthroughComposition.tsx8 cx
- plugins/stitch-build/skills/react-native/examples/gold-standard-card.tsx6 cx
Dead code 4% unused · 4 findings
- plugins/stitch-build/skills/remotion/resources/screen-slide-template.tsxunused-file
- plugins/stitch-build/skills/react-components/resources/component-template.tsxunused-file
- plugins/stitch-build/skills/react-native/resources/component-template.tsxunused-file
- plugins/stitch-design/skills/extract-static-html/scripts/extract_inline_html.ts:generateunused-import
Only 13 of the files count as code, too few for a code-only percentage; the numbers above cover every file.
Largest clones in the code
- 75 lines in 2 placestypescript432 tokensplugins/stitch-design/skills/extract-static-html/scripts/extract_inline_html.ts:403–477plugins/stitch-design/skills/extract-static-html/scripts/post_process.ts:155–224
403} 404 405// --------------------------------------------------------------------------- 406// Robust CSS url() parser — character-by-character (no regex) 407// --------------------------------------------------------------------------- 408function extractCssUrls(text: string): CssUrlRef[] { 409 const results: CssUrlRef[] = []; 410 let i = 0; 411 const len = text.length; 412First 10 of 75 lines.
- 19 lines in 2 placestypescript135 tokensplugins/stitch-design/skills/extract-static-html/scripts/snapshot.ts:1109–1127plugins/stitch-design/skills/extract-static-html/scripts/snapshot.ts:1140–1157
1109if (!srcset) continue; 1110const parts = srcset.split(',').map((s: string) => s.trim()); 1111const newParts: string[] = []; 1112 1113await processInBatches(parts, CONCURRENCY, async (part: string) => { 1114 const [url, ...descriptors] = part.split(/\s+/); 1115 if (url.startsWith('data:')) { 1116 newParts.push(part); 1117 return; 1118 }First 10 of 19 lines.
- 20 lines in 2 placestypescript84 tokensplugins/stitch-design/skills/extract-static-html/scripts/post_process.ts:312–331plugins/stitch-design/skills/extract-static-html/scripts/post_process.ts:381–400
312 return match; 313} 314 315const result = readFileAtomic(resolved, maxSize); 316if (!result) { 317 stats.skippedNotFound.push(localPath); 318 return match; 319} 320if ('tooLarge' in result) { 321 stats.skippedTooLarge.push({ path: localPath, size: result.size });First 10 of 20 lines.
6 more
- 13 lines in 2 placesjavascript80 tokens
- 12 lines in 2 placestypescript74 tokens
- 13 lines in 2 placestypescript70 tokens
- 12 lines in 2 placestypescript66 tokens
- 18 lines in 2 placestypescript58 tokens
- 6 lines in 2 placestypescript54 tokens
Largest clones over all files, tests and data included
- 31 lines in 2 placesmarkdowndocs and examples644 tokensplugins/stitch-build/skills/react-components/SKILL.md:17–47plugins/stitch-build/skills/react-native/SKILL.md:16–46
17You are a frontend engineer focused on transforming designs into clean React code or syncing/updating existing React components to align with the latest Stitch… 18 19> **CRITICAL: Every step in this skill is MANDATORY. Do NOT skip any step or take shortcuts. Each section contains a GATE that must be satisfied before proceed… 20 21## Phase 1: Retrieval and networking 22 23> **GATE: Phase 1 is complete ONLY when all screens have been downloaded via `scripts/fetch-stitch.sh` AND visually audited. Reading local files directly witho… 24 251. **Namespace discovery**: Run `list_tools` to find the Stitch MCP prefix. Use this prefix (e.g., `stitch:`) for all subsequent calls. 262. **Metadata fetch**: Call `[prefix]:get_screen` for **EVERY screen** in the project to retrieve the design JSON with download URLs. Do NOT skip any screen.First 10 of 31 lines.
- 75 lines in 2 placestypescript432 tokensplugins/stitch-design/skills/extract-static-html/scripts/extract_inline_html.ts:403–477plugins/stitch-design/skills/extract-static-html/scripts/post_process.ts:155–224
403} 404 405// --------------------------------------------------------------------------- 406// Robust CSS url() parser — character-by-character (no regex) 407// --------------------------------------------------------------------------- 408function extractCssUrls(text: string): CssUrlRef[] { 409 const results: CssUrlRef[] = []; 410 let i = 0; 411 const len = text.length; 412First 10 of 75 lines.
- 99 lines in 2 placesmarkdowndocs and examples406 tokensplugins/stitch-design/skills/generate-design/references/prompt-keywords.md:1–99plugins/stitch-utilities/skills/enhance-prompt/references/KEYWORDS.md:1–86
1# UI/UX Keywords Reference 2 3Progressive disclosure reference for common UI terminology and adjective 4palettes. 5 6## Component Keywords 7 8### Navigation 9 10- navigation bar, nav menu, header1# UI/UX Keywords Reference 2 3Progressive disclosure reference for common UI terminology and adjective palettes. 4 5## Component Keywords 6 7### Navigation 8- navigation bar, nav menu, header 9- breadcrumbs, tabs, sidebar 10- hamburger menu, dropdown menuFirst 10 of 99 lines, the second copy on the right.
- 6 lines in 3 placesmarkdowndocs and examples74 tokens
- 19 lines in 2 placestypescript135 tokens
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| typescript | 3 | 2,993 | 8 | 175 | 5.85% |
| javascript | 2 | 206 | 1 | 13 | 6.31% |
| python | 1 | 268 | 0 | 0 | 0% |
| bash | 4 | 233 | 0 | 0 | 0% |
| tsx | 3 | 184 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| markdown | 52 | 8,023 | 11 | 230 | 2.87% |
| typescript | 10 | 3,199 | 8 | 175 | 5.47% |
| javascript | 5 | 375 | 2 | 25 | 6.67% |
| yaml | 12 | 259 | 1 | 9 | 3.47% |
| tsx | 13 | 1,351 | 0 | 0 | 0% |
| json | 15 | 487 | 0 | 0 | 0% |
| bash | 10 | 378 | 0 | 0 | 0% |
| python | 1 | 268 | 0 | 0 | 0% |
| text | 14 | 171 | 0 | 0 | 0% |
| css | 7 | 165 | 0 | 0 | 0% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Nov 17, 2026 | #7 | 9,805 (+529) | 144 | 14,770 | 22 | 2.97% | — | C 63.7 | 0337446 |
| Nov 16, 2026 | #3 | 9,428 (+247) | 144 | 14,770 | 22 | 2.97% | — | C 63.7 | 0337446 |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.