ワンクリックで
learn-db-query
SQLAlchemy-first DB patterns, Alembic migrations, ParentChildEdges partition handling, and UDF policy
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
SQLAlchemy-first DB patterns, Alembic migrations, ParentChildEdges partition handling, and UDF policy
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
FastAPI + SQLModel conventions, request dependencies, transaction safety, and backend architecture
Next.js best practices - RSC boundaries, data patterns, async APIs, error handling, route handlers, directives, runtime selection
Upgrade Next.js to the latest version following official migration guides and codemods
Auth0 scopes, recaptcha verification, and share/edit token security patterns
CMS editing/review workflows, TipTap extensions, and comment moderation
docker-compose topology, env files, local container workflows, and quality-gate commands
| name | learn-db-query |
| description | SQLAlchemy-first DB patterns, Alembic migrations, ParentChildEdges partition handling, and UDF policy |
| user-invocable | false |
Database implementation standards for SQLAlchemy-first query design, migration safety, and controlled migration away from legacy UDFs.
ParentChildEdges (the only remaining partitioned table), spatial joins, or legacy SQL/UDF files.backend/app/core/db.pybackend/app/utils.pybackend/app/assignments/assignments.pybackend/app/alembic/env.pybackend/app/alembic/versions/*backend/app/sql/*backend/app/models.pydocument.assignments and document.community_assignments are plain tables (departitioned). Only ParentChildEdges remains LIST-partitioned (on districtr_map); partition-routing semantics apply there only.insert ... from select, temp-table workflows) when needed.A new UDF/stored procedure is allowed only when you can document a measured performance/operational requirement that SQLAlchemy + set-based SQL cannot satisfy cleanly.
Legacy UDFs remain supported but should not expand. When touching UDF-backed flows, prefer incremental replacement with SQLAlchemy query composition or migration-safe inline SQL blocks.
ParentChildEdges where relevant (assignments are unpartitioned plain tables).cd backend && alembic upgrade headcd backend && pytest -vParentChildEdges causing inserts to fail or route incorrectly (assignments no longer partitioned).district_unions without ON CONFLICT DO NOTHING → unique-violation 500s.