NLP Lab Maintainer Skill
- •Read
AGENTS.mdandREADME.mdbefore editing. - •Keep these invariants:
- •FastAPI + Jinja2 SSR architecture
- •SQLModel + Alembic migration flow
- •Fixed public/admin routes and admin POST CRUD paths
- •CSRF required on admin POST
- •Session cookie guard on
/admin* - •Model constraints (unique/length/enum/timestamps)
- •Implement the smallest possible diff.
- •If model changes, always create and apply Alembic migration.
- •Run quality gates:
bash
uv run ruff check . uv run ty check uv run pytest -q
- •Never commit runtime artifacts (
.omx/, caches, local DB). - •Summarize exactly what changed and which invariants were preserved.