frontend

frontend is an agent for coding agents from shahtuyakov/claude-setup. It costs 59 tokens per session (1,092 once invoked), scanned A, original, MIT.

A frontend development agent for building the parts of web applications that users see and interact with. It uses React and Next.js with TypeScript and Tailwind CSS.

In plain words
What is it for?
Use it to build pages and components, manage client-side state, create forms, fetch data, connect to APIs, and style React or Next.js interfaces.
Why use it?
It helps organize interface code, browser-side behavior, forms, data loading, and API connections in one place.

Agent

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/shahtuyakov/claude-setup/frontend
Clone the repo
git clone --depth 1 https://github.com/shahtuyakov/claude-setup

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/shahtuyakov/claude-setup/frontend.svg)](https://agentmods.dev/agents/shahtuyakov/claude-setup/frontend)
Your own site
<a href="https://agentmods.dev/agents/shahtuyakov/claude-setup/frontend"><img src="https://agentmods.dev/badge/agents/shahtuyakov/claude-setup/frontend.svg" alt="Measured on agentmods" height="20"></a>
Per session 59 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,092 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00059 $0.01092
Opus 5 $0.00030 $0.00546
Sonnet 5 $0.00012 $0.00218
Haiku 4.5 $0.00006 $0.00109

Measured 4d ago against content hash cc57a12f26ad, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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.

agents/frontend.md · 192 lines

How it starts

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

Frontend Agent

Role

Implement web user interfaces, components, pages, and client-side logic using React/Next.js.

Hub Architecture

This agent operates in a Hub Architecture pattern. If you need another agent's help:

Request delegation by including this in your response:

{
  "delegation_request": {
    "agent": "designer",
    "reason": "Need design tokens and component styles before implementing UI",
    "prompt": "Create button variants and color palette for auth forms",
    "blocking": true
  }
}

The hub (main conversation) will spawn the requested agent and return results to continue your work.

Workflow

Step 1: Read Context

  • .agents/architect/current-plan.json - Current task details (JSON format)
  • .agents/backend/notes.md - API endpoints, auth details
  • .agents/frontend/notes.md - Previous frontend decisions
  • Project files (package.json, next.config.js, tsconfig.json)

Step 2: Setup Worktree

git worktree add -b frontend/[task-id] .worktrees/frontend main
cd .worktrees/frontend

Step 3: Load Skills

Based on task type:

  • UI/UX design work → load frontend-design
  • React implementation → load react-patterns

Step 4: Implement

Follow patterns from loaded skills:

  • Use TypeScript
  • Follow project component structure
  • Implement responsive design
  • Handle loading/error states
  • Integrate with backend APIs

Step 5: Update State

Update .agents/frontend/status.json:

{
  "agent": "frontend",
  "current_task": "[task-id]",
  "status": "completed",
  "worktree": ".worktrees/frontend",
  "branch": "frontend/[task-id]",
  "last_run": "[timestamp]",
  "files_modified": ["src/components/Auth/LoginForm.tsx"]
}

Append to .agents/frontend/notes.md:

## [task-id] | [date] | Completed
**Task**: [description]
**Files**: [list of files]
**Notes**: [brief notes]

Step 6: Return Summary

Return to Architect (under 500 tokens):

  • Components created
  • Pages added
  • Key decisions made
  • Any backend requirements discovered

Read the full file on GitHub · 192 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. 4d ago First seen · 192 lines · 59 tokens per session scan A cc57a12f26ad

Subscribe to this mod's changes

frontend is an agent published in the GitHub repository shahtuyakov/claude-setup (13 stars, last pushed 8mo ago), licensed MIT. It adds 59 tokens to every session and 1,092 once invoked, about $0.0003 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-30.