/datumpin:fastapi-service-architecturefrom datumpin
FastAPI services - routers/services/database layering, route naming, tests. Use when adding a router, model or settings field; DB and settings rules in siblings
Ships in datumpin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The default structure for every FastAPI service (AHJV2's backend, BDS's api/processor, curator), so a developer or Claude moving between them finds the same layout.
Branches that load a sibling file:
| When | File |
|---|---|
| Adding or changing a settings field, an env var, CORS | SETTINGS.md |
| Running a service as more than one instance, or deciding what varies per instance | MULTI-INSTANCE.md |
| Writing a model or a list query | DB-PATTERNS.md |
Env files, seeding, ports, networks and compose generation belong to config-led-deployment. Migrations belong to alembic-migrations.
routers/ → services/ → database/routers/: one file per resource or workflow area. Routers translate HTTP into service calls: Pydantic request/response models, status codes, and the call into services/.services/: the business logic, framework-agnostic where possible so it is unit-testable without FastAPI. A resolver used by more than one router is its own module here (an extraction_config.py used by both a config and an extraction router).database/: SQLAlchemy models, Alembic migrations (migrations/, alembic.ini) and the seed loader. Routers reach the database through services/.Each of the three folders has a README.md saying what it owns and what it leaves out (routers/ adds a per-endpoint status table, see api-documentation).
A router is named for what a caller is trying to do: curation.py (/curation/pull, /curation/push), not addressing.py mirroring an Addressing table. The workflow-named router is the contract that carries across a service's instances.
Before adding a router, check whether an existing one already serves the same purpose under another name, and consolidate.
unit / integration / contract markers (see testing-conventions). conftest.py sets an in-memory SQLite database URL before anything imports config or database.engine, so test runs stay off the instances' real DB files.
grep -rn "from database" routers/ finds nothing.grep -rn "sqlalchemy.dialects.postgresql" . finds nothing.routers/, services/, database/ has a README.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jago971/dp-cli --plugin datumpin31 skills in this plugin
/alembic-migrationsAlembic migrations in a FastAPI/SQLAlchemy service - env.py, SQLite batch mode, container-only commands. Use when adding or reviewing a migration./alignAlign - find and fix drift between code, tickets and plans. Use when a repo joins the workflow, direction changes, a milestone closes, or to clean the backlog./api-documentationDocumenting HTTP APIs - endpoint docstrings, router READMEs, docs/reference/api. Use when adding or editing a FastAPI route./boardBoard - sync the Gitea tickets, show the kanban, suggest the next ticket. Use at session start or when asked for the board, backlog or what to do next./change-readyChange ready - the checklist a change passes before it is opened as a PR. Use when finishing work, before a closing commit, or asked if it is ready./change-reviewReview a diff on two axes, Standards and Spec, with parallel subagents. Use when reviewing a branch, a PR, work in progress or changes since a commit.