Sponsor Suno AI Music arrow_forward
Subagent

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

  1. Download cli-template-specialist.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. 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

  1. 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.
  2. 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

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under Apache-2.0. This directory is independent and not affiliated with Anthropic or the resource's authors.