Agent skill

Frontend Component Build

by rampstackco in rampstackco/claude-skills

Build production-ready frontend components with accessible markup, sensible props, defined states, and tested behavior.

MITAuto-check passedFrontend & Design

Install Frontend Component Build

skills CLI
$ npx skills add rampstackco/claude-skills --skill frontend-component-build -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install rampstackco/claude-skills frontend-component-build --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/rampstackco/claude-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/frontend-component-build .claude/skills/frontend-component-build && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
frontend-component-build
GitHub stars
935
Token cost
~2.2k tokens
SKILL.md length
978 words
Files
5 (incl. references)
Skills in repo
103
Repo updated
First seen
Licence
MIT

At a glance

Build production-ready frontend components with accessible markup, sensible props, defined states, and tested behavior.

  • Works in 6 steps: Anatomy → Variants → States → …
  • The user wants to build a component from scratch
  • SKILL.md covers When to use, When NOT to use, Required inputs and The framework: 6 dimensions, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Frontend Component Build is an agent skill from rampstackco/claude-skills. 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 build a component, create a button, create a modal, create a form input, component API, props design, component states, refactor component, accessible component. Also triggers when implementing UI…

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `README.md`, `references/accessibility-patterns.md` and `references/component-api-patterns.md`).

It sits in Frontend & Design, covering Accessibility and Refactoring. The repository describes itself as: Stack-agnostic Claude Skills covering the full website lifecycle: brand, design, content, SEO, dev, ops, growth, and research. Build, ship, audit, optimize. The licence is MIT.

When your agent uses it

  • The user wants to build a component from scratch
  • Refactor an existing one
  • Design a component API
  • Implement a UI element with proper states and accessibility

Example prompts

  • “/frontend-component-build”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Anatomy
  2. Variants
  3. States
  4. Props / API
  5. Accessibility
  6. Tests

What it can do on your machine

Read from SKILL.md and the folder at commit 482c9bf. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Frontend Component Build loads about 2.2k tokens when it runs, and up to ~8k if it reads all its reference files. Until then it costs about 146 tokens; SKILL.md has 978 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~146
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from rampstackco/claude-skills at commit 482c9bf, republished under its MIT licence (© rampstackco). 978 words, ~2,165 tokens.

Download SKILL.mdSave it as .claude/skills/frontend-component-build/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
frontend-component-build
description
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 build a component, create a button, create a modal, create a form input, component API, props design, component states, refactor component, accessible component. Also triggers when implementing UI from a design that needs to be reusable.
category
development
catalog_summary
Component architecture, props design, accessibility from the start
display_order
2

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.

3. States

What states must the component handle?

  • Default
  • Hover (when pointer is supported)
  • Focus (always - keyboard navigation requires it)
  • Active / pressed
  • Disabled
  • Loading (where applicable)
  • Error (for inputs, forms, validation-bound components)
  • Empty (for components that display data)

Every state needs visual treatment AND accessibility treatment.

4. Props / API

Design the component's contract.

API design principles:

  • Required props minimal. What's truly needed every time? That's required. Everything else has a sensible default.
  • Boolean props are red flags. Three booleans means seven combinations. Prefer enum strings: variant: "primary" | "secondary" | "ghost" over primary={true} ghost={false}.
  • Children > props. Where content is content, accept children. Don't invent headerText and bodyText props when slots work.
  • Composition > configuration. A component that does 5 things via 12 props often should be 5 smaller components.
  • Type the props. TypeScript or PropTypes or JSDoc. The type is documentation that won't go out of date.
5. Accessibility

Build it accessible from the start. Adding accessibility later is 5x harder.

Universal:

  • Semantic HTML elements (<button>, <a>, <nav>, <form>, etc.) over generic <div>
  • Keyboard navigable (Tab, Shift+Tab, Enter/Space for buttons)
  • Focus visible
  • Tap targets minimum 44 by 44 pixels
  • ARIA only where semantic HTML is insufficient

Component-specific:

  • Button: use <button>. Don't fake one with a <div>.
  • Modal: focus trap, ESC to close, returns focus to trigger on close, role="dialog" and aria-labelledby.
  • Form input: label associated via for/id or aria-labelledby. Error messages linked via aria-describedby. aria-invalid when in error state.
  • Toggles: <button> with aria-pressed for two-state, or role="switch" for on/off.
  • Tabs: role="tablist" / role="tab" / role="tabpanel" with aria-selected and arrow-key navigation.
  • Tooltips and popovers: triggered by focus AND hover. Dismissible with ESC.
  • Loading states: announce with aria-live so screen readers know something changed.
6. Tests

