fastapi-security-review

fastapi-security-review is a skill for Claude Code, Codex from beel-collab/presets.dev. It costs 51 tokens per session (1,058 once invoked), scanned A, original, MIT.

A security review for FastAPI applications, Python web services that expose routes for HTTP requests. It checks request validation, authentication dependencies, and blocking work inside asynchronous routes.

In plain words
What is it for?
Use it to review FastAPI routes, Pydantic request or response models, and API authentication changes.
Why use it?
It helps prevent invalid or unauthorized requests from reaching application code and helps avoid blocking an async server while it handles other requests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex; $skill-name invocation.

Good fit Use it to review FastAPI routes, Pydantic request or response models, and API authentication changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/beel-collab/presets.dev/fastapi-security-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add beel-collab/presets.dev --skill fastapi-security-review
Clone the repo
git clone --depth 1 https://github.com/beel-collab/presets.dev

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fastapi-security-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/beel-collab/presets.dev/fastapi-security-review/github.svg)](https://agentmods.dev/skills/beel-collab/presets.dev/fastapi-security-review)
Your own site
<a href="https://agentmods.dev/skills/beel-collab/presets.dev/fastapi-security-review"><img src="https://agentmods.dev/badge/skills/beel-collab/presets.dev/fastapi-security-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fastapi-security-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/beel-collab/presets.dev/fastapi-security-review"><img src="https://agentmods.dev/badge/skills/beel-collab/presets.dev/fastapi-security-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,058 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.01058
Opus 5.5 $0.00020 $0.00423
Sonnet 5.5 $0.00010 $0.00212
Haiku 4.5 $0.00005 $0.00106

Measured 20d ago against content hash 80d106eda5ff, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fastapi-security-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 20d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

antigravity/fastapi/fastapi-security-review/SKILL.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

FastAPI Security Review Skill for Antigravity CLI

Install

Install the native export at .agents/skills/fastapi-security-review/SKILL.md (one file shared with Codex). Copy that export, not this catalog file. Catalog fields such as tools and author are for presets.dev. Install one skill file per name. Cursor, GitHub Copilot, Codex, Antigravity CLI, and Devin can all read .agents/skills, so a second copy with the same name collides.

FastAPI Security Review

Shared skill fastapi-security-review for FastAPI. Codex and Antigravity CLI both read .agents/skills/fastapi-security-review/SKILL.md. Install this one file. Codex calls it with $fastapi-security-review or /skills. Cursor, GitHub Copilot, and Devin also read .agents/skills. A second copy with the same name collides. Do not install another tool's file there.

When to run

Run this review for a FastAPI route, a Pydantic model, or a request to "check the API auth".

When to leave it

Stop for a Python script that is not a FastAPI app. Do not upgrade FastAPI or Pydantic unless the user asked.

Steps

  1. Read the FastAPI and Pydantic majors. v1 syntax in a v2 app is a medium finding. It still runs. A missing response model or a missing auth check stays high.
  2. For each changed route, confirm a response model. A secret or password field on that model is a high finding. A model_dump() spread into a write is a high finding.
  3. For each write, confirm an auth dependency and an owner check. A client-supplied user id that is stored is a high finding.
  4. For each async def, confirm it does not call a blocking client. That is a high finding on a request path.
  5. Look for CORS * with credentials. That is a high finding.
  6. Note whether tests cover 401, 403, and an invalid body. Run pytest only if the user asked. Otherwise write not run.

Output

Findings with severity, file, line, the route, and a fix. Do not include secrets from .env.

## Findings
- high | path:line | what is wrong | what to do instead

## No findings
Say "No findings" and list the files you opened. A search you skipped is not a clean result.

## Example
Input: `routes/notes.py` is `async def` and calls `time.sleep(2)` before returning.
Output: high | routes/notes.py:11 | a blocking call on the event loop | move the work to a thread or an async client.

Read the full file on GitHub · 95 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 20d ago First seen · 95 lines · 51 tokens per session scan A 80d106eda5ff

Subscribe to this mod's changes

fastapi-security-review is a skill published in the GitHub repository beel-collab/presets.dev (3 stars, last pushed 9d ago), licensed MIT. It adds 51 tokens to every session and 1,058 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-13.

Related

fastapi-security-review compared with skills from other repositories

fastapi-security-review next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fastapi-security-reviewbeel-collab/presets.devSkill39d agoMITA51Claude Code, Codex
fastapimartineserios/thebranaSkill3yesterdayMITA21Claude Code
fastapi-async-apifindscripter/everything-skillsSkill13yesterdaynoneA125Claude Code
fastapi-templatesFluxonLab/SkillrySkill134d agononeA37Claude Code, Codex
python-resource-managementFluxonLab/SkillrySkill134d agononeA37Claude Code, Codex
python-background-jobsFluxonLab/SkillrySkill134d agononeA45Claude Code, Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex