OpenParable
Skip to content
← Back to skills

Compile Migrations

Development
compile-migrations

Compile 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

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. 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

  1. Find all rockhopper_*.yaml config files in the project root.
  2. If $ARGUMENTS is provided, use it as the base output directory. Otherwise, use pkg/migrations/<dialect> as the default output path for each dialect.
  3. For each config file, run:
    rockhopper compile --config <config_file> --output <output_dir>
    
  4. Show the generated Go files and confirm compilation succeeded.