4 views

addyosmani/agent-skills

Production-grade engineering skills for AI coding agents.

JavaScript★ 116,796+816 that day#6 on trending

Analyzed November 13, 2026 at 301b02b (main) with jscpd v5 in 0.7s. Code duplication went from 3.78% on Sep 4 to 4.78% on Nov 13.

C68.9/100
Project health7,541 lines of code (S)
Duplication68
5% in javascript, bash, python, tsx
Dead code93
0%
Complexity55
48.8%

The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.

4.78%duplicated code · 341 of 7,131 lines
35clones in code
25code files of 327 scanned
2.71%duplicated over all files · 64 clones

The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code.

Largest clones in the code

  • 12 lines in 3 placesbash79 tokens
    257  rm -rf "$PROJ"
    258  mkdir -p "$PROJ/.claude"
    259  TARGET="$PROJ/app.js"
    260  cat > "$TARGET" <<'EOF'
    261const editable = 1;
    262/* simplify-ignore-start: perf-critical */
    263const protectedValue = 42;
    264/* simplify-ignore-end */
    265EOF
    266
    

    First 10 of 12 lines.

  • 10 lines in 3 placesjavascript65 tokens
    3'use strict';
    4
    5const assert = require('node:assert/strict');
    6const fs = require('node:fs');
    7const os = require('node:os');
    8const path = require('node:path');
    9const { spawnSync } = require('node:child_process');
    10const { afterEach, test } = require('node:test');
    11
    12const VALIDATOR = path.join(__dirname, 'validate-artifact-paths.js');
    
    3'use strict';
    4
    5const assert = require('node:assert/strict');
    6const fs = require('node:fs');
    7const os = require('node:os');
    8const path = require('node:path');
    9const { spawnSync } = require('node:child_process');
    10const { afterEach, test } = require('node:test');
    11
    12const VALIDATOR = path.join(__dirname, 'validate-commands.js');
    
  • 13 lines in 2 placesbash118 tokens
    16command -v jq   >/dev/null 2>&1 || exit 0
    17command -v curl >/dev/null 2>&1 || exit 0
    18command -v shasum >/dev/null 2>&1 || command -v sha256sum >/dev/null 2>&1 || exit 0
    19
    20if [ -t 0 ]; then INPUT="{}"; else INPUT=$(cat); fi
    21
    22# Debug logging: active when SDD_CACHE_DEBUG=1 is set, or when a sentinel
    23# file exists at .claude/sdd-cache/.debug. Toggle with `touch` / `rm`.
    24dbg() {
    25  local dir="${CLAUDE_PROJECT_DIR:-$PWD}/.claude/sdd-cache"
    

    First 10 of 13 lines.

7 more
Largest clones over all files, tests and data included
  • 43 lines in 2 placestomldata files743 tokens
    1description = "Implement tasks incrementally — build, test, verify, commit. Add \"auto\" to run the whole plan in one approved pass."
    2
    3prompt = """
    4Invoke the incremental-implementation skill alongside test-driven-development.
    5
    6## Modes
    7
    8- `/build` — implement the next pending task, then stop (careful, one slice at a time).
    9- `/build auto` — generate the plan if needed, get a single approval, then implement every task without stopping between them.
    10
    

    First 10 of 43 lines.

  • 46 lines in 2 placestomldata files429 tokens
    27## Phase B — Merge in main context
    28
    29Once all three reports are back, the main agent (not a sub-persona) synthesizes them:
    30
    311. **Code Quality** — Aggregate Critical/Required findings from `code-reviewer` and any failing tests, lint, or build output. Resolve duplicates between review…
    322. **Security** — Promote any Critical/High `security-auditor` findings to launch blockers. Cross-reference with `code-reviewer`'s security axis.
    333. **Performance** — Pull from `code-reviewer`'s performance axis; cross-check Core Web Vitals if applicable.
    344. **Accessibility** — Verify keyboard nav, screen reader support, contrast (not covered by the three personas — handle directly here, or invoke the accessibil…
    355. **Infrastructure** — Env vars, migrations, monitoring, feature flags. Verify directly.
    366. **Documentation** — README, ADRs, changelog. Verify directly.
    

    First 10 of 46 lines.

  • 24 lines in 2 placestomldata files421 tokens
    1description = "Define and enforce this project's quality bar — interview, sane defaults, CONSTRAINTS.md"
    2
    3prompt = """
    4Invoke the constraint-driven-development skill.
    5
    6$ARGUMENTS
    7
    8Default behaviour with no arguments: set up constraints for this repository.
    9
    101. **Detect first.** Read package.json / pyproject.toml / go.mod, the test runner, existing lint configs, current coverage output, CI workflows, and the agent …
    

    First 10 of 24 lines.

  • 11 lines in 3 placesdiffdocs and examples119 tokens
  • 9 lines in 2 placestomldata files223 tokens
By format, code only
FormatFilesLinesClonesDuplicated linesDuplication
javascript185,448282654.86%
bash71,6837764.52%
By format, all files
FormatFilesLinesClonesDuplicated linesDuplication
javascript385,857282654.52%
toml185421525747.42%
bash211,8957764.01%
diff713765338.69%
markdown11314,5234320.22%
python818823820.21%
typescript13672171.04%
yaml33492181.63%
json331,585000%
text341,001000%

Trending appearances

DayRankStarsFilesLinesClonesAll filesCodeHealthCommit
Nov 13, 2026#6116,796 (+816)32727,189642.71%4.78%C 68.9301b02b
Nov 12, 2026#3116,088 (+787)32727,189642.71%4.78%C 68.9301b02b
Nov 11, 2026#2115,306 (+465)32727,189642.71%4.78%C 68.9301b02b
Oct 10, 2026#5104,136 (+436)30225,858512.35%4.48%B 73.91401c8b
Oct 8, 2026#4102,967 (+677)30025,846512.35%4.48%B 73.91401c8b
Oct 5, 2026#6101,277 (+336)30025,802512.36%4.51%B 73.91401c8b
Oct 4, 2026#5100,922 (+252)30025,802512.36%4.51%B 73.91401c8b
Sep 21, 2026#1097,806 (+736)28923,997472.38%5.22%B 77.2dc27a9c
Sep 20, 2026#297,172 (+556)28723,356422.25%4.87%B 77.4c004a74
Sep 19, 2026#596,504 (+675)28723,356422.25%4.87%B 77.4c004a74
Sep 18, 2026#395,981 (+680)28723,356422.25%4.87%—c004a74
Sep 16, 2026#894,942 (+307)28722,741351.99%3.76%—be4e44a
Sep 4, 2026#692,096 (+264)28122,281352.02%3.78%—020ec10

Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.