Skip to main content

new-migration

Add a new SQLite schema migration to storage.py

설치로 이동

소스 정보

저장소
weaties/helmlog
최근 소스 활동
2026년 4월 26일 21:17
감지된 SKILL.md 언어
영어
스타
2
포크
2

설치 방법

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

소스 파일 검토

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

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
new-migration
description
Add a new SQLite schema migration to storage.py
disable-model-invocation
true
# New Schema Migration The general flow (worktree, TDD, lint) is in CLAUDE.md and `/tdd`. The schema-migration mechanics are visible in `storage.py` — the `_CURRENT_VERSION` constant and `_MIGRATIONS` dict show every prior migration as a worked example. This skill captures only the migration-specific gotchas: - **Bump `_CURRENT_VERSION` in `storage.py` by exactly 1** — never skip numbers, never reuse one. Version collisions across concurrent agent worktrees are the main reason CLAUDE.md mandates worktree isolation; check the diff at PR time to confirm no other agent shipped the same number while you were branched. - **Migrations must be idempotent.** Use `CREATE TABLE IF NOT EXISTS` and `CREATE INDEX IF NOT EXISTS`. SQLite's `ALTER TABLE` is add-column-only — no drops, no renames. Plan accordingly. - **One migration per logical schema change.** Don't bundle unrelated table creations into one version — it makes rollback reasoning and the `RELEASES.md` entry harder. - **Update CLAUDE.md's Stack table** with the new schema version when the migration ships (per `/pr-checklist`). - **Use the `storage` fixture** for tests — it runs all migrations on an in-memory database, so a TDD red-step will fail with "no such table" until the migration lands. That's the intended signal.
GitHub에서 보기