スキル一覧に戻る
hiromaily

db-migration

by hiromaily

db-migrationは、other分野における実用的なスキルです。複雑な課題への対応力を強化し、業務効率と成果の質を改善します。

120🍴 32📅 2026年1月22日
GitHubで見るManusで実行

SKILL.md


name: db-migration description: Database schema and migration workflow. Use when modifying database schemas in tools/atlas/ or SQLC queries in tools/sqlc/.

Database Migration Workflow

Workflow for database schema and migration changes.

Prerequisites

  • Use git-workflow Skill for branch, commit, and PR workflow.
  • Refer to .claude/rules/hcl.md for HCL schema rules (SSOT).
  • Refer to .claude/rules/sql.md for SQL query rules (SSOT).

Applicable Files

PathDescription
tools/atlas/schemas/*.hclHCL schema definitions (source of truth)
tools/sqlc/queries/*.sqlSQLC query definitions

Workflow

1. Modify Schema (HCL)

Edit HCL files in tools/atlas/schemas/.

2. Verify HCL (from rules/hcl.md)

make atlas-fmt && make atlas-lint

3. Generate Migrations

make atlas-dev-reset

4. Test Migration

docker compose down -v && docker compose up -d

5. Regenerate SQLC (from rules/sql.md)

make extract-sqlc-schema-all && make sqlc

6. Verify Go Code

make check-build && make gotest

Self-Review Checklist

  • HCL format/lint passes
  • Migration applies cleanly
  • SQLC generates correctly
  • Go build passes
  • .claude/rules/hcl.md - HCL rules (SSOT)
  • .claude/rules/sql.md - SQL rules (SSOT)
  • go-development - Go verification after SQLC generation
  • git-workflow - Branch, commit, PR workflow

スコア

総合スコア

75/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

+5
最近の活動

3ヶ月以内に更新

+5
フォーク

10回以上フォークされている

+5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

レビュー

💬

レビュー機能は近日公開予定です