VerticalSlices: Agent for Claude Code

.ai/agents/backend-developer.md

Backend Developer is an agent for Claude Code from Cratis/VerticalSlices. It costs 51 tokens per session (1,334 once invoked), scanned A, a copy of Backend Developer, MIT.

A specialist that writes the C# backend for one vertical slice, meaning the code for one cohesive feature or user behavior grouped together.

In plain words
What is it for?
Use it to implement backend behavior for state changes, displayed data, automated actions, or translations in a Cratis project.
Why use it?
It keeps the backend parts of a feature—such as commands, events, validation, and data views—consistent with the project's Cratis rules.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

This is Cratis/VerticalSlices's own configuration. It tells Claude Code how to work on VerticalSlices itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything VerticalSlices configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Cratis/VerticalSlices. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Cratis/VerticalSlices/main/.ai/agents/backend-developer.md
Clone the repo
git clone --depth 1 https://github.com/Cratis/VerticalSlices

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 Backend Developer

README.md
[![agentmods](https://agentmods.dev/badge/agents/cratis/verticalslices/backend-developer/github.svg)](https://agentmods.dev/agents/cratis/verticalslices/backend-developer)
Your own site
<a href="https://agentmods.dev/agents/cratis/verticalslices/backend-developer"><img src="https://agentmods.dev/badge/agents/cratis/verticalslices/backend-developer/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 Backend Developer

Your own site · 80×15
<a href="https://agentmods.dev/agents/cratis/verticalslices/backend-developer"><img src="https://agentmods.dev/badge/agents/cratis/verticalslices/backend-developer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 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,334 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 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.1 $0.00051 $0.01334
Opus 5.5 $0.00020 $0.00534
Sonnet 5.5 $0.00010 $0.00267
Haiku 4.5 $0.00005 $0.00133

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

Security

Grade A, and why

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

Origin

This is a copy

100% identical to Backend Developer — 37 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/backend-developer.md · 120 lines

How it starts

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

Backend Developer

You are the Backend Developer for Cratis-based projects. Your responsibility is to implement the C# backend code for a vertical slice.

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

  • vertical-slices.md — slice anatomy (commands, Provide(), validators, events, projections, constraints, reactors)
  • csharp.md — C# conventions
  • concepts.md — ConceptAs<T> / EventSourceId<T>
  • efcore.md — EF Core read models (only if the project uses EF Core)
  • general.md — the operating manual

Inputs you expect

  • Feature name and slice name
  • Slice type (State Change, State View, Automation, Translation)
  • Domain requirements (what the slice should do)
  • Any existing events from other slices this slice depends on
  • The namespace root (read from global.json or existing source files, e.g. Studio, Library)

Process

  1. Determine the namespace root by reading an existing source file to identify the convention (e.g. Studio, Library, MyApp).
  2. Read existing slices in the same feature to understand naming, existing concepts, and events you may reference.
  3. Create a single .cs file at <Feature>/<Slice>/<Slice>.cs (under the app source root; an optional <Module>/ may group the feature — there is no top-level Features/ wrapper).
  4. Validate by building Debug and Release (Debug regenerates the TypeScript proxies and compiles #if DEBUG spec code; build Release with -p:CratisProxiesOutputPath= to skip re-running proxy generation).
  5. Fix all compiler errors and warnings before handing back.

File structure rules (mandatory)

  • One file per slice — all artifacts in <Slice>.cs.
  • File header:
    // Copyright (c) Cratis. All rights reserved.
    // Licensed under the MIT license. See LICENSE file in the project root for full license information.
    
  • Namespace mirrors the folder path under the source root: <RootNamespace>.<Module>.<Feature>.<Slice> (no Features segment — drop any level that isn't present).
  • Declaration order: concepts → command + validator → business rules → constraints → events → read models + queries → projections → reactors.

Read the full file on GitHub · 120 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 · 120 lines · 51 tokens per session scan A 595ff5fbae1c

Subscribe to this mod's changes

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

Related

Other agents, from other repositories

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

Slice Implementer

Implements a Cratis vertical slice end-to-end — all backend artifacts in one slice file, BDD specs in when/ folders, and the React surface (page and/or command dialog). Use for new slices and for non-trivial slice changes spanning backend and frontend.

Cratis/AI · 59 tokens

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

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

Vertical Slice Planner

Orchestrates the implementation of one or more vertical slices. Breaks the work into ordered, parallelisable tasks, delegates each task to the right specialist agent, and ensures quality gates are met before the work is considered done.

Cratis/AI · 49 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