agentleFS
DongDuong2001DongDuong2001/pudo-code-system/skills/backend/fastapi/SKILL.md

fastapi

Skill5 starsChanged 6 months agoMITView on GitHub

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use react.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • VercelSkill

    react

    React renderer for json-render that turns JSON specs into React components. Use when working with @json-render/react, building React UIs from JSON, creating component catalogs, or rendering AI-generated specs.

    Also in 3 projects that use this

The file

We found no rules to list in this file: it reads as prose or reference rather than instructions.

Files
SKILL.md

Python FastAPI PUDO Checklist

1. PLAN (Architecture & Strategy)

  • API Design: Define RESTful endpoints, path parameters, and query parameters.
  • Data Validation: Plan Pydantic models for request (In) and response (Out) schemas.
  • Database & ORM: Select the async DB driver and ORM (e.g., SQLAlchemy 2.0 with async engine, SQLModel).
  • Authentication: Plan dependency injection for Auth (OAuth2, JWT tokens).

2. UNDERSTAND (Context & Auditing)

  • Dependencies: Review the existing dependency injection (Depends()) tree.
  • Sync vs Async: Audit for blocking I/O calls within async def endpoints. Ensure CPU-bound tasks use def or thread pools.
  • Middleware: Review CORS, rate limiting, and custom middleware configurations.

3. DEVELOP (Implementation)

  • Schemas: Implement strict Pydantic v2 models with Field validation constraints.
  • Endpoints: Create routers (APIRouter) to group related endpoints.
  • Dependency Injection: Use Depends() for database sessions, current user retrieval, and pagination parameters.
  • Error Handling: Implement custom Exception Handlers for consistent JSON error responses.

4. OPTIMIZE (Performance & Review)

  • Concurrency: Ensure database calls are utilizing await properly without deadlocks.
  • Serialization: Profile Pydantic serialization speeds; consider orjson if JSON parsing is a bottleneck.
  • Documentation: Enrich OpenAPI docs with endpoint descriptions, tags, and summary response models.
  • Security: Verify that sensitive models do not leak password hashes via response_model constraints.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.