component

component is a skill for Claude Code, Codex from Dragoon0x/dragoon-skills. It costs 112 tokens per session (507 once invoked), scanned A, original, MIT.

A command that creates a starter UI component matching the project's existing framework, styling method, programming language, and design tokens. Design tokens are shared values such as colors, spacing, and corner sizes.

In plain words
What is it for?
Use it to scaffold components such as cards or buttons, preview the result first, or write it to a chosen directory with an apply option.
Why use it?
It provides a consistent starting point instead of making each new component guess how the codebase is structured and styled.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use it to scaffold components such as cards or buttons, preview the result first, or write it to a chosen directory with an apply option.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dragoon0x/dragoon-skills/component
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 Dragoon0x/dragoon-skills --skill component
Clone the repo
git clone --depth 1 https://github.com/Dragoon0x/dragoon-skills

Made for: Claude Code, Codex.

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 component

README.md
[![agentmods](https://agentmods.dev/badge/skills/dragoon0x/dragoon-skills/component.svg)](https://agentmods.dev/skills/dragoon0x/dragoon-skills/component)
Your own site
<a href="https://agentmods.dev/skills/dragoon0x/dragoon-skills/component"><img src="https://agentmods.dev/badge/skills/dragoon0x/dragoon-skills/component.svg" alt="Measured on agentmods" height="20"></a>
Per session 112 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 507 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.00112 $0.00507
Opus 5 $0.00056 $0.00253
Sonnet 5 $0.00022 $0.00101
Haiku 4.5 $0.00011 $0.00051

Measured 7d ago against content hash 67c0edc16eca, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

component 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 7d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/component.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/component/SKILL.md · 53 lines

What it actually says

/component

Generates a component scaffold that matches the codebase's existing style.

When to use

  • The user asks to "create a component", "scaffold a UI primitive", "add a Card / Button / etc."
  • The user wants a starting point that fits the existing design system
  • Setting up a new feature that needs new UI

How it works

  1. Reads dragoon.json (or runs /scan if missing) to detect the stack.
  2. Picks a template based on framework + styling layer:
    • react + tailwind → tsx with tailwind utility classes derived from your tokens
    • react + css-modules → tsx + .module.css using your spacing grid and radius
    • react + plain css → tsx + .css with kebab-case class
    • vue → SFC with scoped styles
    • svelte → .svelte single file
  3. Substitutes manifest tokens: spacing grid → padding, palette → bg/fg, radius scale → border-radius.
  4. Defaults to dry-run preview. --apply actually writes files.

Run it

dragoon component <Name> [--dir path] [--apply]

# preview
dragoon component Card

# write to default src/components/
dragoon component Card --apply

# custom directory
dragoon component UserMenu --dir src/ui --apply

# overwrite existing
dragoon component Card --apply --overwrite

Safety

  • Component name must be PascalCase identifier (rejects shell metacharacters, reserved words).
  • Output directory is resolved inside the project root (rejects path traversal).
  • Refuses to overwrite existing files unless --overwrite is passed.
  • All writes are atomic (temp file + rename), so a failed write never leaves a half-written file.
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. 7d ago First seen · 53 lines · 112 tokens per session scan A 67c0edc16eca

Subscribe to this mod's changes

component is a skill published in the GitHub repository Dragoon0x/dragoon-skills (4 stars, last pushed 4mo ago), licensed MIT. It adds 112 tokens to every session and 507 once invoked, about $0.0006 per session on Opus 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

Dark Mode Bug Finder

Detect dark mode rendering issues including contrast failures, missing theme tokens, image inversions, and transition glitches across components.

PramodDutta/qaskills · 28 tokens

figma-extract-design-system

Extract a design system from vibe-coded production apps that never had one: inventory components, mine de-facto styling into DTCG tokens, scaffold a Storybook package, port components, and optionally round-trip tokens/components into Figma. Use when the user wants to 'extract a design system', 'create a design system…

southleft/figma-console-mcp-skills · 133 tokens

figma-export-tokens

Export Figma variables to design token files in DTCG, CSS custom properties, Tailwind v4/v3, SCSS, TypeScript, JSON, Style Dictionary, or Tokens Studio. Use when the user wants to pull design tokens OUT of Figma into code — triggers: 'export tokens', 'export Figma variables', 'generate CSS variables from Figma', 'turn…

southleft/figma-console-mcp-skills · 144 tokens

figma-scan-code-accessibility

Scan generated/authored HTML for accessibility violations with axe-core (Deque) running over JSDOM — structural and semantic rules: ARIA attributes and roles, accessible names, alt text, form labels, heading order, landmarks, semantic HTML, tabindex, duplicate IDs, lang attribute, and 50 more. Use on the CODE side of…

southleft/figma-console-mcp-skills · 200 tokens

accessible-by-default

Build web UI that is accessible through the platform instead of patched with ARIA and JavaScript. Use when writing or reviewing HTML and CSS for any web interface - choosing between a native element and a hand-built component, styling focus, honouring user preferences such as reduced motion or forced colors, meeting…

ThomasSweet/a11y-foundation · 82 tokens

figma-analyze-component-set

Analyze a Figma COMPONENTSET as a state machine for code generation — extract variant axes (state/size/etc.), map state variants to CSS pseudo-classes (hover→:hover, focus→:focus-visible, disabled→:disabled, error→[aria-invalid]), and compute per-variant visual diffs (only what changes per state). Use when generating…

southleft/figma-console-mcp-skills · 179 tokens