smithery/insoln

backend-fastapi-dev

FastAPI backend dev workflow for Slack-MM2 Sync (Python 3.14+, venv, Alembic migrations, black, pytest). Use when changing API endpoints, importer/exporter code, or debugging backend behavior.

Installation

$ npx skills add smithery/insoln --skill backend-fastapi-dev

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/insoln.

npx skills add smithery/insoln

Browse all from smithery/insoln

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

LicenseComplete terms in LICENSE.txt

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,725 B
  • docs SUMMARY.md 219 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Backend FastAPI Development

Use this skill when working on the Python backend in backend/ (API, import/export pipeline, DB interactions).

When to use

  • Editing FastAPI routes under backend/app/api/
  • Changing business logic under backend/app/services/
  • Updating SQLAlchemy models under backend/app/models/
  • Running black / pytest, or diagnosing failing backend tests
  • Debugging /healthcheck, job progress, plugin management endpoints

Local dev (outside Docker)

Prereqs:

  • Python 3.14+
  • A running Postgres (or use docker compose dev stack for DB/Mattermost)

Workflow:

  1. Create/activate venv (repo root):

- python3 -m venv .venv - source .venv/bin/activate

  1. Install deps:

- cd backend && pip install -r requirements.txt

  1. Apply migrations (repo root):

- alembic -c alembic.ini upgrade head

  1. Run the backend:

- cd backend && uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload

Health check:

Recommended dev workflow (Docker full stack)

This repo’s default dev workflow is running the full compose stack (backend + frontend + db + mattermost + test-files).

  • Create infra/.env.dev (dummy tokens are fine for local dev)
  • Start stack:

- docker compose -f infra/docker-compose.dev.yml up --build -d

Common endpoints:

  • Backend: http://localhost:8000/healthcheck
  • Frontend: http://localhost:5173

Code quality

ALWAYS run before committing backend changes:

  • Format: cd backend && black app alembic tests
  • Tests: cd backend && pytest --cov=app --cov-report=term-missing

If you only need a quick signal:

  • cd backend && pytest tests/unit

Debugging checklist

  • If backend doesn’t start, migrations may still be running in the lifespan hook (don’t assume Uvicorn is “hung”).
  • Check logs:

- docker compose -f infra/docker-compose.dev.yml logs -f backend

  • If /healthcheck fails, look for:

- DB connection errors - Alembic migration errors - Exceptions during FastAPI lifespan startup

Related docs

  • Developer workflow and testing: [docs/dev.md](../../../docs/dev.md)
  • Backend overview + invariants: [backend/README.md](../../../backend/README.md)
  • Healthcheck contract: [backend/tests/integration/testapihealthcheck.py](../../../backend/tests/integration/testapihealthcheck.py)