frontend-engineering

frontend-engineering is a skill for Claude Code, Codex from vignesh2027/AI-AGENT-SKILLS. It costs 18 tokens per session (506 once invoked), scanned A, original, MIT.

A set of practices for building web interfaces that work quickly, remain maintainable, support people with disabilities, and are tested. It covers the interface’s different states, such as loading, empty, error, and populated.

In plain words
What is it for?
Use it when adding or finishing a web interface component, or reviewing frontend changes. It guides performance checks, accessibility work, component structure, and state management.
Why use it?
It helps prevent common problems such as slow pages, inaccessible controls, unfinished error states, and business rules tangled into visual components.

Skill for Claude CodeCodex

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

Good fit Use it when adding or finishing a web interface component, or reviewing frontend changes. It guides performance checks, accessibility work, component structure, and state management.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vignesh2027/ai-agent-skills/frontend-engineering
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 vignesh2027/AI-AGENT-SKILLS --skill frontend-engineering
Clone the repo
git clone --depth 1 https://github.com/vignesh2027/AI-AGENT-SKILLS

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-engineering

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/vignesh2027/ai-agent-skills/frontend-engineering"><img src="https://agentmods.dev/badge/skills/vignesh2027/ai-agent-skills/frontend-engineering.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 506 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.00018 $0.00506
Opus 5 $0.00009 $0.00253
Sonnet 5 $0.00004 $0.00101
Haiku 4.5 $0.00002 $0.00051

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

Security

Grade A, and why

frontend-engineering 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.

skills/frontend-engineering/SKILL.md · 65 lines

How it starts

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

Overview

Frontend engineering is full-stack engineering from the network edge to the pixel. Performance, accessibility, maintainability, and security are all first-class concerns — not features to add later.

When to Use

  • Before implementing a new UI feature
  • Before a frontend component is marked complete
  • As part of the /review workflow for frontend PRs

Process

Step 1: Define the UI states

Every component has states: loading, empty, error, populated, and edge cases. Define and implement all of them before calling it done.

Step 2: Accessibility first

See accessibility-engineering skill. Apply before visual polish.

Step 3: Performance budget

Define before building:

  • Largest Contentful Paint (LCP) target: < 2.5s
  • Cumulative Layout Shift (CLS) target: < 0.1
  • First Input Delay (FID) / INP target: < 200ms
  • Bundle size budget for new routes

Measure with Lighthouse on a representative device.

Step 4: Component design

  • Components are pure functions of their props/state
  • No side effects in render
  • Extract business logic from UI components
  • Co-locate styles with components

Step 5: State management

Prefer: local state → lifted state → context → global store (in that order). Only reach for global state when local state genuinely doesn't work.

Step 6: Error boundaries

Wrap sections of the UI in error boundaries. A crash in one section should not take down the whole page.

Step 7: Testing

  • Unit test business logic extracted from components
  • Component tests for component behavior (not implementation)
  • E2E tests for critical user journeys

Step 8: Security

  • Sanitize all user-generated HTML rendered to the DOM
  • No dangerouslySetInnerHTML or equivalent without sanitization
  • Content Security Policy headers configured

Verification Requirements

  • All UI states implemented (loading, empty, error, populated)
  • Accessibility requirements met (see accessibility-engineering)
  • Lighthouse performance score ≥ 90
  • Error boundaries in place
  • Critical journeys covered by E2E tests
  • No XSS vulnerabilities in dynamic HTML rendering

Read the full file on GitHub · 65 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. 9d ago First seen · 65 lines · 18 tokens per session scan A 865c2b48064d

Subscribe to this mod's changes

frontend-engineering is a skill published in the GitHub repository vignesh2027/AI-AGENT-SKILLS (2 stars, last pushed 11d ago), licensed MIT. It adds 18 tokens to every session and 506 once invoked, about $0.0001 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-31.

Related

Other skills, from other repositories