All skills
microsoft avatar

/fastapi-router-py

@4a2873f
by microsoftmicrosoft/skills3.1k stars
351

Create FastAPI routers with CRUD operations, authentication dependencies, and proper response models. Use when building REST API endpoints, creating new routes, implementing CRUD operations, or adding authenticated endpoints in FastAPI applications.

Use this Skill: https://skilld.dev/gh/microsoft/skills/fastapi-router-py

This session only. Nothing lands on disk.

referencescapabilities.md

≈234 tokens on demand. Your agent reads this file only when SKILL.md points to it.

fastapi-router-py capability coverage

SDK/package: fastapi

This reference captures additional non-hero capabilities and API breadth so the main SKILL.md can stay focused on copy/paste hero flows.

Hero scenarios covered in SKILL.md

  • Quick Start
  • Authentication Patterns
  • Response Models
  • HTTP Status Codes

Important non-hero scenarios to include when needed

  • Integration Steps
  • Best Practices

API breadth checklist

  • Verify dependency lifetimes (Depends with yield) for resources like DB connections and HTTP clients.
  • Confirm request/response validation uses Pydantic models with appropriate field constraints.
  • Include proper error responses with HTTPException and correct status codes.
  • Avoid blocking I/O in async def endpoints; use run_in_executor or a thread-pool for sync calls.
  • Validate middleware, background tasks, and lifespan event patterns for production paths.

Source: SKILL.md on GitHub

2 warnings16d4 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    This skill provides standard FastAPI code scaffolding templates with built-in reference architectures for authentication dependencies, proper status codes, and Pydantic validation structures. No suspicious behaviors or security risk indicators were identified during the analysis.

  • Socket16d

    1 alert: gptAnomaly

  • Snyk16d

    Risk: LOW · No issues

  • Runlayer7mo

    3/3 files flagged

Signed by skilld at 4a2873f. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 months ago
metadata
{
  "author": "Microsoft",
  "version": "1.0.0"
}

README badge

README badge for microsoft/skills/fastapi-router-py