Verify the component works before declaring it done.

Test types by priority:

  1. Visual regression. Renders correctly across variants and states. (Storybook + visual diff tools, or manual screenshots.)
  2. Accessibility. Passes axe or equivalent automated checks.
  3. Keyboard navigation. Tab, Enter, Escape, arrow keys all work as expected.
  4. Component logic. Props produce expected output. Events fire correctly. (Unit tests.)
  5. Integration. Component works inside its expected parent contexts.

A component without at least automated accessibility testing is not done.


Show full SKILL.md (365 more words)Show less

Workflow

  1. Understand the use case. What UI need does this component serve? Where will it appear? Adjacent components?
  2. Sketch the anatomy. Name the parts.
  3. List variants and states. Match the design system or define new ones if needed.
  4. Design the API. Required props, optional props, children, events. Type it.
  5. Build the markup with semantic HTML. Choose the right elements. Avoid generic <div> for interactive things.
  6. Style with tokens. No hardcoded colors, spacing, or sizes.
  7. Add interaction. Focus management, keyboard handlers, ARIA.
  8. Add states. Hover, focus, active, disabled, loading, error.
  9. Test. Automated accessibility, keyboard navigation, visual regression.
  10. Document. Usage, API, examples, anti-patterns.

Failure patterns

  • Building with <div onClick>. Loses keyboard accessibility, screen reader semantics, and focus. Use <button> or <a>.
  • Hardcoding colors and sizes. Tokens exist for a reason. Hardcoded values resist theming and consistency.
  • Boolean prop explosion. <Button primary large rounded fullWidth disabled icon />. Too many booleans means you actually need fewer variants designed more thoughtfully.
  • Forgetting focus states. Hover gets attention; focus gets neglected. Keyboard users see invisible buttons.
  • Skipping disabled-state thought. A disabled button should look obviously disabled AND be aria-disabled AND not respond to clicks.
  • Inventing ARIA. ARIA roles and properties have specific behaviors. Made-up ARIA is worse than no ARIA. Use semantic HTML first.
  • Loading state that doesn't announce. Screen readers don't know the spinner appeared. Use aria-live="polite" or role="status".
  • Tooltip-only critical content. Hover-only content is invisible to keyboard and touch users. Critical content goes in the visible UI.
  • Component without docs. Future-you, your teammate, or the next maintainer cannot use what they cannot understand.

Output format

A complete component delivery includes:

  • Component code (in the appropriate framework)
  • Storybook (or equivalent) entry showing all variants and states
  • Documentation:
    • Anatomy diagram or description
    • Props/API table
    • Usage examples (basic, advanced, edge cases)
    • When to use vs. when to use an alternative
    • Anti-patterns (what to avoid)
    • Accessibility notes
  • Tests (visual regression + accessibility + logic)

Reference files

© rampstackco, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references) in skills/frontend-component-build of rampstackco/claude-skills.

  • SKILL.md
  • README.md
  • references/accessibility-patterns.md
  • references/component-api-patterns.md
  • references/component-spec-template.md

Open the folder on GitHubat commit 482c9bf

Compare with similar skills

Frontend Component Build next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Frontend Component Build compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Frontend Component Build this skillrampstackco/claude-skills935—~2.2kAutomated safety check: PassMIT
Frontend UI FunctionalvictorGPT/vibeusage131—~939Automated safety check: PassMIT
Experience Lwc Rtl Validateforcedotcom/sf-skills1.1k—~2.8kAutomated safety check: PassApache-2.0
Angular Componentaiskillstore/marketplace4301 repos~1.7kAutomated safety check: PassNone
Extract UI Componentbitovi/ai-enablement-prompts121—~1.1kAutomated safety check: PassMIT
Build Frontendhashgraph-online/awesome-codex-plugins1.2k—~390Automated safety check: PassApache-2.0

