Install any skill in seconds. Free to start, no credit card required.
Get Started Free →modu-ai/hns-moaiadk-patterns
moai-adk-go domain-patterns reference for the 4 harness specialists (cli-template-specialist, quality-specialist, workflow-specialist, hook-ci-specialist). Covers the CLI/template/config/hook/spec subsystem architecture, key source paths, the Pipeline specialist delegation map, the Template-First build cycle, the namespace separation contract, and common add-a-template / add-a-hook / add-an-agent / add-a-SPEC workflows. Loaded by the specialists when working on moai-adk-go's own Go codebase and
Passed 21 of 21 test cases with the skill, and 6 of 21 without it.
and 21 more in the full report
16 fixed6 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 15 test cases the skill fixed. Same model, same prompt, with and without the skill.
When running /moai plan to create a new SPEC entry, which specialist role authors the initial plan-phase artifacts?
| Checked | Without skill | With skill |
|---|---|---|
| Identifies manager-spec as the role that authors plan-phase artifacts | Missed | Passed |
The instructions your model reads when the skill loads.
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) |
test cases passed, vs 6 / 21 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.