moai-harness-cli-template

Solid

CLI/Template domain knowledge for moai-adk-go covering cobra commands, go:embed template system, YAML config, and template rendering pipeline.

AI & Automation 1,050 stars 192 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# CLI/Template Domain Knowledge Domain-specific knowledge for moai-adk-go's CLI and template system. Supplements `expert-backend` with project-specific patterns. ## Quick Reference ### Architecture Overview ``` moai binary (Go) ├── internal/cli/ ~50 cobra command files ├── internal/template/ │ ├── templates/ Source of truth for all templates │ ├── embedded.go Auto-generated (go:embed) │ ├── context.go TemplateContext with GoBinPath, HomeDir │ └── renderer.go Template rendering engine └── internal/config/ Configuration loading and defaults ``` ### Key Patterns 1. **Template-First Rule**: New files under `.claude/` or `.moai/` must be added to `internal/template/templates/` first, then `make build` 2. **Embedded System**: `//go:embed templates/*` in `embedded.go` -- auto-generated, never edit 3. **Template Variables**: `{{.GoBinPath}}` (init-time absolute), `{{.HomeDir}}` (init-time absolute) 4. **Fallback Paths**: Use `$HOME` (not `.HomeDir`) in `.sh.tmpl` files for runtime flexibility 5. **16-Language Neutrality**: Templates treat all 16 supported languages equally -- no "PRIMARY" language ### Build Cycle ```bash # 1. Edit templates vim internal/template/templates/.claude/skills/... # 2. Regenerate embedded files make build # 3. Run tests go test ./internal/template/... # 4. Verify ls -la internal/template/embedded.go ``` ### Command Structure Each cobra command lives in `internal/cli/<command>.go...

Details

Author
modu-ai
Repository
modu-ai/moai-adk
Created
8 months ago
Last Updated
today
Language
Go
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

moai-workflow-templates

Template management system for code boilerplates, feedback templates, scaffolding, and project optimization workflows. Use when creating templates, generating boilerplate files, or managing scaffolding.

1,050 Updated today
modu-ai
AI & Automation Solid

moai-harness-patterns

MoAI-ADK harness pattern library — unified domain knowledge covering hook/CI dispatch (PostToolUse, SessionStart, GitHub Actions, release automation), workflow patterns (SPEC structure, EARS, MX tags, plan-run-sync pipeline), and Go quality gates (testing, linting, coverage, race detection, LSP). Use for moai-adk-go harness work — NOT for general MoAI agent patterns (see moai-foundation-cc).

1,050 Updated today
modu-ai
AI & Automation Solid

moai-workflow-project

Integrated project management system covering documentation, language initialization, template optimization, docs generation, and JIT document loading. Absorbed from moai-workflow-templates, moai-docs-generation, and moai-workflow-jit-docs.

1,050 Updated today
modu-ai
AI & Automation Solid

moai

MoAI unified orchestrator for autonomous development. Routes natural language or subcommands (brain, plan, run, sync, design, project, fix, loop, mx, feedback, review, clean, codemaps, coverage, e2e, harness) to specialized agents.

1,050 Updated today
modu-ai
AI & Automation Solid

golang-cli

Golang CLI application development. Use when building, modifying, or reviewing a Go CLI tool — especially for command structure, flag handling, configuration layering, version embedding, exit codes, I/O patterns, signal handling, shell completion, argument validation, and CLI unit testing. Also triggers when code uses cobra, viper, or urfave/cli.

1,904 Updated 3 days ago
samber