frontend

frontend is an agent for Claude Code from ashtonian/llm-init. It costs 26 tokens per session (1,094 once invoked), scanned A, original, MIT.

A specialist role for building React, Next.js, and TypeScript user interfaces, including reusable components, pages, and browser-side features.

In plain words
What is it for?
Use it to implement or review frontend components, pages, state-related code, and client-side features after examining the existing design system and rules.
Why use it?
It gives interface work a defined focus and sets expectations for accessibility, performance, architecture, and project-specific conventions.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Use it to implement or review frontend components, pages, state-related code, and client-side features after examining the existing design system and rules.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ashtonian/llm-init/frontend
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.

Clone the repo
git clone --depth 1 https://github.com/ashtonian/llm-init

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/ashtonian/llm-init/frontend/github.svg)](https://agentmods.dev/agents/ashtonian/llm-init/frontend)
Your own site
<a href="https://agentmods.dev/agents/ashtonian/llm-init/frontend"><img src="https://agentmods.dev/badge/agents/ashtonian/llm-init/frontend/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

Your own site · 80×15
<a href="https://agentmods.dev/agents/ashtonian/llm-init/frontend"><img src="https://agentmods.dev/badge/agents/ashtonian/llm-init/frontend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 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,094 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.00026 $0.01094
Opus 5.5 $0.00010 $0.00438
Sonnet 5.5 $0.00005 $0.00219
Haiku 4.5 $0.00003 $0.00109

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

Security

Grade A, and why

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

templates/.claude/agents/frontend.md · 77 lines

How it starts

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

Your Role: Frontend Specialist

You are a frontend agent. Your focus is building production-quality UI components, pages, and client-side features with React/Next.js and TypeScript.

Startup Protocol

  1. Read context:

    • Read .claude/rules/typescript-patterns.md for TypeScript conventions
    • Read .claude/rules/frontend-architecture.md for component architecture and state management patterns
    • Read .claude/rules/ux-standards.md for accessibility and responsive design requirements
    • Read the task's Technical Spec Reference for requirements
  2. Understand the design system: Review existing components in components/ or src/components/ to understand the established patterns, naming conventions, and composition approach before writing new components.

Priorities

  1. Component-first development -- Build the smallest reusable unit first. Compose upward from atoms to molecules to organisms. Never build a page monolithically.
  2. Accessibility is non-negotiable -- WCAG 2.1 AA minimum. Every interactive element must be keyboard accessible, have proper ARIA attributes, and support screen readers. Test with axe or equivalent.
  3. Performance -- Lazy load heavy components with React.lazy/next/dynamic. Code split at route boundaries. Virtualize lists over 50 items (react-window or @tanstack/virtual). Optimize images with next/image or responsive srcsets.
  4. Type safety -- No any types. Use discriminated unions for state machines. Derive types from API schemas (OpenAPI codegen or Zod inference). Props interfaces for every component.

State Management Guidelines

  • Server state: Use TanStack Query (React Query) or SWR for all API data. Collocate queries with the components that use them. Configure stale times per data type.
  • Client state: Keep minimal. Use Zustand or Jotai for truly client-only state (UI preferences, form wizard steps, modal open/close). Do NOT duplicate server state in client stores.
  • URL state: Use URL search params for filter/sort/pagination state. This makes views shareable and bookmarkable.
  • Form state: React Hook Form + Zod schemas. Mirror server-side validation schemas where possible.

Read the full file on GitHub · 77 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. 1mo ago First seen · 77 lines · 26 tokens per session scan A 1180ddcdcfe6

Subscribe to this mod's changes

frontend is an agent published in the GitHub repository ashtonian/llm-init (2 stars, last pushed today), licensed MIT. It adds 26 tokens to every session and 1,094 once invoked, about $0.0001 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 agents, from other repositories

react18-class-surgeon

Class component migration specialist for React 16/17 → 18.3.1. Migrates all three unsafe lifecycle methods with correct semantic replacements (not just UNSAFE prefix). Migrates legacy context to createContext, string refs to React.createRef(), findDOMNode to direct refs, and ReactDOM.render to createRoot. Uses memory…

github/awesome-copilot · 81 tokens

genpage-edit-planner

Plans edits to an existing generative page. Reads the downloaded page artifacts (source, original prompt, config), analyzes the current implementation against the user's edit intent, and returns a proposed edit plan for the orchestrator to present for approval. Writes genpage-edit-plan.md, for the orchestrator to…

microsoft/power-platform-skills · 92 tokens

confluence-searcher

Searches Confluence and related tickets for product, architecture, rollout, and test-data context. Use when implementation or verification needs internal documentation without loading raw pages into main context.

HoangNguyen0403/agent-skills-standard · 40 tokens

react-portfolio-engineer

React portfolio/gallery sites for creatives: React 18+, Next.js App Router, image optimization.

notque/vexjoy-agent · 25 tokens

finding-verifier

Per-finding verification judge for the review pipeline — a FRESH context that receives exactly ONE candidate review finding and scores how real it is (confidence 0-100). Spawned in parallel by /review's synthesis step for findings only one ensemble pass raised. Utility agent (no author pair, read-only, never edits…

saeedkolivand/ai-job-hunter-app · 92 tokens

webgl-perf-profiler

Cross-cutting GL frame-rate profiler for apps/landing - measures the worst t-segment via a Chrome DevTools performance trace, then applies the landing degradation ladder IN ORDER, stopping at the first rung that passes. Has write access to apply rungs. GL frame-rate only - distinct from performance-profiler (desktop…

saeedkolivand/ai-job-hunter-app · 82 tokens