Compile Migrations
Developmentcompile-migrationsCompile Migrations is an Agent Skill for development published in the c9s/bbgo repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Compile SQL migration files into Go source code for embedding in binaries
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/c9s/bbgo/blob/HEAD/.claude/skills/compile-migrations/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/compile-migrations, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Compile SQL migrations into Go code for all configured dialects.
Steps
- Find all
rockhopper_*.yamlconfig files in the project root. - If
$ARGUMENTSis provided, use it as the base output directory. Otherwise, usepkg/migrations/<dialect>as the default output path for each dialect. - For each config file, run:
rockhopper compile --config <config_file> --output <output_dir> - Show the generated Go files and confirm compilation succeeded.