New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Task-focused agents that split test, review, debug, and security work across teammate or subagent roles.

version
1.16.3
GitHub stars
60
View on GitHub

What it does

  • Adds 13 agents, including test, review, debug, refactor, ci, security-audit, and performance, each bounded to about 3 to 20 steps
  • Covers review, security, research, and documentation work that runs best in parallel as teammates alongside implementation
  • Enforces a turn budget on every agent, so each reports before its limit instead of returning nothing when cut off
  • Designed for Claude Code users who want domain agents that keep verbose output out of the main context

Task-focused agents with teammate and subagent role guidance for test, review, debug, docs, CI, security, refactoring, research, and performance

Add marketplace

/plugin marketplace add laurigates/claude-plugins

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install agents-plugin@laurigates-claude-plugins

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

/agents:analyze

Analyze the plugin collection to identify where sub-agents would improve workflows by isolating verbose output, enforcing constraints, or specializing behavior.

When to Use This Skill

Use this skill when...Use a sibling skill instead when...
Auditing the whole plugin collection for sub-agent opportunities (verbose-output skills, model mismatches, tool over-permissions)Auditing a single agent's frontmatter, tool list, and prompt completeness — use agent-patterns-plugin:meta-audit
Mapping delegation gaps and producing a list of proposed new agentsAuthoring the new agent file from that proposal — use agent-patterns-plugin:custom-agent-definitions
Checking each agent's model fits its task-shape tierConfiguring an agent's hooks, permissions, or settings.json wiring — use hooks-plugin:hooks-configuration
Focusing the analysis on a single plugin's skills (--focus <plugin>)Coordinating multiple agents at runtime — use agent-patterns-plugin:agent-teams or parallel-agent-dispatch

Agentic Optimizations

