Install any skill in seconds. Free to start, no credit card required.
Get Started Free →moai-adk-go local dev reference — version management/release process (sec 5), shell-script hook development (sec 7), build & dev commands (sec 10). Load only when performing these specific tasks.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 17% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -17% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -20% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 11% | 0% |
| case-06 | ✗→✓ | ▲ Improved | -15% | 0% |
> moai-adk-go 로컬 dev 레퍼런스 — CLAUDE.local.md §5/§7/§10 의 작업 특화 상세를 이곳으로 이관 (lazy-load). 세션마다 필요 없는 참고 자료. 항상-로드 컨텍스트 절감용. > 소유: hns-* 네임스페이스 (user-owned, moai update 보존 — CLAUDE.local.md §24). 템플릿 미러 금지.
go.mod module version + git tags are the authoritative sourcespkg/version/version.go reads from git tags at build timeVersion Reference:
v1.0.0)pkg/version/version.go via git describe.moai/config/sections/system.yaml (updated by release process)Version is injected at build time using ldflags:
bash# Build with version injection go build -ldflags="-X github.com/modu-ai/moai-adk/pkg/version.Version=v1.0.0" # Makefile handles this automatically make build VERSION=1.0.0
When releasing new version, update:
Documentation Files:
Configuration Files:
git tag v1.0.0git push origin v1.0.0make release VERSION=1.0.0moai-adk-go uses shell scripts for hooks, NOT Python:
Hook Wrapper Pattern:
bash#!/bin/bash # .claude/hooks/moai/handle-session-start.sh # Read stdin JSON from Claude Code INPUT=$(cat) # Call moai binary with hook subcommand moai hook session-start <<< "$INPUT"
Why Shell Scripts:
settings.json hook configuration:
json{ "hooks": { "SessionStart": [{ "hooks": [{ "command": "\"$CLAUDE_PROJECT_DIR/.claude/hooks/moai/handle-session-start.sh\"", "timeout": 5 }] }] } }
Key Rules:
$CLAUDE_PROJECT_DIR: "$CLAUDE_PROJECT_DIR"macOS/Linux:
json"command": "\"$CLAUDE_PROJECT_DIR/.claude/hooks/moai/hook.sh\""
Windows:
json"command": "\"%CLAUDE_PROJECT_DIR%\\.claude\\hooks\\moai\\hook.sh\""
bash# Build the project make build # Run tests make test # Run with race detection make test-race # Run linter make lint # Format code make fmt # Install locally make install # Clean build artifacts make clean # Run go fix modernizers make fix
bash# 1. Edit templates vim internal/template/templates/.claude/skills/moai/SKILL.md # 2. Regenerate embedded files make build # 3. Run tests go test ./internal/template/... # 4. Test locally ./moai init test-project # 5. Commit git add internal/template/templates/ git commit -m "feat(template): update SKILL.md"
Other measured skills in the registry, with their headline benchmark lift.