Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

fastapi-best-practices-plugin

Release

3 FastAPI best-practice skills (41 rules total), grounded in the official FastAPI docs. Security and testing are split into their own skills since they tend to live in dedicated files (auth modules, test suites) rather than alongside routing/model code. Each rule pairs an incorrect example with the official correct pattern and links the relevant docs page.

Supported Coding Agents

These skills can be installed via npx skills for any agent that supports the Agent Skills specification, including Claude Code, Codex, Gemini CLI, Cursor, Windsurf, and more.

Install

Quick Install (any supported agent)

Using npx skills:

# Current project
npx skills add dkmqflx/fastapi-best-practices-plugin --skill '*' --yes

# All projects (global)
npx skills add dkmqflx/fastapi-best-practices-plugin --skill '*' --yes --global

To target a specific agent:

npx skills add dkmqflx/fastapi-best-practices-plugin --agent codex --skill '*' --yes
npx skills add dkmqflx/fastapi-best-practices-plugin --agent gemini-cli --skill '*' --yes

Claude Code Plugin

/plugin marketplace add dkmqflx/fastapi-best-practices-plugin
/plugin install fastapi-best-practices@fastapi-best-practices-plugin

Then run /reload-plugins. Skills are model-invoked automatically based on context — you don't need to call them by name.

Skills

Skill Description
fastapi-best-practices Core guide — 33 rules across 11 categories: request/response models, params & validation, app structure & routing, DI, error handling, async, streaming, background tasks/config, lifespan, middleware, OpenAPI docs
fastapi-security Security & auth — OAuth2PasswordBearer, get_current_user dependency, router-level auth, password hashing, token endpoint
fastapi-testing Testing — TestClient, dependency_overrides, async httpx client

Local development

claude --plugin-dir ./plugins/fastapi-best-practices

License

MIT

About

Claude Code plugin: FastAPI best practices (41 rules, 13 categories) grounded in the official FastAPI docs

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors