fastapi-backend-template — Claude Code skill: setup guide
fastapi-backend-template bootstraps a backend project using FastAPI, async SQLAlchemy 2.0, Alembic migrations, PostgreSQL, and Docker. Ideal for setting up a clean Python API structure.
no license 244 installs ★ 18 updated 2026-06-16
npx skills add rebyteai-template/rebyte-skills --skill fastapi-backend-template -a claude-codeWhat fastapi-backend-template does
This skill guides the AI assistant in pulling and configuring a structured FastAPI foundation. The stack features asynchronous SQLAlchemy 2.0, Alembic database migrations, and PostgreSQL data persistence.
The workflow clones the starter template repository with shallow depth, safely handles existing folder contents, reinitializes Git tracking, creates a venv virtual environment, and installs dependencies from requirements.txt.
Running the application requires Python 3.11 or newer along with an accessible PostgreSQL server. Without these prerequisites in place, the local uvicorn dev server fails during startup.
What it helps with
- bootstrap a structured FastAPI application from a repository template
- configure asynchronous database sessions with SQLAlchemy 2.0
- apply schema migrations with Alembic
- prepare a backend service for Docker containerization
Example prompts for the agent
- Scaffold a new FastAPI project with PostgreSQL using the fastapi-backend-template
- Set up a Python API repository with async SQLAlchemy and Alembic migrations
How to install fastapi-backend-template
1Skills CLI (Vercel)
npx skills add rebyteai-template/rebyte-skills --skill fastapi-backend-template -a claude-code2Manually: put the files in place
~/.claude/skills/fastapi-backend-template/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/fastapi-backend-template/
1Skills CLI (Vercel)
npx skills add rebyteai-template/rebyte-skills --skill fastapi-backend-template -a codex2Manually: put the files in place
.agents/skills/fastapi-backend-template/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add rebyteai-template/rebyte-skills --skill fastapi-backend-template -a cursor2Manually: put the files in place
.cursor/skills/fastapi-backend-template/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install rebyteai-template/rebyte-skills fastapi-backend-template2Manually: put the files in place
.github/skills/fastapi-backend-template/SKILL.md1Skills CLI (Vercel)
npx skills add rebyteai-template/rebyte-skills --skill fastapi-backend-template -a gemini-cli2Platform CLI
gemini skills install https://github.com/rebyteai-template/rebyte-skills --path fastapi-backend-templateManually: put the files in place
.devin/skills/fastapi-backend-template/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add rebyteai-template/rebyte-skills --skill fastapi-backend-template -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about fastapi-backend-template
How do I install fastapi-backend-template in Claude Code?
Run npx skills add rebyteai-template/rebyte-skills --skill fastapi-backend-template -a claude-code in your terminal.
What does fastapi-backend-template do?
It provides structured steps to clone and initialize a FastAPI backend boilerplate with async SQLAlchemy 2.0, Alembic, PostgreSQL, and Docker.
What prerequisites are needed?
You need Python 3.11 or higher and an accessible PostgreSQL instance, while Docker is recommended for container workflows.