backend-development

backend-development is a skill for Claude Code, Codex from martian56/claude-engineer. It costs 63 tokens per session (615 once invoked), scanned A, original, MIT.

A set of rules for building Python back ends with FastAPI, SQLAlchemy, Alembic, and Pydantic. It defines a modular project layout and includes guidance for authentication, background jobs, caching, storage, logging, and monitoring.

In plain words
What is it for?
Use it to structure APIs, database models, authentication, asynchronous jobs, Redis caching, object storage, health checks, logging, tracing, tests, and type checking.
Why use it?
It provides consistent structure for common back-end needs and helps avoid unsafe database and deployment practices. Alembic is used to record database structure changes as migrations.

Skill for Claude CodeCodex

Part of the claude-engineer plugin — 13 skills, 1 command, 2 agents, 3 hooks shipped together

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 skills/martian56/claude-engineer/backend-development
Any agent
npx skills add martian56/claude-engineer --skill backend-development
Clone the repo
git clone --depth 1 https://github.com/martian56/claude-engineer

Made for: Claude Code, Codex.

Or install claude-engineer, the plugin that ships this one along with the rest of its 13 skills, 1 command, 2 agents, 3 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/martian56/claude-engineer/backend-development.svg)](https://agentmods.dev/skills/martian56/claude-engineer/backend-development)
Your own site
<a href="https://agentmods.dev/skills/martian56/claude-engineer/backend-development"><img src="https://agentmods.dev/badge/skills/martian56/claude-engineer/backend-development.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 615 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00063 $0.00615
Opus 5 $0.00032 $0.00308
Sonnet 5 $0.00013 $0.00123
Haiku 4.5 $0.00006 $0.00061

Measured 4d ago against content hash 1edc2592f0ed, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

backend-development 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 4d 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.

plugins/claude-engineer/skills/backend-development/SKILL.md · 36 lines

How it starts

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

Backend Development

Announce at start: "I'm using claude-engineer:backend-development to build the FastAPI backend."

The stack (defaults)

Python 3.12+ · FastAPI · SQLAlchemy 2.0 async (asyncpg) · Alembic · Pydantic v2 + pydantic-settings · uv (deps/venv) · ruff (lint+format) · mypy (types) · pytest (tests). Domain-modular layout: src/<domain>/{router,schemas,models,service,dependencies}.py.

The standard kit (scaffold these by default)

  • Auth & security - OAuth2 password flow, JWT access + refresh, password hashing (argon2/bcrypt), rate limiting, CORS, security headers.
  • Async jobs & scheduling - a task queue + scheduled jobs over Redis (see the reference for the recommended library and why).
  • Caching & object storage - Redis cache patterns + an S3/MinIO storage abstraction.
  • Observability - structured logging, Sentry, OpenTelemetry traces, /health + /ready endpoints.

Non-negotiables

  1. Async all the way - async engine + session-per-request dependency; no sync DB calls in request paths.
  2. Migrations are real - every schema change ships an Alembic migration (async-compatible); never auto-create in prod paths.
  3. Typed & validated - Pydantic v2 request/response models; mypy clean (hard gate).
  4. Tested - pytest + pytest-asyncio + httpx AsyncClient against a real test DB; meet the coverage threshold.
  5. Config via pydantic-settings - no secrets in code; env-driven; documented required vars.
  6. Services in Docker, app native - connect to Postgres/Redis/MinIO/Mailpit on localhost (claude-engineer:docker-dev-environment); run uvicorn natively.

Full detail: read references/fastapi-stack.md (exact project structure, SQLAlchemy 2.0 patterns, async Alembic setup, the job-queue recommendation, auth, observability, the blessed-packages list, pyproject.toml) on demand.

Red flags - STOP

  • A sync DB driver or blocking I/O in an async endpoint.
  • A model change without a matching Alembic migration.
  • Secrets/config literals in source instead of pydantic-settings + env.
  • Shipping an endpoint with no test.

Read the full file on GitHub · 36 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 36 lines · 63 tokens per session scan A 1edc2592f0ed

Subscribe to this mod's changes

backend-development is a skill published in the GitHub repository martian56/claude-engineer (2 stars, last pushed 2mo ago), licensed MIT. It adds 63 tokens to every session and 615 once invoked, about $0.0003 per session on Opus 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-31.

Related

Other skills, from other repositories

python-coder

Implements Python code following PEP 8, type hints, and project conventions. Use when implementing features designed by python-architect.

DmitriyYukhanov/claude-plugins · 31 tokens

python-testing

Python testing patterns with pytest including unit tests, integration tests, fixtures, mocking, and coverage. Use when writing Python tests.

DmitriyYukhanov/claude-plugins · 28 tokens

python-architect

Creates high-level Python architecture with protocols, test stubs, and module structure. Use when designing Python projects or features.

DmitriyYukhanov/claude-plugins · 28 tokens

writing-python

Idiomatic Python 3.12+ development. Use when writing Python code, CLI tools, scripts, or services. Emphasizes stdlib, type hints, fast pytest feedback, uv/ruff/pyright toolchain, and minimal dependencies. NOT for Go, Rust, TypeScript, or shell-only tasks.

alexei-led/cc-thingz · 67 tokens

python-backend-expert

This skill should be used when the user is writing, reviewing, debugging, or architecting Python backend code using Litestar or FastAPI with SQLAlchemy or Advanced Alchemy. Provides expert critique covering SOLID principles, hexagonal architecture, repository/service patterns, dependency injection, async correctness…

mathisk2095/jko-claude-plugins · 183 tokens

milp-modeling-gurobi

When the user wants to build, solve, and debug mixed-integer linear programs in Python with Gurobi — creating variables, writing constraint-builder functions, setting objectives and parameters, handling solver status, and extracting solutions safely. Also use when the user mentions "gurobipy," "build a MIP model,"…

hajibabaie/combinatorial-optimization-skills · 141 tokens