atlasrox/antigravity-py-toolkit/fastapi-auditor

Claude Code and agent skill by atlasrox/antigravity-py-toolkit

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Audit FastAPI-specific routing, dependency injection, middleware, lifespan, and context internals.

Install

npx vskill@latest install atlasrox/antigravity-py-toolkit/fastapi-auditor

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as atlasrox/antigravity-py-toolkit/fastapi-auditor.

Skill: FastAPI Auditor

1. Objective & Boundaries

  • Objective: Audit and isolate issues related to FastAPI routing, dependency injection (Depends), middleware pipeline, lifecycle hooks, and HTTP status codes.
  • Boundaries:
  • ONLY analyze FastAPI frameworks, controller functions, Dependency Injection systems, and route definitions.
  • NEVER audit JWT decoding logic, SQLAlchemy ORM queries, Pydantic type conversions, or general python syntax errors.
  • NEVER modify code.

2. Decision Tree

Is the issue related to a failed endpoint request?
├── Yes ➔ Identify the HTTP response status code (e.g., 404, 405, 500, 422).
│ ├── 404 Not Found ➔ Audit routes list and prefix path matching.
│ ├── 422 Unprocessable Entity ➔ Audit request schema dependency inputs.
│ ├── 405 Method Not Allowed ➔ Audit endpoint HTTP methods (GET, POST, etc.).
│ └── 500 Internal Server Error ➔ Audit dependency injection (Depends) execution or exception handlers.
└── No ➔ Is there a lifespan or middleware initialization failure?
├── Yes ➔ Scan CORS config, middleware stack order, and app lifespan functions.
└── No ➔ Stop. Return clean audit report.

3. Investigation Methodology

  1. Route Mapping:
  • Check router setup: app.include_router(router, prefix="/api").
  • Inspect route path variables (e.g., /items/{item_id}).
  1. Dependency Injection Auditing:
  • Trace arguments with Depends(...). Verify if dependency functions yield or return expected values.
  • Inspect database session dependencies and authentication dependency overrides in test setups.
  1. Middleware & CORS Inspection:
  • Verify CORS setup (CORSMiddleware) for credentials, headers, and origins.
  • Inspect custom middleware for request interception and response modifications.

4. Reporting Methodology

Findings must be compiled using this template structure:

markdown
# FastAPI Framework Audit
## Endpoint & Routing Review
-**Target Endpoint**: `[HTTP_METHOD] /path`
-**Controller Function**: `function_name` in `file:///absolute/path/to/file`
-**Route Definition Path**: `file:///absolute/path/to/file#L10`
## FastAPI Specific Anomalies
-**DI Engine Check**: [Verify if Depends returned correct object or threw exception]
-**Middleware / CORS State**: [Details on any routing/cors blockers]
-**Lifecycle / App Hooks**: [Lifespan function status]

5. Completion Criteria

  • Pass: FastAPI routing defects, DI issues, middleware ordering bugs, or CORS configuration problems are isolated and documented.
  • Fail: The routing layout or injection system contains no issues, or the framework used is not FastAPI.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/atlasrox/antigravity-py-toolkit/fastapi-auditor/badge)](https://verified-skill.com/skills/atlasrox/antigravity-py-toolkit/fastapi-auditor)

Something wrong with this skill or its page? Tell us.