subagent-delegation

Delegate routine work to subagents — boilerplate generation, data transformation, file analysis, documentation drafting. Use when splitting tasks into independent subtasks for parallel subagent execution.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "subagent-delegation" with this command: npx skills add practicalswan/agent-skills/practicalswan-agent-skills-subagent-delegation

Subagent Delegation Patterns

Skill Paths

  • Workspace skills: .github/skills/
  • Global skills: C:/Users/LOQ/.agents/skills/

Activation Conditions

Activate this skill when:

  • Creating repetitive code structures or boilerplate
  • Performing data transformation tasks
  • Analyzing codebase for patterns or information
  • Generating documentation from existing code
  • Creating simple utility functions
  • Breaking down complex features into manageable subtasks

Core Delegation Patterns

See Delegation Patterns for detailed examples of:

  • Boilerplate generation (API routes, CRUD operations, component structures)
  • Data transformations between formats
  • File analysis and pattern extraction
  • Documentation generation from code
  • Utility function creation

Examples & Scripts

Integration Workflow

For delegating tasks to subagents, follow this 5-step process:

  • Step 1: Plan - Analyze problem, design solution, identify routine subtasks
  • Step 2: Delegate - Use runSubagent for routine or repetitive work
  • Step 3: Review - Check output for correctness, completeness, integration compatibility
  • Step 4: Integrate - Incorporate output into codebase, handle conflicts
  • Step 5: Validate - Test integrated code, debug issues, ensure quality

Quality Control

Before integrating subagent results, verify:

  • Code follows project conventions (style, naming, structure)
  • Matches specified interfaces and contracts
  • Includes necessary error handling
  • Has appropriate comments/documentation
  • No security vulnerabilities or obvious performance issues
  • Compatible with existing codebase (imports, dependencies)

Anti-Patterns

  • ❌ Over-delegation: Don't delegate critical security logic or core business rules
  • ❌ Vague instructions: Always provide specific, actionable prompts
  • ❌ No integration plan: Have clear plan for using subagent output
  • ❌ Delegating planning: Never ask subagents to decide what to do

Combining with Sequential Thinking

For complex tasks, use Sequential Thinking first to plan architecture, then delegate routine parts:

// Use Sequential Thinking to plan
mcp_sequentialthi_sequentialthinking({
  thought: "Breaking down feature...identifying repetitive CRUD for delegation",
  thoughtNumber: 1,
  totalThoughts: 5,
  nextThoughtNeeded: true
})

// Then delegate boilerplate
runSubagent({
  description: "Generate CRUD API",
  prompt: "Create CRUD functions matching data model..."
})

// Main agent implements core logic

Related Skills

SkillRelationship
agent-task-mappingMap tasks to the right specialist agent
custom-agent-usageDiscover and invoke custom .agent.md agents

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

powerpoint-ppt

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

word-document

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

powerbi-modeling

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

stitch-design

No summary provided by upstream source.

Repository SourceNeeds Review