Agent skill

DB Migration

by hiromaily in hiromaily/go-crypto-wallet

Database schema and migration workflow. An agent skill from hiromaily/go-crypto-wallet.

MITAuto-check passedDatabases

Install DB Migration

skills CLI
$ npx skills add hiromaily/go-crypto-wallet --skill db-migration -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install hiromaily/go-crypto-wallet db-migration --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/hiromaily/go-crypto-wallet.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/db-migration .claude/skills/db-migration && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
db-migration
GitHub stars
128
Token cost
~652 tokens
SKILL.md length
186 words
Files
1
Skills in repo
17
Repo updated
First seen
Licence
MIT

At a glance

Database schema and migration workflow. An agent skill from hiromaily/go-crypto-wallet.

  • Works in 5 steps: Modify Schema (HCL) → Verify HCL (from rules/hcl.md) → Regenerate All Artifacts → …
  • Modifying database schemas in tools/atlas/
  • SKILL.md covers Prerequisites, Applicable Files, Workflow and Self-Review Checklist, plus 1 more section
  • Calls make

What it does

DB Migration is an agent skill from hiromaily/go-crypto-wallet. Database schema and migration workflow. Use when modifying database schemas in tools/atlas/ or SQLC queries in tools/sqlc/.

Its SKILL.md is about 650 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Databases, covering Database schema design and Database migrations. It works with SQL, MySQL and PostgreSQL. The repository describes itself as: Cryptocurrency wallet for trading for Bitcoin, Bitcoin cash, Ethereum, ERC20, XRP Leger (Ripple). The licence is MIT.

When your agent uses it

  • Modifying database schemas in tools/atlas/
  • SQLC queries in tools/sqlc/

Example prompts

  • “/db-migration”

Requirements

  • Docker

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Modify Schema (HCL)
  2. Verify HCL (from rules/hcl.md)
  3. Regenerate All Artifacts
  4. Verify Migration Files
  5. Verify Go Code

What it can do on your machine

Read from SKILL.md and the folder at commit 798ab10. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • make

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

DB Migration loads about 652 tokens when it runs. Until then it costs about 34 tokens; SKILL.md has 186 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~34
When it runs · the whole SKILL.md, loaded when a task matches
~652

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from hiromaily/go-crypto-wallet at commit 798ab10, republished under its MIT licence (© hiromaily). 186 words, ~652 tokens.

