creating-subagents

Create and manage project-specific Claude Code sub-agents with YAML frontmatter.

4|Updated Dec 11, 2025
One-click install
npx skills add https://github.com/tomada1114/tomada-claude-plugins --skill creating-subagents-tomada1114
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: creating-subagents
Source: https://github.com/tomada1114/tomada-claude-plugins/tree/main/claude-dev-kit/skills/creating-subagents
Command: npx skills add https://github.com/tomada1114/tomada-claude-plugins --skill creating-subagents-tomada1114

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill guides teams through building and refining project-specific Claude Code sub-agents, enabling consistent automation patterns and faster onboarding.

Core Features & Use Cases

  • Create new sub-agents (agent-name.md) with YAML frontmatter (name, description, tools, model, color) and a clear system prompt.
  • Update existing sub-agents to reflect evolving project conventions, CLAUDE.md integration, and activation rules.
  • Understand and apply activation strategies (including examples and test prompts) to improve reliability and activation rate.

Quick Start

  • Create a new file at your-project/.claude/agents/your-agent.md with the proper frontmatter and a starter system prompt.
  • Test activation by invoking a sample request and verify the agent is suggested/used appropriately.

Frequently Asked Questions about creating-subagents

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a project-specific Claude Code sub-agent?▼

Create a sub-agent by adding a new .md file to your-project/.claude/agents/ with YAML frontmatter (name, description, tools, model, color) and a system prompt. Deploy the file and test activation with a sample request to verify the agent is suggested appropriately.

What is YAML frontmatter in sub-agents and why does it matter?▼

YAML frontmatter defines sub-agent metadata—name, description, tools, model, and color. It ensures integrity and consistency across project-deployed agents, enabling reliable activation rules and CLAUDE.md integration for automation workflows.

How do I test if my sub-agent activates correctly?▼

Invoke a sample request matching your agent's intended use case and verify it's suggested or used appropriately. Test prompts help validate activation strategies and improve the agent's reliability and activation rate.

Can I update an existing sub-agent to reflect project convention changes?▼

Yes. Modify the existing agent file in .claude/agents/ to update its frontmatter, system prompt, activation rules, and CLAUDE.md integration. Re-test activation to ensure changes align with evolving project standards.

What activation strategies improve sub-agent suggestion rates?▼

Activation strategies define conditions triggering agent use. Include clear examples and test prompts in your agent definition to refine reliability. Better-defined activation rules increase the likelihood the agent is suggested in relevant contexts.

Do I need existing Claude Code templates to build sub-agents?▼

No templates are required as dependencies. Sub-agents are built from scratch with custom frontmatter and system prompts tailored to your project. Consistent patterns across agents improve onboarding and automation reliability.