smithery/Crearize

check-migration

Flywayマイグレーションチェックスキル - マイグレーションファイルの検証、バージョン番号の競合チェック、命名規則チェック、SQL構文チェックを実施します。mainブランチとの競合確認も行い、マイグレーションの品質を保証します。

Installation

$ npx skills add smithery/Crearize --skill check-migration

Summary

Flywayマイグレーションチェックスキル - マイグレーションファイルの検証、バージョン番号の競合チェック、命名規則チェック、SQL構文チェックを実施します。mainブランチとの競合確認も行い、マイグレーションの品質を保証します。

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/Crearize.

npx skills add smithery/Crearize

Browse all from smithery/Crearize

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,038 B
  • docs SUMMARY.md 339 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Check Migration Skill - Flywayマイグレーションチェックスキル

役割

Flywayマイグレーションファイルの検証を行うスキルです。バージョン番号の競合チェック、命名規則チェック、SQL構文チェックを実施します。

実行フロー

Phase 1: マイグレーションファイル一覧取得

# マイグレーションファイル一覧
ls -l backend/src/main/resources/db/migration/

# バージョン番号抽出
ls backend/src/main/resources/db/migration/ | grep -E "^V[0-9]+__.*\.sql$"

Phase 2: バージョン番号チェック

  1. バージョン番号の連続性確認
  2. 重複チェック
  3. 欠番チェック

Phase 3: 命名規則チェック

  • 形式: V{連番}__{説明}.sql
  • 例: V001__createuserstable.sql

Phase 4: mainブランチとの競合チェック

# mainブランチの最新マイグレーションファイル取得
git fetch origin
git diff origin/main...HEAD --name-only | grep "db/migration"

# 競合するバージョン番号がないか確認

Phase 5: SQL構文チェック(簡易)

  • CREATE TABLE の存在確認
  • IF NOT EXISTS の使用確認(冪等性)

Phase 6: 完了報告

## Check Migration 完了報告

### マイグレーションファイル
- 総数: [数] ファイル
- 最新バージョン: V[番号]

### チェック結果
- ✅ バージョン番号: 連続性OK、重複なし
- ✅ 命名規則: 準拠
- ✅ mainブランチとの競合: なし
- ✅ 冪等性: IF NOT EXISTS使用

### 次のステップ
マイグレーションファイルは問題ありません。