[{"data":1,"prerenderedAt":665},["ShallowReactive",2],{"navigation_docs":3,"trending-repo-google-labs-code\u002Fstitch-skills":249,"page-views-\u002Ftrending\u002Fgoogle-labs-code\u002Fstitch-skills":663},[4,29,104,124,194],{"title":5,"icon":6,"path":7,"stem":8,"children":9},"Start",false,"\u002Fstart","1.start",[10,14,19,24],{"title":11,"path":7,"stem":12,"icon":13},"What jscpd finds","1.start\u002Findex","i-lucide-house",{"title":15,"path":16,"stem":17,"icon":18},"Installation","\u002Fstart\u002Finstallation","1.start\u002F2.installation","i-lucide-download",{"title":20,"path":21,"stem":22,"icon":23},"Quickstart","\u002Fstart\u002Fquickstart","1.start\u002F3.quickstart","i-lucide-rocket",{"title":25,"path":26,"stem":27,"icon":28},"Configuration basics","\u002Fstart\u002Fconfiguration","1.start\u002F4.configuration","i-lucide-settings-2",{"title":30,"icon":6,"path":31,"stem":32,"children":33,"page":6},"Guides","\u002Fguides","2.guides",[34,39,44,49,54,59,64,69,74,79,84,89,94,99],{"title":35,"path":36,"stem":37,"icon":38},"Use jscpd in CI","\u002Fguides\u002Fci","2.guides\u002F01.ci","i-lucide-github",{"title":40,"path":41,"stem":42,"icon":43},"Pre-commit hooks","\u002Fguides\u002Fpre-commit","2.guides\u002F02.pre-commit","i-lucide-git-commit",{"title":45,"path":46,"stem":47,"icon":48},"Fail only on new duplication","\u002Fguides\u002Fbaseline","2.guides\u002F03.baseline","i-lucide-git-compare",{"title":50,"path":51,"stem":52,"icon":53},"Monorepos","\u002Fguides\u002Fmonorepos","2.guides\u002F04.monorepos","i-lucide-folder-tree",{"title":55,"path":56,"stem":57,"icon":58},"Cross-format detection","\u002Fguides\u002Fcross-format","2.guides\u002F05.cross-format","i-lucide-layers",{"title":60,"path":61,"stem":62,"icon":63},"Agents","\u002Fguides\u002Fagents","2.guides\u002F06.agents","i-lucide-cpu",{"title":65,"path":66,"stem":67,"icon":68},"Editors","\u002Fguides\u002Feditors","2.guides\u002F07.editors","i-lucide-code",{"title":70,"path":71,"stem":72,"icon":73},"Duplication over git history","\u002Fguides\u002Fhistory","2.guides\u002F08.history","i-lucide-chart-no-axes-combined",{"title":75,"path":76,"stem":77,"icon":78},"Dashboard and health score","\u002Fguides\u002Fdashboard","2.guides\u002F09.dashboard","i-lucide-layout-dashboard",{"title":80,"path":81,"stem":82,"icon":83},"Dead code","\u002Fguides\u002Fdead-code","2.guides\u002F10.dead-code","i-lucide-ghost",{"title":85,"path":86,"stem":87,"icon":88},"Comparing two codebases","\u002Fguides\u002Fcompare","2.guides\u002F11.compare","i-lucide-git-compare-arrows",{"title":90,"path":91,"stem":92,"icon":93},"Semantic clones","\u002Fguides\u002Fsemantic-clones","2.guides\u002F12.semantic-clones","i-lucide-brain-circuit",{"title":95,"path":96,"stem":97,"icon":98},"Similar functions","\u002Fguides\u002Fsimilarity","2.guides\u002F13.similarity","i-lucide-list-tree",{"title":100,"path":101,"stem":102,"icon":103},"Boundaries","\u002Fguides\u002Fboundaries","2.guides\u002F14.boundaries","i-lucide-fence",{"title":105,"icon":6,"path":106,"stem":107,"children":108,"page":6},"Concepts","\u002Fconcepts","3.concepts",[109,114,119],{"title":110,"path":111,"stem":112,"icon":113},"Types of code clones","\u002Fconcepts\u002Fclone-types","3.concepts\u002F1.clone-types","i-lucide-copy",{"title":115,"path":116,"stem":117,"icon":118},"How detection works","\u002Fconcepts\u002Fhow-detection-works","3.concepts\u002F2.how-detection-works","i-lucide-scan-search",{"title":120,"path":121,"stem":122,"icon":123},"The health score","\u002Fconcepts\u002Fhealth-score","3.concepts\u002F3.health-score","i-lucide-heart-pulse",{"title":125,"icon":6,"path":126,"stem":127,"children":128,"page":6},"Reference","\u002Freference","4.reference",[129,134,139,144,181,186,190],{"title":130,"path":131,"stem":132,"icon":133},"CLI options","\u002Freference\u002Fcli","4.reference\u002F1.cli","i-lucide-terminal",{"title":135,"path":136,"stem":137,"icon":138},"The config file","\u002Freference\u002Fconfig-file","4.reference\u002F2.config-file","i-lucide-settings",{"title":140,"path":141,"stem":142,"icon":143},"Exit codes","\u002Freference\u002Fexit-codes","4.reference\u002F3.exit-codes","i-lucide-log-out",{"title":145,"icon":6,"path":146,"stem":147,"children":148},"Reporters","\u002Freference\u002Freporters","4.reference\u002F4.reporters\u002Findex",[149,151,156,161,166,171,176],{"title":145,"path":146,"stem":147,"icon":150},"i-lucide-file-chart-column",{"title":152,"path":153,"stem":154,"icon":155},"HTML reporter","\u002Freference\u002Freporters\u002Fhtml","4.reference\u002F4.reporters\u002F2.html","i-lucide-file-code",{"title":157,"path":158,"stem":159,"icon":160},"JSON reporter","\u002Freference\u002Freporters\u002Fjson","4.reference\u002F4.reporters\u002F3.json","i-lucide-braces",{"title":162,"path":163,"stem":164,"icon":165},"Badge reporter","\u002Freference\u002Freporters\u002Fbadge","4.reference\u002F4.reporters\u002F4.badge","i-lucide-award",{"title":167,"path":168,"stem":169,"icon":170},"SARIF reporter","\u002Freference\u002Freporters\u002Fsarif","4.reference\u002F4.reporters\u002F5.sarif","i-lucide-shield-check",{"title":172,"path":173,"stem":174,"icon":175},"CodeClimate reporter","\u002Freference\u002Freporters\u002Fcodeclimate","4.reference\u002F4.reporters\u002F6.codeclimate","i-lucide-flag-triangle-right",{"title":177,"path":178,"stem":179,"icon":180},"OpenMetrics reporter","\u002Freference\u002Freporters\u002Fopenmetrics","4.reference\u002F4.reporters\u002F7.openmetrics","i-lucide-activity",{"title":182,"path":183,"stem":184,"icon":185},"Supported formats","\u002Freference\u002Fsupported-formats","4.reference\u002F5.supported-formats","i-lucide-languages",{"title":187,"path":188,"stem":189,"icon":38},"GitHub Action","\u002Freference\u002Fgithub-action","4.reference\u002F6.github-action",{"title":191,"path":192,"stem":193,"icon":68},"Rust crates","\u002Freference\u002Frust-crates","4.reference\u002F7.rust-crates",{"title":195,"icon":6,"path":196,"stem":197,"children":198,"page":6},"Project","\u002Fproject","5.project",[199,204,209,214,239,244],{"title":200,"path":201,"stem":202,"icon":203},"Changelog","\u002Fproject\u002Fchangelog","5.project\u002F1.changelog","i-lucide-scroll-text",{"title":205,"path":206,"stem":207,"icon":208},"Migrating from v4 to v5","\u002Fproject\u002Fmigration","5.project\u002F2.migration","i-lucide-arrow-right-left",{"title":210,"path":211,"stem":212,"icon":213},"jscpd v4 (TypeScript)","\u002Fproject\u002Fv4","5.project\u002F3.v4","i-simple-icons-typescript",{"title":215,"icon":6,"path":216,"stem":217,"children":218},"Benchmarks","\u002Fproject\u002Fbenchmarks","5.project\u002F4.benchmarks\u002Findex",[219,221,226,230,235],{"title":215,"path":216,"stem":217,"icon":220},"i-lucide-gauge",{"title":222,"path":223,"stem":224,"icon":225},"Detection Speed","\u002Fproject\u002Fbenchmarks\u002Fdetection-speed","5.project\u002F4.benchmarks\u002F2.detection-speed","i-lucide-zap",{"title":227,"path":228,"stem":229,"icon":58},"Multi-Format Detection","\u002Fproject\u002Fbenchmarks\u002Fcross-format","5.project\u002F4.benchmarks\u002F3.cross-format",{"title":231,"path":232,"stem":233,"icon":234},"AI Token Efficiency","\u002Fproject\u002Fbenchmarks\u002Fai-token-efficiency","5.project\u002F4.benchmarks\u002F4.ai-token-efficiency","i-lucide-sparkles",{"title":236,"path":237,"stem":238,"icon":93},"Embedding Models","\u002Fproject\u002Fbenchmarks\u002Fembedding-models","5.project\u002F4.benchmarks\u002F5.embedding-models",{"title":240,"path":241,"stem":242,"icon":243},"Research","\u002Fproject\u002Fresearch","5.project\u002F5.research","i-lucide-graduation-cap",{"title":245,"path":246,"stem":247,"icon":248},"Articles","\u002Fproject\u002Farticles","5.project\u002F6.articles","i-lucide-newspaper",{"name":250,"url":251,"appearances":252,"latest":273},"google-labs-code\u002Fstitch-skills","https:\u002F\u002Fgithub.com\u002Fgoogle-labs-code\u002Fstitch-skills",[253,268],{"date":254,"rank":255,"stars":256,"starsToday":257,"headSha":258,"sources":259,"lines":260,"clones":261,"duplicatedLines":262,"percentage":263,"codePercentage":264,"codeSources":265,"healthScore":266,"healthGrade":267},"2026-11-16",3,9428,247,"0337446dadde6f8c94210444e2aa9d546126480f",144,14770,22,439,2.97,null,13,63.7,"C",{"date":269,"rank":270,"stars":271,"starsToday":272,"headSha":258,"sources":259,"lines":260,"clones":261,"duplicatedLines":262,"percentage":263,"codePercentage":264,"codeSources":265,"healthScore":266,"healthGrade":267},"2026-11-17",7,9805,529,{"date":269,"generatedAt":274,"name":250,"url":251,"description":275,"language":276,"stars":271,"starsToday":272,"defaultBranch":277,"headSha":258,"durationMs":278,"total":279,"formats":283,"topClones":333,"code":473,"health":573,"complexity":602,"deadCode":644},"2026-11-17T05:21:51.249Z","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","main",872,{"sources":259,"lines":260,"tokens":280,"clones":261,"duplicatedLines":262,"duplicatedTokens":281,"percentage":263,"percentageTokens":282},100417,2870,2.86,[284,291,298,305,312,316,320,323,326,330],{"format":285,"sources":286,"lines":287,"clones":288,"duplicatedLines":289,"percentage":290},"markdown",52,8023,11,230,2.87,{"format":292,"sources":293,"lines":294,"clones":295,"duplicatedLines":296,"percentage":297},"typescript",10,3199,8,175,5.47,{"format":299,"sources":300,"lines":301,"clones":302,"duplicatedLines":303,"percentage":304},"javascript",5,375,2,25,6.67,{"format":306,"sources":307,"lines":308,"clones":309,"duplicatedLines":310,"percentage":311},"yaml",12,259,1,9,3.47,{"format":313,"sources":265,"lines":314,"clones":315,"duplicatedLines":315,"percentage":315},"tsx",1351,0,{"format":317,"sources":318,"lines":319,"clones":315,"duplicatedLines":315,"percentage":315},"json",15,487,{"format":321,"sources":293,"lines":322,"clones":315,"duplicatedLines":315,"percentage":315},"bash",378,{"format":324,"sources":309,"lines":325,"clones":315,"duplicatedLines":315,"percentage":315},"python",268,{"format":327,"sources":328,"lines":329,"clones":315,"duplicatedLines":315,"percentage":315},"text",14,171,{"format":331,"sources":270,"lines":332,"clones":315,"duplicatedLines":315,"percentage":315},"css",165,[334,356,378,400,414,425,434,445,455,465],{"format":285,"lines":335,"tokens":336,"first":337,"others":341,"copies":302,"excerpt":346,"kind":355},31,644,{"name":338,"start":339,"end":340},"plugins\u002Fstitch-build\u002Fskills\u002Freact-components\u002FSKILL.md",17,47,[342],{"name":343,"start":344,"end":345},"plugins\u002Fstitch-build\u002Fskills\u002Freact-native\u002FSKILL.md",16,46,{"lines":347,"total":335},[348,349,350,349,351,349,352,349,353,354],"You are a frontend engineer focused on transforming designs into clean React code or syncing\u002Fupdating existing React components to align with the latest Stitch…","","> **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…","## Phase 1: Retrieval and networking","> **GATE: Phase 1 is complete ONLY when all screens have been downloaded via `scripts\u002Ffetch-stitch.sh` AND visually audited. Reading local files directly witho…","1. **Namespace discovery**: Run `list_tools` to find the Stitch MCP prefix. Use this prefix (e.g., `stitch:`) for all subsequent calls.","2. **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.","docs",{"format":292,"lines":357,"tokens":358,"first":359,"others":363,"copies":302,"excerpt":368,"kind":377},75,432,{"name":360,"start":361,"end":362},"plugins\u002Fstitch-design\u002Fskills\u002Fextract-static-html\u002Fscripts\u002Fextract_inline_html.ts",403,477,[364],{"name":365,"start":366,"end":367},"plugins\u002Fstitch-design\u002Fskills\u002Fextract-static-html\u002Fscripts\u002Fpost_process.ts",155,224,{"lines":369,"total":357},[370,349,371,372,371,373,374,375,376,349],"}","\u002F\u002F ---------------------------------------------------------------------------","\u002F\u002F Robust CSS url() parser — character-by-character (no regex)","function extractCssUrls(text: string): CssUrlRef[] {","  const results: CssUrlRef[] = [];","  let i = 0;","  const len = text.length;","code",{"format":285,"lines":379,"tokens":380,"first":381,"others":383,"copies":302,"excerpt":387,"excerptSecond":395,"kind":355},99,406,{"name":382,"start":309,"end":379},"plugins\u002Fstitch-design\u002Fskills\u002Fgenerate-design\u002Freferences\u002Fprompt-keywords.md",[384],{"name":385,"start":309,"end":386},"plugins\u002Fstitch-utilities\u002Fskills\u002Fenhance-prompt\u002Freferences\u002FKEYWORDS.md",86,{"lines":388,"total":379},[389,349,390,391,349,392,349,393,349,394],"# UI\u002FUX Keywords Reference","Progressive disclosure reference for common UI terminology and adjective","palettes.","## Component Keywords","### Navigation","- navigation bar, nav menu, header",{"lines":396,"total":386},[389,349,397,349,392,349,393,394,398,399],"Progressive disclosure reference for common UI terminology and adjective palettes.","- breadcrumbs, tabs, sidebar","- hamburger menu, dropdown menu",{"format":285,"lines":401,"tokens":402,"first":403,"others":407,"copies":255,"kind":355},6,74,{"name":404,"start":405,"end":406},"plugins\u002Fstitch-design\u002Fskills\u002Fgenerate-design\u002FSKILL.md",141,146,[408,411],{"name":404,"start":409,"end":410},196,201,{"name":404,"start":412,"end":413},304,309,{"format":292,"lines":415,"tokens":416,"first":417,"others":421,"copies":302,"kind":377},19,135,{"name":418,"start":419,"end":420},"plugins\u002Fstitch-design\u002Fskills\u002Fextract-static-html\u002Fscripts\u002Fsnapshot.ts",1109,1127,[422],{"name":418,"start":423,"end":424},1140,1157,{"format":285,"lines":293,"tokens":426,"first":427,"others":430,"copies":302,"kind":355},116,{"name":382,"start":428,"end":429},122,131,[431],{"name":385,"start":432,"end":433},105,114,{"format":285,"lines":435,"tokens":432,"first":436,"others":440,"copies":302,"kind":355},23,{"name":437,"start":438,"end":439},"plugins\u002Fstitch-design\u002Fskills\u002Fmanage-design-system\u002FSKILL.md",95,117,[441],{"name":442,"start":443,"end":444},"plugins\u002Fstitch-design\u002Fskills\u002Fmanage-design-system\u002Freference\u002Ftool-schema.md",136,162,{"format":292,"lines":446,"tokens":447,"first":448,"others":451,"copies":302,"kind":377},20,84,{"name":365,"start":449,"end":450},312,331,[452],{"name":365,"start":453,"end":454},381,400,{"format":299,"lines":265,"tokens":456,"first":457,"others":461,"copies":302,"kind":377},80,{"name":458,"start":459,"end":460},"plugins\u002Fstitch-build\u002Fskills\u002Freact-components\u002Fscripts\u002Fvalidate.js",21,33,[462],{"name":463,"start":435,"end":464},"plugins\u002Fstitch-build\u002Fskills\u002Freact-native\u002Fscripts\u002Fvalidate.js",35,{"format":292,"lines":307,"tokens":402,"first":466,"others":469,"copies":302,"kind":377},{"name":418,"start":467,"end":468},666,677,[470],{"name":418,"start":471,"end":472},827,837,{"sources":265,"lines":474,"tokens":475,"clones":310,"duplicatedLines":476,"duplicatedTokens":477,"percentage":478,"percentageTokens":479,"formats":480,"topClones":493,"generated":571},3884,20344,188,1053,4.84,5.18,[481,484,487,488,491],{"format":292,"sources":255,"lines":482,"clones":295,"duplicatedLines":296,"percentage":483},2993,5.85,{"format":299,"sources":302,"lines":485,"clones":309,"duplicatedLines":265,"percentage":486},206,6.31,{"format":324,"sources":309,"lines":325,"clones":315,"duplicatedLines":315,"percentage":315},{"format":321,"sources":489,"lines":490,"clones":315,"duplicatedLines":315,"percentage":315},4,233,{"format":313,"sources":255,"lines":492,"clones":315,"duplicatedLines":315,"percentage":315},184,[494,500,515,527,531,535,544,553,563],{"format":292,"lines":357,"tokens":358,"first":495,"others":496,"copies":302,"excerpt":498,"kind":377},{"name":360,"start":361,"end":362},[497],{"name":365,"start":366,"end":367},{"lines":499,"total":357},[370,349,371,372,371,373,374,375,376,349],{"format":292,"lines":415,"tokens":416,"first":501,"others":502,"copies":302,"excerpt":504,"kind":377},{"name":418,"start":419,"end":420},[503],{"name":418,"start":423,"end":424},{"lines":505,"total":415},[506,507,508,349,509,510,511,512,513,514],"if (!srcset) continue;","const parts = srcset.split(',').map((s: string) => s.trim());","const newParts: string[] = [];","await processInBatches(parts, CONCURRENCY, async (part: string) => {","  const [url, ...descriptors] = part.split(\u002F\\s+\u002F);","  if (url.startsWith('data:')) {","    newParts.push(part);","    return;","  }",{"format":292,"lines":446,"tokens":447,"first":516,"others":517,"copies":302,"excerpt":519,"kind":377},{"name":365,"start":449,"end":450},[518],{"name":365,"start":453,"end":454},{"lines":520,"total":446},[521,370,349,522,523,524,521,370,525,526],"  return match;","const result = readFileAtomic(resolved, maxSize);","if (!result) {","  stats.skippedNotFound.push(localPath);","if ('tooLarge' in result) {","  stats.skippedTooLarge.push({ path: localPath, size: result.size });",{"format":299,"lines":265,"tokens":456,"first":528,"others":529,"copies":302,"kind":377},{"name":458,"start":459,"end":460},[530],{"name":463,"start":435,"end":464},{"format":292,"lines":307,"tokens":402,"first":532,"others":533,"copies":302,"kind":377},{"name":418,"start":467,"end":468},[534],{"name":418,"start":471,"end":472},{"format":292,"lines":265,"tokens":536,"first":537,"others":540,"copies":302,"kind":377},70,{"name":418,"start":538,"end":539},704,716,[541],{"name":418,"start":542,"end":543},848,859,{"format":292,"lines":307,"tokens":545,"first":546,"others":549,"copies":302,"kind":377},66,{"name":360,"start":547,"end":548},605,616,[550],{"name":360,"start":551,"end":552},623,634,{"format":292,"lines":554,"tokens":555,"first":556,"others":559,"copies":302,"kind":377},18,58,{"name":360,"start":557,"end":558},140,157,[560],{"name":418,"start":561,"end":562},163,180,{"format":292,"lines":401,"tokens":564,"first":565,"others":567,"copies":302,"kind":377},54,{"name":418,"start":566,"end":362},472,[568],{"name":418,"start":569,"end":570},1335,1340,{"files":315,"minified":315,"sample":572},[],{"score":266,"grade":267,"size":574,"dimensions":577},{"lines":575,"files":415,"class":576},4787,"S",[578,588,596],{"id":579,"source":580,"value":581,"adjusted":582,"lines":476,"halfLife":583,"formats":584,"excluded":585,"weight":309,"score":587},"duplication","jscpd",3.9,3.8,8.5,[292,313,324,321,299],[327,586],"data",73.3,{"id":589,"source":580,"value":489,"adjusted":590,"lines":591,"halfLife":592,"coverage":593,"weight":594,"score":595},"dead-code",3.7,185,7.5,96.7,0.967,70.9,{"id":597,"source":580,"value":598,"adjusted":599,"lines":482,"halfLife":600,"weight":309,"score":601},"complexity",62.5,50.3,50,49.8,{"total":603,"mean":604,"files":605},873,45.9,[606,610,614,618,622,625,629,633,636,640],{"path":418,"complexity":607,"lines":608,"bytes":609},346,1470,54743,{"path":360,"complexity":611,"lines":612,"bytes":613},263,1025,34450,{"path":365,"complexity":615,"lines":616,"bytes":617},97,498,14295,{"path":463,"complexity":619,"lines":620,"bytes":621},29,124,4087,{"path":458,"complexity":303,"lines":623,"bytes":624},82,2758,{"path":626,"complexity":303,"lines":627,"bytes":628},"plugins\u002Fstitch-build\u002Fskills\u002Fshadcn-ui\u002Fexamples\u002Fdata-table.tsx",290,8903,{"path":630,"complexity":261,"lines":631,"bytes":632},"plugins\u002Fstitch-build\u002Fskills\u002Fshadcn-ui\u002Fscripts\u002Fverify-setup.sh",134,4511,{"path":634,"complexity":446,"lines":325,"bytes":635},"plugins\u002Fstitch-design\u002Fskills\u002Fupload-to-stitch\u002Fscripts\u002Fupload_to_stitch.py",7417,{"path":637,"complexity":295,"lines":638,"bytes":639},"plugins\u002Fstitch-build\u002Fskills\u002Fremotion\u002Fexamples\u002FWalkthroughComposition.tsx",78,2295,{"path":641,"complexity":401,"lines":642,"bytes":643},"plugins\u002Fstitch-build\u002Fskills\u002Freact-native\u002Fexamples\u002Fgold-standard-card.tsx",167,3826,{"percentage":489,"findings":489,"files":318,"byCategory":645,"largest":650},[646,648],{"category":647,"count":255},"unused-file",{"category":649,"count":309},"unused-import",[651,654,657,660],{"category":647,"path":652,"name":349,"line":309,"lines":653},"plugins\u002Fstitch-build\u002Fskills\u002Fremotion\u002Fresources\u002Fscreen-slide-template.tsx",123,{"category":647,"path":655,"name":349,"line":309,"lines":656},"plugins\u002Fstitch-build\u002Fskills\u002Freact-components\u002Fresources\u002Fcomponent-template.tsx",37,{"category":647,"path":658,"name":349,"line":309,"lines":659},"plugins\u002Fstitch-build\u002Fskills\u002Freact-native\u002Fresources\u002Fcomponent-template.tsx",24,{"category":649,"path":360,"name":661,"line":662,"lines":309},"generate",32,{"\u002Ftrending\u002Fgoogle-labs-code\u002Fstitch-skills":664},{"views":315,"visits":315},1794919877150]