3 views
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★ 12,386+422 that day#7 on trending
C64.6/100
Duplication74
3.9% in typescript, tsx, javascript, python, bashDead code72
3.7%Complexity51
59% 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.98%duplicated over all files · 451 of 15,147 lines
23clones
149files 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.ts286 cx
- plugins/stitch-design/skills/extract-static-html/scripts/post_process.ts97 cx
- plugins/stitch-build/skills/react-components/scripts/validate.js35 cx
- plugins/stitch-build/skills/shadcn-ui/scripts/verify-setup.sh32 cx
- plugins/stitch-build/skills/react-native/scripts/validate.js29 cx
- plugins/stitch-build/skills/shadcn-ui/examples/data-table.tsx25 cx
- plugins/stitch-design/skills/upload-to-stitch/scripts/upload_to_stitch.py20 cx
- plugins/stitch-design/skills/extract-static-html/scripts/html_serialize.ts18 cx
- plugins/stitch-design/skills/extract-static-html/tests/html-serialize.test.mjs13 cx
Dead code 3.73% 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 14 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:410–484plugins/stitch-design/skills/extract-static-html/scripts/post_process.ts:155–224
410} 411 412// --------------------------------------------------------------------------- 413// Robust CSS url() parser — character-by-character (no regex) 414// --------------------------------------------------------------------------- 415function extractCssUrls(text: string): CssUrlRef[] { 416 const results: CssUrlRef[] = []; 417 let i = 0; 418 const len = text.length; 419First 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:410–484plugins/stitch-design/skills/extract-static-html/scripts/post_process.ts:155–224
410} 411 412// --------------------------------------------------------------------------- 413// Robust CSS url() parser — character-by-character (no regex) 414// --------------------------------------------------------------------------- 415function extractCssUrls(text: string): CssUrlRef[] { 416 const results: CssUrlRef[] = []; 417 let i = 0; 418 const len = text.length; 419First 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 | 4 | 3,094 | 8 | 175 | 5.66% |
| javascript | 2 | 239 | 1 | 13 | 5.44% |
| python | 1 | 268 | 0 | 0 | 0% |
| bash | 4 | 260 | 0 | 0 | 0% |
| tsx | 3 | 184 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| markdown | 52 | 8,025 | 11 | 230 | 2.87% |
| typescript | 11 | 3,300 | 8 | 175 | 5.3% |
| javascript | 9 | 601 | 3 | 37 | 6.16% |
| yaml | 12 | 279 | 1 | 9 | 3.23% |
| tsx | 13 | 1,351 | 0 | 0 | 0% |
| json | 15 | 487 | 0 | 0 | 0% |
| bash | 10 | 405 | 0 | 0 | 0% |
| python | 1 | 268 | 0 | 0 | 0% |
| text | 14 | 172 | 0 | 0 | 0% |
| css | 7 | 165 | 0 | 0 | 0% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Nov 24, 2026 | #7 | 12,386 (+422) | 149 | 15,147 | 23 | 2.98% | — | C 64.6 | 9f4e828 |
| Nov 23, 2026 | #7 | 11,995 (+494) | 147 | 14,979 | 23 | 3.01% | — | C 64.1 | 62fdcd6 |
| Nov 22, 2026 | #7 | 11,540 (+326) | 147 | 14,979 | 23 | 3.01% | — | C 64.1 | 62fdcd6 |
| Nov 21, 2026 | #7 | 11,103 (+315) | 147 | 14,979 | 23 | 3.01% | — | C 64.1 | 62fdcd6 |
| Nov 20, 2026 | #7 | 10,788 (+302) | 144 | 14,773 | 22 | 2.97% | — | C 63.7 | 4cf4db8 |
| Nov 19, 2026 | #9 | 10,471 (+365) | 144 | 14,773 | 22 | 2.97% | — | C 63.7 | 4cf4db8 |
| Nov 18, 2026 | #6 | 10,180 (+350) | 144 | 14,773 | 22 | 2.97% | — | C 63.7 | 4cf4db8 |
| 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.