# Backend Python

> FastAPI Python backend in api/. Covers routes, models, Supabase integration, authentication, R2 storage, and Cloudflare Workers deployment. Port 9999 for local dev. OpenAPI docs at /docs.

- Skill: `majiayu000/backend-python-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/backend-python-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/backend-python-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/backend-python-2

---


# Skill: Backend Python

Comprehensive backend development support for the Python/FastAPI API.

## Routing Logic

Analyze the user's intent and route to the appropriate workflow:

**Route Development** → `workflows/create-route.md`
- "Create an endpoint for [feature]"
- "Add a [method] route for [resource]"
- "Implement the [endpoint_name] API"

**Model Development** → `workflows/create-model.md`
- "Create a model for [entity]"
- "Add Pydantic schema for [data]"
- "Define types for [feature]"

**Database Operations** → `workflows/database.md`
- "Query [table] from Supabase"
- "Insert data into [table]"
- "Add RLS-aware database call"

**Authentication** → `workflows/auth.md`
- "Protect this endpoint"
- "Get current user"
- "Validate JWT token"

**R2 Storage** → `workflows/r2-storage.md`
- "Upload file to R2"
- "Read from storage bucket"
- "List objects in R2"

**Configuration Questions** → `context/config.md`
- "What port is the backend on?"
- "How do I start the dev server?"
- "Where are environment variables?"

## Workflows

- `workflows/create-route.md` - Create new API endpoints
- `workflows/create-model.md` - Define Pydantic models
- `workflows/database.md` - Supabase database operations
- `workflows/auth.md` - Authentication and authorization
- `workflows/r2-storage.md` - R2 object storage operations

## Context

- `context/config.md` - Project configuration
- `context/structure.md` - Directory structure
- `context/patterns.md` - Common patterns

