# Fastapi Patterns

> Repo-specific Python/FastAPI conventions for law-prep-ai-service. Load when working with Python services, FastAPI routers, Pydantic models, or Poetry dependencies. Use when this capability is needed.

- Skill: `tomevault-io/fastapi-patterns-8` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/fastapi-patterns-8`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/fastapi-patterns-8/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/fastapi-patterns-8

---


# FastAPI Patterns

Repo-local Python and FastAPI conventions for this Nx monorepo.

## When to Use

- Writing or modifying Python code in `apps/law-prep-ai-service`.
- Working with FastAPI routers, Pydantic models, or service modules.
- Managing Poetry dependencies or Python tooling configuration.

## Load / Do Not Load

- Load this skill when the task touches Python code in
  `apps/law-prep-ai-service`.
- Do not load for frontend, Java, or desktop-only tasks.

## Core Workflow

1. Load `.agents/references/stack-conventions/python.md` for the full
   convention set.
2. Use `from __future__ import annotations` and full type hints on public
   functions.
3. Follow configured tooling: Ruff (line length 88), Pyright (Python 3.13),
   pytest, Poetry.

## Ask / Escalate

- Escalate to `api-and-interface-design` for public API or contract changes.
- Escalate to `security-reviewer` for auth, secrets, or input validation
  concerns.

## References

- Full conventions: `.agents/references/stack-conventions/python.md`
- Repo topology: `.agents/references/repo-map.md`

---
> Source: [WodenWang820118/tag-check](https://github.com/WodenWang820118/tag-check) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-22 -->

