migration
Use when creating, running, or reviewing database migrations.
- License 许可
- AGPL-3.0
- 最近更新
- 2026-11-11
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- migration
- description
- Use when creating, running, or reviewing database migrations.
03 SKILL.md 正文
Database Migration
Rules
- Use
node-pg-migrate. - Define table names in
db/config; do not hardcode them in migrations. - Use migration helpers such as
toSchemaStringfor enum/schema strings. - Do not edit
src/infra/config/drizzleby hand. - After a successful migration, run
npm run drizzle:pull.
Commands
- Create:
npm run db:migrate create <name-in-kebab-case> - Run up:
npm run db:migrate up - Roll back one:
npm run db:migrate - Roll back N:
npm run db:migrate <count>
04 同仓库更多 Skills
testing
Use when adding, changing, or reviewing tests in this repository.
reporting-usecase-creation
Use when creating, changing, or reorganizing reporting use cases and their DTOs, read queries, tests, wiring, or HTTP endpoints. Does not cover accounting reporting-period or reporting-context management.
pr-reviewer
Use when reviewing code changes, pull requests, or branch diffs.
planner
Use whenever the user asks for a plan, implementation plan, approach, roadmap, or planning, and whenever the agent decides to create or present a plan before doing work.
pair-programmer
Use when implementing code changes in this repository.
implement-plan
Use whenever implementing, executing, resuming, or completing a saved implementation plan, especially a plan under `.agents/plans`, or when the user asks to implement or continue a plan.