Skip to content
Agentmart
Submit a tool

develop-fastapi-app

Build production-ready FastAPI applications with best practices for project structure, async patterns, Pydantic models, dependency injection, database…

Skill by zhanymkanov, xiaoland

IndexedApache-2.0
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/xiaoland-develop-fastapi-app

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Build production-ready FastAPI applications with best practices for project structure, async patterns, Pydantic models, dependency injection, database operations, and testing. Use when developing FastAPI backends, REST APIs, or Python async web services.

Use cases: backend, testing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/develop-fastapi-app

What's inside

Skill name
develop-fastapi-app
Description
Build production-ready FastAPI applications with best practices for project structure, async patterns, Pydantic models, dependency injection, database operations, and testing. Use when developing FastAPI backends, REST APIs, or Python async web services.
License
Apache-2.0
Metadata
author: zhanymkanov, xiaoland · version: 1.0
Instructions
84 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Agent Skills spec issues

  • name: "develop-fastapi-app" does not match folder "dev-fastapi-app"

Files (40)

  • SKILL.md
  • concurrent-db-queries.py · assets/async/
  • concurrent-requests.py · assets/async/
  • cpu-intensive-process-pool.py · assets/async/
  • performance-test.py · assets/async/
  • threadpool-config.py · assets/async/
  • engine-setup.py · assets/database/
  • lifespan.py · assets/database/
  • migration-data.py · assets/database/
  • migration-initial.py · assets/database/
  • models-naming.py · assets/database/
  • pydantic-sql-result.py · assets/database/
  • sql-first-query.py · assets/database/
  • transaction.py · assets/database/
  • auth-chain.py · assets/deps/
  • class-pagination.py · assets/deps/
  • permission-factory.py · assets/deps/
  • resource-ownership.py · assets/deps/
  • yield-cleanup.py · assets/deps/
  • custom-base-model.py · assets/pydantic/
  • settings-decoupled.py · assets/pydantic/
  • dependencies.py · assets/structure/
  • engine.py · assets/structure/
  • exceptions.py · assets/structure/
  • manager.py · assets/structure/
  • models.py · assets/structure/
  • route.py · assets/structure/
  • run.py · assets/structure/
  • schemas.py · assets/structure/
  • settings.py · assets/structure/
  • conftest.py · assets/testing/
  • crud-routes.py · assets/testing/
  • factories.py · assets/testing/
  • integration-workflow.py · assets/testing/
  • api.md · references/
  • async-patterns.md · references/
  • database-operations.md · references/
  • dependencies.md · references/
  • pydantic.md · references/
  • testing.md · references/

SKILL.md (first lines)

---
name: develop-fastapi-app
description: Build production-ready FastAPI applications with best practices for project structure, async patterns, Pydantic models, dependency injection, database operations, and testing. Use when developing FastAPI backends, REST APIs, or Python async web services.
license: Apache-2.0
metadata:
  author: zhanymkanov, xiaoland
  version: "1.0"
---

# Developing a FastAPI Application

## When to use this skill

Use this skill when:

- Starting a new FastAPI project
- Refactoring existing FastAPI applications
- Implementing REST APIs with Python
- Working with async/await patterns in web services
- Setting up database models and migrations
- Writing tests for FastAPI endpoints
- Configuring dependency injection patterns
- Optimizing API performance and code quality

## Project Structure

Organize projects by domain rather than file type for better scalability:

```Example Structure
fastapi-project/
├── app/
│   ├── schemas/                 # data structure and constraints
│   ├── models/                  # schema with behavior
│   ├── managers/                # domain orchestrator
│   ├── exceptions/              # business exception
│   ├── routes/                  # domain orchestrator
│   ├── settings.py              # application global settings
│   ├── engine.py                # database engine
├── utils/
├── libs/
├── tests/
│   ├── conftest.py
│   ├── <by_domain>/test_<xxx>.py
├── migrations/
├── scripts/
├── docs/
├── .env
├── .env.example
├── logging.ini
├── pyproject.toml
└── run.py                       # FastAPI app
```

**File Templates**:

- [route.py](../assets/structure/route.py) - Router module with endpoints
- [schemas.py](../assets/structure/schemas.py) - Pydantic request/response schemas
- [models.py](../assets/structure/models.py) - SQLAlchemy database models
- [dependencies.py](../assets/structure/dependencies.py) - Validation dependencies
- [manager.py](../assets/structure/manager.py) - Domain orchestrator/service
- [exceptions.py](../assets/structure/exceptions.py) - Module-specific exceptions
- [run.py](../assets/structure/run.py) - Main application file
- [settings.py](../assets/structure/settings.py) - Global configuration
- [engine.py](../assets/structure/engine.py) - Database engine setup

**Notes**:

- Store all domain modules inside `app/` folder
- Each subfolder (`schemas/`, `models/`, `managers/`, `routes/`) is organized by domain
  - e.g., `app/schemas/posts.py`, `app/managers/posts_manager.py`, `app/routes/posts.py`
- Import from other packages with explicit module names

## References

Read revelant references before you really start your task:

- [API Best Practices](references/api.md)
- [Async Patterns](references/async-patterns.md)
- [Pydantic Best Practices](references/pydantic.md)
- [Dependencies Guide](references/dependencies.md)
- [Database Operations](references/database-operations.md)
- [Testing](references/testing.md)

## General Best Practices

- Use Ruff for fast linting and formatting:

```bash
ruff check --fix src
ruff format src
```

From xiaoland/agents, Apache-2.0.

More from xiaoland/agents

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Dec 30, 2025 (10 months ago)

From GitHub (fetched Oct 24, 2026).

Details

Version
1.0
License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026
Cite this page

develop-fastapi-app skill. Agent Mart. https://agentmart.dev/skills/xiaoland-develop-fastapi-app (last updated 2026-10-24)