db-migration
Create, run, or revert TypeORM database migrations. Use when modifying entities, adding columns, creating tables, or troubleshooting database schema issues.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create, run, or revert TypeORM database migrations. Use when modifying entities, adding columns, creating tables, or troubleshooting database schema issues.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate a complete CRUD or read-only list page in the Angular portal with service, routing, and menu integration. Use when adding a new feature page to the portal.
Regenerate TypeScript types from the backend OpenAPI spec for the portal. Use after adding or changing backend API endpoints, DTOs, or response shapes.
Add a new notification provider (email, SMS, WhatsApp, push, voice) to the OsmoX API with service, consumer, queue wiring, and master provider seed.
Run lint, format, and build checks across the monorepo. Use when asked to check code quality, fix lint errors, or verify the build passes.
Create a git commit following project conventions. Use when asked to commit changes.
Sync source markdown docs to the Mintlify documentation site. Use when source docs in apps/api/docs/ are added or updated, or when creating new docs-site pages.
| name | db-migration |
| description | Create, run, or revert TypeORM database migrations. Use when modifying entities, adding columns, creating tables, or troubleshooting database schema issues. |
| argument-hint | [create|run|revert|generate] [name] |
| disable-model-invocation | true |
| allowed-tools | Bash, Read, Glob |
Manage TypeORM migrations in apps/api.
Action: $ARGUMENTS
cd apps/api
npm run typeorm:create-migration -- -n MigrationName
Then edit the file in src/database/migrations/ to add SQL.
After modifying entity files:
cd apps/api
npm run typeorm:generate-migration -- -n DescribeChanges
cd apps/api
npm run typeorm:run-migration
cd apps/api
npm run typeorm:revert-migration
notify_ (e.g., notify_organizations)organization_id, created_on)organizationId, createdOn)<entity>_id pattern (user_id, application_id)up() and down() methodssynchronize: true in production