원클릭으로
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 직업 분류 기준
| 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.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