component-library

component-library is a skill for Claude Code, Codex from aneja5/forge-skills. It costs 43 tokens per session (1,637 once invoked), scanned A, original, MIT.

A catalogue of the interface components a product needs, including their properties, states, responsive behavior, accessibility, and usage rules.

In plain words
What is it for?
Use it to plan a component system, document component APIs and states, and define reusable interface parts for a product.
Why use it?
It prevents different engineers from building separate versions of the same button, card, modal, or other component. The catalogue makes the interface more consistent before a major build.

Skill for Claude CodeCodex

Part of the forge-skills plugin — 42 skills, 36 commands, 13 agents, 1 hook shipped together

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.

agentmods
npx agentmods add skills/aneja5/forge-skills/component-library
Any agent
npx skills add aneja5/forge-skills --skill component-library
Clone the repo
git clone --depth 1 https://github.com/aneja5/forge-skills

Made for: Claude Code, Codex.

Or install forge-skills, the plugin that ships this one along with the rest of its 42 skills, 36 commands, 13 agents, 1 hook.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/aneja5/forge-skills/component-library.svg)](https://agentmods.dev/skills/aneja5/forge-skills/component-library)
Your own site
<a href="https://agentmods.dev/skills/aneja5/forge-skills/component-library"><img src="https://agentmods.dev/badge/skills/aneja5/forge-skills/component-library.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,637 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00043 $0.01637
Opus 5 $0.00022 $0.00818
Sonnet 5 $0.00009 $0.00327
Haiku 4.5 $0.00004 $0.00164

Measured yesterday against content hash c360901e49d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

component-library 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 yesterday.

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-library/SKILL.md · 110 lines

How it starts

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

Component Library

Overview

Catalog every component the product needs before the build sprint — props, states, responsive behavior, accessibility, composition rules, and microcopy. Output is .forge/component-library.md. Inherits tokens from design-system, behaviors from interaction-patterns, and voice + icons from brand-and-identity. Consumed by page-composition, data-visualization, and every UI build task.

When to Use

  • A major UI build sprint is starting and no component catalog exists
  • Two engineers are about to build a Button / Card / Modal independently
  • The codebase has 3 different Button components with different APIs
  • A new domain-specific component (ScoreCard, RepCard, CallTimeline) is being designed
  • A redesign is replacing shadcn defaults with domain-shaped components

When NOT to Use

  • A single one-off component for one screen — incremental-implementation
  • Backend-only services
  • The product genuinely doesn't have a UI yet — establish design-system and interaction-patterns first

Common Rationalizations

Thought Reality
"We'll extract components as we go" Extraction after the fact means 3 versions of Button with different APIs. Catalog first, build once.
"This is premature abstraction" A component catalog is not abstraction. It's a vocabulary. You define words before writing sentences.
"Just use shadcn and move on" shadcn gives generic components. ScoreCard, RepCard, CallTimeline are domain-specific — those need defining.
"Props can evolve" Props that evolve without a catalog diverge. One engineer adds size, another adds isLarge. The catalog prevents this.
"We don't need a loading state for that component" Every async component lies about readiness without a loading state.

Red Flags

  • Two components doing the same job under different names (Button and ActionButton, Card and Panel)
  • A component with 15+ props — it's two components fused
  • A component without a loading or empty state
  • Hardcoded strings inside a component instead of prop-driven microcopy
  • No accessibility attributes (role, aria-*) on interactive components
  • A component accepting className as a token-override escape hatch

Read the full file on GitHub · 110 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. yesterday First seen · 110 lines · 43 tokens per session scan A c360901e49d2

Subscribe to this mod's changes

component-library is a skill published in the GitHub repository aneja5/forge-skills (3 stars, last pushed 3mo ago), licensed MIT. It adds 43 tokens to every session and 1,637 once invoked, about $0.0002 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-09-03.