This handles the boilerplate when you're adding new FastAPI routers to a project that already has conventions in place. It includes a template file with placeholders for resource names, and pushes you toward patterns like proper auth dependencies (optional vs required), explicit response models, and correct status codes for creates and deletes. The workflow assumes you're working in a specific project structure with a backend/app/routers directory and a separate frontend that needs API functions. It's narrow in scope but useful if you're on a team that wants consistency across endpoints without writing the same router setup from scratch every time.

skills.sh installs
124
GitHub stars
39.4K
last updated
Jun 3, 2026

Install

$ npx -y skills add sickn33/antigravity-awesome-skills --skill fastapi-router-py --agent claude-code

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/sickn33/antigravity-awesome-skills
Category
Python
First seen
Jun 3, 2026

More from sickn33/antigravity-awesome-skills

All 708

Recommended

More Python
1existential-birds avatarpydantic-ai-model-integrationexistential-birds/beagleConfigure LLM providers, use fallback models, handle streaming, and manage model settings in PydanticAI. Use when selecting models, implementing resilience, or 120skills.sh installs
2elastic avatarobservability-edot-python-instrumentelastic/agent-skills>0skills.sh installs
3elastic avatarobservability-edot-python-migrateelastic/agent-skills>0skills.sh installs
4pluginagentmarketplace avatarPython Fundamentalspluginagentmarketplace/custom-plugin-pythonMaster Python syntax, data types, control flow, functions, OOP, and standard library0skills.sh installs
5pluginagentmarketplace avatarPython Performancepluginagentmarketplace/custom-plugin-pythonMaster Python optimization techniques, profiling, memory management, and high-performance computing0skills.sh installs
6rknall avatarPython Backend Architecture Reviewrknall/claude-skillsComprehensive design architecture review for Python backend applications. Use this skill when users ask you to review, analyze, or provide feedback on backend a0skills.sh installs