Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Supplies moai-adk-go best-practice rules: TRUST 5 quality gates, Go test isolation, hardcoding prevention and orchestrator boundaries.
Use this skill ↓41% 86%+45 ptsof test cases passed
Passed 19 of 22 test cases with the skill, and 9 of 22 without it.
The main orchestrator session needs to invoke `AskUserQuestion` and task management tools (`TaskCreate`, `TaskUpdate`) for the first time in a new session. Describe the prerequisite step required before calling these tools in the orchestration flow.
requires calling ToolSearch before using deferred tools
3 of 3 safety checks passed
Every change must pass all five dimensions before completion:
| Pillar | Gate | Failure action |
|---|---|---|
| Tested | go test ./... with coverage | Block merge; generate missing tests |
| Readable | golangci-lint run | Warn; suggest refactoring |
| Unified | go fmt + goimports | Auto-format or warn |
| Secured | OWASP-aligned review (per-spawn opus agent) | Block; require review |
| Trackable | Conventional Commits regex | Suggest format |
Coverage targets: 85% package minimum; 90%+ for critical packages
(internal/cli, internal/template, internal/hook).
t.TempDir() for temp dirs — auto-cleanup, under os.TempDir().t.TempDir() returns /var/folders/.... Go's
filepath.Join(cwd, absPath) does NOT strip the leading /:
filepath.Join("/a/b", "/var/folders/x") → "/a/b/var/folders/x" (WRONG).
Use filepath.Abs() when resolving user-supplied paths in CLI commands.t.Setenv("OTEL_EXPORTER_*", ...) in parallel tests — the OTEL SDK
initializes global state from env vars on first use, causing data races. Use
a fake/no-op exporter instead; or make the parent test non-parallel.t.Setenv("HOME", tmpDir) in GLM integration tests — parallel-test
pollution. Use t.TempDir() + explicit path construction.go test ./...) to catch
cascading failures. Use -count=1 to disable caching when debugging flaky
tests; use -race for concurrency-safety checks.const.internal/config/envkeys.go as
constants; reference the constant everywhere. Never inline a raw env string.internal/config/defaults.go. NeverNext to this one in the catalogue, plus more from the same author.