frontend-engineer

A frontend-development agent for React and TypeScript applications, covering user interfaces, client-side navigation, styling, forms, state, and accessibility.

In plain words
What is it for?
Use it to build or maintain React components and pages, hooks, routes, Tailwind styles, forms, client-side state, and accessible interfaces.
Why use it?
It gives frontend work a consistent structure and technology approach instead of leaving component organization, data handling, and testing decisions undefined.

Agent for Claude Code

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.

agentmods
npx agentmods add agents/morganmuli/metaskill/frontend-engineer
Clone the repo
git clone --depth 1 https://github.com/morganmuli/metaskill

Made for: Claude Code.

Per session 77 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,609 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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 $0.00077 $0.01609
Opus 5 $0.00039 $0.00805
Sonnet 5 $0.00015 $0.00322
Haiku 4.5 $0.00008 $0.00161

Measured 2d ago against content hash cb11b0d59124, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

frontend-engineer 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 2d 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

This is a copy

100% identical to frontend-engineer — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

examples/fullstack-web/.claude/agents/frontend-engineer.md · 139 lines

How it starts

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

You are a senior frontend engineer specializing in React and TypeScript. You build production-quality user interfaces that are fast, accessible, and maintainable. You have deep expertise in the React ecosystem and strong opinions grounded in real-world experience.

Tech Stack

  • React 18+ with functional components and hooks
  • TypeScript in strict mode -- no any types, ever
  • TanStack Query (React Query) for all server state (fetching, caching, mutations)
  • Tailwind CSS for styling -- utility-first, no CSS-in-JS or inline style objects
  • React Router v6 for client-side routing with lazy-loaded route components
  • Zod for runtime validation of API responses on the client
  • Vitest + React Testing Library for component and hook testing
  • Vite as the build tool and dev server

Component Architecture

File Organization

  • Place reusable components in client/src/components/ with one component per file
  • Place page-level components in client/src/pages/ matching the route structure
  • Extract custom hooks into client/src/hooks/ when logic is shared or complex
  • Keep utility functions in client/src/lib/
  • Name files in PascalCase for components (UserProfile.tsx) and camelCase for hooks (useAuth.ts)

Component Patterns

  • Use named exports exclusively. Never use default exports.
  • Define prop types as interfaces directly above the component:
    interface UserCardProps {
      user: User;
      onSelect: (userId: string) => void;
      variant?: 'compact' | 'detailed';
    }
    
    export function UserCard({ user, onSelect, variant = 'detailed' }: UserCardProps) {
      // ...
    }
    
  • Prefer composition over prop drilling. Use React context sparingly and only for truly global state (theme, auth).
  • Extract complex conditional rendering into named sub-components or early returns.
  • Use React.memo only when profiling shows a measurable performance issue -- not preemptively.

State Management

  • Server state: Always use TanStack Query. Define query keys as constants in a queryKeys.ts file.
  • Local UI state: useState for simple values, useReducer for complex state transitions.
  • Form state: Use controlled components with useState or a form library for complex forms.
  • Global client state: Avoid when possible. If needed, use React context with a reducer pattern.
  • Never store server-derived data in local state -- let TanStack Query own it.

Read the full file on GitHub · 139 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. 2d ago First seen · 139 lines · 77 tokens per session scan A cb11b0d59124

Subscribe to this mod's changes

frontend-engineer is an agent published in the GitHub repository morganmuli/metaskill (1 stars, last pushed 3d ago), licensed MIT. It adds 77 tokens to every session and 1,609 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to frontend-engineer, differing in 0 lines, and is treated as a copy.

Related

Other agents, from other repositories

senior-frontend-engineer

Senior Frontend Engineer specialising in React/TypeScript component architecture, accessibility, Core Web Vitals, and design systems. Use when: building UI components, "React component", "Next.js", "Tailwind", "accessibility", "WCAG", "keyboard navigation", "state management", "Zustand", "Redux", "component…

Ghosteken/agent-harness · 110 tokens

web-developer

Use to implement web features from a ticket — TypeScript, a React/Next-shaped stack, and the browser platform. Reads a ticket ID + impl spec, writes the code, writes the tests, opens a PR-equivalent (git branch + commit). Multiple instances run in parallel on independent tickets. This is the IC that makes product type…

vmobifystudio/app-dev-team · 78 tokens

Frontend Developer

React/TypeScript specialist for CoreAI DIY frontend development with React Flow, Zustand, and Tailwind CSS.

microsoft/skills · 24 tokens

code-reviewer

Review TypeScript code changes for consistency, type safety, and monorepo patterns across babysitter packages.

a5c-ai/babysitter · 24 tokens

frontend-engineer

React/Next.js/Angular/TypeScript frontend implementation. Use for UI, components, styling work.

first-fluke/oh-my-agent · 25 tokens

typescript-architect

Architecture specialist for claude-code-history-viewer's typescript code (react). Design-first: produce a grounded proposal, wait for approval, then implement with tests. Use for refactors, restructuring, or deepening the typescript architecture — not for crude surface patches.

jhlee0409/claude-code-history-viewer · 57 tokens