agentic-design-system: Skill for Claude Code

.claude/skills/add-component-spec/SKILL.md

add-component-spec is a skill for Claude Code from brianmontanaweb/agentic-design-system. It costs 69 tokens per session (1,550 once invoked), scanned A, original, MIT.

A documentation tool that creates a typed specification file beside an existing software component. The specification records its design tokens, accepted inputs and accessibility requirements, including references to WCAG guidelines.

In plain words
What is it for?
It helps document component properties, scan and record style tokens, and define accessibility requirements in a TypeScript file.
Why use it?
It gives a component a checked, structured description instead of leaving its interface and accessibility expectations undocumented.

Skill for Claude Code

Written for Claude Code: context: fork in frontmatter.

This is brianmontanaweb/agentic-design-system's own configuration. It tells Claude Code how to work on agentic-design-system itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agentic-design-system configures →

Reuse

Borrowing it

Nothing to install: this file belongs to brianmontanaweb/agentic-design-system. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/brianmontanaweb/agentic-design-system/main/.claude/skills/add-component-spec/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/brianmontanaweb/agentic-design-system

Made for: Claude Code.

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 add-component-spec

README.md
[![agentmods](https://agentmods.dev/badge/skills/brianmontanaweb/agentic-design-system/add-component-spec/github.svg)](https://agentmods.dev/skills/brianmontanaweb/agentic-design-system/add-component-spec)
Your own site
<a href="https://agentmods.dev/skills/brianmontanaweb/agentic-design-system/add-component-spec"><img src="https://agentmods.dev/badge/skills/brianmontanaweb/agentic-design-system/add-component-spec/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 add-component-spec

Your own site · 80×15
<a href="https://agentmods.dev/skills/brianmontanaweb/agentic-design-system/add-component-spec"><img src="https://agentmods.dev/badge/skills/brianmontanaweb/agentic-design-system/add-component-spec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,550 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.00069 $0.01550
Opus 5.5 $0.00028 $0.00620
Sonnet 5.5 $0.00014 $0.00310
Haiku 4.5 $0.00007 $0.00155

Measured 2mo ago against content hash 4e757dfbb53f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

add-component-spec 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 2mo 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/add-component-spec/SKILL.md · 125 lines

How it starts

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

Add Component Spec Doc

Create the spec doc given $ARGUMENTS in the format <ComponentName>.


Gotchas

  • The tokens field requires active scanning — extract every semantic token string from the source style props (any quoted dotted name in a Chakra style prop that is not #-hex) and list each in the matching tokens.* array. Do not write the list from memory.
  • Every prop in the export interface block goes in props — including string-literal-key props like 'aria-label'?: string.
  • Use exact TypeScript types in props — Record<string, unknown> is not object; unions list all members.
  • The doc is real TypeScript, not markdown — packages/mcp-builder/scripts/generate.ts imports it directly to build the MCP server's component metadata. There is no parse contract to satisfy; tsc and eslint are the only gates. Step 4's regeneration only fails if the file doesn't type-check as ComponentDoc or a required field is missing.
  • No approval gate — creating one doc is the whole task; proceed without asking.

Step 1 — Locate the component source

ls packages/core/src/<ComponentName>/<ComponentName>.tsx packages/agents/src/<ComponentName>/<ComponentName>.tsx 2>/dev/null

If no output, stop immediately and respond:

## No source: <ComponentName>

Neither package contains `<ComponentName>`. Create it first with
`/add-component-source <ComponentName>` (source only) or `/add-component <ComponentName>` (full scaffold).

Infer the package (core or agents) from which path exists.

Step 2 — Read context

Read:

  • The component source file — props interface, variants, states, ARIA attributes, token usage
  • packages/core/src/Button/Button.doc.ts — the ComponentDoc shape to follow
  • packages/component-doc/src/index.ts — the authoritative ComponentDoc/PropDoc/TypeDoc interfaces
  • If packages/<package>/src/<ComponentName>/<ComponentName>.doc.ts already exists, stop and suggest /update-component <ComponentName> instead — spec drift is that skill's job.

Read the full file on GitHub · 125 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 125 lines · 69 tokens per session scan A 4e757dfbb53f

Subscribe to this mod's changes

add-component-spec is a skill published in the GitHub repository brianmontanaweb/agentic-design-system (3 stars, last pushed 2mo ago), licensed MIT. It adds 69 tokens to every session and 1,550 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

shadcn

Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for…

productdevbook/shadcn-htmx · 90 tokens

design-component

Design a UI component spec to the house quality bar (anatomy, variants, sizes, the 8 states, token mapping, and accessibility). Use when the user wants to design or document a component (button, input, tabs, toast, combobox, date picker, modal, etc.) at the spec level before or alongside code. For generating framework…

plugin87/ux-ui-agent-skills · 81 tokens

design-screen

Design or build a page, screen, landing page, website, app or UI from a request - the whole job, end to end. Use this for "design a landing page", "build a settings screen", "make me a website", "design the onboarding", "ออกแบบหน้าเว็บ", "ทำหน้า landing", "ออกแบบ UI", "ทำแอป". It runs the pipeline no single skill…

plugin87/ux-ui-agent-skills · 151 tokens

critique

Adversarial design critique of the current work. Render it, look at it, and argue for rejection. Run after the gates are green, never instead of them.

plugin87/ux-ui-agent-skills · 37 tokens

scaffold-project

Scaffold a new design-product project that matches the recommended Claude Code layout (the reference structure). Use when starting a fresh product/app that will be built with this design system.

plugin87/ux-ui-agent-skills · 39 tokens

image-to-code

Turn a reference image, screenshot, or mockup into token-driven, accessible code. Infer the design system from the reference (palette, type scale, spacing, radius, layout archetype), map it to the 3-tier tokens, rebuild it, then verify with the kit's gates. Use when the user provides a design/screenshot and wants…

plugin87/ux-ui-agent-skills · 77 tokens