Skills

Fastapi App

Bootstrap a new FastAPI backend with async SQLAlchemy 2.0, asyncpg, Alembic, Pydantic...

Install

npx skills add ccplugins/awesome-claude-code-plugins --skill fastapi-app -g -a claude-code -y
Category
DevOps
Updated
3mo ago
License
Apache-2.0
Context cost
Lightabout 945 tokens
Runs scripts
Yes, review before use

What it does

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.

fastapi-app

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.

Step 0. Get the brief, then ask the variant questions (hard stop)

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.

  1. Repo visibility: private, open-source, or private-plus-open-source.
  2. Auth: JWT (python-jose or PyJWT), OAuth (Google), API-key, or none yet.
  3. Database: Postgres via async SQLAlchemy + asyncpg (default), or none yet.
  4. Dependency tooling: uv (default, fast) or pip + requirements.txt.
  5. Admin UI: SQLAdmin, or none.
  6. Deploy target: Docker container (default) or Vercel serverless.

If the user already answered some, do not re-ask.

Step 1. Verify environment and current versions

Read the whole SKILL.md on GitHub

More in DevOps