Codex OpenClaw Go Rig for Test-First Package Boundaries
Define Go API and JSON boundary behavior, add a focused test, implement the smallest change, and review dependency ownership.
中文Install in Codex
Codex with an openclaw-dashboard checkout, the repository's Go tooling, and the existing behavior or API contract.
- Copy the entire pinned `.codex/skills/go-rig/` directory to `.agents/skills/go-rig/` in the target checkout.
- Open Codex in that checkout and invoke `$go-rig` with the example task and desired output.
Example task
Invoke `$go-rig` for an empty metrics collection in a practice branch. Ask for a failing test before changing the domain implementation, then check the root wrapper.What to check
The test establishes the JSON form for an empty collection. The behavior stays in its owning package.
Original SKILL.md on GitHub · Updated
Frequently asked question
When should I add an interface?
Start with concrete types. Introduce an interface when a real consumer needs a substitutable dependency.