design-doctrine

design-doctrine is a skill for Claude Code from plugin87/ux-ui-agent-skills. It costs 92 tokens per session (2,539 once invoked), scanned A, original, MIT.

A shared rulebook for building and checking user interfaces, including themes, visual states, responsive layouts, and verification steps. A user interface is the part of software people see and operate.

In plain words
What is it for?
Use it when creating, reviewing, or theming screens, components, or design tokens, and when checking them in multiple themes and screen sizes.
Why use it?
It reduces visual and interaction errors that automated checks alone may miss, such as broken focus states, poor small-screen layouts, or controls that do not visibly change.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_SKILL_DIR} variable. Also seen: mentions CLAUDE.md; mentions Claude Code.

Part of the ux-ui-agent-skills plugin — 26 skills, 1 command, 1 agent, 3 hooks, 2 MCP servers shipped together

Good fit Use it when creating, reviewing, or theming screens, components, or design tokens, and when checking them in multiple themes and screen sizes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/plugin87/ux-ui-agent-skills/design-doctrine
About the project

UX/UI Agent Skills is a set of instructions, design tokens, reusable components, accessibility rules, and design-system references that guide Claude in producing interface designs and code. It is intended for developers and designers who want framework-independent, token-based UI work with accessibility checks. The catalogue entries package these UX, UI, component, and validation workflows as Claude Code skills and related add-ons.

plugin87/ux-ui-agent-skills · 3,253 stars · on GitHub · plugin87.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add plugin87/ux-ui-agent-skills --skill design-doctrine
Clone the repo
git clone --depth 1 https://github.com/plugin87/ux-ui-agent-skills

Made for: Claude Code.

Or install ux-ui-agent-skills, the plugin that ships this one along with the rest of its 26 skills, 1 command, 1 agent, 3 hooks, 2 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for design-doctrine

README.md
[![agentmods](https://agentmods.dev/badge/skills/plugin87/ux-ui-agent-skills/design-doctrine/github.svg)](https://agentmods.dev/skills/plugin87/ux-ui-agent-skills/design-doctrine)
Your own site
<a href="https://agentmods.dev/skills/plugin87/ux-ui-agent-skills/design-doctrine"><img src="https://agentmods.dev/badge/skills/plugin87/ux-ui-agent-skills/design-doctrine/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for design-doctrine

Your own site · 80×15
<a href="https://agentmods.dev/skills/plugin87/ux-ui-agent-skills/design-doctrine"><img src="https://agentmods.dev/badge/skills/plugin87/ux-ui-agent-skills/design-doctrine.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,539 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00092 $0.02539
Opus 5.5 $0.00037 $0.01016
Sonnet 5.5 $0.00018 $0.00508
Haiku 4.5 $0.00009 $0.00254

Measured 11d ago against content hash 5ae0698bc666, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

design-doctrine scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/design-doctrine/SKILL.md · 172 lines

How it starts

The opening of the file, as written. The whole thing — 172 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill: Design Doctrine

Requirements

This skill needs the full UX/UI Agent Skills kit: the gates, the references and the design-system library. Install it with npx [email protected] init or as the Claude Code plugin. npx [email protected] add copies the skill folder and nothing else. Installed that way, this skill runs in guidance-only mode: no gate runs, so it gives no verdict.

Step 0: is the kit here? Check once: ls ${CLAUDE_SKILL_DIR}/../../../tokens >/dev/null 2>&1 && echo KIT_OK || echo KIT_MISSING On KIT_MISSING, open your reply with: "Guidance-only mode: the UX/UI Agent Skills kit is not installed here, so no gate ran and nothing below is measured." Then work from this file and general practice, under three rules. Do not guess or cite the contents of a kit file you could not open. State no measured number (no contrast ratio, no N/N, no "passes WCAG"): write "not verified" where one would go. End with a line Skipped (kit not installed): that names every gate script this file tells you to run, then the install command above.

A plugin's root CLAUDE.md is not loaded as project context, so the always-on brief travels here instead. Read this before the first line of any design work, then load the rule file for the territory you are actually in.

Verification protocol - run gates, never claim

  1. Never state a number you did not measure. Any contrast ratio, "WCAG pass", or "100%" must come from running a gate and reporting its real output. If you have not run it, say "not verified yet."
  2. Verify every state, not just resting. node ${CLAUDE_SKILL_DIR}/../../../scripts/gate.mjs verify_states.mjs <file> [--dark] measures default, hover and focus - a button that passes at rest can fail on hover.
  3. One command before reporting done: node ${CLAUDE_SKILL_DIR}/../../../scripts/accuracy_report.mjs. Report the real N/N line. It is all-or-nothing.
  4. Build with the gates, not after them. Fix and re-run until green; never announce success between failures.
  5. Render and LOOK. Gates pass while a UI is still visibly broken. Screenshot the harness in both themes, click every control, and confirm the state changed.
  6. Responsive is gated too: node ${CLAUDE_SKILL_DIR}/../../../scripts/gate.mjs verify_responsive.mjs <file|dir>: no horizontal overflow from 280 to 951px, iPhone Duo included, and a hinge kept clear by any page that answers the fold.
  7. Honest scope. The gates prove objective correctness. They never prove taste. For that, run /critique, look at the work yourself, and start from the taste preflight below rather than from default components.
  8. SKIPPED is not a pass. With no browser installed a render gate prints SKIPPED and exits 0, reporting nothing. Run single render gates behind DS_REQUIRE_BROWSER=1 so that becomes REQUIRED, FAILING, and fix it with npx playwright install chrome rather than by removing the flag.

Read the full file on GitHub · 172 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago Changed 5ae0698bc666
  2. 19d ago Changed · +12 lines b38d82fff574
  3. 1mo ago Changed · +2 lines 13f245dd3118
  4. 1mo ago Changed · +78 lines 8c1b3ffe964a
  5. 2mo ago Changed · +4 lines c3afec8d55f0
  6. 2mo ago First seen · 76 lines · 92 tokens per session scan A f76d94da12a8

Subscribe to this mod's changes

design-doctrine is a skill published in the GitHub repository plugin87/ux-ui-agent-skills (3,253 stars, last pushed 12d ago), licensed MIT. It adds 92 tokens to every session and 2,539 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-15.

Related

design-doctrine compared with skills from other repositories

design-doctrine next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
design-doctrineplugin87/ux-ui-agent-skillsSkill3.3k12d agoMITA92Claude Code
brand-visual-languagedembrandt/dembrandt-skillsSkill245yesterdayMITA35Claude Code
loading-states-and-perceived-performancedembrandt/dembrandt-skillsSkill245yesterdayMITA38Claude Code
micro-interactionsdembrandt/dembrandt-skillsSkill245yesterdayMITA28Claude Code
responsive-paradigmsdembrandt/dembrandt-skillsSkill245yesterdayMITA33Claude Code
color-mode-and-themedembrandt/dembrandt-skillsSkill245yesterdayMITA33Claude Code
elevation-and-depthdembrandt/dembrandt-skillsSkill245yesterdayMITA34Claude Code