一键导入
learn-backend
FastAPI + SQLModel conventions, request dependencies, transaction safety, and backend architecture
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
FastAPI + SQLModel conventions, request dependencies, transaction safety, and backend architecture
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
SQLAlchemy-first DB patterns, Alembic migrations, ParentChildEdges partition handling, and UDF policy
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-backend |
| description | FastAPI + SQLModel conventions, request dependencies, transaction safety, and backend architecture |
| user-invocable | false |
Backend conventions for FastAPI + SQLModel/SQLAlchemy services, request dependencies, transaction safety, and SQLAlchemy-first implementation style.
backend/app.backend/app/main.pybackend/app/models.pybackend/app/core/db.pybackend/app/core/config.pybackend/app/core/dependencies.pybackend/app/core/security.pybackend/app/core/io.pybackend/app/core/models.pybackend/app/utils.pybackend/app/assignments/assignments.pybackend/app/comments/*backend/app/cms/*backend/app/save_share/*backend/app/exports/*backend/app/sql/* - legacy UDF SQL files (do not expand; see learn-db-query)get_document, get_protected_document, parse_document_id).app/src/app/utils/api/apiHandlers/types.ts.When a parent unit is shattered, every one of its children must have a row in
document.assignments, withzone = NULLfor unassigned children.
The frontend requires this to know which child block IDs to render as interactive. All write paths — interactive shattering (shatter_parent.sql) and CSV import (_heal_or_fill) — must uphold this invariant.
assignments, utils, etc.).backend/tests for endpoint or DB behavior changes.cd backend && pytest -vdocker-compose exec backend pytest -vdocker-compose up pre-commitget_document where get_protected_document was intended.