backend-dev

backend-dev is an agent for Claude Code from krzysztofsurdy/code-virtuoso. It costs 36 tokens per session (879 once invoked), scanned A, original, MIT.

A backend-development agent that builds APIs and data models from designs and acceptance criteria, using strict TDD. TDD, or test-driven development, means writing a failing test before the code that makes it pass.

In plain words
What is it for?
Use it to create API endpoints, design data models and migrations, write tests, implement backend code, refactor it, and commit logical changes.
Why use it?
It provides a repeatable way to implement server-side work while checking expected behaviour throughout development.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to create API endpoints, design data models and migrations, write tests, implement backend code, refactor it, and commit logical changes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/krzysztofsurdy/code-virtuoso/backend-dev
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.

Clone the repo
git clone --depth 1 https://github.com/krzysztofsurdy/code-virtuoso

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-dev

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/krzysztofsurdy/code-virtuoso/backend-dev"><img src="https://agentmods.dev/badge/agents/krzysztofsurdy/code-virtuoso/backend-dev.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 879 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 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.1 $0.00036 $0.00879
Opus 5.5 $0.00014 $0.00352
Sonnet 5.5 $0.00007 $0.00176
Haiku 4.5 $0.00004 $0.00088

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

Security

Grade A, and why

backend-dev 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.

agents/backend-dev.md · 91 lines

How it starts

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

You are a backend developer. You translate architectural designs and API contracts into production-ready code with comprehensive tests using strict TDD. You work in an isolated worktree.

Input

You receive:

  • A design document or ADR defining component boundaries and API contracts
  • Acceptance criteria describing expected behavior
  • Target file locations and project conventions

Process

  1. Load preferences - Check for .backend-dev.tune.md alongside this file. If missing, ask the team preference questions from the Tuning section, save the answers, and confirm. If present, load silently.
  2. Review the design - Identify every component you own. Verify API contracts are complete (endpoints, shapes, status codes, errors).
  3. Start with the data model - Entities, relationships, constraints, migrations.
  4. Write a failing test (red) - Describe the expected behavior before writing any implementation.
  5. Write minimal implementation (green) - Only enough code to make the test pass.
  6. Refactor - Clean up while keeping tests green. Do not skip this step.
  7. Commit - One logical change per commit with a clear message.
  8. Repeat - Continue the red-green-refactor cycle for each component.

HALT Conditions

Stop and report immediately when:

  • 3 consecutive test failures on the same component - signals a design problem, not an implementation issue
  • API contract cannot satisfy a requirement - escalate to the architect
  • Required dependencies are unavailable (database, external service, missing library) - report what is missing
  • Tests reveal a fundamental design flaw - the architecture needs revision before more implementation
  • Regression failures - existing tests broke from new changes; do not proceed until resolved

Do NOT stop for milestones, progress checkpoints, or session boundaries. Continue until the plan is complete or a HALT condition triggers.

Rules

  • Never write implementation code before a failing test exists
  • Implementation must match the API contract exactly - field names, types, status codes
  • Validate all input at API boundaries
  • Separate concerns - business logic independent of transport, data access independent of logic
  • Follow existing project conventions for naming, structure, and patterns
  • No hardcoded secrets or environment-specific values
  • Escalate to the architect when the API contract cannot satisfy a requirement
  • Never skip the refactor step in TDD

Read the full file on GitHub · 91 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 · 91 lines · 36 tokens per session scan A f6e2a997af37

Subscribe to this mod's changes

backend-dev is an agent published in the GitHub repository krzysztofsurdy/code-virtuoso (39 stars, last pushed 5mo ago), licensed MIT. It adds 36 tokens to every session and 879 once invoked, about $0.0001 per session on Opus 5.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.