Skip to content

Creates FastAPI routers with auth checks, response models, and HTTP status codes from a placeholder template.

CCM score
53 of 100
skills.sh installs
124
GitHub stars
50.5K
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers router scaffolding for CRUD resources: substituting {{ResourceName}}, {{resource_name}}, and {{resource_plural}} placeholders in a template
  • Includes patterns for optional and required authentication dependencies, response_model declarations, and 201 and 204 status codes
  • Enforces owner checks on update and delete routes, plus owner and tenant filtering on list and get for non-public resources
  • Designed for FastAPI projects that mount routers in src/backend/app/main.py and add Pydantic models and service layers

Install

$ npx -y skills add sickn33/agentic-awesome-skills --skill fastapi-router-py -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Bundled upstream support

Supporting files are included at skill-relative paths. See UPSTREAM-NOTICE.md for their pinned sources, licenses, hashes, and import changes.

FastAPI Router

Create FastAPI routers following established patterns with proper authentication, response models, and HTTP status codes.

Authorization requirements

The template assumes an author_id owner field; adapt it to the real model before use. Update/delete checks are required, not optional. For non-public resources require authentication and tenant/owner filtering on list/get too, preferably in atomic service queries; authentication alone is not authorization. Test anonymous access, another owner and another tenant against every CRUD route. The placeholder template is not executable Python until substituted and integrated.

Quick Start

Copy the template from assets/template.py and replace placeholders:

  • {{ResourceName}} → PascalCase name (e.g., Project)
  • {{resource_name}} → snake_case name (e.g., project)
  • {{resource_plural}} → plural form (e.g., projects)

Authentication Patterns

Details

Repository
github.com/sickn33/agentic-awesome-skills
Categories
Backend & APIs, Python
First seen
Jun 3, 2026

Questions

What does the fastapi-router-py skill do?

It creates FastAPI routers that follow established patterns, with proper authentication, response models and HTTP status codes. It starts from a template in assets/template.py whose placeholders you replace with your resource name, and it then guides mounting the router and adding Pydantic models.

How do I install the fastapi-router-py skill?

Run npx -y skills add sickn33/agentic-awesome-skills --skill fastapi-router-py -y inside your project. Once installed, the agent can build FastAPI routers for your backend with the authentication and status code patterns the skill defines.

Does fastapi-router-py handle authorization for my routes?

It requires authentication and owner or tenant filtering on non-public resources, including list and get routes, and it says authentication alone is not authorization. The template assumes an author_id owner field, which you must adapt to your real model before use.

What should I check before using fastapi-router-py in my project?

The placeholder template is not executable Python until you substitute the placeholders and integrate it into your app. Test anonymous access, another owner and another tenant against every CRUD route before relying on it.

More from sickn33/agentic-awesome-skills

All 682

Similar to Fastapi Router Py

More Backend & APIs