一键导入
add-migration
Generate and apply an Alembic migration. Use after modifying entities or when schema changes are needed.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate and apply an Alembic migration. Use after modifying entities or when schema changes are needed.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add a complete REST endpoint from command to controller route. Use when building new API endpoints.
Summarize the API interface changes made during THIS session for the frontend, then optionally spawn an agent to implement them in the frontend repo. Use after changing endpoints, request/response DTOs, or auth.
One-shot guided session — prunes unused code, scaffolds new entities/endpoints, updates project identity config, and replaces the init migration for a specific project.
Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md. Trigger: /caveman-compress FILEPATH or "compress memory file"
Implement a change with a pipeline scaled to its complexity. Single entry point for all code changes — auto-detects effort or accepts small|mid|tuff override.
Run a Linear task end-to-end — creates an isolated tmux session + worktree, starts a Claude agent to implement it, opens a PR, and watches for review feedback automatically.
| name | add-migration |
| description | Generate and apply an Alembic migration. Use after modifying entities or when schema changes are needed. |
| argument-hint | <description> |
Generate an Alembic migration from entity changes and apply it.
$0 -- Migration description (e.g., add invoices table, add status column to orders)Ensure all entities are imported in backend/domain/entities/__init__.py. Alembic's env.py imports this module to discover models.
cat backend/domain/entities/__init__.py
just migration "$0"
This runs alembic revision --autogenerate -m "$0".
Read the new file in backend/infra/database/alembic/migrations/versions/.
Check for:
just migrate
This runs alembic upgrade head.
Check that the migration applied cleanly. Run just check to ensure no type errors.
__init__.pyCREATE TYPE for enums. Alembic usually handles this, but review carefully.drop_column operations. Review these -- they are destructive and irreversible.