---
title: "FastAPI conventions: review, setup & limitations · Undominated.ai"
canonical: https://undominated.ai/skills/fastapi-fastapi/
description: "Official FastAPI skill for Annotated dependencies, return types, router-level configuration, and SSE through EventSourceResponse."
---

# FastAPI conventions: review, setup & limitations · Undominated.ai

> Official FastAPI skill for Annotated dependencies, return types, router-level configuration, and SSE through EventSourceResponse.

[← Explore all skills](/skills/)

API FRAMEWORKS / FastAPI

# FastAPI conventions

Official FastAPI skill for Annotated dependencies, return types, router-level configuration, and SSE through EventSourceResponse.

 [See setup guidance ↓](#setup)[Original source ↗](https://github.com/fastapi/fastapi/tree/f5c6e9b4f9cadc1bf0f9a1fd672e621206b63007/fastapi/.agents/skills/fastapi)

SOURCE REVIEW

 Reviewed 2026-10-15
 Evidence 5 linked sources
 Publisher FastAPI
 Licence [MIT ↗](https://github.com/fastapi/fastapi/blob/f5c6e9b4f9cadc1bf0f9a1fd672e621206b63007/LICENSE)
 Revision f5c6e9b4f9ca
 [Read what was—and wasn’t—checked ↓](#review)

“FastAPI best practices and conventions. Use when working with FastAPI APIs, Pydantic models, dependencies, streaming responses including Server-Sent Events (SSE), and serving frontend apps. Keeps FastAPI code clean and up to date with the latest features and patterns.”

 [FastAPI · upstream description ↗](https://github.com/fastapi/fastapi/blob/f5c6e9b4f9cadc1bf0f9a1fd672e621206b63007/fastapi/.agents/skills/fastapi/SKILL.md) Our analysis follows below.

01 / THE REASONING

## Why this made the selection.

 - The primary file specifies Annotated dependencies, a return type ahead of response_model, router-level prefix and dependencies, and EventSourceResponse for server-sent events.
- The same file tells the reader not to use ORJSONResponse, UJSONResponse, or Pydantic RootModel, and to declare the CLI entrypoint in pyproject.toml.

### A good fit for

 - Writing a new FastAPI route with the project's current dependency and response shapes
- Replacing a response_model or custom JSON response with the pattern this file shows
- Choose synchronous route and dependency functions when their called libraries perform blocking work.

### Weigh up before choosing

 - The reference files named from the quick reference were not opened. fastapi/sse.py, applications.py, and responses.py were not opened, so claims about those modules are the skill's statements.
- The skill was not executed. A repository-wide FastAPI install is not this one skill. fastapi dev and fastapi run are local server commands.

02 / THE REVIEW RECORD

## What we actually inspected.

Source review has boundaries. A clear record is more useful than a “safe” badge.

### Material inspected

 - fastapi/.agents/skills/fastapi/SKILL.md
- LICENSE at the same commit
- fastapi/.agents/skills/fastapi/SKILL.md compared with the previous review revision 94918c1d: one paragraph changed, in the OpenTelemetry section; LICENSE unchanged.

### Our findings

 - LICENSE opens with The MIT License (MIT) and Copyright (c) 2018 Sebastián Ramírez.
- The procedure, including the CLI commands and the response refusals, is in the primary file.
- Its OpenTelemetry section prefers FastAPI's native support: fastapi[standard] for the exporters, FASTAPI_OTEL_AUTO_CONFIGURE=true for automatic setup, and OTEL_SERVICE_NAME, OTEL_EXPORTER_OTLP_ENDPOINT and OTEL_EXPORTER_OTLP_HEADERS for the collector.

### Not established by this review

 - fastapi dev and fastapi run were not executed.
- The linked reference markdown and the FastAPI Python modules named by the skill were not line-reviewed.
- Not executed: it was not installed or run.

The review applies to the material and revision named here. A newer upstream release can change its behavior.

03 / PUT IT TO WORK

## Add a skill to your workflow.

[Upstream setup instructions ↗](https://github.com/vercel-labs/skills/blob/13e4063a1cf913f5606d57d42ab83a86f5001e04/README.md)

DOCUMENTED COMMAND

 npx skills add fastapi/fastapi/fastapi/.agents/skills/fastapi Copy command ↗

Run in your terminal to choose your AI tools, project or global scope, and installation method. This short command follows the current upstream version; the review covers the revision shown above.

 Optional: install the reviewed revision

Keeps the original source and installer version where recorded, while leaving your AI tools and installation scope for you to choose.

 npx skills add https://github.com/fastapi/fastapi/tree/f5c6e9b4f9cadc1bf0f9a1fd672e621206b63007/fastapi/.agents/skills/fastapi Copy reviewed-revision command ↗ - The command pins this skill directory at the reviewed commit. The installer was not executed.
- A shorter command that adds the whole fastapi/fastapi tree can pull other skills this review did not open.

### Before you start

 - Node.js and npm
- A Python environment when you later run the FastAPI CLI

### Compatibility

Agent Skills hosts · Python projects using FastAPI

### Implementation

Markdown

### Local instructions; the skill tells the agent to run the FastAPI CLI

 - Read the project
- Run fastapi dev or fastapi run when the agent follows the file

### Cost model

MIT instructions at no charge. Running an app can use your own machine and any APIs that app calls.

04 / FOLLOW THE EVIDENCE

## The source trail.

Our notes are separate from the original resource. Check upstream before adopting a new version.

 - [Skill definition ↗](https://github.com/fastapi/fastapi/blob/f5c6e9b4f9cadc1bf0f9a1fd672e621206b63007/fastapi/.agents/skills/fastapi/SKILL.md) Checked 2026-10-13 https://github.com/fastapi/fastapi/blob/f5c6e9b4f9cadc1bf0f9a1fd672e621206b63007/fastapi/.agents/skills/fastapi/SKILL.md Supports: summary, whySelected, limitations
- [MIT licence ↗](https://github.com/fastapi/fastapi/blob/f5c6e9b4f9cadc1bf0f9a1fd672e621206b63007/LICENSE) Checked 2026-10-13 https://github.com/fastapi/fastapi/blob/f5c6e9b4f9cadc1bf0f9a1fd672e621206b63007/LICENSE Supports: Redistribution terms and copyright notice
- [Skills installer source formats and selective installation ↗](https://github.com/vercel-labs/skills/blob/13e4063a1cf913f5606d57d42ab83a86f5001e04/README.md) Checked 2026-10-13 https://github.com/vercel-labs/skills/blob/13e4063a1cf913f5606d57d42ab83a86f5001e04/README.md Supports: install
- [Installer implementation: full commit SHA fallback ↗](https://github.com/vercel-labs/skills/blob/13e4063a1cf913f5606d57d42ab83a86f5001e04/src/git.ts) Checked 2026-10-13 https://github.com/vercel-labs/skills/blob/13e4063a1cf913f5606d57d42ab83a86f5001e04/src/git.ts Supports: install
- [2026-10-15 C2-W48 source re-review at the existing pin ↗](https://raw.githubusercontent.com/fastapi/fastapi/f5c6e9b4f9cadc1bf0f9a1fd672e621206b63007/fastapi/.agents/skills/fastapi/SKILL.md) Checked 2026-10-15 https://raw.githubusercontent.com/fastapi/fastapi/f5c6e9b4f9cadc1bf0f9a1fd672e621206b63007/fastapi/.agents/skills/fastapi/SKILL.md Supports: upstreamDescription, review.notTested, review.reviewedAt, bestFor

KEEP COMPARING

## Other approaches to consider.

Related by category or shared topics. These are alternatives to inspect, not a measured quality order.

 [### API Center management SDK ↗ Pins Microsoft's API Center Python skill, which requires DefaultAzureCredential and rejects connection strings and API keys for the management client.](/skills/microsoft-azure-mgmt-apicenter-py/)[### API Management SDK ↗ Pins Microsoft's API Management Python skill, which requires DefaultAzureCredential and rejects connection strings and API keys for the management client.](/skills/microsoft-azure-mgmt-apimanagement-py/)[### Astral ruff ↗ Astral's skill for linting, fixing and formatting Python with ruff: when to use it, how to invoke it, which changes to avoid, and how Black, Flake8 and isort commands map onto ruff.](/skills/astral-ruff/)

 [AI Tools ↗](/tools/)[Skills ↗](/skills/)[Agents ↗](/agents/)[MCP Servers ↗](/mcp-servers/)[Workflows ↗](/workflows/)

## Continue your investigation

 - [Choose a toolkit](/tools/)
- [Inspect execution hosts](/agents/)
- [Check tool access](/mcp-servers/)
- [Check project dependencies](/check-repo/)
