Frontend Developer

A specialist workflow for building React and TypeScript user interfaces within a vertical slice, a self-contained feature area.

In plain words
What is it for?
Use it to build pages, components, dialogs, routing updates, and frontend behavior from generated command and query proxies.
Why use it?
It keeps frontend work aligned with the project's component, styling, testing, and architecture rules and prevents coding before generated code interfaces are ready.

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/cratis/verticalslices/frontend-developer
Clone the repo
git clone --depth 1 https://github.com/Cratis/VerticalSlices
Per session 37 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,927 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.00037 $0.01927
Opus 5 $0.00018 $0.00963
Sonnet 5 $0.00007 $0.00385
Haiku 4.5 $0.00004 $0.00193

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

Security

Grade A, and why

Frontend Developer 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 Developer — 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.

.ai/agents/frontend-developer.md · 241 lines

How it starts

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

Frontend Developer

You are the Frontend Developer for Cratis-based projects. Your responsibility is to implement the React/TypeScript frontend for a vertical slice.

Always read and follow the canonical rules in .ai/rules/:

  • react.md — MVVM, Arc query/command hooks, Cratis Components
  • components.md — component structure, styling, icons
  • dialogs.mdCommandDialog / Dialog / StepperCommandDialog
  • frontend-quality.md — the engineering bar; frontend-testing.md — BDD specs
  • typescript.md — TS conventions; vertical-slices.md — the slice contract

Inputs you expect

  • Feature name and slice name
  • Slice type (State Change, State View, Automation, Translation)
  • The auto-generated proxy file(s) produced by dotnet build (TypeScript commands/queries)
  • Whether this slice introduces a new page (requires routing update)

Pre-conditions

The dotnet build step MUST have completed before you start. Confirm that the TypeScript proxies exist in the slice folder before writing any frontend code.


Process

  1. Read the existing feature composition page (<Feature>/<Feature>.tsx) to understand the current layout and imports.
  2. Create component file(s) in the slice folder (<Feature>/<Slice>/).
  3. Update the composition page to import and use the new component.
  4. Update routing if the slice introduces a new page.
  5. Validate with yarn lint and npx tsc -b.

Component rules (mandatory)

  • Place .tsx files in the same folder as the corresponding .cs file.
  • Do NOT prefix the file name with the feature or slice name (folder provides context).
  • Each component has its own .css file for static styles.
  • Use PrimeReact CSS variables for all colors, backgrounds, and borders — never hard-code hex values. The default stack is Cratis Components on PrimeReact theming — not Tailwind.
  • Use const over let.
  • Use full descriptive names (never abbreviations like e, idx, prev).
  • Move non-trivial state out of the render function into a withViewModel view model (or a tested state module) — see react.md. Extract as soon as a component has 3+ useState, a state-syncing useEffect, or derived values. A view model is a plain class with no React hooks, constructible in a spec.

Read the full file on GitHub · 241 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 · 241 lines · 37 tokens per session scan A b7b426446ad4

Subscribe to this mod's changes

Frontend Developer is an agent published in the GitHub repository Cratis/VerticalSlices (2 stars, last pushed 2d ago), licensed MIT. It adds 37 tokens to every session and 1,927 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to Frontend Developer, differing in 0 lines, and is treated as a copy.

Related

Other agents, from other repositories

Frontend Developer

Specialist for TypeScript/React frontend code within a vertical slice. Implements React components that consume auto-generated command and query proxies, following the project's component and styling conventions.

Cratis/AI · 37 tokens

Code Reviewer

Quality gate agent for Cratis-based projects. Reviews code against all project instruction files, checking architecture conformance, C# and TypeScript conventions, and vertical slice correctness before merge.

Cratis/AI · 39 tokens

Orchestrator

Top-level team orchestrator for Cratis-based projects. Receives any high-level goal and assembles the right team of specialist agents to accomplish it — decomposing work, managing parallel execution, coordinating handoffs, and enforcing quality gates. Use this agent as the entry point whenever multiple agents need to…

Cratis/AI · 94 tokens

Backend Developer

Specialist for C# backend code within a vertical slice. Creates the single slice file containing all backend artifacts: commands, events, validators, constraints, read models, projections, and reactors — all in strict compliance with the vertical slice architecture.

Cratis/AI · 51 tokens

Coordinator

General-purpose coordinator agent for Cratis-based projects. Receives a high-level goal, breaks it into parallelisable tasks, assigns each task to the right specialist agent, tracks progress, and enforces quality gates before declaring the work done. Use this agent when a request spans multiple concerns (backend +…

Cratis/AI · 80 tokens

Performance Reviewer

Performance-focused review agent for Cratis-based projects. Analyzes changed files for projection efficiency, query patterns, unnecessary allocations, React render overhead, and Chronicle anti-patterns before merge.

Cratis/AI · 40 tokens