design-conventions

design-conventions is a skill for Claude Code from addit-digital/addit-harness. It costs 72 tokens per session (1,568 once invoked), scanned A, original, MIT.

A tool that examines an existing TypeScript/React interface and records its visual rules in .claude/design-conventions.md. TypeScript and React are technologies commonly used to build web interfaces.

In plain words
What is it for?
Use it before substantial interface work, or with --refresh when the design has changed, to document colors, layout, components, and other established conventions.
Why use it?
It gives future UI work a project-specific reference for existing styles and patterns instead of making the agent rediscover them each time.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions CLAUDE.md.

Part of the addit-harness plugin — 8 skills, 15 agents, 9 hooks shipped together

Good fit Use it before substantial interface work, or with --refresh when the design has changed, to document colors, layout, components, and other established conventions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/addit-digital/addit-harness/design-conventions
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 addit-digital/addit-harness --skill design-conventions
Clone the repo
git clone --depth 1 https://github.com/addit-digital/addit-harness

Made for: Claude Code.

Or install addit-harness, the plugin that ships this one along with the rest of its 8 skills, 15 agents, 9 hooks.

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-conventions

README.md
[![agentmods](https://agentmods.dev/badge/skills/addit-digital/addit-harness/design-conventions/github.svg)](https://agentmods.dev/skills/addit-digital/addit-harness/design-conventions)
Your own site
<a href="https://agentmods.dev/skills/addit-digital/addit-harness/design-conventions"><img src="https://agentmods.dev/badge/skills/addit-digital/addit-harness/design-conventions/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-conventions

Your own site · 80×15
<a href="https://agentmods.dev/skills/addit-digital/addit-harness/design-conventions"><img src="https://agentmods.dev/badge/skills/addit-digital/addit-harness/design-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,568 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.00072 $0.01568
Opus 5.5 $0.00029 $0.00627
Sonnet 5.5 $0.00014 $0.00314
Haiku 4.5 $0.00007 $0.00157

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

Security

Grade A, and why

design-conventions 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 25d 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.

skills/design-conventions/SKILL.md · 139 lines

How it starts

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

/design-conventions — generate per-project visual design conventions

Scans the current TypeScript/React project's UI layer and produces .claude/design-conventions.md — a lightweight, project-specific visual design convention reference. rules/typescript-frontend.md instructs loading this file first for any UI work, so the design language loads cheaply without re-scanning each session.

Greenfield guard

This skill derives from what exists. If the project has no existing UI at all (no Tailwind config, no token files, no components, no screens), stop and tell the user to ask @frontend-architect first — creating a design language from a blank slate is design work, not derivation. If only config exists (Tailwind config, a chosen component lib, token file stubs) with no implemented screens, seed a minimal stub from that and flag the rest for the architect.

When to run

  • First time in a project with existing UI — before any substantial UI work.
  • --refresh — when the design system has evolved or a new visual pattern has been established. Merges new patterns into the existing file; preserves hand-edits.
  • Prompted by a gap — if you hit a pattern the file doesn't cover while coding, append the rule inline (don't re-run the full scan).

Procedure

1. Confirm context

Verify you're in a TS/React project: check for package.json, a tsconfig.json, and the presence of .ts/.tsx files. If absent, stop and say so.

Check whether .claude/design-conventions.md already exists. If it does and --refresh was not passed, report what's there and ask the user to pass --refresh to merge new patterns.

2. Scan the project's UI layer

Read these artifacts in priority order:

a. Design token / config foundation

  • tailwind.config.{ts,js} — custom color palette, spacing scale, type scale, breakpoints, font families, border-radius tokens, shadow scale
  • tokens/ or design-tokens/ directory — primitive and semantic token definitions
  • CSS custom-property files (variables.css, globals.css, :root blocks)
  • theme.{ts,js} or theme/ — if using a component lib (MUI, Chakra, Mantine)

Read the full file on GitHub · 139 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. 25d ago Changed · +2 tokens per session 979a9e98ac8e
  2. 1mo ago First seen · 139 lines · 70 tokens per session scan A 3beffc2cf433

Subscribe to this mod's changes

design-conventions is a skill published in the GitHub repository addit-digital/addit-harness (3 stars, last pushed 25d ago), licensed MIT. It adds 72 tokens to every session and 1,568 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories

gsap

Expert guidelines for building high-performance animations with GSAP (GreenSock Animation Platform).

Mindrally/skills · 19 tokens

frontend-enhancer

Enhance the visual design of web apps: modern UI components, layout, responsive design, color palettes, animations. Use for styling and UI polish; pair with ui-research first for new design directions.

travisjneuman/.claude · 45 tokens

generic-design-system

Complete design system reference for any project - colors, typography, spacing, components, animations. Adapts to project theme and tech stack. Use when implementing UI, choosing colors, creating animations, or ensuring brand consistency. For new design systems, use ui-research skill first.

travisjneuman/.claude · 60 tokens

generic-react-design-system

Complete design system reference for React applications. Covers colors, typography, spacing, component patterns, glassmorphism effects, GPU-accelerated animations, and WCAG AA accessibility. Use when implementing UI, choosing colors, applying spacing, creating components, or ensuring brand consistency.

travisjneuman/.claude · 59 tokens

generic-static-design-system

Complete design system reference for static HTML/CSS/JS sites. Covers colors, typography, component patterns, animations, and accessibility. Use when implementing UI, choosing colors, or ensuring brand consistency.

travisjneuman/.claude · 44 tokens

generic-static-ux-designer

Professional UI/UX design expertise for static HTML/CSS/JS sites. Covers design thinking, user psychology, visual hierarchy, minimalist interaction patterns, accessibility, and performance-driven design. Use when designing features, improving UX, or conducting design reviews.

travisjneuman/.claude · 56 tokens