mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-05-14 00:23:04 +08:00
docs: salvage FastAPI review patterns
This commit is contained in:
committed by
Affaan Mustafa
parent
1c06ad9524
commit
d52cdccb0d
39
commands/fastapi-review.md
Normal file
39
commands/fastapi-review.md
Normal file
@@ -0,0 +1,39 @@
|
||||
---
|
||||
description: Review a FastAPI application for architecture, async correctness, dependency injection, Pydantic schemas, security, performance, and testability.
|
||||
---
|
||||
|
||||
# FastAPI Review
|
||||
|
||||
Invoke the `fastapi-reviewer` agent for a focused FastAPI review.
|
||||
|
||||
## Usage
|
||||
|
||||
```text
|
||||
/fastapi-review [file-or-directory]
|
||||
```
|
||||
|
||||
## Review Areas
|
||||
|
||||
- App factory, router boundaries, middleware, and exception handlers.
|
||||
- Pydantic request and response schema separation.
|
||||
- Dependency injection for database sessions, auth, pagination, and settings.
|
||||
- Async database and external HTTP patterns.
|
||||
- CORS, auth, rate limits, logging, and secret handling.
|
||||
- OpenAPI metadata and documented response models.
|
||||
- Test client setup and dependency overrides.
|
||||
|
||||
## Expected Output
|
||||
|
||||
```text
|
||||
[SEVERITY] Short issue title
|
||||
File: path/to/file.py:42
|
||||
Issue: What is wrong and why it matters.
|
||||
Fix: Concrete change to make.
|
||||
```
|
||||
|
||||
## Related
|
||||
|
||||
- Agent: `fastapi-reviewer`
|
||||
- Skill: `fastapi-patterns`
|
||||
- Command: `/python-review`
|
||||
- Skill: `security-scan`
|
||||
Reference in New Issue
Block a user