frontend-component-build

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

A guide for building or improving frontend components, the reusable pieces of a website or app such as buttons, forms, and menus. It covers their structure, inputs, behavior, visual states, testing, and accessibility.

In plain words
What is it for?
Use it when creating a component, refactoring one, defining its API, implementing a design, or adding accessibility in React, Vue, Svelte, vanilla web components, or another frontend setting.
Why use it?
It helps prevent components that work only in the simplest case or are difficult to reuse. It makes important states and keyboard or assistive-technology needs part of the implementation.

Skill for Claude Code

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

Part of the rampstack-skills plugin — 103 skills shipped together

Good fit Use it when creating a component, refactoring one, defining its API, implementing a design, or adding accessibility in React, Vue, Svelte, vanilla web components, or another frontend setting.

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

Made for: Claude Code.

Or install rampstack-skills, the plugin that ships this one along with the rest of its 103 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/frontend-component-build.svg)](https://agentmods.dev/skills/rampstackco/claude-skills/frontend-component-build)
Your own site
<a href="https://agentmods.dev/skills/rampstackco/claude-skills/frontend-component-build"><img src="https://agentmods.dev/badge/skills/rampstackco/claude-skills/frontend-component-build.svg" alt="Measured on agentmods" 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00109 $0.01921
Opus 5 $0.00055 $0.00960
Sonnet 5 $0.00022 $0.00384
Haiku 4.5 $0.00011 $0.00192

Measured 8d ago against content hash 32c9a8c1e655, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, 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 8d 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

Copies of this mod

1 near-identical copy found in the catalogue:

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. 8d 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 (826 stars, last pushed 10d 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. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

accessibility-a11y

WCAG 2.2 compliance, ARIA patterns, keyboard navigation, screen readers, automated testing.

travisjneuman/.claude · 26 tokens

flutter-development

Cross-platform development with Flutter and Dart for iOS, Android, Web, Desktop, and embedded. Use when building Flutter apps, implementing Material/Cupertino design, or optimizing Dart code.

travisjneuman/.claude · 41 tokens

electron-desktop

Desktop application development with Electron for Windows, macOS, and Linux. Use when building cross-platform desktop apps, implementing native OS features, or packaging web apps for desktop.

travisjneuman/.claude · 38 tokens

generic-react-ux-designer

Professional UI/UX design expertise for React applications. Covers design thinking, user psychology (Hick's/Fitts's/Jakob's Law), visual hierarchy, interaction patterns, accessibility, performance-driven design, and design critique. Use when designing features, improving UX, solving user problems, or conducting design…

travisjneuman/.claude · 69 tokens

frontend-enhancer

This skill should be used when enhancing the visual design and aesthetics of web applications. It provides modern UI components, design patterns, color palettes, animations, and layout templates. REQUIRES ui-research skill first. Use this skill for tasks like improving styling, creating responsive designs…

travisjneuman/.claude · 79 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