50
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill ezbuy/ezorm --skill ezorm-gen-yaml-mysql- SKILL.md1.3 KB
Overview
This skill generates Go code from ezorm YAML schema files targeting MySQL backends. It prefers the mysqlr generator unless you explicitly request mysql. The skill returns the exact ezorm CLI command(s) to run and does not generate Go code in the response.
How this skill works
I inspect the provided YAML file or directory, the desired output directory, and the go package and namespace you specify. I choose mysqlr by default and format the ezorm gen command using the bin/ezorm binary. I also validate presence of required local helper scripts or binaries and will indicate if they must be initialized before running the command.
When to use it
- You have ezorm schema YAML files and want generated Go models and CRUD for MySQL.
- You prefer the mysqlr generator for improved output unless you request mysql.
- You need the exact ezorm CLI invocation to run locally or in CI.
- You want a single shell command per input folder to minimize manual steps.
Best practices
- Confirm the input YAML path(s) and output directory before generating code.
- Provide --goPackage and --namespace explicitly; they are required by ezorm gen.
- Prefer mysqlr unless you need legacy mysql behavior and explicitly ask for mysql.
- Ensure bin/ezorm exists (run scripts/ensure-ezorm.sh if missing) and initialize references/assets if needed.
Example use cases
- Generate Go code from a single YAML file into ./gen with package models and namespace app: bin/ezorm gen -i path/to/schema.yaml -o ./gen --goPackage models --namespace app
- Generate from a directory of YAML schemas into a target folder using mysqlr: bin/ezorm gen -i path/to/schemas/ -o ./out --goPackage mypkg --namespace myns
- CI job that runs code generation before build—ensure scripts/init.sh and scripts/ensure-ezorm.sh have run, then call the generated command.
FAQ
Yes — mysqlr is preferred for better output. Specify mysql explicitly if you need that generator.
What if bin/ezorm is missing?
Run scripts/ensure-ezorm.sh to install or build the ezorm binary before running the generated command.