Install any skill in seconds. Free to start, no credit card required.
Get Started Free →reflexioai/fastapi
FastAPI best practices and conventions.
Passed 21 of 22 test cases with the skill, and 17 of 22 without it.
and 4 more in the full report
5 fixed16 passed either way0 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 5 test cases the skill fixed. Same model, same prompt, with and without the skill.
Write a FastAPI POST /tags/batch endpoint that accepts a JSON list of string tags in the request body, requiring at least 2 items in the list. Do not create a RootModel class.
| Checked | Without skill | With skill |
|---|---|---|
| Annotates the body argument using Annotated with list[str], Field(min_length=2), and Body(). | Missed | Passed |
| Avoids using Pydantic RootModel. | Passed | Passed |
The instructions your model reads when the skill loads.
Official FastAPI skill to write code with best practices, keeping up to date with new versions and features.
Project note: This project starts the server via
./run_services.sh(uvicorn), notfastapi dev. The patterns below still apply to all endpoint/model code.
fastapi CLIRun the development server on localhost with reload:
fastapi dev
Run the production server:
fastapi run
pyproject.tomlFastAPI CLI will read the entrypoint in pyproject.toml to know where the FastAPI app is declared.
[tool.fastapi]
entrypoint = "my_app.main:app"
fastapi with a pathWhen adding the entrypoint to pyproject.toml is not possible, or the user explicitly asks not to, or it's running an independent small app, you can pass the app file path to the fastapi command:
fastapi dev my_app/main.py
Prefer to set the entrypoint in pyproject.toml when possible.
test cases passed, vs 17 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.