Skip to main content
skill CX Codex

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

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add rebyteai-template/rebyte-skills --skill fastapi-backend-template -a claude-code
Open on GitHub

What 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-code

2Manually: put the files in place

~/.claude/skills/fastapi-backend-template/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/fastapi-backend-template/

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.

Similar skills

All skills for Backend and APIs →

From the same set12

The whole set →

Project sponsors

Companies that keep this analytics open