ContextCommand
List all pluginsfind . -maxdepth 1 -type d -name '*-plugin'
Count skills per pluginfind <plugin>/skills -name 'SKILL.md' -o -name 'skill.md' | wc -l
List existing agentsfind agents-plugin/agents -maxdepth 1 -name '*.md'
Check agent model fieldgrep -r '^model:' agents-plugin/agents/
Check agent allowed-toolsgrep -r '^allowed-tools:' agents-plugin/agents/
Skill tool permissionsgrep -r '^allowed-tools:' */skills/*/SKILL.md

Context

  • Plugin directories: !find . -maxdepth 1 -type d -name '*-plugin'
  • Existing agents: !find . -path '*/agents-plugin/agents/*' -maxdepth 3 -name '*.md'
  • Skills: !find . -path '*/skills/*/skill.md'
  • Skills (user-invocable): !find . -path '*/skills/*/SKILL.md' -not -path './agents-plugin/*'

Parameters

  • $1: Optional --focus <plugin-name> to analyze a single plugin in depth

Your Task

Perform a systematic analysis of the plugin collection to identify sub-agent opportunities.

Step 1: Inventory Current State

Scan the repository to build an inventory:

  1. List all plugins with their skill/command counts
  2. Read existing agents in agents-plugin/agents/ to understand current coverage
  3. If --focus is provided, restrict analysis to that plugin only

Step 2: Identify Sub-Agent Opportunities

For each plugin (or focused plugin), evaluate skills and commands against these criteria:

Context Isolation (Primary Value)

Operations that produce verbose output benefiting from isolation:

IndicatorExamples
Build toolsdocker build, cargo build, webpack, tsc
Infrastructure opsterraform plan/apply, kubectl describe
Test runnersFull test suite output, coverage reports
Profiling toolsFlame graphs, benchmark results
Security scannersVulnerability reports, audit output
Log analysisApplication logs, system logs
Package managersDependency trees, audit results
Constraint Enforcement

Operations that should be limited to specific tools:

ConstraintRationale
Read-only analysisSecurity audit, code review - no writes
No networkPure code analysis tasks
Limited bashTasks that shouldn't execute arbitrary commands
Model: By Task Shape

Pick the model by task shape (.claude/rules/agent-development.md § "Model Selection for Agents"): opus for judgement work, sonnet with an explicit effort: for bounded work whose done check fits in one sentence, haiku only as a lean read-only reader whose output a stronger stage checks. A subagent's output re-enters the main loop as a tool result, so a weaker model's output needs a check. Recommend moving an existing agent off opus only with a measurement behind it; otherwise dial effort down on the current model.

Audit findingRecommendation
Agent file declares model: opus or fableOK — no change
Agent file declares sonnet with an explicit effort:, and its Scope is bounded and checkedOK — no change
Agent file declares sonnet for judgement work (review, audit, multi-file edits, untrusted input)Flag it — recommend model: opus
Agent file declares haiku outside the lean read-only shape, or inherit, or omits model:Flag it — the lint rejects these; recommend an explicit tier
Agent file's Scope describes mechanical/high-volume work but sets no effort:Recommend effort: low (advisory — not lint-enforced)

scripts/check-agent-model.sh enforces the tier shapes: sonnet needs an explicit effort:, and haiku is accepted only as a lean read-only reader (omitClaudeMd: true, Read/Grep/Glob tools, explicit effort). Whether an agent's job fits its tier is this audit's judgement, not the lint's; see .claude/rules/agent-development.md § "Model Selection for Agents".

Step 3: Gap Analysis

Compare identified opportunities against existing agents:

  1. Missing agents: Skills that have no corresponding agent
  2. Tier mismatches: An agent whose model does not fit its task shape (judgement work below opus, or a tier shape the lint rejects)
  3. Tool over-permissions: Agents with tools they don't need
  4. Consolidation opportunities: Multiple agents that could be merged
  5. Delegation mapping: Check if /delegate references agents that don't exist

Step 4: Produce Recommendations

For each recommended new agent, specify:

### Proposed: <agent-name>

- **Model**: <tier> — `opus` by default; `sonnet` + explicit `effort:` only for bounded, checked work
- **Covers plugins**: <list>
- **Context value**: <what verbose output it isolates>
- **Tools**: <minimal set>
- **Constraint**: <read-only, no-network, etc.>
- **Priority**: HIGH | MEDIUM | LOW
- **Rationale**: <why this is better than inline execution>

For model/tool corrections to existing agents:

### Fix: <agent-name>

- **Current model**: <model> → **Recommended**: <tier>
- **Reason**: <why the tier fits the task shape — e.g. judgement work moved back to opus>

Step 5: Implementation Check

If new agents are recommended, check:

  • Agent name doesn't conflict with existing
  • Agent fills a gap referenced by /delegate command
  • Model fits the task-shape tier (opus by default; sonnet + explicit effort: only for bounded, checked work)
  • Tool set is minimal (principle of least privilege)
  • Agent has clear "does / does NOT do" boundaries

Output Format

## Sub-Agent Analysis Report

**Scope**: [All plugins | focused plugin name]
**Date**: [today]
**Plugins analyzed**: N
**Existing agents**: N
**Skills without agent coverage**: N

### Current Coverage Map

| Domain | Agent | Skills Covered | Gaps |
|--------|-------|----------------|------|
| ... | ... | ... | ... |

### Recommended New Agents

[Proposals from Step 4]

### Recommended Fixes

[Model/tool corrections from Step 4]

### Delegation Mapping Updates

[Any updates needed for /delegate command's agent reference table]

### Priority Summary

| Priority | Count | Top Recommendation |
|----------|-------|-------------------|
| HIGH | N | ... |
| MEDIUM | N | ... |
| LOW | N | ... |

Post-Actions

After presenting the analysis:

  1. Ask the user if they want to implement any of the recommendations
  2. If yes, create the agent files following the existing patterns in agents-plugin/agents/
  3. Update agents-plugin/README.md with new agents
  4. Update /delegate command's agent reference table if needed

Readme

agents-plugin

Task-focused agents following 12-factor agent principles. Each agent completes a bounded task (3-20 steps) and can operate as a teammate (parallel, communicating) or subagent (focused, isolated).

Flow

See docs/flow.md for a diagram of how attribute-router delegates to the domain agents.

Agents

Every agent except lean-reader runs on opus; lean-reader runs on haiku — see Model Selection.

AgentModelPurposeTeam Role
attribute-routeropusRoute to domain agents by codebase-health attributesSubagent — delegates to specialists by severity
testopusWrite and run testsEither — parallel test suites as teammate, focused testing as subagent
reviewopusCode review, commit review, PR reviewTeammate preferred — parallel security/performance/correctness review
debugopusDiagnose and fix bugsEither — parallel investigation as teammate, single fix as subagent
docsopusGenerate documentationTeammate preferred — parallel doc generation across modules
ciopusFull CI/CD scaffold (multi-workflow buildout)Subagent — delegate a from-scratch pipeline; edit single workflows inline
security-auditopusVulnerability scanning, OWASP analysisTeammate preferred — continuous audit alongside development
refactoropusCode restructuring, SOLID improvementsEither — parallel refactoring with file-locking as teammate
dependency-auditopusCVE scanning, outdated packages, licensesSubagent preferred — quick focused audit
researchopusAPI docs, framework evaluation, best practicesTeammate preferred — parallel research alongside implementation
performanceopusProfiling, bottleneck identification, benchmarksSubagent preferred — verbose profiling isolated
search-replaceopusCross-platform search and replaceSubagent preferred — focused bounded replacement task
lean-readerhaikuContext-free read-only extraction and classification against a self-contained briefSubagent — workflow agentType for mechanical fan-out stages

Team Roles

Each agent includes a ## Team Configuration section documenting when to use it as a teammate vs subagent:

RoleWhen to Use
TeammateTask benefits from parallel execution and inter-agent communication via shared task list
SubagentTask is focused, short, and produces a single isolated result

Recommended Roles

Best as TeammateBest as SubagentEither
review, security-audit, research, docsdependency-audit, performance, search-replace, ci, lean-readertest, debug, refactor

Design Principles

  • Task-oriented: Each agent maps to a real user request
  • Complete the job: Agents finish what they start
  • Small scope: 3-20 steps per task
  • Report before the limit: Each agent sets maxTurns and carries a ## Turn Budget section: at about 80% of the budget it stops investigating and delivers its report, marking unfinished areas as not verified. A run cut off at the limit returns nothing (#3152), so size briefs to the agent's limit and split large ones (scripts/check-agent-turn-budget.sh enforces the section)
  • Generic + Skills: Expertise lives in skills, agents are task runners
  • Context isolation: Verbose output stays in agent, only summaries return
  • Team-aware: Each agent documents its optimal team role

Model Selection

Every agent except lean-reader runs on opus. The repo picks models by task shape: opus for judgement work, sonnet with an explicit effort for bounded and checkable work, haiku for a lean reader checked downstream. A subagent's output re-enters the main loop as a tool result, so a weaker model's output needs a check. Moving an agent here off opus waits on a measurement (#3116); until then effort: is the cost lever. The lint scripts/check-agent-model.sh enforces the tier shapes. See .claude/rules/agent-development.md § "Model Selection for Agents".

lean-reader is the exception, and the guard admits it only in this shape: Haiku 5.5, omitClaudeMd: true, tools limited to Read/Grep/Glob, and an explicit effort. Its first request is about 3k tokens. A default subagent starts at about 124k, carrying the CLAUDE.md + rules chain and every tool schema including the skill listing. The lean reader is meant for stages whose brief carries the whole job and whose output a schema or an Opus stage checks. It is not for edits, commands, or anything the main loop acts on unchecked. See .claude/rules/agent-development.md § "Lean subagents".

Usage

Agents are invoked automatically based on task context or explicitly via agent routing.

Examples

"Write tests for the auth module" → test agent
"Review this PR" → review agent
"This endpoint is returning 500" → debug agent
"Document the API" → docs agent
"Scaffold a full CI/CD pipeline from scratch" → ci agent
"Check for security vulnerabilities" → security-audit agent
"Clean up this class, it's too complex" → refactor agent
"Check for vulnerable dependencies" → dependency-audit agent
"How does the Stripe API handle pagination?" → research agent
"The API endpoint is slow, find the bottleneck" → performance agent
"Replace oldFunction with newFunction across the codebase" → search-replace agent

In a workflow script, use the lean reader as a stage's agentType:

const parsed = await agent(BRIEF_WITH_RUBRIC_AND_FILES, {
  label: 'parse', agentType: 'agents-plugin:lean-reader',
  model: 'haiku', effort: 'medium', schema: SCHEMA,
})

Details

Marketplace
laurigates/claude-plugins
Source
agents-plugin
Author
Lauri Gates
Category
Ai
License
MIT
Keywords
agents, teammates, subagents, testing, code-review, debugging, documentation, ci-cd
Listed since
Apr 7, 2026

More from laurigates/claude-plugins

All 52

Similar to agents-plugin

More Agent Workflow & Planning