harness-moaiadk-patterns

Installation
SKILL.md

moai-adk-go Domain Patterns

Architecture Quick Reference

moai-adk-go is a Go binary (moai) with four subsystems:

  1. CLI (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.
  2. Template system (internal/template/) — go:embed-based scaffolding. Source at internal/template/templates/, generated artifact at internal/template/embedded.go (DO NOT EDIT). make build regenerates. TemplateContext ({{.GoBinPath}} / {{.HomeDir}}) renders at moai init.
  3. Config (internal/config/) — defaults.go (single source for thresholds), envkeys.go (env-var constants), TemplateContext renderer.
  4. Hook + CI (.claude/hooks/moai/*.sh, .github/workflows/) — bash wrapper hooks calling moai hook <event>; CI guard enforces template neutrality.
Installs
2
GitHub Stars
1.1K
First Seen
Jun 21, 2026
harness-moaiadk-patterns — modu-ai/moai-adk