Codebase Understanding & Onboarding
Compatible with Claude Code, Cursor, Windsurf, Cline, Roo Code, Antigravity

Subagent Task Delegation & Verification Protocol

Prompt orchestrating agents to delegate subtasks to child agents with strict verification gates and bounded context.

SubagentsOrchestrationAI AgentsClaude CodeAutomation
Skill Objective

Orchestrate multi-agent workflows by delegating isolated subtasks to child agents with strict file boundaries, read-only context constraints, and self-verification test gates.

Execution Workflow Procedure

Ordered steps the coding agent executes when performing this skill.

1

Define Strict File Boundaries

Specify the exact list of allowed files to modify, preventing child agents from making unintended edits to external files.

2

Provide Read-Only Reference Context

Supply paths to existing utilities and types for the subagent to reuse rather than reinvent.

3

Enforce Self-Verification Commands

Mandate that the subagent run automated test and compiler verification commands before returning.

4

Require Structured Return Report

Format the completion report with changed files, verification output, and follow-up notes for the orchestrator.

Agent Safety Guardrails & Anti-Hallucination Rules

  • DO NOT give child subagents unbounded repository write permissions.
  • DO NOT accept delegated task completion without verified test command output.

Expected Output Format

Structured prompt ready to launch a child agent.

🎯 Subtask Objective & Boundaries: Goal, allowed files, and read-only context.
⚡ Verification Commands: CLI command required to verify task.

Domain Verification Checks

Strict File Isolation: Restricts subagent edits to target files only.
Verification Gate: Demands zero-error build/test command execution.
Structured Return Report: Provides clear summary for parent orchestrator.

Example Agent Invocations

"Delegate the implementation of the Base64 encoder component to a child agent with strict file boundaries."
"Orchestrate a subagent to write unit tests for the BillingService and verify that npm test passes."

Install / Configure This Skill

# Place in .cursorrules or create .cursor/rules/subagent-task-delegation-protocol.mdc
# Trigger: Whenever you perform subagent task delegation & verification protocol

---
name: subagent-task-delegation-protocol
description: Delegate isolated subtasks to child agents with strict context boundaries, read-only references, and verification gates.
version: 1.0.0
compatibility: [Claude Code, Cursor, Windsurf, Cline, Roo Code, Antigravity]
---

# Subagent Task Delegation & Verification Protocol

## Objective
Orchestrate autonomous subagents with strict file access boundaries, verified test gates, and structured completion reporting.

## Workflow
1. **Boundary Definition**: Specify exact allowed files to modify and read-only context files.
2. **Task Specification**: Define the objective, types to reuse, and style guidelines.
3. **Verification Command**: Require the child agent to run tests and return verified output.
Complementary Agent Prompt

Need a quick one-time prompt for chat?

Try the Subagent Task Delegation & Verification Prompt — a lightweight version designed for 1-click copying directly into Claude, ChatGPT, or Cursor chat.

View Prompt

SprintKit Workflow Integrations

Complementary tools and checklists to pair with this agent workflow.

Related Agent Skills

Explore related procedural workflows in this discipline.

All Skills

Jira User Story to Vertical-Slice Implementation Loop

Transform Jira user stories and acceptance criteria into vertically sliced, test-backed code implementations.

ImplementationJiraFull-Stack+2
4 workflow stepsView skill

Cursor & Windsurf Rules Project Constitution Generator

Generate custom, context-rich project rules (.cursorrules / .windsurfrules) that stop agents from making recurring mistakes.

CursorWindsurfAI Agents+2
3 workflow stepsView skill

Multi-File Codebase Architectural Onboarding & Dependency Map

Prompt an agent to analyze an unfamiliar codebase and deliver an architectural breakdown, data flows, and gotchas.

OnboardingArchitectureAI Agents+2
3 workflow stepsView skill