LaunchKit · 2026

Setup & Installation

npx skills add https://github.com/microsoft/skills --skill fastapi-router-py
or paste the link and ask your coding assistant to install it
https://github.com/microsoft/skills/tree/main/.github/plugins/azure-sdk-python/skills/fastapi-router-py
View on GitHub

What This Skill Does

Generates FastAPI router files with CRUD endpoints, authentication dependencies, and typed response models. Follows a template-based pattern with PascalCase/snake_case resource naming. Covers HTTP status codes, optional vs required auth, and service layer integration steps.

Writing FastAPI routers by hand means re-looking up the same patterns for auth dependencies, status codes, and response models every time — this skill encodes those conventions into a reusable template.

When to use it

  • Scaffolding a new REST resource with GET, POST, PUT, DELETE endpoints
  • Adding JWT-protected routes with required or optional authentication
  • Typing API responses with Pydantic models to enforce output schemas
  • Returning correct HTTP status codes like 201 on create or 204 on delete
  • Wiring a new router into an existing FastAPI app's main entry point