一键导入
alembic-migrations
Alembic migration workflow for BuscaMedicos. Create, autogenerate, and run migrations following the step2-step8 architecture.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Alembic migration workflow for BuscaMedicos. Create, autogenerate, and run migrations following the step2-step8 architecture.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | alembic-migrations |
| description | Alembic migration workflow for BuscaMedicos. Create, autogenerate, and run migrations following the step2-step8 architecture. |
| license | MIT |
Alembic migration workflow for the BuscaMedicos project. Uses step-based incremental architecture - each step adds new models/tables.
Use this skill when:
Migrations run in order: step2 → step3 → ... → step8
Each migration file is named: NNN_stepN.py
Migration 007 (007_step8.py) adds audit_events columns
# Run all migrations
cd backend_api && alembic upgrade head
# Create new migration
cd backend_api && alembic revision --autogenerate -m "description"
# Check current migration
cd backend_api && alembic current
# Show migration history
cd backend_api && alembic history --verbose
# Downgrade one step
cd backend_api && alembic downgrade -1
# After modifying models in step7_models.py
alembic revision --autogenerate -m "add new privacy table"
op.add_column('table_name', sa.Column('new_col', sa.String(), nullable=True))
op.create_table('new_table',
sa.Column('id', sa.String(), nullable=False),
sa.Column('name', sa.String(), nullable=False),
sa.PrimaryKeyConstraint('id')
)
alembic upgrade head after model changesoperational_scope and release_code to audit_eventsenv.py imports all models for autogenerate to workalembic.ini must have sqlalchemy.url in [alembic] sectionAuthentication patterns for BuscaMedicos web frontend. JWT handling, login, register, session persistence, and role-based redirection.
Nuxt 4 + Vue 3 + Vuetify frontend for BuscaMedicos. Pages, layouts, components, composables, and stores patterns.
Git add, commit and push workflow for BuscaMedicos. Streamlined commands with CI env vars for non-interactive Git operations.
Testing patterns for BuscaMedicos. Pytest with async support, fixtures, and project-specific test conventions.
Docker Compose development workflow for BuscaMedicos. Start/stop/verify containers, check logs, rebuild with --build flag.
Error handling patterns for BuscaMedicos FastAPI. HTTPException, custom exceptions, and consistent error response format.