A practical runbook that cuts through FastAPI deployment confusion with the commands you actually need. It covers the essentials: Uvicorn with reload for development, the WSL polling workaround that saves you from headaches when file watching breaks, and the proper Gunicorn setup for production with UvicornWorker. The anti-patterns section alone is worth it, steering you away from combining reload with multiple workers or using PM2's watch mode for Python apps. It's the kind of reference you keep handy because you'll forget these flags between projects, and Googling them always pulls up outdated Stack Overflow threads. Nothing groundbreaking, just solid ops knowledge in a quick reference format.

skills.sh installs
356
GitHub stars
79
last updated
Aug 21, 2026

Install

$ npx -y skills add bobmatnyc/claude-mpm-skills --skill fastapi-local-dev --agent claude-code

Installs into .claude/skills of the current project.

Files

FastAPI Local Dev

  • Dev: uvicorn app.main:app --reload
  • Imports: run from repo root; use python -m uvicorn ... or PYTHONPATH=.
  • WSL: WATCHFILES_FORCE_POLLING=true if reload misses changes
  • Prod: gunicorn app.main:app -k uvicorn.workers.UvicornWorker -w <n> --bind :8000

Anti-patterns:

  • --reload --workers > 1
  • PM2 watch: true for Python

References: references/.

Sponsors

Details

Repository
github.com/bobmatnyc/claude-mpm-skills
Category
Python
First seen
Jun 3, 2026

More from bobmatnyc/claude-mpm-skills

All 158

Recommended

More Python
1jorgealves avatarpython-security-scannerjorgealves/agent_skillsDetect common Python vulnerabilities such as SQL injection, unsafe deserialization, and hardcoded secrets. Use as part of a secure SDLC for Python projects.315skills.sh installs
2skillcreatorai avatarpython-developmentskillcreatorai/ai-agent-skillspython development314skills.sh installs
3martinholovsky avatarpythonmartinholovsky/claude-skills-generatorBackend services development with Python emphasizing security, performance, and maintainability for JARVIS AI Assistant228skills.sh installs
4personamanagmentlayer avatarflask-expertpersonamanagmentlayer/pclExpert-level Flask web development, REST APIs, extensions, and production deployment223skills.sh installs
5jorgealves avatarpython-venv-managerjorgealves/agent_skillsSetup and validate Python virtual environments (venv, virtualenv, conda). Use to ensure isolated dependencies and correct Python versions for projects.215skills.sh installs
6sickn33 avatartemporal-python-testingsickn33/antigravity-awesome-skillstemporal python testing195skills.sh installs