receiving-code-review
OBobra/superpowers298k近 7 天新增 2,631 个 star
Bootstrap a new FastAPI backend with async SQLAlchemy 2.0, asyncpg, Alembic, Pydantic v2, and no deprecated APIs. Use when the user wants to start, scaffold, or set up a new FastAPI service, a Python REST API, an async backend, or asks to "create a new fastapi app" or "new python backend". Handles JWT auth, layered app structure, Docker + Postgres, and Vercel or container deploy.
Bootstrap a new FastAPI backend the way this owner builds them: async SQLAlchemy 2.0 with asyncpg, Alembic migrations, Pydantic v2 settings, a layered structure (routers, services, models, schemas), JWT auth, and the house git and CI workflow. Deployable to a container or Vercel.
First read the shared rules (they override anything you remember):
../shared/house-rules.md, ../shared/no-ai-attribution.md,
../shared/git-and-ci.md, ../shared/docs-and-context.md,
../shared/hardening.md, and (for public repos) ../shared/open-source-docs.md.
This is a hard stop. Do not run any scaffolding command until the user has answered.
First, get the project brief: one paragraph on what the service does, its main resources and endpoints, who calls it, and any hard constraints. If the user has not given one, ask for it. The brief drives naming, the domain modules, and the data model.
Then ask the variant questions. If a choice has multiple options, ask; do not assume. Ask in one batch, then proceed.
uv (default, fast) or pip + requirements.txt.If the user already answered some, do not re-ask.
python3 --version, want a current supported 3.x).scripts/check-latest.sh for current stable versions from PyPI. Pin those,
not versions from memory (../shared/house-rules.md rule 2).../shared/docs-and-context.md). SQLAlchemy 2.0 async and
Pydantic v2 both broke v1 patterns; do not write v1-era code from memory.Create a virtualenv and the layout from references/structure.md. With uv:
uv init <name> && cd <name>
uv add fastapi "uvicorn[standard]" "sqlalchemy[asyncio]" asyncpg alembic \
pydantic-settings python-jose[cryptography] httpx python-multipart
uv add --dev ruff pytest pytest-asyncio
With pip, install the same set and freeze into requirements.txt. Let the tool
resolve current versions; do not force numbers you remember.
references/structure.md.references/best-practices.md.references/stack.md.../shared/hardening.md.../shared/git-and-ci.md.references/quality-gates.md..env* and any service-account JSON. Provide .env.example.
Settings load from env through pydantic-settings, never hardcoded.docs/ and a README. For a public repo, ship the full open-source docs set
per ../shared/open-source-docs.md and run the open-source hard gate in
../shared/no-ai-attribution.md before the first push.Run the gates in references/quality-gates.md: ruff check, pytest, the app
imports and starts, /health responds, and Alembic can generate a revision.
Report real results.
OBobra/superpowers298k近 7 天新增 2,631 个 star
OBobra/superpowers298k近 7 天新增 2,631 个 star
OBobra/superpowers298k近 7 天新增 2,631 个 star
MAmattpocock/skills288k近 7 天新增 10,178 个 star
MAmattpocock/skills288k近 7 天新增 10,178 个 star
MAmattpocock/skills288k近 7 天新增 10,178 个 star