Similar skills

  • Frontend UI Functional

    victorGPT/vibeusage

    A skill your agent uses when building or refactoring functional React/Vite/Tailwind UI pages, templates, or component libraries that need consistent structure, tokenized styling, accessibility…

    131 GitHub stars~939 tokensUpdated 2 mo ago
    Frontend & DesignAuto-check passed
  • Experience Lwc Rtl Validate

    forcedotcom/sf-skills

    A skill your agent uses to review a Lightning Web Component (.html, .js, .css files) for right-to-left (RTL) internationalization correctness, producing a finding list with code-level fixes covering…

    1.1k GitHub stars~2.8k tokensUpdated 5 days ago
    Frontend & DesignAuto-check passed
  • Angular Component

    aiskillstore/marketplace

    Create modern Angular standalone components following v20+ best practices.

    430 GitHub starsUsed in 1 repo~1.7k tokens
    Frontend & DesignAuto-check passed
  • Extract UI Component

    bitovi/ai-enablement-prompts

    Extract reusable UI components from inline patterns. An agent skill from bitovi/ai-enablement-prompts.

    121 GitHub stars~1.1k tokensUpdated 26 days ago
    Frontend & DesignAuto-check passed
  • Build Frontend

    hashgraph-online/awesome-codex-plugins

    Build or modify frontend interfaces using repository-native components while preserving accessibility, responsive behavior, state handling, and visual verification.

    1.2k GitHub stars~390 tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Common Web Visual Testing

    HoangNguyen0403/agent-skills-standard

    Standardizes visual audits, responsive design, and behavioral testing for web apps.

    570 GitHub stars~760 tokensUpdated yesterday
    Frontend & DesignAuto-check passed

More from rampstackco/claude-skills

All 103 skills in this repo
  • After Action Report

    rampstackco/claude-skills

    Run a structured after-action review (postmortem, retrospective) on a launch, incident, or completed project to capture timeline, root cause analysis, contributing factors, and actionable lessons.

    935 GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • Analytics Strategy

    rampstackco/claude-skills

    Design measurement frameworks including event taxonomy, KPI hierarchy, dashboard architecture, attribution models, and analytics implementation strategy.

    935 GitHub starsUsed in 1 repo~2.4k tokens
    Auto-check passed
  • Brand Style Guide

    rampstackco/claude-skills

    Build or audit a comprehensive brand style guide that documents the full brand system including story, logo system, color, typography, imagery, voice, applications, and dos/don'ts.

    935 GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • Brand Voice

    rampstackco/claude-skills

    Develop or document a complete brand voice and tone system covering voice attributes, tone shifts by context, vocabulary preferences, grammar rules, and copy examples.

    935 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Content And Copy

    rampstackco/claude-skills

    Write or edit website copy, blog content, and editorial pieces with attention to voice, structure, and goal.

    935 GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • Content Strategy

    rampstackco/claude-skills

    Develop a content strategy covering editorial positioning, content pillars, formats, calendar, governance, and topical authority planning.

    935 GitHub stars~2.6k tokensUpdated today
    Auto-check passed

Questions about Frontend Component Build

What does Frontend Component Build do?

Build production-ready frontend components with accessible markup, sensible props, defined states, and tested behavior. Frontend Component Build is an agent skill from rampstackco/claude-skills. Build production-ready frontend components with accessible markup, sensible props, defined states, and tested behavior.

When should I use Frontend Component Build?

Frontend Component Build fits situations like: the user wants to build a component from scratch; refactor an existing one; design a component API; implement a UI element with proper states and accessibility.

How do I install Frontend Component Build in Claude Code?

Run `npx skills add rampstackco/claude-skills --skill frontend-component-build -a claude-code`. Or copy the skill folder (skills/frontend-component-build in rampstackco/claude-skills) into .claude/skills/frontend-component-build in your project. Claude Code loads it when a task matches its description.

How do I install Frontend Component Build in Codex?

Run `npx skills add rampstackco/claude-skills --skill frontend-component-build -a codex`. Or copy the skill folder (skills/frontend-component-build in rampstackco/claude-skills) into .agents/skills/frontend-component-build in your project. Codex loads it when a task matches its description.

Can I use Frontend Component Build in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add rampstackco/claude-skills --skill frontend-component-build -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/frontend-component-build, .gemini/skills/frontend-component-build, .github/skills/frontend-component-build and .opencode/skills/frontend-component-build in your project.

What does Frontend Component Build need to run?

SKILL.md names no scripts, command-line tools or credentials: Frontend Component Build is instructions for the agent only.

Does Frontend Component Build access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Frontend Component Build safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Frontend Component Build use?

Frontend Component Build is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Frontend Component Build use?

About 2.2k tokens (SKILL.md is roughly 8.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.8k tokens, read only when the agent opens those files.

What are the alternatives to Frontend Component Build?

Skills that share tags, products or a category with Frontend Component Build: Frontend UI Functional (victorGPT/vibeusage, 131 stars), Experience Lwc Rtl Validate (forcedotcom/sf-skills, 1.1k stars), Angular Component (aiskillstore/marketplace, 430 stars) and Extract UI Component (bitovi/ai-enablement-prompts, 121 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Frontend Component Build?

rampstackco (a GitHub organization) maintains it in rampstackco/claude-skills, which has 935 GitHub stars. The repository holds 103 skills in this directory. The repository was last updated on October 7, 2026.

Source: rampstackco/claude-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.