name: implement-sub-agents description: Create and validate Claude sub-agent definitions with correct frontmatter, tool permissions, and delegation boundaries.
Implement Sub-Agents
Create or update agent files under agents/ with explicit role boundaries, model/tool settings, and delegation patterns.
Workflow
- Define the sub-agent role and scope boundaries.
- Author/update agent markdown with valid frontmatter.
- Set tool/model/permission configuration based on least privilege.
- Validate frontmatter and basic agent file shape.
- Connect with related skills/hooks only when required.
Progressive Disclosure
Agent frontmatter rules:
references/subagent-frontmatter.mdTool access strategy:
references/subagent-tools.mdModel selection guidance:
references/subagent-models.mdPermission boundaries:
references/subagent-permissions.mdDelegation patterns:
references/subagent-delegation.mdAgent file validator:
scripts/validate-subagent.shFrontmatter checker:
scripts/check-subagent-frontmatter.shBase sub-agent template:
assets/templates/subagent-template.mdRead-only sub-agent example:
assets/templates/subagent-readonly.mdSub-agent with skills example:
assets/templates/subagent-with-skills.mdSub-agent with hooks example:
assets/templates/subagent-with-hooks.md
Related Skills
- Umbrella routing and architecture:
../implement-claude-extensions/SKILL.md - Agent team coordination:
../implement-agent-teams/SKILL.md