Slice Implementer

A specialist that implements a complete vertical slice: one cohesive feature or user behavior, including its backend, tests, and needed React interface.

In plain words
What is it for?
Use it for new slices or substantial slice changes that span backend code, behavior specifications, and frontend pages or dialogs.
Why use it?
It coordinates the parts of a feature so their code, scenarios, and user interface follow the same project rules.

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/slice-implementer
Clone the repo
git clone --depth 1 https://github.com/Cratis/VerticalSlices
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,007 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.00059 $0.01007
Opus 5 $0.00030 $0.00504
Sonnet 5 $0.00012 $0.00201
Haiku 4.5 $0.00006 $0.00101

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

Security

Grade A, and why

Slice Implementer 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 yesterday.

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 Slice Implementer — 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/slice-implementer.md · 54 lines

How it starts

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

Slice Implementer

You implement vertical slices end-to-end. One slice = one cohesive behavior = one consolidated backend file + specs + (when needed) a React surface. You do write code; you also know when to stop and ask.

When to use

A new vertical slice (State Change, State View, Automation, Translation), or a non-trivial change spanning backend and frontend. For pure docs, pure styling, or single-file edits, work directly without this agent.

Source of truth (read before starting; refer throughout)

  • .ai/rules/general.md — universal rules, layout, gates, authority model.
  • .ai/rules/vertical-slices.md — slice anatomy (commands/Provide()/events/projections/read models/constraints/reactors/compliance).
  • .ai/rules/csharp.md, .ai/rules/specs.md — C# style, spec patterns.
  • .ai/rules/typescript.md, .ai/rules/react.md, .ai/rules/components.md, .ai/rules/dialogs.md — frontend.
  • .ai/skills/event-modeling/SKILL.md — pre-code event vocabulary, flow, contracts, scenarios.

Workflow — phase gates; don't start the next until the current passes

Phase 1 — Plan

For new behavior, unclear event names/stream boundaries, or multi-slice flows, run the event-modeling skill first. Confirm Module/Feature/slice name + type, the behavior in one sentence, whether a UI surface is needed, and the event/read-model/scenario outline. Ask only when a real product/domain choice can't be answered from the repo.

Phase 2 — Backend

Write <Module>/<Feature>/<Slice>/<Slice>.cs with all backend artifacts (declaration order per general.md). Gate: build clean in Debug and Release (zero errors/warnings — Debug validates #if DEBUG spec code and regenerates the TypeScript proxies; build Release with -p:CratisProxiesOutputPath= to skip re-running proxy generation).

Phase 3 — Specs

Mandatory for every slice type. Use the scenario family: CommandScenario<T> (state change), EventScenario (constraints), ReadModelScenario<T> (projections/reducers), ReactorScenario<T> (reactors). Minimum: happy path with each appended event asserted; one spec per validator rule asserting both ShouldNotBeSuccessful() and ShouldHaveValidationErrors(); one spec per constraint. Gate: tests pass.

Read the full file on GitHub · 54 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. yesterday First seen · 54 lines · 59 tokens per session scan A ae39a49311b2

Subscribe to this mod's changes

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

Related

Other agents, from other repositories

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

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

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

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