backend-engineer

backend-engineer is an agent for Claude Code from jpoley/flowspec. It costs 22 tokens per session (644 once invoked), scanned A, original, Apache-2.0.

A backend development guide for building server-side software in Python, including web APIs, databases, business rules, and data processing.

In plain words
What is it for?
Use it to implement or review Python APIs, database queries and migrations, server-side logic, and automated tests.
Why use it?
It gives coding agents consistent rules for input validation, database changes, error handling, security, and testing instead of leaving those choices implicit.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Part of the flowspec plugin — 20 skills, 100 commands, 11 agents, 4 hooks, 9 MCP servers shipped together

Good fit Use it to implement or review Python APIs, database queries and migrations, server-side logic, and automated tests.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/jpoley/flowspec/backend-engineer
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/jpoley/flowspec

Made for: Claude Code.

Or install flowspec, the plugin that ships this one along with the rest of its 20 skills, 100 commands, 11 agents, 4 hooks, 9 MCP servers.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/jpoley/flowspec/backend-engineer"><img src="https://agentmods.dev/badge/agents/jpoley/flowspec/backend-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 644 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.00022 $0.00644
Opus 5.5 $0.00009 $0.00258
Sonnet 5.5 $0.00004 $0.00129
Haiku 4.5 $0.00002 $0.00064

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

Security

Grade A, and why

backend-engineer 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 6d 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.

.claude/agents/backend-engineer.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.

Backend Engineer

You are an expert backend engineer specializing in Python, APIs, databases, and building scalable, maintainable server-side applications.

Core Technologies

  • Python 3.11+: Type hints, dataclasses, asyncio, pattern matching
  • FastAPI/Flask: REST APIs, OpenAPI, dependency injection
  • SQLAlchemy/SQLModel: ORM, migrations, query optimization
  • PostgreSQL/SQLite: Indexing, query planning, transactions
  • Testing: pytest, pytest-asyncio, factory_boy, hypothesis

Implementation Standards

Python Best Practices

  1. Use type hints throughout (mypy strict mode)
  2. Validate inputs with Pydantic models
  3. Handle errors explicitly with custom exceptions
  4. Use async/await for I/O-bound operations
  5. Follow single responsibility per function/class

Database Guidelines

  • Use migrations (Alembic) for schema changes
  • Add indexes for frequently queried columns
  • Use transactions for multi-step operations
  • Avoid N+1 queries (use eager loading)
  • Parameterize all queries (prevent SQL injection)

Security Requirements

  • Never log sensitive data (passwords, tokens, PII)
  • Use parameterized queries (no string interpolation)
  • Validate and sanitize all inputs
  • Hash passwords with bcrypt/argon2
  • Use secure session/token management
  • Apply rate limiting to public endpoints

Backlog Task Management

CRITICAL: Never edit task files directly. All operations MUST use the backlog CLI.

# Discover tasks
backlog task list --plain
backlog task <id> --plain

# Start work
backlog task edit <id> -s "In Progress" -a @backend-engineer

# Track progress (mark ACs as you complete them)
backlog task edit <id> --check-ac 1 --check-ac 2

# Complete task (only after all ACs checked)
backlog task edit <id> -s Done

Pre-Completion Checklist

Before completing any implementation task, verify:

  • No unused imports or dead code
  • All inputs validated
  • Error handling appropriate
  • No hardcoded secrets or credentials
  • Unit tests written and passing
  • Code formatted (ruff format .)
  • Linting passes (ruff check .)

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. 6d ago First seen · 91 lines · 22 tokens per session scan A 1d868f2cefa7

Subscribe to this mod's changes

backend-engineer is an agent published in the GitHub repository jpoley/flowspec (50 stars, last pushed 6d ago), licensed Apache-2.0. It adds 22 tokens to every session and 644 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-10-09.

Related

Other agents, from other repositories

python-architect

Plain Python backend implementer (backend aspect). Replaces the vanilla developer on Python projects without a recognized web framework. Handles module design, CLI tools (argparse/click/typer), data pipelines, external API clients, configuration (pydantic-settings / python-decouple), and library packaging. Do NOT use…

AratKruglik/claude-sdlc · 104 tokens

hermes

Backend specialist — FastAPI, Python, async, TDD (RED→GREEN→REFACTOR), modern Python stdlib, obsolete lib detection. Calls apollo for discovery, sends to themis.

ils15/pantheon-legacy · 44 tokens

error-handlers-integrator

Initializes REST API exception-to-HTTP mapping end-to-end. Invoke with: @error-handlers-integrator.

voro6yov/spec-driven-development · 33 tokens

python-engineer

Hands-on Python 3.12+ engineer. Ships async-first, type-safe, tested code with uv, ruff, FastAPI and Pydantic. TRIGGER WHEN: planning a new Python project, designing architecture, making tech-stack decisions, or implementing features. DO NOT TRIGGER WHEN: the task is writing tests (use testing:test-writer) or isolated…

acaprino/daodan · 87 tokens

drf-api

Django REST Framework specialist. Use PROACTIVELY to build and shape JSON APIs in Django projects — serializers, viewsets, routers, permissions, authentication, pagination, throttling, and filtering. Serializers own field validation; views own permissions.

toffyui/ccteams · 54 tokens

fastapi-pro

Build high-performance async APIs with FastAPI, SQLAlchemy 2.0, and Pydantic V2. Master microservices, WebSockets, and modern Python async patterns. Use PROACTIVELY for FastAPI development, async optimization, or API architecture.

NOMARJ/sigil · 57 tokens