Smithery Logo
MCPsSkillsDocsPricing
Login
Smithery Logo

Accelerating the Agent Economy

Resources

DocumentationPrivacy PolicySystem Status

Company

PricingAboutBlog

Connect

© 2026 Smithery. All rights reserved.

    MUmerRazzaq

    fastapi-rest-api-skill

    MUmerRazzaq/fastapi-rest-api-skill
    Coding
    7 installs

    About

    SKILL.md

    Install

    Install via Skills CLI

    or add to your agent
    • Claude Code
      Claude Code
    • Codex
      Codex
    • OpenClaw
      OpenClaw
    • Cursor
      Cursor
    • Amp
      Amp
    • GitHub Copilot
      GitHub Copilot
    • Gemini CLI
      Gemini CLI
    • Kilo Code
      Kilo Code
    • Junie
      Junie
    • Replit
      Replit
    • Windsurf
      Windsurf
    • Cline
      Cline
    • Continue
      Continue
    • OpenCode
      OpenCode
    • OpenHands
      OpenHands
    • Roo Code
      Roo Code
    • Augment
      Augment
    • Goose
      Goose
    • Trae
      Trae
    • Zencoder
      Zencoder
    • Antigravity
      Antigravity
    ├─
    ├─
    └─

    About

    A skill for building RESTful APIs with FastAPI. Use this skill to create a new FastAPI project with a standard project structure, including routers, models, schemas, and services...

    SKILL.md

    FastAPI RESTful API Builder Skill

    This skill helps you build robust and scalable RESTful APIs using FastAPI. It provides a boilerplate project and documentation on best practices.

    Quickstart

    To create a new FastAPI project, copy the boilerplate project from the assets/fastapi-boilerplate directory.

    cp -r assets/fastapi-boilerplate /path/to/your/new/project
    

    This boilerplate includes:

    • A recommended project structure with app/routers, app/models, app/schemas, and app/services.
    • A working example of a CRUD API for an items resource.
    • SQLAlchemy integration with a SQLite database.
    • Pydantic models for request and response validation.

    Core Concepts and Patterns

    This skill promotes a set of best practices for FastAPI development. For detailed explanations and code examples, refer to the following documents in the references/ directory.

    • CRUD Router Template: A template for creating CRUD endpoints for a resource.
    • Pydantic Schemas for Validation: How to use Pydantic for data validation and serialization.
    • Service Layer Pattern: How to separate business logic from the API layer.
    • Dependency Injection: How to use FastAPI's dependency injection system.
    • Advanced Features: Covers background tasks, file uploads, and pagination.

    Asynchronous Operations

    FastAPI is built on asyncio and supports asynchronous code using async and await. This is crucial for I/O-bound operations like database queries or external API calls, as it allows your server to handle multiple requests concurrently without blocking.

    When defining your path operations, you can use async def:

    @app.get("/")
    async def read_root():
        # Asynchronous database call
        results = await db.fetch_all("SELECT * FROM items")
        return results
    

    Ensure that any I/O-bound libraries you use have async support (e.g., databases, httpx).

    Repository
    mumerrazzaq/fast-next-todo
    Files