create-subagents
Expert guidance for creating, building, and using Claude Code subagents and the Task tool.
Skill by durandom
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/durandom-create-subagents
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: productivity, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/create-subagents
What's inside
- Skill name
create-subagents- Description
- Expert guidance for creating, building, and using Claude Code subagents and the Task tool. Use when working with subagents, setting up agent configurations, understanding how agents work, or using the Task tool to launch specialized agents.
- License
- GPL-3.0
- Instructions
- 304 lines in SKILL.md · view on GitHub
Files (8)
- SKILL.md
- context-management.md · references/
- debugging-agents.md · references/
- error-handling-and-recovery.md · references/
- evaluation-and-testing.md · references/
- orchestration-patterns.md · references/
- subagents.md · references/
- writing-subagent-prompts.md · references/
SKILL.md (first lines)
<objective> Subagents are specialized Claude instances that run in isolated contexts with focused roles and limited tool access. This skill teaches you how to create effective subagents, write strong system prompts, configure tool access, and orchestrate multi-agent workflows using the Task tool. Subagents enable delegation of complex tasks to specialized agents that operate autonomously without user interaction, returning their final output to the main conversation. </objective> <quick_start> <workflow> 1. Run `/agents` command 2. Select "Create New Agent" 3. Choose project-level (`.claude/agents/`) or user-level (`.claude/agents/`) 4. Define the subagent: - **name**: lowercase-with-hyphens - **description**: When should this subagent be used? - **tools**: Optional comma-separated list (inherits all if omitted) - **model**: Optional (`sonnet`, `opus`, `haiku`, or `inherit`) 5. Write the system prompt (the subagent's instructions) </workflow> <example> ```markdown --- name: code-reviewer description: Expert code reviewer. Use proactively after code changes to review for quality, security, and best practices. tools: Read, Grep, Glob, Bash model: sonnet --- <role> You are a senior code reviewer focused on quality, security, and best practices. </role> <focus_areas> - Code quality and maintainability - Security vulnerabilities - Performance issues - Best practices adherence </focus_areas> <output_format> Provide specific, actionable feedback with file:line references. </output_format> ``` </example> </quick_start> <file_structure> | Type | Location | Scope | Priority | |------|----------|-------|----------| | **Project** | `.claude/agents/` | Current project only | Highest | | **User** | `.claude/agents/` | All projects | Lower | | **Plugin** | Plugin's `agents/` dir | All projects | Lowest | Project-level subagents override user-level when names conflict. </file_structure> <configuration> <field name="name"> - Lowercase letters and hyphens only - Must be unique </field> <field name="description"> - Natural language description of purpose - Include when Claude should invoke this subagent - Used for automatic subagent selection </field> <field name="tools"> - Comma-separated list: `Read, Write, Edit, Bash, Grep` - If omitted: inherits all tools from main thread - Use `/agents` interface to see all available tools </field> <field name="model"> - `sonnet`, `opus`, `haiku`, or `inherit` - `inherit`: uses same model as main conversation - If omitted: defaults to configured subagent model (usually sonnet) </field> </configuration> <execution_model> <critical_constraint> **Subagents are black boxes that cannot interact with users.** Subagents run in isolated contexts and return their final output to the main conversation. They: - ✅ Can use tools like Read, Write, Edit, Bash, Grep, Glob - ✅ Can access MCP servers and other non-interactive tools - ❌ **Cannot use AskUserQuestion** or any tool requiring user interaction - ❌ **Cannot present options or wait for user input** - ❌ **User never sees subagent's intermediate steps** The main conversation sees only the subagent's final report/output. </critical_constraint> <workflow_design> **Designing workflows with subagents:** Use **main chat** for: - Gathering requirements from user (AskUserQuestion) - Presenting options or decisions to user - Any task requiring user confirmation/input - Work where user needs visibility into progress Use **subagents** for: - Research tasks (API documentation lookup, code analysis) - Code generation based on pre-defined requirements - Analysis and reporting (security review, test coverage) - Context-heavy operations that don't need user interaction **Example workflow pattern:** ``` Main Chat: Ask user for requirements (AskUserQuestion) ↓ Subagent: Research API and create documentation (no user interaction) ↓ Main Chat: Review research with user, confirm approach ↓ Subagent: Generate code based on confirmed plan
From durandom/skills, GPL-3.0.
More from durandom/skills
- 0.539score
create-agent-skills
durandom
Expert guidance for creating, writing, building, and refining Claude Code Skills.
SkillCFreshness: C★ 7Claude Code +9 - 0.539score
para
durandom
PARA method for organizing content by actionability (Projects, Areas, Resources, Archive).
SkillCFreshness: C★ 7Claude Code +9 - 0.539score
jira
durandom
Jira issue management using jira-cli.
SkillCFreshness: C★ 7Claude Code +9 - 0.539score
crawl4ai
durandom
Web crawling and data extraction using the crwl CLI.
SkillCFreshness: C★ 7Claude Code +9 - 0.539score
code-mapping
durandom
Creates and navigates hierarchical code maps (L0/L1/L2/L3) for AI agent and human orientation.
SkillCFreshness: C★ 7Claude Code +9 - 0.539score
skill-architect
durandom
Design, audit, and improve Claude Code skills (SKILL.md files).
SkillCFreshness: C★ 7Claude Code - 0.539score
github
durandom
GitHub CLI operations for issues, PRs, reviews, CI, and Copilot workflows.
SkillCFreshness: C★ 7Claude Code +9 - 0.539score
recipes
durandom
Reusable development patterns and guides for AI-assisted workflows.
SkillCFreshness: C★ 7Claude Code +9 - 0.536score
b4brain
durandom
Orchestrates GTD and PARA integration.
SkillCFreshness: C★ 7Claude Code +9 - 0.536score
gtd
durandom
GTD task management with Python CLI.
SkillCFreshness: C★ 7Claude Code +9 - 0.536score
the-day
durandom
Generate daily overview (TODAY.md) with calendar, tasks, weather, and motivational content.
SkillCFreshness: C★ 7Claude Code +9 - 0.534score
cass
durandom
Searches, indexes, and exports Claude Code sessions using the cass CLI (Coding Agent Session Search), and optionally runs the cass-memory (cm) reflection…
SkillCFreshness: C★ 7Claude Code +9
Signals
- Stars
- 7
- Forks
- 3
- Open issues
- 2
- Last commit (this folder)
- Jan 2, 2026 (10 months ago)
- Last release
- May 7, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- GPL-3.0
- Repository
- github.com/durandom/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from durandom
- 0.539score
github
durandom
GitHub CLI operations for issues, PRs, reviews, CI, and Copilot workflows.
SkillCFreshness: C★ 7Claude Code +9 - 0.539score
para
durandom
PARA method for organizing content by actionability (Projects, Areas, Resources, Archive).
SkillCFreshness: C★ 7Claude Code +9 - 0.539score
create-agent-skills
durandom
Expert guidance for creating, writing, building, and refining Claude Code Skills.
SkillCFreshness: C★ 7Claude Code +9 - 0.539score
code-mapping
durandom
Creates and navigates hierarchical code maps (L0/L1/L2/L3) for AI agent and human orientation.
SkillCFreshness: C★ 7Claude Code +9 - 0.539score
recipes
durandom
Reusable development patterns and guides for AI-assisted workflows.
SkillCFreshness: C★ 7Claude Code +9 - 0.539score
skill-architect
durandom
Design, audit, and improve Claude Code skills (SKILL.md files).
SkillCFreshness: C★ 7Claude Code
Cite this page
create-subagents skill. Agent Mart. https://agentmart.dev/skills/durandom-create-subagents (last updated 2026-10-24)