Back to Skills

subagent-generator

Generates custom Claude Code subagents with specialized expertise. Activates when user wants to create a subagent, specialized agent, or task-specific AI assistant. Creates properly formatted .md files with YAML frontmatter, suggests tool restrictions and model selection, generates effective system prompts. Use when user mentions "create subagent", "new agent", "specialized agent", "task-specific agent", or wants isolated context for domain-specific work.

3starsUpdated 3/19/2026

Security Assessment

Safe(100/100)
Security Score100/100

About subagent-generator

The subagent-generator skill is a specialized assistant designed to help users create custom Claude Code subagents with domain-specific expertise. It simplifies the process of generating subagents by guiding users through the creation of a properly formatted .md file with YAML frontmatter, selecting appropriate tools, suggesting model options, and generating system prompts. The subagents created are tailored to specific tasks, ensuring that users can have a focused AI assistant to handle specialized work in an isolated context. This skill solves the problem of creating efficient, task-oriented subagents for various domains without needing manual formatting or in-depth technical knowledge of subagent architecture.

The main features of the subagent-generator skill include the ability to define a subagent’s name, description, model selection, tool access, and storage location. It also generates clear, actionable system prompts to ensure that the subagents are aligned with the task at hand. Users can specify domain/purpose, select tool restrictions based on the task, and choose the most appropriate model (Sonnet, Opus, or Haiku) for their needs. The skill supports a straightforward workflow for creating specialized agents, with intelligent inferences and recommendations for the appropriate tools and models.

Target users for this skill include developers, data analysts, security professionals, and other individuals who need to automate specialized tasks using AI subagents. Use cases include code reviews, debugging, writing tests, documentation, data analysis, security audits, and more. The subagent-generator skill provides a flexible and efficient way to build customized assistants without requiring deep technical knowledge, making it accessible to both technical and non-technical users.

FAQ

How do I create a subagent using this skill?

To create a subagent, specify the task's domain and purpose, provide a name, select any necessary tool restrictions, choose an appropriate model (if needed), and decide on the storage location. The skill will automatically generate a .md file with YAML frontmatter and system prompts based on your inputs.

Can I modify the tools a subagent has access to?

Yes, you can customize the tool access for each subagent based on the task. The skill will suggest a default set of tools, but you can add or remove tools as needed. Full access is possible by omitting the 'tools' field.

Which models can I choose for the subagents?

The available models are Sonnet (default), Opus, and Haiku. Sonnet is used for balanced tasks, Opus for complex reasoning, and Haiku for fast, simple tasks. The model selection is based on the complexity of the task.

What are the limitations of this skill?

This skill requires an understanding of the task's domain in order to generate effective subagents. It is best suited for creating task-specific agents, and may not be ideal for broader, more generalized AI tasks.

Is there any specific storage requirement for subagents?

Subagents can be stored in two locations: a project directory (.claude/agents/) or a user directory (~/.claude/agents/). You can choose the appropriate location based on your workflow.

Install subagent-generator

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill