fastapi-router-py SKILL.md skillA

fastapi-router-py from microsoft/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add microsoft/skills/fastapi-router-py@v1.0.0

Pins v1.0.0 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 19 of 19 checks passed
Kind
SKILL.md skill
Repository
microsoft/skills
Path
.github/plugins/azure-sdk-python/skills/fastapi-router-py/SKILL.md
Versions recorded
5
Latest version
v1.0.0, committed Jul 28, 2026
First version recorded
Feb 19, 2026
Size
2,276 bytes
Repository stars
3,238
License
MIT

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.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# FastAPI Router

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

## Quick Start

Copy the template from [assets/template.py](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

```python
# Optional auth - returns None if not authenticated
current_user: Optional[User] = Depends(get_current_user)

# Required auth - raises 401 if not authenticated
current_user: User = Depends(get_current_user_required)
```

## Response Models

```python
@router.get("/items/{item_id}", response_model=Item)
async def get_item(item_id: str) -> Item:
    ...

@router.get("/items", response_model=list[Item])
async def list_items() -> list[Item]:
    ...
```

## HTTP Status Codes

```python
@router.post("/items", status_code=status.HTTP_201_CREATED)
async def create_item(item: ItemCreate) -> Item:
  ...

@router.delete("/items/{id}", status_code=status.HTTP_204_NO_CONTENT)
async def delete_item(id: str) -> None:
  ...
```
…

Read the whole file at its exact version.

How to install

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_rmtg5gwtscw5yd4j/a8c5911b2c67af768af99d0a1972e16c364ddd8194506d574ae90f375dca6bdf.json

Then /plugin install fastapi-router-py@markdownregistry-rmtg5gwtscw5yd4j in Claude Code. It installs v1.0.0, the one graded A here, pinned to the commit it was graded at, and leaves it there.

The exact contents, by fingerprint
mdr add microsoft/skills/fastapi-router-py@sha256:a8c5911b2c67af76

The line at the top of this page pins the label v1.0.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_rmtg5gwtscw5yd4j.svg)](https://markdownregistry.com/a/art_rmtg5gwtscw5yd4j)

0 badge image fetches in 30 days. What the badge shows.

Ask from your agent
claude mcp add --transport http markdownregistry https://markdownregistry.com/mcp/registry

Then ask it: what changed in microsoft/skills/fastapi-router-py since the version I have? It reads every saved version here, no key and no account. Any agent that speaks MCP can add it.

Got a copy of fastapi-router-py from somewhere else? Ask it: where did my fastapi-router-py come from, and what was changed? It names the public original, the version yours is closest to and every changed line. The text is not kept.

Versions

The registry has recorded 5 versions of this file, between Feb 19, 2026 and Jul 28, 2026, about one every 40 days.

Watch this file (sign in, one email per new version)

versioncommittedcommitsizeaudit
v1.0.0 latest2026-07-28 4a2873f 2,276 BA view · diff
v1.0.02026-07-15 e19efc2 2,174 BA view · diff
v1.0.02026-04-24 8ae5031 1,966 BA view · diff
v1.0.02026-04-02 67ae723 1,655 BA view · diff
git:20260219.4d5fd3f2026-02-19 4d5fd3f 1,593 BA view
Keep it current by itself, install once

Committed this skill to a repository? Install the markdownregistry skill updates app on it, or on all of them. When the registry saves a newer version, a pull request brings your copy to it within minutes, the newest version first, then what changed and any check it newly trips. A copy you edited is never touched, and nothing is deleted.

Install on GitHub

It asks to read and write contents and pull requests, and to read metadata. No workflow file, no Actions setting, nothing runs on your runners. Uninstall it and everything the registry kept about your repository is deleted.

Keep it current by itself

Committed this skill to a repository? Add one workflow file, and when a newer version is saved, a pull request brings your copy to it, the newest version first, then what changed and any check it newly trips. A copy you edited is never touched, and nothing is deleted.

mkdir -p .github/workflows && curl -fsSL https://markdownregistry.com/ci/skill-updates.yml -o .github/workflows/skill-updates.yml

It runs daily on GitHub Actions, no key and no account. Read the workflow before you add it.

Check a whole project

From the root of your project, one line hashes each installed skill's SKILL.md, your AGENTS.md and your CLAUDE.md, and asks the registry once. Only the fingerprints and paths are sent.

sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --data-binary @- https://markdownregistry.com/api/v1/check-copies

In CI, add --fail-with-body: the answer is 409 when any file is behind, so the step fails and still prints which files.

sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --fail-with-body --data-binary @- https://markdownregistry.com/api/v1/check-copies

No sha256sum on your machine? shasum -a 256 prints the same lines.

Audit of the latest version

A  19 of 19 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (2276 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No encoded command decoded and run in a shell
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No decoded text run in a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

microsoft/skills · 3,238 stars · license MIT · pushed 2026-11-20 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_rmtg5gwtscw5yd4j
GET https://markdownregistry.com/api/v1/resolve?ref=microsoft/skills/fastapi-router-py
GET https://markdownregistry.com/api/v1/blob/a8c5911b2c67af768af99d0a1972e16c364ddd8194506d574ae90f375dca6bdf
GET https://markdownregistry.com/api/v1/list?kind=skill

Every file of this kind listed here, most starred first, in pages: send each page's next back as cursor. JSON, no key.

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from microsoft/skills

skills Plugin marketplace
microsoft/skills · .claude-plugin/marketplace.json · Skills, agents, and plugins for AI coding agents working with Azure SDKs and Microsoft AI Foundry (14 plugins…
v1.0.0 · audit A · 3,238 stars
copilot-instructions.md
microsoft/skills · .github/copilot-instructions.md
git:20260219.526f2a7 · audit A · 3,238 stars
aks-cost-optimization SKILL.md skill
microsoft/skills · .github/plugins/aks-skills/skills/aks-cost-optimization/SKILL.md · Analyze advanced AKS cost efficiency. WHEN: "AKS NAP readiness", "AKS bin packing", "AKS node scaling bottleneck", "AKS…
v1.0.10 · audit A · 3,238 stars
aks-gpu-inference SKILL.md skill
microsoft/skills · .github/plugins/aks-skills/skills/aks-gpu-inference/SKILL.md · Diagnose Day-2 AKS GPU and KAITO incidents using profile-aware, read-only evidence. WHEN: 'Insufficient…
v1.1.1 · audit A · 3,238 stars
aks-known-issues SKILL.md skill
microsoft/skills · .github/plugins/aks-skills/skills/aks-known-issues/SKILL.md · Lookup documented AKS fixes only when the prompt includes an exact catalog signature and all of its qualifiers…
v1.2.1 · audit A · 3,238 stars
aks-network-capture SKILL.md skill
microsoft/skills · .github/plugins/aks-skills/skills/aks-network-capture/SKILL.md · Collects bounded packet captures from AKS nodes and Azure network configuration for wire-level evidence. WHEN: "capture…
v1.0.1 · audit A · 3,238 stars
aks-troubleshooting SKILL.md skill
microsoft/skills · .github/plugins/aks-skills/skills/aks-troubleshooting/SKILL.md · Debug live Azure Kubernetes Service (AKS) incidents with a read-only, evidence-first investigation. WHEN: pod crashes…
v1.2.1 · audit A · 3,238 stars
azure-search-nav SKILL.md skill
microsoft/skills · .github/plugins/aks-skills/skills/azure-search-nav/SKILL.md · Builds an Azure portal deep link to a specific blade/menu item for supported Microsoft.ContainerService…
v1.0.1 · audit A · 3,238 stars
azure-advisor-actionability SKILL.md skill
microsoft/skills · .github/plugins/azure-advisor/skills/azure-advisor-actionability/SKILL.md · Get remediation instructions for selected Azure Advisor recommendations. WHEN: fix a selected recommendation, generate…
v1.0.2 · audit A · 3,238 stars
azure-advisor-cost-optimization SKILL.md skill
microsoft/skills · .github/plugins/azure-advisor/skills/azure-advisor-cost-optimization/SKILL.md · Analyze Azure Advisor Cost/IdleResources findings and prevalidate deletion safety, including Service Groups. WHEN…
v1.0.11 · audit A · 3,238 stars
azure-advisor SKILL.md skill
microsoft/skills · .github/plugins/azure-advisor/skills/azure-advisor/SKILL.md · Use Azure Advisor. WHEN: "show recommendations", "top Advisor actions", "prioritize recommendations", "service…
v1.0.3 · audit A · 3,238 stars
cost-analysis SKILL.md skill
microsoft/skills · .github/plugins/azure-cost/skills/cost-analysis/SKILL.md · Analyze actual Azure spend, bill changes, and AKS or AI costs. WHEN: "Azure cost breakdown", "most expensive…
v1.1.2 · audit A · 3,238 stars

Every file in microsoft/skills

Other files named fastapi-router-py

fastapi-router-py SKILL.md skill
tmolavi/mcp-agent-skills-hub · skills/fastapi-router-py/SKILL.md · Create FastAPI routers following established patterns with proper authentication, response models, and HTTP status…
git:20260722.c217a35 · audit A · 11 stars

Browse by kind, by grade A, or by owner.