subagent-builder

Create Claude Code Subagents with isolated contexts and controlled tool access.

2|Updated Nov 6, 2025
One-click install
npx skills add https://github.com/eLafo/ouroboros --skill subagent-builder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: subagent-builder
Source: https://github.com/eLafo/ouroboros/tree/main/skills/subagent-builder
Command: npx skills add https://github.com/eLafo/ouroboros --skill subagent-builder

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Crafting effective Claude Subagents that operate with isolated context and specialized instructions requires careful design. This Skill provides a structured workflow to define, configure, and test your Subagents, ensuring optimal delegation and performance.

Core Features & Use Cases

  • Guided Workflow: Follow a step-by-step process for task scope definition, system prompt design, configuration, and integration testing.
  • System Prompt Mastery: Learn to write focused system prompts that clearly define the Subagent's role, responsibilities, and output format.
  • Tool & Model Selection: Get guidance on selecting the appropriate tools and AI model (Haiku, Sonnet, Opus) for your Subagent's specific tasks.
  • Use Case: When you need a dedicated AI for complex code reviews, ask this Skill to guide you in building a code-reviewer Subagent, ensuring it has the right tools and system prompt for deep analysis.

Quick Start

I want to create a new Claude Subagent for data analysis. Guide me through designing its system prompt and selecting its tools.

Frequently Asked Questions about subagent-builder

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

FAQPage Schema
How do I design a Claude Subagent with the right system prompt and tool access?

Design a Claude Subagent by defining its task scope, writing a focused system prompt that specifies role and output format, selecting appropriate tools (Read, Write, Edit, Bash, Grep, Glob), and choosing the right model (Haiku, Sonnet, Opus). This Skill guides you through each step to ensure isolation and controlled execution.

What tools should I give my Subagent for code analysis and security scanning?

For code analysis and security scanning, equip your Subagent with Read for file access, Grep for pattern matching, Bash for execution, and Edit for modifications. Select tools based on your Subagent's specific task scope to maintain isolation while enabling necessary operations.

How do I test and validate a Subagent before deployment?

Validate your Subagent by testing its system prompt against sample inputs, verifying tool access works as expected, confirming context isolation functions correctly, and running integration tests with your main workflow. This Skill provides validation protocols to catch issues before production use.

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

Create a Subagent when you need isolated context, specialized instructions, or controlled tool access for multi-step tasks like deep code reviews, test generation, or documentation writing. Subagents prevent context pollution and ensure each task runs with its own focused scope and configuration.

Can I use Subagents for complex documentation and data analysis workflows?

Yes, Subagents excel at documentation writing and data analysis by isolating these tasks with their own system prompts and tool selections. Define the task scope, configure appropriate tools, and delegate—your Subagent executes independently with defined responsibilities and output formats.

What model should I choose for my Subagent—Haiku, Sonnet, or Opus?

Choose based on task complexity: Haiku for lightweight, focused tasks; Sonnet for balanced performance on multi-step work; Opus for complex analysis requiring deeper reasoning. This Skill guides model selection aligned with your Subagent's specific responsibilities and performance requirements.

Related Skills