{"id":"9db9ac66-9125-4b47-9fd1-ec723261f675","shortId":"GLY2F6","kind":"skill","title":"fastapi-router-py","tagline":"Create FastAPI routers following established patterns with proper authentication, response models, and HTTP status codes.","description":"# FastAPI Router\n\nCreate FastAPI routers following established patterns with proper authentication, response models, and HTTP status codes.\n\n## Quick Start\n\nCopy the template from assets/template.py and replace placeholders:\n- `{{ResourceName}}` → PascalCase name (e.g., `Project`)\n- `{{resource_name}}` → snake_case name (e.g., `project`)\n- `{{resource_plural}}` → plural form (e.g., `projects`)\n\n## Authentication Patterns\n\n```python\n# Optional auth - returns None if not authenticated\ncurrent_user: Optional[User] = Depends(get_current_user)\n\n# Required auth - raises 401 if not authenticated\ncurrent_user: User = Depends(get_current_user_required)\n```\n\n## Response Models\n\n```python\n@router.get(\"/items/{item_id}\", response_model=Item)\nasync def get_item(item_id: str) -> Item:\n    ...\n\n@router.get(\"/items\", response_model=list[Item])\nasync def list_items() -> list[Item]:\n    ...\n```\n\n## HTTP Status Codes\n\n```python\n@router.post(\"/items\", status_code=status.HTTP_201_CREATED)\n@router.delete(\"/items/{id}\", status_code=status.HTTP_204_NO_CONTENT)\n```\n\n## Integration Steps\n\n1. Create router in `src/backend/app/routers/`\n2. Mount in `src/backend/app/main.py`\n3. Create corresponding Pydantic models\n4. Create service layer if needed\n5. Add frontend API functions\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.","tags":["fastapi","router","antigravity","awesome","skills","sickn33","agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding","ai-workflows"],"capabilities":["skill","source-sickn33","skill-fastapi-router-py","topic-agent-skills","topic-agentic-skills","topic-ai-agent-skills","topic-ai-agents","topic-ai-coding","topic-ai-workflows","topic-antigravity","topic-antigravity-skills","topic-claude-code","topic-claude-code-skills","topic-codex-cli","topic-codex-skills"],"categories":["antigravity-awesome-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/sickn33/antigravity-awesome-skills/fastapi-router-py","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add sickn33/antigravity-awesome-skills","source_repo":"https://github.com/sickn33/antigravity-awesome-skills","install_from":"skills.sh"}},"qualityScore":"0.700","qualityRationale":"deterministic score 0.70 from registry signals: · indexed on github topic:agent-skills · 34793 github stars · SKILL.md body (1,690 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-24T00:50:55.586Z","embedding":null,"createdAt":"2026-04-18T21:37:04.222Z","updatedAt":"2026-04-24T00:50:55.586Z","lastSeenAt":"2026-04-24T00:50:55.586Z","tsv":"'/items':102,117,133,140 '1':150 '2':155 '201':137 '204':145 '3':159 '4':164 '401':86 '5':170 'action':187 'add':171 'api':173 'applic':181 'ask':225 'assets/template.py':43 'async':108,122 'auth':69,84 'authent':13,30,65,74,89 'boundari':233 'case':55 'clarif':227 'clear':200 'code':19,36,130,135,143 'content':147 'copi':39 'correspond':161 'creat':5,22,138,151,160,165 'criteria':236 'current':75,81,90,95 'def':109,123 'depend':79,93 'describ':188,204 'e.g':50,57,63 'environ':216 'environment-specif':215 'establish':9,26 'execut':183 'expert':221 'fastapi':2,6,20,23 'fastapi-router-pi':1 'follow':8,25 'form':62 'frontend':172 'function':174 'get':80,94,110 'http':17,34,128 'id':104,113,141 'input':230 'integr':148 'item':103,107,111,112,115,121,125,127 'layer':167 'limit':192 'list':120,124,126 'match':201 'miss':238 'model':15,32,99,106,119,163 'mount':156 'name':49,53,56 'need':169 'none':71 'option':68,77 'output':210 'overview':191 'pascalcas':48 'pattern':10,27,66 'permiss':231 'placehold':46 'plural':60,61 'project':51,58,64 'proper':12,29 'py':4 'pydant':162 'python':67,100,131 'quick':37 'rais':85 'replac':45 'requir':83,97,229 'resourc':52,59 'resourcenam':47 'respons':14,31,98,105,118 'return':70 'review':222 'router':3,7,21,24,152 'router.delete':139 'router.get':101,116 'router.post':132 'safeti':232 'scope':203 'servic':166 'skill':179,195 'skill-fastapi-router-py' 'snake':54 'source-sickn33' 'specif':217 'src/backend/app/main.py':158 'src/backend/app/routers':154 'start':38 'status':18,35,129,134,142 'status.http':136,144 'step':149 'stop':223 'str':114 'substitut':213 'success':235 'task':199 'templat':41 'test':219 'topic-agent-skills' 'topic-agentic-skills' 'topic-ai-agent-skills' 'topic-ai-agents' 'topic-ai-coding' 'topic-ai-workflows' 'topic-antigravity' 'topic-antigravity-skills' 'topic-claude-code' 'topic-claude-code-skills' 'topic-codex-cli' 'topic-codex-skills' 'treat':208 'use':177,193 'user':76,78,82,91,92,96 'valid':218 'workflow':185","prices":[{"id":"d479a3c7-30b1-44e2-947b-260f36ac308d","listingId":"9db9ac66-9125-4b47-9fd1-ec723261f675","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"sickn33","category":"antigravity-awesome-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T21:37:04.222Z"}],"sources":[{"listingId":"9db9ac66-9125-4b47-9fd1-ec723261f675","source":"github","sourceId":"sickn33/antigravity-awesome-skills/fastapi-router-py","sourceUrl":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/fastapi-router-py","isPrimary":false,"firstSeenAt":"2026-04-18T21:37:04.222Z","lastSeenAt":"2026-04-24T00:50:55.586Z"}],"details":{"listingId":"9db9ac66-9125-4b47-9fd1-ec723261f675","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"sickn33","slug":"fastapi-router-py","github":{"repo":"sickn33/antigravity-awesome-skills","stars":34793,"topics":["agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding","ai-workflows","antigravity","antigravity-skills","claude-code","claude-code-skills","codex-cli","codex-skills","cursor","cursor-skills","developer-tools","gemini-cli","gemini-skills","kiro","mcp","skill-library"],"license":"mit","html_url":"https://github.com/sickn33/antigravity-awesome-skills","pushed_at":"2026-04-24T00:28:59Z","description":"Installable GitHub library of 1,400+ agentic skills for Claude Code, Cursor, Codex CLI, Gemini CLI, Antigravity, and more. Includes installer CLI, bundles, workflows, and official/community skill collections.","skill_md_sha":"2b7ea8c840caa347a278945466bee83148fb3933","skill_md_path":"skills/fastapi-router-py/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/fastapi-router-py"},"layout":"multi","source":"github","category":"antigravity-awesome-skills","frontmatter":{"name":"fastapi-router-py","description":"Create FastAPI routers following established patterns with proper authentication, response models, and HTTP status codes."},"skills_sh_url":"https://skills.sh/sickn33/antigravity-awesome-skills/fastapi-router-py"},"updatedAt":"2026-04-24T00:50:55.586Z"}}