agentleFS
weg-9000weg-9000/Lime-design/skills/ds-adopt/SKILL.md

ds-adopt

Skill0 starsChanged 5 months agoMITView on GitHub

Measure design-system adoption in consumer code (methodology P5) — scan app surfaces for hardcoded colors (D-S01) and report the token-use vs. hardcoded ratio with a prioritized fix list.

The file

Files
SKILL.md

Purpose

Governance needs numbers. This skill scans consumer surfaces (CSS/SCSS/TSX/JS) for hardcoded colors and reports adoption metrics, turning "please use tokens" into a measurable trend.

Windows note: always python -X utf8 ….

Workflow

1 — Ask for the surface path(s)

The app source directory (e.g. ../my-app/src). Multiple surfaces → run per surface and aggregate.

2 — Scan

python -X utf8 ${CLAUDE_PLUGIN_ROOT}/scripts/validate_design.py --surface <app/src> --profile design.profile.yml --out reports --format both

The engine skips tokens.css itself, node_modules, and comment lines.

3 — Report

From reports/eval.design.surface.md:

  • Adoption ratio — token references vs. hardcoded colors.
  • Top offenders — files with the most D-S01 findings, each with its hardcoded value and the semantic token that should replace it (match by nearest hue/role from the SSoT; if no token fits, say so — that is palette feedback for /ds-tokens, not a lint nag).
  • Trend — if a previous surface report exists in reports/, compare counts and state the direction.

Findings are FIX severity (advisory) — this skill informs; it does not block.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.