From plugin-factory
Add a new subagent to an existing Claude Code plugin. Use when user wants to create an agent.
How this skill is triggered — by the user, by Claude, or both
Slash command
/plugin-factory:skills/add-agentThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are adding a new subagent to a Claude Code plugin. Agents are specialized Claude personas that can be spawned via the Task tool. Follow these steps:
You are adding a new subagent to a Claude Code plugin. Agents are specialized Claude personas that can be spawned via the Task tool. Follow these steps:
Ask the user for:
code-reviewer)<plugin>/agents/<agent-name>.md
Note: Agents are .md files directly in the agents/ folder (not subdirectories like skills).
Use this format:
---
description: <brief description of agent's specialty>
capabilities: [<capability1>, <capability2>, ...]
---
# <Agent Name>
<Overview of what this agent does>
## When to Invoke
Use this agent when:
- <Trigger condition 1>
- <Trigger condition 2>
## Capabilities
- <Detailed capability 1>
- <Detailed capability 2>
## Process
1. <How the agent approaches tasks>
2. <Steps it follows>
## Guidelines
- <Behavioral guideline 1>
- <Behavioral guideline 2>
Available frontmatter fields:
description (required): Brief description for agent selectioncapabilities: Array of capability tagsnpx claudepluginhub nrempel/claude-plugins --plugin plugin-factoryGuides creation of autonomous agents for Claude Code plugins, covering Markdown file structure, YAML frontmatter (name, description, model, color, tools), system prompts, triggering examples, and best practices.
Creates Claude Code agents with YAML frontmatter for name, description, tools, model selection, and color. Use when adding specialized agents to plugins.
Generates markdown agent files with YAML frontmatter for Claude Code, configuring system prompts, tools, and isolation for autonomous task delegation in plugins.