/create-migration
Generate a database migration file for schema changes.
$ npx -y skills add rohitg00/awesome-claude-code-toolkit --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/create-migration
Context preview
What this command does when you run it.
Generate a database migration file for schema changes.
Command definition
create-migration.md/create-migration - Create Database Migration
Generate a database migration file for schema changes.
Steps
1. Ask the user for the migration description (e.g., "add users table", "add email index") 2. Detect the database and migration tool: Prisma, Knex, TypeORM, Alembic, Django, Rails 3. Analyze the requested schema change: new table, alter column, add index, etc. 4. Generate the up migration with the schema change SQL or ORM commands 5. Generate the corresponding down migration to reverse the change 6. Add proper column types, constraints, defaults, and nullability 7. Include index creation for foreign keys and frequently queried columns 8. Add data migration logic if the schema change requires data transformation 9. Validate the migration SQL syntax for the target database engine 10. Name the migration file with timestamp prefix and descriptive slug 11. Save the migration to the correct migrations directory 12. Report the created migration path and provide a preview of the SQL
Rules
- Always include both up and down migration logic
- Use the ORM's migration generator when available instead of raw SQL
- Add NOT NULL constraints with DEFAULT values to avoid breaking existing rows
- Create indexes for all foreign key columns
- Use transactional migrations when the database supports DDL transactions
- Test the migration against a local development database before committing
- Include a comment explaining the purpose of the migration
Read more
/create-migration - Create Database Migration
Generate a database migration file for schema changes.
Steps
1. Ask the user for the migration description (e.g., "add users table", "add email index") 2. Detect the database and migration tool: Prisma, Knex, TypeORM, Alembic, Django, Rails 3. Analyze the requested schema change: new table, alter column, add index, etc. 4. Generate the up migration with the schema change SQL or ORM commands 5. Generate the corresponding down migration to reverse the change 6. Add proper column types, constraints, defaults, and nullability 7. Include index creation for foreign keys and frequently queried columns 8. Add data migration logic if the schema change requires data transformation 9. Validate the migration SQL syntax for the target database engine 10. Name the migration file with timestamp prefix and descriptive slug 11. Save the migration to the correct migrations directory 12. Report the created migration path and provide a preview of the SQL
Rules
- Always include both up and down migration logic
- Use the ORM's migration generator when available instead of raw SQL
- Add NOT NULL constraints with DEFAULT values to avoid breaking existing rows
- Create indexes for all foreign key columns
- Use transactional migrations when the database supports DDL transactions
- Test the migration against a local development database before committing
- Include a comment explaining the purpose of the migration
The most comprehensive toolkit for Claude Code -- 135 agents, 35 curated skills (+400,000 via SkillKit), 42 commands, 176+ plugins, 20 hooks, 15 rules, 7 templates, 15 MCP configs, 26 companion apps, 53 ecosystem entries, and more.
Repo: rohitg00/awesome-claude-code-toolkit
Other commands on rohitg00-claude-code-toolkit.
- /adr
Write an Architecture Decision Record documenting a significant technical decision.
Open command - /design-review
Conduct a structured design review of a module, feature, or system component.
Open command - /diagram
Generate Mermaid diagrams from codebase analysis or description.
Open command - /migrate
Plan and execute a framework or library migration incrementally.
Open command - /plan
Create a structured implementation plan for the requested feature or change.
Open command - /refactor
Perform a systematic refactoring of the specified code area.
Open command

