ds-gate
Skill0 starsChanged 5 months agoMITView on GitHub
Run the design-system quality gate — DTCG structure validation, WCAG 2.2 AA contrast audit, governance (semver), D-layer reference gate on docs, and hardcoded-color scan on consumer surfaces. The single verdict other skills depend on.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
Add --audit-table to print the full contrast-audit table (useful when the user asks "which combinations are safe for text?").
- Distinctive: line 68
Always summarize findings from the generated report file (rule ID → one-line finding → fix hint), most severe first.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Purpose
One command, one verdict. All publishing paths (/ds-push, tenant provisioning)
are fail-closed on this gate's BLOCK.
Windows note: always
python -X utf8 ….
Modes (composable — run what the user asked; default = tokens)
Tokens (DTCG + a11y + governance)
python -X utf8 ${CLAUDE_PLUGIN_ROOT}/scripts/validate_design.py --tokens DESIGN/design-tokens.json --profile design.profile.yml --out reports --format bothAdd --audit-table to print the full contrast-audit table (useful when the user
asks "which combinations are safe for text?").
Tenant (merged effective tokens)
python -X utf8 ${CLAUDE_PLUGIN_ROOT}/scripts/validate_design.py --base DESIGN/design-tokens.json --tokens tenants/{id}/design/override.tokens.json --profile design.profile.yml --out reports --format bothThe audit runs on the merged result — a tenant can never inherit its way past an accessibility failure.
Docs (D-layer reference gate)
python -X utf8 ${CLAUDE_PLUGIN_ROOT}/scripts/validate_design.py --doc <screen-spec.md> --profile design.profile.yml --out reports --format bothScreen specs must reference tokens/components by name — literal hex (D-R01), literal px/rem/em (D-R02), and color-name prose (D-R03) are flagged.
Surfaces (consumer code adoption)
python -X utf8 ${CLAUDE_PLUGIN_ROOT}/scripts/validate_design.py --surface <app/src> --profile design.profile.yml --out reports --format bothScans CSS/TSX/JS for hardcoded colors (D-S01) and reports the token-adoption ratio.
Verdict interpretation
| exit | verdict | meaning |
| 0 | PASS | publishable |
| 1 | CONDITIONAL | FIX-severity findings only — publishable with a warning, list the fixes |
| 2 | BLOCK | not publishable — report each finding with its rule ID and fix hint from reports/eval.design.*.md |
| 3 | error | engine failure — show stderr, do not interpret as a design verdict |
Always summarize findings from the generated report file (rule ID → one-line finding → fix hint), most severe first. Never re-derive contrast math yourself — the engine's numbers are authoritative.
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
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.

