# Ezorm Gen YAML Mongo

> Generate Go code from ezorm YAML (mongo). Use when asked to produce Go output from mongo YAML schemas; provide the exact ezorm CLI command(s). Use when this capability is needed.

- Skill: `tomevault-io/ezorm-gen-yaml-mongo` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/ezorm-gen-yaml-mongo`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/ezorm-gen-yaml-mongo/raw
- Safety review: pending (external: skill-scanner PASS, skillspector CAUTION)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/ezorm-gen-yaml-mongo

---


# Ezorm Gen Yaml (Mongo)

## Scope

Generate Go code from ezorm YAML schema files for mongo using the `ezorm` CLI.
Read these files when command details or examples are needed:
- `Makefile` (target: `gene2e`)
- `e2e/mongo/`
If the local `references/` or `assets/` directories are missing, run:
`scripts/init.sh` (or `scripts/init.sh --force` to refresh).
Validate with `scripts/validate.sh`.
If `bin/ezorm` is missing, run `scripts/ensure-ezorm.sh` first.

## Workflow

1. Confirm input YAML path(s) and output directory.
2. Choose goPackage and namespace (required for `ezorm gen`).
3. Use the mongo command pattern:
   - `bin/ezorm gen -i <yaml-or-dir> -o <out-dir> --goPackage <pkg> --namespace <ns>`
4. Output only the command(s) needed. Do not generate Go code in the response.

## Output Rules

- Emit shell command(s) only.
- Do not invent paths; use the user-provided locations.
- Prefer a single command per directory when input is a folder.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/ezbuy) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

