Add a new subagent to an existing Claude Code plugin. Use when user wants to create an agent.
Creates specialized subagents for Claude Code plugins with defined capabilities and triggers.
/plugin marketplace add nrempel/claude-plugin-factory/plugin install nrempel-plugin-factory@nrempel/claude-plugin-factoryThis skill inherits all available tools. When active, it can use any tool Claude has access to.
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 tagsThis skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.