Fastapi Router Py
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
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_modeldeclarations, 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.pyand add Pydantic models and service layers
Install
$ npx -y skills add sickn33/agentic-awesome-skills --skill fastapi-router-py -yInstalls 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- Github Issue Creator124
- Performance Optimizer124
- Warren Buffett124
- Wordpress Woocommerce Development123
- Sqlmap Database Pentesting121
- Agentfolio120
- Appdeploy120
- Asana Automation120
- Fp Ts Pragmatic120
- Android Ui Verification119
- Cloud Devops117
- Notion Automation117
- Fal Upscale116
- Clickup Automation115
- Legacy Modernizer115
- Dx Optimizer113
- Hybrid Cloud Architect113
- Broken Authentication
- File Path Traversal
- Docker Expert27.5K
- Nodejs Best Practices14.2K
- Clean Code13.3K
- Typescript Expert12.9K
- Api Security Best Practices9.1K
Similar to Fastapi Router Py
More Backend & APIsfastapi-templatessickn33/agentic-awesome-skills307 installsProduction-ready FastAPI project scaffolding with async patterns, dependency injection, and error handling baked in.
python-fastapi-developmentsickn33/agentic-awesome-skills420 installsPhased workflow for building production FastAPI backends with async patterns, SQLAlchemy, and Pydantic v2.
fastapi-pythonmindrally/skills14.2K installsExpert FastAPI guidance for async Python APIs with modular structure and explicit error-handling conventions.
fastapifastapi/fastapi17K installsOfficial FastAPI skill covering API design, Pydantic models, dependencies, streaming, and frontend serving.
fastapi-microservices-developmentmanutej/luxor-claude-marketplace592 installsProduction-ready FastAPI microservice guide covering REST patterns, async handling, dependency injection, and deployment.