About fastapi-local-dev
fastapi-local-dev is a development reference skill for running FastAPI locally with Uvicorn and configuring reload behavior. It also lists a production Gunicorn command and practices to avoid.
Key features
- 01Run FastAPI with Uvicorn reload
- 02Set import paths from repository root
- 03Configure polling for WSL reload
- 04Use Gunicorn for production
- 05Avoid conflicting reload and watch settings
Use cases
- 01Start a FastAPI app during development
- 02Troubleshoot missed reloads in WSL
- 03Run the app with Gunicorn in production
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ bobmatnyc/ claude-mpm-skills --skill fastapi-local-devAfter installing, type/fastapi-local-devin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
metadata.jsonreferences/dev-server.mddocker.mdprocess-management.mdproduction-gunicorn.mdtemplates.mdtroubleshooting.mdDetails
From the project READMEFastAPI Local Dev
- Dev:
uvicorn app.main:app --reload - Imports: run from repo root; use
python -m uvicorn ...orPYTHONPATH=. - WSL:
WATCHFILES_FORCE_POLLING=trueif reload misses changes - Prod:
gunicorn app.main:app -k uvicorn.workers.UvicornWorker -w <n> --bind :8000
Anti-patterns:
--reload --workers > 1- PM2
watch: truefor Python
References: references/.
Comments
Markdown supported