frontend-foundations

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

A baseline for building polished and reusable frontend interfaces. It covers visual hierarchy, accessible HTML, design tokens, component reuse, and motion that works well with browsers.

In plain words
What is it for?
Use it on frontend work such as pages, forms, navigation, reusable components, styling, and interface animations.
Why use it?
It prevents UI changes from looking like unmodified templates or introducing avoidable usability and accessibility problems.

Skill for Claude CodeCodex

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

Good fit Use it on frontend work such as pages, forms, navigation, reusable components, styling, and interface animations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tmj-90/gaffer/frontend-foundations
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-foundations
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-foundations

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/tmj-90/gaffer/frontend-foundations"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/frontend-foundations.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 126 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,203 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.00126 $0.01203
Opus 5.5 $0.00050 $0.00481
Sonnet 5.5 $0.00025 $0.00241
Haiku 4.5 $0.00013 $0.00120

Measured 21d ago against content hash 490c1797d29c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

frontend-foundations 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 21d 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-foundations/SKILL.md · 75 lines

How it starts

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

Frontend foundations — the UI quality floor

The frontend companion to engineering-craft: craft holds the code bar, this holds the surface bar. It is a short floor to check on every UI change, not the full treatment — each item names the skill that holds the depth. It never licenses extra chrome or animation the ticket did not ask for (the minimalism skill): meet the bar with the least markup and the fewest dependencies.

The floor

  1. Semantic and operable. Native elements (button, a href, label, nav, main, dialog), one h1, keyboard-operable with a visible :focus-visible style, text alternatives on meaningful images and icon-only buttons, colour never the only signal. Depth: the frontend-a11y skill (WCAG 2.2 AA).
  2. Tokens, not magic values. Colour, spacing, type, radius, shadow, duration from the repo's tokens or theme. A raw hex or px font size in a component where a token exists is the frontend form of duplicated logic. Depth: the design-system skill.
  3. The repo's components and styling system. Reuse primitives before writing new ones; no second UI library, CSS approach or icon set. Depth: the frontend-component skill.
  4. Every state the ACs imply. Loading (at final size), empty with a next action, error with recovery, plus hover / focus / active / disabled. A missing empty or error state is an unfinished component. Server-state depth: the frontend-data-fetching skill.
  5. Intentional hierarchy. One clear primary action and a type scale with real contrast between levels; not a uniform grid of identical cards. If it looks like an unmodified starter template, it is not done. Depth: the frontend-design skill.
  6. Motion that explains, on the compositor. Animate transform and opacity, not width/height/top/margin; 150–300 ms for UI transitions; non-essential motion inside @media (prefers-reduced-motion: no-preference).
  7. Responsive and overflow-safe. No horizontal scroll from 320 CSS px up, targets at least 24×24 CSS px, zoom not disabled. Depth: the frontend-responsive skill.
  8. Text is data-ready. User-visible strings go through the repo's i18n layer if it has one; dates and numbers are formatted by locale. Depth: the i18n-l10n skill.

Read the full file on GitHub · 75 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. 21d ago Changed · +10 lines · +4 tokens per session 490c1797d29c
  2. 1mo ago First seen · 65 lines · 122 tokens per session scan A 41e563f5cda1

Subscribe to this mod's changes

frontend-foundations is a skill published in the GitHub repository tmj-90/gaffer (2 stars, last pushed 22d ago), licensed Apache-2.0. It adds 126 tokens to every session and 1,203 once invoked, about $0.0005 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

Other skills, from other repositories

maintaining-dev-playground

Keeps the Dev Playground current with the application. Use when editing UI components in apps/client/src/ — assesses playground candidacy, checks existing playground coverage, and guides adding or updating showcases. Also use when directly editing files in apps/client/src/dev/, building new widgets or features, or…

dork-labs/dorkos · 95 tokens

sota-frontend-design

State-of-the-art web design, UI/UX, and motion engineering standards (2026). Use when building OR auditing/reviewing user interfaces: components, pages, design systems, stylesheets, themes, forms, navigation, animations, or accessibility. Covers typography, color (OKLCH, dark mode), spacing/layout (grid, container…

martinholovsky/SOTA-skills · 164 tokens

design-system

Token architecture, component specifications, and slide generation. Three-layer tokens (primitive→semantic→component), CSS variables, spacing/typography scales, component specs, strategic slide creation. Use for design tokens, systematic design, brand-compliant presentations.

nicohodt/claude-code-ui-ux-skill · 52 tokens

ui-styling

Create beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user interfaces, implementing design systems, creating responsive layouts, adding accessible components (dialogs, dropdowns…

nicohodt/claude-code-ui-ux-skill · 90 tokens

css-expert

CSS expert for flexbox, grid, animations, responsive design, and modern layout techniques.

ginkida/rustyhand · 21 tokens

frontend-aesthetics

Use when creating UI designs to avoid generic "AI slop" aesthetics. Enforces distinctive typography, cohesive color systems, purposeful motion, and atmospheric backgrounds. Critical for landing pages, dashboards, and branded interfaces.

nek1987/auto-agent-harness · 47 tokens