addyosmani/agent-skills

Production-grade engineering skills for AI coding agents.

JavaScript★ 104,136+436 that day#5 on trending

Analyzed October 10, 2026 at 1401c8b (main) with jscpd v5 in 1.0s. Code duplication went from 3.78% on Sep 4 to 4.48% on Oct 10.

B73.9/100
Project health6,857 lines of code (S)
Duplication71
4.3% in javascript, bash, perl, python, tsx
Dead code92
0%
Complexity66
32.4%

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.48%duplicated code · 296 of 6,604 lines
29clones in code
31code files of 302 scanned
2.35%duplicated over all files · 51 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/Important findings from `code-reviewer` and any failing tests, lint, or build output. Resolve duplicates between revie…
    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.

  • 9 lines in 2 placestomldata files223 tokens
  • 16 lines in 2 placestomldata files163 tokens
By format, code only
FormatFilesLinesClonesDuplicated linesDuplication
javascript144,347222205.06%
bash162,0897763.64%
perl1168000%
By format, all files
FormatFilesLinesClonesDuplicated linesDuplication
javascript304,685222204.7%
toml185421525747.42%
bash322,3267763.27%
markdown9914,1494320.23%
typescript13658171.06%
yaml27458181.75%
diff4711811.27%
json321,441000%
text341,000000%
tsx5172000%

Trending appearances

DayRankStarsFilesLinesClonesAll filesCodeHealthCommit
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.