create-subagent

Create Claude Code subagent templates with YAML frontmatter and tool configurations.

20|1|Updated Sep 30, 2025
One-click install
npx skills add https://github.com/ronnycoding/.claude --skill create-subagent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-subagent
Source: https://github.com/ronnycoding/.claude/tree/main/skills/create-subagent
Command: npx skills add https://github.com/ronnycoding/.claude --skill create-subagent

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill empowers you to create highly specialized AI assistants, allowing Claude to delegate complex, domain-specific tasks to experts, saving you time and ensuring higher quality outputs.

Core Features & Use Cases

  • Custom AI Expertise: Define specialized subagents with focused knowledge areas (e.g., "database-optimizer," "security-auditor").
  • Model & Tool Control: Assign specific Claude models (Haiku, Sonnet, Opus) and restrict tool access for each subagent.
  • Automatic Delegation: Claude autonomously invokes the most relevant subagent based on your task, streamlining complex workflows.
  • Use Case: Create a "test-runner" subagent optimized for speed and accuracy in test execution and failure analysis, automatically invoked whenever you mention running tests or fixing test failures.

Quick Start

Create a new subagent named code-reviewer that specializes in modern AI-powered code analysis and security vulnerabilities.

Frequently Asked Questions about create-subagent

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

FAQPage Schema
How do I create specialized AI agents for specific tasks?

Create specialized AI agents by defining subagent templates with YAML frontmatter, system prompts, and tool configurations. Specify the agent's name, description, assigned Claude model, and restricted tool access to focus expertise on domain-specific tasks like code review, testing, or security auditing.

Can I assign different Claude models to different agents?

Yes, you can assign specific Claude models—Haiku, Sonnet, or Opus—to each subagent based on task complexity and performance requirements. Model selection lets you optimize for speed, cost, or reasoning depth for each specialized agent.

What's the best way to set up agent orchestration with Claude?

Agent orchestration works by defining specialized subagents with focused expertise, then allowing Claude to autonomously invoke the most relevant agent based on your task. Claude delegates to the right specialist, streamlining complex workflows without manual routing.

How do I control which tools a subagent can access?

Restrict tool access per subagent through configuration settings in the YAML frontmatter and system prompt sections. Limiting tools to domain-relevant ones prevents misuse, reduces token consumption, and ensures each agent stays focused on its specialized purpose.

Do I need prior agent experience to build custom assistants?

No prerequisites required. This Skill provides templates with required fields (name, description) and optional model/tool settings, enabling you to build custom agents regardless of prior agent-building experience. Best-practice descriptions guide implementation.

When should I create a subagent instead of using Claude directly?

Create a subagent when you need sustained expertise in a narrow domain—like test execution, security review, or database optimization—where delegation improves quality and saves time. Subagents excel when tasks recur or require consistent tool restrictions.