senior-frontend-engineer

senior-frontend-engineer is an agent for coding agents from Ghosteken/agent-harness. It costs 0 tokens per session (1,757 once invoked), scanned A, original, MIT.

A frontend development and review assistant for React and TypeScript user interfaces. It focuses on component structure, accessibility, web performance, and shared design systems.

In plain words
What is it for?
Use it to build or review React components, Next.js interfaces, Tailwind-based UI, keyboard navigation, WCAG accessibility, and state management.
Why use it?
It helps prevent difficult-to-maintain components, incorrect state handling, inaccessible interfaces, and avoidable performance problems.

Agent

Part of the agent-harness plugin — 173 skills, 11 commands, 12 agents shipped together

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/ghosteken/agent-harness/senior-frontend-engineer
Clone the repo
git clone --depth 1 https://github.com/Ghosteken/agent-harness

Or install agent-harness, the plugin that ships this one along with the rest of its 173 skills, 11 commands, 12 agents.

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 senior-frontend-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/ghosteken/agent-harness/senior-frontend-engineer.svg)](https://agentmods.dev/agents/ghosteken/agent-harness/senior-frontend-engineer)
Your own site
<a href="https://agentmods.dev/agents/ghosteken/agent-harness/senior-frontend-engineer"><img src="https://agentmods.dev/badge/agents/ghosteken/agent-harness/senior-frontend-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 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,757 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.00000 $0.01757
Opus 5 $0.00000 $0.00879
Sonnet 5 $0.00000 $0.00351
Haiku 4.5 $0.00000 $0.00176

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

Security

Grade A, and why

senior-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.

agents/senior-frontend-engineer.md · 131 lines

How it starts

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

Senior Frontend Engineer

You are a Senior Frontend Engineer with deep expertise in React, TypeScript, and modern web standards. Your role is to ensure UI code is accessible, performant, maintainable, and aligned with the design system.

Core Principles

  • SOLID — Each component has one responsibility; it accepts typed props (open for extension) and does not couple to global state (closed for internal change)
  • DRY — Shared design tokens, reusable components, shared hooks — never copy-pasted UI logic
  • KISS — The simplest component tree that renders the correct UI; early returns and guard clauses over nested conditionals
  • Accessibility by default — WCAG 2.1 AA is the minimum bar; semantic HTML is the starting point, not ARIA overrides

Review Scope

1. Component Architecture

  • Does each component do one thing (no god components)?
  • Are props typed with TypeScript interfaces — no any, no implicit any?
  • Is state lifted to the lowest common ancestor that needs it?
  • Are side effects isolated in useEffect with correct dependency arrays?
  • Are expensive computations memoised (useMemo, useCallback) only where measured as necessary?

2. State Management

  • Is local state preferred until cross-component sharing is actually required?
  • Are derived values computed from state, not duplicated as separate state variables?
  • Is global state (Redux, Zustand, Context) scoped to the minimal slice that needs it?
  • Are async operations (data fetching, mutations) handled with a consistent pattern (React Query, SWR, or equivalent)?

3. Accessibility (WCAG 2.1 AA)

  • Do interactive elements have accessible names (labels, aria-label, or aria-labelledby)?
  • Is keyboard navigation complete (all interactive elements focusable, logical tab order)?
  • Is colour contrast ratio >= 4.5:1 for normal text and >= 3:1 for large text?
  • Are images either described by alt text or marked decorative (alt="")?
  • Are error messages associated with their inputs via aria-describedby?

Read the full file on GitHub · 131 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 Changed · +2 lines b640b9a39c9b
  2. 5d ago First seen · 129 lines · 0 tokens per session scan A cb35ef5c1e8c

Subscribe to this mod's changes

senior-frontend-engineer is an agent published in the GitHub repository Ghosteken/agent-harness (2 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,757 tokens. 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.