Download SKILL.mdSave it as .claude/skills/db-migration/SKILL.md (or your agent's skills folder).
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/{db_dialect}/*.hclHCL schema definitions (source of truth)
tools/sqlc/queries/{db_dialect}/*.sqlSQLC query definitions

Workflow

1. Modify Schema (HCL)

Edit HCL files in tools/atlas/schemas/{db_dialect}/.

Dialect directories:

  • tools/atlas/schemas/postgres/*.hcl
  • tools/atlas/schemas/mysql/*.hcl
2. Verify HCL (from rules/hcl.md)
bash
make atlas-fmt && make atlas-lint
3. Regenerate All Artifacts

Run all three targets after modifying HCL schemas:

bash
# Regenerate migrations, extract SQLC schemas, and generate Go code for PostgreSQL
make regenerate-all-from-atlas

# Regenerate for MySQL
make regenerate-all-from-atlas-mysql

# Convert PostgreSQL schemas to SQLite and generate Go code for SQLite
make regenerate-all-from-atlas-sqlite

Each target handles: Atlas migrations → Docker DB reset → SQLC schema extraction → SQLC code generation.

4. Verify Migration Files

After running the regenerate targets, confirm each DB dialect has exactly one migration SQL file:

  • tools/atlas/migrations/postgres/{db-name}/*.sql ← one file, updated
  • tools/atlas/migrations/mysql/{db-name}/*.sql ← one file, updated

DB names: keygen, sign, watch

5. Verify Go Code
bash
make check-build && make go-test

Self-Review Checklist

  • HCL format/lint passes
  • make regenerate-all-from-atlas succeeds (postgres)
  • make regenerate-all-from-atlas-mysql succeeds (mysql)
  • make regenerate-all-from-atlas-sqlite succeeds (sqlite)
  • Each tools/atlas/migrations/{postgres,mysql}/{db-name}/ has exactly one .sql file and it is updated
  • 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

© hiromaily, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/db-migration of hiromaily/go-crypto-wallet.

Open the folder on GitHubat commit 798ab10

Compare with similar skills

DB Migration next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

DB Migration compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
DB Migration this skillhiromaily/go-crypto-wallet128—~652Automated safety check: PassMIT
Golang Databaseunxed/f42432 repos~2.9kAutomated safety check: PassMIT
Database Migrations SQL Migrationsrmyndharis/antigravity-skills1.7k3 repos~577Automated safety check: NotesMIT
DB ContextSilvioBaratto/optimizer176—~6.4kAutomated safety check: NotesCustom licence
Expert DatabaseReJeCtAll/ExpertTeam-Codex113—~692Automated safety check: PassMIT
SQL ProJeffallan/claude-skills12k—~1.3kAutomated safety check: PassMIT

Similar skills

  • Comprehensive guide for Go database access — parameterized queries, struct scanning, NULLable columns, transactions, isolation levels, SELECT FOR UPDATE, connection pool, batch processing, context…

    243 GitHub starsUsed in 2 repos~2.9k tokens
    DatabasesAuto-check passed
  • Database Migrations SQL Migrations

    rmyndharis/antigravity-skills

    SQL database migrations with zero-downtime strategies for PostgreSQL, MySQL, SQL Server

    1.7k GitHub starsUsed in 3 repos~577 tokens
    DatabasesAuto-check: notes
  • DB Context

    SilvioBaratto/optimizer

    Complete knowledge of the optimizer PostgreSQL database: 57 ingestion tables, schema, relationships, live row counts, query patterns, and conventions.

    176 GitHub stars~6.4k tokensUpdated 2 days ago
    DatabasesAuto-check: notes
  • Expert Database

    ReJeCtAll/ExpertTeam-Codex

    数据库优化专家入口。用于 Codex CLI 的 $expert-database 调用. An agent skill from ReJeCtAll/ExpertTeam-Codex.

    113 GitHub stars~692 tokensUpdated 3 mo ago
    DatabasesAuto-check passed
  • SQL Pro

    Jeffallan/claude-skills

    Optimizes SQL queries and designs schemas using CTEs, window functions, covering indexes and EXPLAIN ANALYZE, with notes on dialect differences between major databases.

    12k GitHub stars~1.3k tokensUpdated 6 days ago
    DatabasesAuto-check passed
  • Database Marchat

    Cod-e-Codes/marchat

    Changes marchat SQL schema and queries across SQLite, PostgreSQL, and MySQL using dialect helpers.

    137 GitHub stars~985 tokensUpdated 7 days ago
    DatabasesAuto-check passed

More from hiromaily/go-crypto-wallet

All 17 skills in this repo
  • Bch Development

    hiromaily/go-crypto-wallet

    Bitcoin Cash (BCH) API implementation rules. An agent skill from hiromaily/go-crypto-wallet.

    128 GitHub stars~1.6k tokensUpdated 5 mo ago
    Auto-check passed
  • Btc Terminology

    hiromaily/go-crypto-wallet

    Critical Bitcoin terminology rules to prevent confusion between bech32m (encoding) and taproot (address type).

    128 GitHub stars~1.3k tokensUpdated 5 mo ago
    Auto-check passed
  • Devops

    hiromaily/go-crypto-wallet

    CI/CD and DevOps workflow. An agent skill from hiromaily/go-crypto-wallet.

    128 GitHub stars~435 tokensUpdated 5 mo ago
    Auto-check passed
  • Docs Update

    hiromaily/go-crypto-wallet

    Documentation update workflow. An agent skill from hiromaily/go-crypto-wallet.

    128 GitHub stars~1.3k tokensUpdated 5 mo ago
    Auto-check passed
  • Fix PR Review

    hiromaily/go-crypto-wallet

    Address PR review comments by selecting appropriate skills based on modified files.

    128 GitHub stars~919 tokensUpdated 5 mo ago
    Auto-check passed
  • Git Workflow

    hiromaily/go-crypto-wallet

    Git branch management, commit conventions, and PR creation workflow.

    128 GitHub stars~2.9k tokensUpdated 5 mo ago
    Auto-check passed

Categories

Questions about DB Migration

What does DB Migration do?

Database schema and migration workflow. An agent skill from hiromaily/go-crypto-wallet. DB Migration is an agent skill from hiromaily/go-crypto-wallet. Database schema and migration workflow.

When should I use DB Migration?

DB Migration fits situations like: modifying database schemas in tools/atlas/; SQLC queries in tools/sqlc/.

How do I install DB Migration in Claude Code?

Run `npx skills add hiromaily/go-crypto-wallet --skill db-migration -a claude-code`. Or copy the skill folder (.claude/skills/db-migration in hiromaily/go-crypto-wallet) into .claude/skills/db-migration in your project. Claude Code loads it when a task matches its description.

How do I install DB Migration in Codex?

Run `npx skills add hiromaily/go-crypto-wallet --skill db-migration -a codex`. Or copy the skill folder (.claude/skills/db-migration in hiromaily/go-crypto-wallet) into .agents/skills/db-migration in your project. Codex loads it when a task matches its description.

Can I use DB Migration in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add hiromaily/go-crypto-wallet --skill db-migration -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/db-migration, .gemini/skills/db-migration, .github/skills/db-migration and .opencode/skills/db-migration in your project.

What does DB Migration need to run?

Going by SKILL.md and its folder, DB Migration needs the command-line tools its instructions call (make). Our summary lists: Docker.

Does DB Migration access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is DB Migration safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does DB Migration use?

DB Migration is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does DB Migration use?

About 652 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to DB Migration?

Skills that share tags, products or a category with DB Migration: Golang Database (unxed/f4, 243 stars), Database Migrations SQL Migrations (rmyndharis/antigravity-skills, 1.7k stars), DB Context (SilvioBaratto/optimizer, 176 stars) and Expert Database (ReJeCtAll/ExpertTeam-Codex, 113 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains DB Migration?

hiromaily (a GitHub user) maintains it in hiromaily/go-crypto-wallet, which has 128 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on April 22, 2026.

Source: hiromaily/go-crypto-wallet on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.