backend-generator

backend-generator is an agent for Claude Code from superduke/ganvil. It costs 46 tokens per session (2,089 once invoked), scanned A, original, MIT.

A coding agent for building server-side software, including APIs and database-backed features, one planned feature at a time.

In plain words
What is it for?
Use it to implement backend development sprints, run database migrations safely in parallel work, and prepare tested code and handoff records.
Why use it?
It reduces the risk of incorrect APIs, damaged data, missing tests, and weak error handling during backend work.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the ganvil plugin — 6 skills, 6 agents, 1 MCP server shipped together

Good fit Use it to implement backend development sprints, run database migrations safely in parallel work, and prepare tested code and handoff records.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/superduke/ganvil/backend-generator
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/superduke/ganvil

Made for: Claude Code.

Or install ganvil, the plugin that ships this one along with the rest of its 6 skills, 6 agents, 1 MCP server.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/superduke/ganvil/backend-generator"><img src="https://agentmods.dev/badge/agents/superduke/ganvil/backend-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,089 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00046 $0.02089
Opus 5.5 $0.00018 $0.00836
Sonnet 5.5 $0.00009 $0.00418
Haiku 4.5 $0.00005 $0.00209

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

Security

Grade A, and why

backend-generator scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

5. Can you curl/request every endpoint and get the expected response?
ganvil/agents/backend-generator.md · 220 lines

How it starts

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

Backend Generator Agent

You are an expert backend developer. You implement backend features sprint by sprint, producing code that is correct, well-tested, and production-grade.

TEAM / Worktree Awareness

If the sprint contract carries TEAM lease fields (Worktree, DB, Port, DataDir, Branch), you are one of potentially several parallel generators — follow these rules exactly:

  • Operate only inside your Worktree path. Use absolute paths for all file ops; do not cd.
  • Run migrations against your own DB only (a per-branch database name from the contract). Your sibling branches have separate DBs — touching a shared DB in parallel will corrupt migrations.
  • Start the server on the specified Port (read from the contract; siblings use different ports).
  • Git: operate on your Branch only ({phase}/{id}). Commit prefix still {Sprint-ID}:.
  • Per-sprint artifacts are {SprintID}-prefixed: write backend-build-log-{SprintID}.md and backend-handoff-{SprintID}.md to the main repo's ganvil-artifacts/. Fixed names get clobbered by concurrent generators.
  • If the contract has no lease fields, you are in serial mode — ignore this section.

Before Starting a Sprint

  1. Read the spec: Read ganvil-artifacts/spec.md to understand the full product vision, data model, and API design.
  2. Read previous handoff: If this is not the first sprint, read ganvil-artifacts/backend-handoff-sprint-{N-1}.md to understand:
    • What has been built so far
    • Current code structure and database schema
    • Known issues and technical debt
    • What this sprint should accomplish
  3. Read sprint contract: If available, read ganvil-artifacts/sprint-{N}-contract.md for the negotiated acceptance criteria.
  4. Read evaluation feedback: If this sprint is a retry after failed evaluation, read ganvil-artifacts/backend-evaluation.md for specific issues to fix. Also read ganvil-artifacts/pipeline-state.md for the score trend.

Read the full file on GitHub · 220 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 · 220 lines · 46 tokens per session scan A 1f82a9ee85dc

Subscribe to this mod's changes

backend-generator is an agent published in the GitHub repository superduke/ganvil (3 stars, last pushed 2mo ago), licensed MIT. It adds 46 tokens to every session and 2,089 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

api-platform-builder

Creates and configures API Platform resources with operations, DTOs, state providers, processors, and security. Handles full resource scaffolding from entity to tested API endpoint. Use for building APIs, creating resources, or configuring API Platform.

dev-toolings/superpowers-symfony · 50 tokens

symfony-engineer

Implements Symfony application code following framework best practices, drawing on the superpowers-symfony skill library. Use for general Symfony coding — controllers, services, dependency injection, value objects/DTOs, forms, Twig components, configuration — when no more specialized agent (api-platform-builder…

dev-toolings/superpowers-symfony · 76 tokens

nodejs-expert

Use this agent when you need expert Node.js development with focus on modern async patterns, performance optimization, and security best practices. This agent specializes in Node.js 22+, ES modules, event-driven architecture, streaming, clustering, and building scalable server-side applications. Examples: Context…

andisab/swe-marketplace · 391 tokens

python-expert

Use this agent when you need expert Python development with focus on modern async programming, type safety, and architectural patterns. This agent specializes in FastAPI, Pydantic, SQLAlchemy 2.0, and advanced Python features including async/await, type hints, protocols, and class composition patterns. Examples…

andisab/swe-marketplace · 446 tokens

typescript-expert

Use this agent when you need expert TypeScript development with focus on type safety, advanced type system features, and modern ES patterns. This agent specializes in TypeScript 5.7+, strict type checking, generics, and type-level programming for building robust, maintainable applications. Examples: Context: User…

andisab/swe-marketplace · 408 tokens

gcp-cloud-architect

GCP cloud architect specializing in designing and implementing scalable Google Cloud solutions. Expert in GCE, GKE, Cloud Run, App Engine, and GCP best practices for containerized and serverless deployments.

andisab/swe-marketplace · 47 tokens