ワンクリックで
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 職業分類に基づく
| 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.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.