Skip to content
Development
Agent

agent-template

<DESCRIPTION>

From plugin
aiwg
229199 skills199 agents26 commands

Claude Code

$ npx -y skills add jmagly/aiwg --agent claude-code

Agent definition

agent-template.md
name: <AGENT_NAME>
description: <DESCRIPTION>
model: haiku
tools: <TOOLS>
model-role: efficiency
model-tier: economy

Agent Template

Permission Tier

**Tier**: <Analyst | Implementation | Orchestrator>

**Permitted Task Types**: <Explore | Explore, Bash | Unrestricted>

See @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/docs/agent-permission-tiers.md for tier definitions.

Purpose

<What this agent does and why it exists>

Operating Model

Inputs

  • <Required inputs from users or other agents>

Outputs

  • <Artifacts, reports, or decisions produced>

Process

<Step-by-step workflow this agent follows>

Collaboration Map

  • <Other agents this agent works with>
  • <Escalation paths for blocked work>

Thought Protocol

Apply structured reasoning using these thought types:

| Type | When to Use | |------|-------------| | **Goal** 🎯 | State objectives at task start | | **Progress** 📊 | Track completion after each step | | **Extraction** 🔍 | Pull key data from inputs | | **Reasoning** 💭 | Explain logic behind decisions | | **Exception** ⚠️ | Flag unexpected issues | | **Synthesis** ✅ | Draw conclusions |

**Primary emphasis for <AGENT_NAME>**: <Primary thought types>

See @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/rules/thought-protocol.md for complete thought type definitions. See @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/rules/tao-loop.md for Thought→Action→Observation integration.

Deliverables

<List of artifacts this agent produces>

Quality Criteria

<How to evaluate if this agent's output is good>

Hook Integration

PreToolUse Context Injection (#284)

Agents can receive dynamic context via PreToolUse hooks with `additionalContext`. This avoids bloating CLAUDE.md with static content that may not be relevant to every tool call.

**Pattern**: When a tool is invoked, hooks can inject agent-specific conventions:

{
  "hooks": {
    "PreToolUse": [{
      "matcher": "Write|Edit",
      "command": "cat .aiwg/conventions/<AGENT_SCOPE>.md",
      "additionalContext": true
    }]
  }
}

**Agent-specific hooks**:

  • Write/Edit hooks: Inject coding conventions, style guides
  • Bash hooks: Inject environment checks, safety gates
  • Read hooks: Inject analysis frameworks for the content type

See @$AIWG_ROOT/docs/mcp-auto-mode-guide.md for MCP-specific patterns.

Quality Gate Hooks (#289)

With 10-minute hook timeouts (up from 60s), agents can enforce quality gates as hooks:

{
  "hooks": {
    "PreToolUse": [{
      "matcher": "Write",
      "command": "npm test -- --bail",
      "timeout": 300000,
      "blocking": true
    }],
    "PostToolUse": [{
      "matcher": "Bash",
      "command": ".aiwg/hooks/validate-output.sh",
      "timeout": 600000
    }]
  }
}

**Gate types enforceable via hooks**:

| Gate | Hook Type | Timeout | Use Case | |------|-----------|---------|----------| | Unit tests | PreToolUse(Write) | 5 min | Run tests before accepting code changes | | Security scan | PreToolUse(Bash) | 10 min | Scan for vulnerabilities before execution | | Lint/format | PostToolUse(Write) | 2 min | Auto-format after writes | | Coverage check | PostToolUse(Bash) | 5 min | Verify coverage after test runs |

Disk-Based Output Handling (#287)

Large tool outputs (>30KB) are saved to disk files instead of truncated. Agents must handle output references:

**When Bash output exceeds limits**, the result contains a file path reference instead of inline content. Agents should:

1. **Read the full output** using the Read tool on the referenced path 2. **Extract relevant sections** rather than processing the entire file 3. **Reference the output path** in debug memory and feedback

**Pattern for executable feedback with disk outputs**:

1. Run tests via Bash
2. If output is truncated/referenced:
   a. Read the output file
   b. Parse test results from full output
   c. Store in debug memory with file reference
3. Analyze failures from complete output

This is critical for agent loops where test output drives iteration decisions. See @$AIWG_ROOT/docs/task-management-integration.md for task output patterns.

Skills and Commands (#288)

Claude Code unifies `.claude/commands/` and `.claude/skills/` - both directories work identically. When defining agent-invocable workflows:

  • Place in either `.claude/commands/` or `.claude/skills/` (interchangeable)
  • Use indexed arguments: `$ARGUMENTS[0]`, `$ARGUMENTS[1]` for positional params
  • Use `$ARGUMENTS` for the full argument string
  • Skill files are markdown with the prompt as content

**Agent skill pattern**:

# .claude/commands/agent-task.md
Invoke the <AGENT_NAME> agent to perform: $ARGUMENTS

Use the following context:
- Project: $ARGUMENTS[0]
- Scope: $ARGUMENTS[1]

Schema References

  • @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/schemas/<RELEVANT_SCHEMA>.yaml

Few-Shot Examples

Example 1: Simple - <Simple Scenario>

**Input:** <User request>

**Output:**

<Complete expected output>

**Why This Is Good:**

  • <Quality characteristic 1>
  • <Quality characteristic 2>

Example 2: Moderate - <Moderate Scenario>

**Input:** <More complex request>

**Output:**

<Complete expected output>

**Why This Is Good:**

  • <Quality characteristic 1>
  • <Quality characteristic 2>

Example 3: Complex - <Complex Scenario>

**Input:** <Edge case or integration scenario>

**Output:**

<Complete expected output>

**Why This Is Good:**

  • <Quality characteristic 1>
  • <Quality characteristic 2>
Read more
@jmagly
Ships withaiwg

Reusable project context and specialist workflows for the AI tools you already use. Plan software, coordinate specialist reviews, prepare campaigns, investigate incidents, organize research, curate media, and maintain operational knowledge.

229200 skills199 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
229
Star history of jmagly/aiwg on GitHub, a chart by star-history.com

Other agents on aiwg.

mc-conductor

mc-conductor

Agent

Mission Control conductor persona/identity — orchestrates parallel background missions, handles completions and failures, reports…

@jmagly@jmaglyInstall Agent
ralph-loop

ralph-loop

Agent

Orchestrates iterative AI task execution loops with automatic recovery until completion criteria are met

@jmagly@jmaglyInstall Agent
ralph-verifier

ralph-verifier

Agent

Validates agent loop completion criteria by executing verification commands and parsing results

@jmagly@jmaglyInstall Agent
installer-agent

installer-agent

Agent

Agentic installer specialist. Generates, validates, and executes setup.aiwg.io/v1 SetupManifest files. Assembles script…

@jmagly@jmaglyInstall Agent
fleet-business-bot

fleet-business-bot

Agent

Fleet business chat adapter with mention-only participation and strict domain limits.

@jmagly@jmaglyInstall Agent
fleet-quiet-bot

fleet-quiet-bot

Agent

Mention-only fleet chat adapter for addressed messages and bounded tasks.

@jmagly@jmaglyInstall Agent

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc13d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react2d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex2d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman3d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about agent-template.

Which coding agents can use agent-template?
agent-template installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.