frontend-component-build

frontend-component-build is a skill for Claude Code from rampstackco/claude-skills-starter. It costs 109 tokens per session (1,921 once invoked), scanned A, a copy of frontend-component-build, MIT.

A guide for building frontend components—reusable parts of a website or app—with accessible markup, clear inputs, defined states, and tested behavior.

In plain words
What is it for?
Use it to create or refactor components, design their inputs and events, implement designs, add accessibility, and cover required UI states.
Why use it?
It helps prevent incomplete interface elements that fail in loading, error, empty, or interaction states or are difficult for some users to access.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the rampstack-starter plugin — 14 skills shipped together

Good fit Use it to create or refactor components, design their inputs and events, implement designs, add accessibility, and cover required UI states.

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

Made for: Claude Code.

Or install rampstack-starter, the plugin that ships this one along with the rest of its 14 skills.

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 frontend-component-build

README.md
[![agentmods](https://agentmods.dev/badge/skills/rampstackco/claude-skills-starter/frontend-component-build/github.svg)](https://agentmods.dev/skills/rampstackco/claude-skills-starter/frontend-component-build)
Your own site
<a href="https://agentmods.dev/skills/rampstackco/claude-skills-starter/frontend-component-build"><img src="https://agentmods.dev/badge/skills/rampstackco/claude-skills-starter/frontend-component-build/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 frontend-component-build

Your own site · 80×15
<a href="https://agentmods.dev/skills/rampstackco/claude-skills-starter/frontend-component-build"><img src="https://agentmods.dev/badge/skills/rampstackco/claude-skills-starter/frontend-component-build.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,921 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 100% copy Near-identical to another mod 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.00109 $0.01921
Opus 5 $0.00055 $0.00960
Sonnet 5 $0.00022 $0.00384
Haiku 4.5 $0.00011 $0.00192

Measured 9d ago against content hash 32c9a8c1e655, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

frontend-component-build 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 9d 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.

Origin

This is a copy

100% identical to frontend-component-build — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/frontend-component-build/SKILL.md · 185 lines

How it starts

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

Frontend Component Build

Build production-ready components. Stack-agnostic principles. Most patterns translate to React, Vue, Svelte, or vanilla web components.

This skill is about implementing a component well. For broader system design see design-system. For day-to-day visual decisions see design-standards.


When to use

  • Building a new component from scratch
  • Refactoring an existing component
  • Designing a component API (props, slots, events)
  • Adding accessibility to an existing component
  • Implementing a component from a design

When NOT to use

  • Building a full design system (use design-system)
  • Page-level design decisions (use design-standards)
  • Backend or data work (use code-review-web)
  • Performance-only optimization (use performance-optimization)

Required inputs

  • The component's purpose (what UI need it serves)
  • The design (or willingness to design it)
  • The framework or technical context
  • The states the component must support
  • Accessibility requirements

The framework: 6 dimensions

A complete component handles six dimensions. Skip any one and the component is incomplete.

1. Anatomy

Identify the parts that make up the component before writing any markup.

Common anatomies:

  • Button: container + label + (optional) icon + (optional) loading indicator
  • Modal: backdrop + container + header + body + footer + close affordance
  • Form input: label + input + (optional) help text + (optional) error message
  • Card: container + (optional) header + body + (optional) footer + (optional) media

Naming the parts up front makes the API obvious.

2. Variants

What variations does the component support?

  • Visual variants (primary, secondary, ghost, danger)
  • Size variants (small, medium, large)
  • Functional variants (with icon, without icon, icon-only)

Variants should be a managed set, not a free-for-all. Document the supported set; reject requests for new variants without a real use case.

Read the full file on GitHub · 185 lines

Files

What ships with it

3 files 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. 9d ago First seen · 185 lines · 109 tokens per session scan A 32c9a8c1e655

Subscribe to this mod's changes

frontend-component-build is a skill published in the GitHub repository rampstackco/claude-skills-starter (2 stars, last pushed 1mo ago), licensed MIT. It adds 109 tokens to every session and 1,921 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to frontend-component-build, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

frontend-component-build

Build production-ready frontend components with accessible markup, sensible props, defined states, and tested behavior. Use this skill whenever the user wants to build a component from scratch, refactor an existing one, design a component API, or implement a UI element with proper states and accessibility. Triggers on…

rampstackco/claude-skills · 109 tokens

performance-optimization

Diagnose and fix web performance issues including Core Web Vitals (LCP, INP, CLS), bundle size, asset optimization, render performance, and runtime efficiency. Use this skill whenever the user wants to improve page speed, fix Core Web Vitals, optimize assets, reduce bundle size, debug slow renders, or systematically…

rampstackco/claude-skills · 141 tokens

popular-web-designs

54 real design systems (Stripe, Linear, Vercel) as HTML/CSS.

NousResearch/hermes-agent · 23 tokens

internationalization

Plan and run a multi-language or multi-region site. Use this skill when adding new locales, choosing URL structure for languages (subfolders vs subdomains vs ccTLDs), implementing hreflang, planning translation workflow, handling currency and date formats, designing for RTL languages, or auditing a stalled…

rampstackco/claude-skills · 123 tokens

information-architecture

Design the structure of a website or product including sitemap, navigation, URL structure, content types, taxonomy, and labeling. Use this skill whenever the user asks to plan a sitemap, design navigation, structure URLs, define content types, build taxonomies, design site search, or organize content at the system…

rampstackco/claude-skills · 131 tokens

vertical-site-conventions

Compose pages and sites that read as their vertical: ecommerce-catalog storefronts that look like storefronts, hospitality-food sites that look like restaurants, b2b-manufacturer sites that look industrial. Use this skill whenever the user wants to build a site that looks like the vertical it serves, fix a build that…

rampstackco/claude-skills · 190 tokens