frontend-component

frontend-component is a skill for Claude Code, Codex from tmj-90/gaffer. It costs 79 tokens per session (1,317 once invoked), scanned A, original, Apache-2.0.

A workflow for adding or changing user-interface components in an existing frontend codebase, such as widgets, page sections, and loading or error states.

In plain words
What is it for?
Use it to build components that match nearby code, use semantic HTML, handle expected states, and verify user interactions with tests.
Why use it?
New interface code can become inconsistent, inaccessible, or difficult to test when it ignores the project's existing patterns.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build components that match nearby code, use semantic HTML, handle expected states, and verify user interactions with tests.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/tmj-90/gaffer/frontend-component"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/frontend-component.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,317 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.00079 $0.01317
Opus 5.5 $0.00032 $0.00527
Sonnet 5.5 $0.00016 $0.00263
Haiku 4.5 $0.00008 $0.00132

Measured 2mo ago against content hash 789110521f7a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

frontend-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 2mo 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.

runner/skills/frontend-component/SKILL.md · 91 lines

How it starts

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

Add or change a UI component

Build a component that looks like it was always part of the repo: same framework idioms, same styling system, same file shape — with a small, honest API, every state the ticket implies, and tests that exercise each acceptance criterion's own behaviour.

Steps

  1. Read the conventions. Call search_lore for the component rules (styling system, tokens, state library, folder layout, Storybook or not). Open two sibling components and the design-system primitives (Button, Input, Stack…). Reuse a primitive before writing a new one; a second button implementation is a defect.
  2. Write the API before the markup. List props with types. Rules that keep APIs small:
    • Name props for meaning (variant="danger"), not appearance (red); one variant enum instead of several booleans that can conflict (primary + secondary).
    • Content goes through children or named slots, not string props that later need markup.
    • Form-like components support controlled use (value + onChange) and match the repo's uncontrolled convention if it has one.
    • Forward the ref and spread remaining native attributes onto the root element so callers can add id, aria-*, data-testid, className (React 19: ref is a normal prop; earlier versions use forwardRef).
    • Callbacks are named for the event (onSelect, onDismiss) and receive data, not the DOM event, unless the sibling components do otherwise.
  3. Keep it presentational. Data loading, mutations and routing live in a container, hook or route loader (the frontend-data-fetching skill); the component renders from props. Global stores are read at the container level (the frontend-state-management skill).
  4. Semantic markup and tokens. Real elements (button, a, ul, label), the right heading level passed in or derived, and only design tokens for colour, space, type, radius, shadow, motion (the design-system skill). No raw hex or pixel font sizes.
  5. Enumerate and build the states. From the ACs and the sibling components list which apply: default, hover, focus-visible, active, disabled, loading, empty, error, overflow (very long text, 0 and 1000 items), and right-to-left if the repo supports RTL. Each listed state renders deliberately; state precedence is disabled > loading > error > default.
  6. Accessibility in the same change. Keyboard operation, accessible name, focus handling and APG pattern for any composite widget (the frontend-a11y skill).
  7. Test per AC. With the repo's runner and Testing Library (the frontend-testing skill): for each AC, a test that renders the component in the AC's situation and asserts the user-visible outcome — found by role and name, driven by userEvent. Include the non-happy states the ACs name. If the repo uses Storybook, add a story per state; if it runs visual regression, update baselines only for intended changes.
  8. Verify and evidence. Run the repo's type-check, lint and tests (the run-tests and run-lint skills). Record per-AC test_output with the record-evidence skill, then stop.

Read the full file on GitHub · 91 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. 2mo ago Changed · +44 lines 789110521f7a
  2. 3mo ago First seen · 47 lines · 79 tokens per session scan A 2a5f29e17252

Subscribe to this mod's changes

frontend-component is a skill published in the GitHub repository tmj-90/gaffer (1 stars, last pushed 4d ago), licensed Apache-2.0. It adds 79 tokens to every session and 1,317 once invoked, about $0.0003 per session on Opus 5.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

frontend-component compared with skills from other repositories

frontend-component next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
frontend-componenttmj-90/gafferSkill14d agoApache-2.0A79Claude Code, Codex
bulwark-brainstormQBall-Inc/the-bulwarkSkill9yesterdayMITA50Claude Code
plan-creationQBall-Inc/the-bulwarkSkill9yesterdayMITA38Claude Code
anthropic-validatorQBall-Inc/the-bulwarkSkill9yesterdayMITA40Claude Code
create-subagentQBall-Inc/the-bulwarkSkill9yesterdayMITA42Claude Code
test-auditQBall-Inc/the-bulwarkSkill9yesterdayMITA0Claude Code
code-reviewQBall-Inc/the-bulwarkSkill9yesterdayMITA61Claude Code