Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Provides domain-patterns reference for moai-adk-go's CLI, template, config, hook, and SPEC subsystems for four harness specialists.
27% 100%+73 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 6 of 22 without it.
When running /moai plan to create a new SPEC entry, which specialist role authors the initial plan-phase artifacts?
Identifies manager-spec as the role that authors plan-phase artifacts
3 of 3 safety checks passed
moai-adk-go is a Go binary (moai) with four subsystems:
internal/cli/*.go, cmd/moai/) — Cobra commands: init,
update, hook, build, glm, cc, cg, version, doctor,
spec. Subcommand handlers read stdin JSON for hooks, emit structured
output for the orchestrator.internal/template/) — go:embed-based scaffolding.
Source at internal/template/templates/, embedded into the binary via
//go:embed all:templates in internal/template/embed.go (no generated
.go file). make build recompiles the binary.
TemplateContext ({{.GoBinPath}} / {{.HomeDir}}) renders at moai init.internal/config/) — defaults.go (single source for
thresholds), envkeys.go (env-var constants), TemplateContext renderer..claude/hooks/moai/*.sh, .github/workflows/) — bash
wrapper hooks calling moai hook <event>; CI guard enforces template
neutrality.Plus the SPEC lifecycle (.moai/specs/) governing the project's own
development (plan→run→sync→Mx).
| Subsystem | Path | Notes |
|---|---|---|
| Cobra commands | internal/cli/*.go | wired from cmd/moai/ |
| Template source | internal/template/templates/** | edit HERE first |
| Embedded assets | internal/template/embed.go | //go:embed all:templates (no generated file) |
| Config defaults | internal/config/defaults.go | threshold SSOT |
| Env constants | internal/config/envkeys.go | no hardcoded env names |
| SPEC docs | .moai/specs/SPEC-*/ | spec/plan/acceptance/progress |
| Era classifier | internal/spec/era.go | ClassifyEra() H-1..H-6 |
| Hook scripts | .claude/hooks/moai/*.sh | bash only, no Python |
| CI workflows | .github/workflows/*.yaml | neutrality guard active |
| Harness agents | .claude/agents/harness/*.md | USER-OWNED (this skill) |
Next to this one in the catalogue, plus more from the same author.