Skip to main content

migration-writer

Write safe, reversible database migrations for this repo's conventions. Use for any schema change.

소스 정보

저장소
Archive228/loopkit
최근 소스 활동
2026년 6월 29일 21:52
감지된 SKILL.md 언어
영어
스타
757
포크
124

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
migration-writer
description
Write safe, reversible database migrations for this repo's conventions. Use for any schema change.
when_to_use
add/alter a table, column, index, or constraint
# Migration Writer 1. Read the current schema first. Match the repo's migration tool and naming (`NNN_<verb>_<noun>`). 2. Write BOTH up and down. A migration you can't reverse is a migration you can't deploy safely. 3. **Live-safe**: on a hot table, adding a NOT NULL column with no default, or an index without CONCURRENTLY, takes a blocking lock. Split into steps: add nullable → backfill → add constraint. 4. Backfill large tables in batches, not one statement. 5. Never edit an already-merged migration — add a new one. Test with a dry-run before committing. Output the migration + the exact deploy order.
GitHub에서 보기