backend-code-review
Installation
SKILL.md
Backend Code Review
Review the requested scope for concrete, reproducible defects. The nearest AGENTS.md owns package facts and commands; this skill owns the review workflow and routes to the shared backend guides in docs/.
Evidence First
- Establish the requested review scope and inspect the relevant diff or files.
- Read the changed lines, their behavior owner, nearby tests, and local docstrings or comments that define contracts.
- Trace callers, persistence boundaries, authorization, generated schemas, or external I/O only when they decide correctness.
- Report only findings tied to an observable failure, violated contract, security boundary, data integrity risk, or demonstrated maintenance problem.
Rule Routing
Read only the guidance matched by the diff:
- Models or migrations: [Database schema][db-schema]
- Controllers, application services, ports, adapters, the composition root, import-boundary contracts, libraries, or model behavior: [Backend architecture][architecture]
- Table access outside a repository that implements a consumer-owned port: [Repositories][repositories]
- SQLAlchemy sessions, queries, transactions, CRUD, concurrency, or raw SQL: [SQLAlchemy][sqlalchemy]