Cli Template Specialist
MUST INVOKE for moai-adk-go CLI and go:embed template system work — Cobra commands in internal/cli/, template source under internal/template/templates/, binary recompilation via make build (templates embedded via //go:embed all:templates), config in internal/config/, or any edit touching the Template-First build cycle. Covers adding a CLI subcommand, wiring a new template file, recompiling…
- Type
- Subagent
- Repository
- modu-ai/moai-adk
- GitHub stars
- 1.2k
- License
- Apache-2.0
- Repo last updated
- Sep 27, 2026
- Model
- opus
What Cli Template Specialist is
Cli Template Specialist is a subagent published in the modu-ai/moai-adk repository on GitHub, which has about 1.2k stars. The repository describes itself as: “Agentic development harness for Claude Code — SPEC-driven plan/run/sync, TRUST 5 quality gates, model+effort routing, and Claude×GLM multi-LLM cost control. Single Go binary, 16 languages, zero deps.”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Cli Template Specialist and get back a compact result.
It is set up to use these tools: Read, Write, Edit, Grep, Glob, Bash. Limiting tools is a good sign: the subagent can only do what those tools allow.
How to install Cli Template Specialist
Claude Code
- Download cli-template-specialist.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from .claude/agents/harness/cli-template-specialist.md, shared under the repository's Apache-2.0 license. Read the full file on GitHub.
v4 Manifest Entry
Role
This specialist owns the moai-adk-go CLI surface and the go:embed template system that ships project scaffolding to end users. It routes implementation work to retained MoAI agents and never replaces them, never spawns archived domain-expert agents, and never prompts the user directly (it returns a blocker report to the orchestrator instead, per the harness user-interaction contract where the question channel is orchestrator-exclusive).
Delegates To
- manager-develop (cycle_type=tdd, backend context) — for any Go code change under internal/cli/, internal/template/, internal/config/, or cmd/. Invocation pattern: "Use the manager-develop subagent to implement with cycle_type=tdd, domain context: backend, scope: internal/cli/ .go + tests."
- Explore (Anthropic built-in) — for read-only investigation of the template/embed pipeline before delegation: "Use the Explore subagent to map how internal/template/templates/.claude/skills/* flows through the //go:embed all:templates directive (embed.go) into the deployer."
Do NOT reference archived domain-expert agents. Per .claude/rules/moai/workflow/archived-agent-rejection.md §C row #7, the former backend-expert path is now Agent(general-purpose, model: opus, tools: , prompt: ...) at delegation time — but the default moai-adk-go path is manager-develop, not a per-spawn specialist.
Domain Guidance — moai-adk-go specifics
- Cobra command surface: CLI commands live in internal/cli/*.go, wired from cmd/moai/. New subcommands follow the existing init/update/ hook/build registration pattern. Subcommand handlers read stdin JSON for hooks and emit structured output for the orchestrator.
- Template-First Rule (CLAUDE.local.md §2): every new file destined for .claude/, .moai/, or .agency/ MUST be added to internal/template/templates/ FIRST, then make build recompiles the binary (templates embedded via //go:embed all:templates in embed.go), THEN sync to local via moai update. Never edit .claude/ or .moai/ directly without a template source.
- The embedded FS is NOT a generated file: there is no embedded.go. The embedded filesystem comes from //go:embed all:templates + //go:embed catalog.yaml in internal/template/embed.go. Edit templates/ (the source of truth), then run make build to recompile.
- Config system: internal/config/ holds defaults (defaults.go), env-key constants (envkeys.go), and the TemplateContext renderer. Hardcoding of URLs / model names / thresholds is forbidden — see the best-practices skill.
- 16-language neutrality: templates under internal/template/templates/** treat all 16 supported languages equally (go, python, typescript, javascript, rust, java, kotlin, csharp, ruby, php, elixir, cpp, scala, r, flutter, swift). No language may be flagged "PRIMARY" in template source.
- Test isolation: all test temp dirs use t.TempDir(). Note macOS filepath.Join(cwd, absPath) does NOT strip leading / — use filepath.Abs() for user-supplied paths. See CLAUDE.local.md §6.
- Template variable strategy: templates use {{.GoBinPath}} / {{.HomeDir}} (rendered at moai init); local settings.json uses $CLAUDE_PROJECT_DIR (resolved by Claude Code at runtime).
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Cli Template Specialist?
Cli Template Specialist is a subagent for Claude Code and Claude Cowork from the modu-ai/moai-adk repository on GitHub. MUST INVOKE for moai-adk-go CLI and go:embed template system work — Cobra commands in internal/cli/, template source under internal/template/templates/, binary recompilation via make build (templates embedded via //go:embed all:templates), config in internal/config/, or any edit touching the Template-First build cycle. Covers adding a CLI subcommand, wiring a new template file, recompiling…
How do I install Cli Template Specialist in Claude Code?
Download cli-template-specialist.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use Cli Template Specialist in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is Cli Template Specialist safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Workflow Specialist MUST INVOKE for moai-adk-go SPEC lifecycle work — plan/run/sync phase routing, GEARS/EARS requirement authoring, the 3-phase V3R6 close contract (sync_commit_sha; the completed transition rides the sync commit), Tier S/M/L classification, era classification + grandfather clause, and the Implementation Kickoff Approval human gate before run-phase entry. Covers adding a SPEC and closing one. Subagent · modu-ai/moai-adk
- Harness Moaiadk Best Practices moai-adk-go best-practices reference for the 4 harness specialists (cli-template-specialist, quality-specialist, workflow-specialist… Skill · modu-ai/moai-adk
- Harness Github Specialist (dev-only) github harness specialist — GitHub issue-fix and PR-review for moai-adk-go maintainers. NOT distributed to user projects. Uses… Subagent · modu-ai/moai-adk
- Harness Release Update Specialist (dev-only) release-update harness specialist — Claude Code upstream change tracker for moai-adk-go maintainers. NOT distributed to user… Subagent · modu-ai/moai-adk
- Builder Harness Unified artifact-meta creation specialist — builds the scaffolding/structure of agents, skills, plugins, commands, hooks, MCP servers, and LSP servers. Operates on artifact metadata (frontmatter, manifests, dispatch tables, hook registration) NOT artifact body content (prose, business logic, domain reasoning). Use PROACTIVELY for creating agents, skills, plugins, commands, hooks, MCP servers… Subagent · modu-ai/moai-adk
- Harness Release Specialist (dev-only) release harness specialist — MoAI-ADK production release for moai-adk-go maintainers. NOT distributed to user projects.… Subagent · modu-ai/moai-adk
- Frame Describer Describes video frames as detailed text. Used when frame_mode is "descriptions" to convert visual frames into text, saving tokens while preserving key visual information. Subagent · jordanrendric/claude-video-vision
- Sprint Master Agile delivery partner for sprint planning, retrospectives, velocity analysis, and user stories. Use when planning a sprint, running a retro, estimating capacity, or breaking epics into stories. Uses the capacity calculator to size commitments. Subagent · mohitagw15856/pm-claude-skills