본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)81k · #1659

migrate-validate

하는 일

이 스킬은 아직 적용되지 않은 데이터베이스 마이그레이션 파일을 검토해, 흔한 안전 문제를 찾습니다. 라이브 데이터베이스를 바꾸기 전에 실수를 미리 잡으려는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓대기 중인 마이그레이션이 있고 적용하기 전에 점검하고 싶을 때.
  • ✓마이그레이션이 테이블이나 열을 제거해서 안전 검토가 필요할 때.
  • ✓릴리스 과정에 이름 규칙과 안전 점검을 포함하고 싶을 때.

스킬 링크

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-migrations/skills/migrate-validate/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-migrations/skills/migrate-validate/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“적용하기 전에 대기 중인 데이터베이스 마이그레이션에 위험한 변경이 있는지 점검해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 아직 적용되지 않은 마이그레이션 파일을 찾고 SQL을 읽습니다. 외래 키 대상, 새 필수 열의 기본값, 되돌리기 완전성, 파괴적 작업, 안전한 표현, 테이블 이름 규칙을 검사합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Migrate Validate

Validate all pending database migrations for correctness, safety, and adherence to best practices.

When to use

Before applying migrations to catch issues early -- foreign key references to non-existent tables, missing rollback SQL, destructive operations without safeguards, and naming convention violations.

Steps

  1. Find pending migrations -- use Glob to list all migration files, cross-reference with applied history via mcp__plugin_ruflo-core_ruflo__memory_search --namespace migrations (or memory_list) to identify pending ones. The memory_* tool family routes by namespace; agentdb_hierarchical-* does NOT (it routes by tier), so use memory_* here.
  2. Parse SQL -- use Read to load each pending .up.sql and .down.sql file and parse the SQL statements
  3. Check foreign keys -- verify that all REFERENCES targets exist in the current schema or in prior migrations (both applied and pending)
  4. Check NOT NULL defaults -- verify that any ADD COLUMN with NOT NULL has a DEFAULT value
  5. Check rollback completeness -- verify every CREATE/ALTER in the UP file has a corresponding DROP/ALTER in the DOWN file
  6. Flag destructive ops -- warn on DROP TABLE, DROP COLUMN, TRUNCATE without explicit confirmation
  7. Check idempotency -- verify IF EXISTS / IF NOT EXISTS is used for safety
  8. Check naming -- verify table names are plural, column names are snake_case, index names follow idx_table_column convention
  9. Store validation patterns -- two paths (per ruflo-cost-tracker ADR-0001 dual-path pattern):
    • Pattern store (typed, recommended): mcp__plugin_ruflo-core_ruflo__agentdb_pattern-store with type: 'migration-validation'. No namespace arg — ReasoningBank routes it.
    • Plain store (namespace-routable): mcp__plugin_ruflo-core_ruflo__memory_store --namespace migrations for validation results tied to a specific migration number.
  10. Report -- display: errors (must fix), warnings (should fix), info (suggestions), with file path and line number for each issue

CLI alternative

npx @claude-flow/cli@latest memory search --query "migration validation results" --namespace migrations
자주 묻는 질문

무엇을 파괴적 변경으로 보나요?

drop table, drop column, truncate 문은 표시되어 사용자가 확인할 수 있습니다.

마이그레이션 파일을 바꾸나요?

설명은 점검과 보고를 다루므로, 발견 사항을 검토하고 무엇을 바꿀지 직접 정하세요.

어떤 마이그레이션이 대기 중인지 어떻게 아나요?

마이그레이션 파일과 migrations 메모리 네임스페이스에 저장된 기록을 비교합니다.

상세 정보

작성자의 원본 설명

Validate pending migrations for foreign key consistency, rollback safety, and best practices

repo: ruvnet/ruflo

인기도

GitHub 스타
81k
순위
#1659
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