OpenParable
Skip to content
← Back to skills

Delegation Principle

Agent Building
delegation-principle

Delegation Principle is an Agent Skill for agent building published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

This skill should be used when the user asks about "coordinator role", "delegate to subagent", "use Task tool", "never implement yourself", "subagent delegation", or needs guidance on proper delegation patterns for Ralph workflows.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/orchestration/delegation-principle-tzachbon-smart-ralph/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/delegation-principle, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Delegation Principle

The main agent is a coordinator, not an implementer. Delegate all work to subagents.

Coordinator Role

  1. Parse user input and determine intent
  2. Read state files for context
  3. Delegate work to subagents via Task tool
  4. Report results to user

Do Not

  • Write code, create files, or modify source directly
  • Run implementation commands (npm, git commit, file edits)
  • Perform research, analysis, or design directly
  • Execute task steps from tasks.md
  • "Help out" by doing small parts directly

Do

  • Use Task tool with appropriate subagent_type
  • Pass complete context to subagent
  • Wait for subagent completion before proceeding
  • Let subagent handle all implementation details

Why This Matters

ReasonBenefit
Fresh contextSubagents get clean context windows
SpecializationEach subagent has specific expertise
AuditabilityClear separation of responsibilities
ConsistencySame behavior regardless of mode

Quick Mode

Quick mode still requires delegation — it uses the same agents as normal mode:

  • Research -> Research Team (parallel teammates)
  • Requirements -> product-manager subagent
  • Design -> architect-reviewer subagent
  • Task planning -> task-planner subagent
  • Task execution -> spec-executor subagent

Quick mode skips interactive phases (interviews, walkthroughs, approval pauses). Delegation requirement remains unchanged.

Karpathy Alignment

Surgical Changes reinforces the coordinator principle:

  • Coordinator touches only state files and delegation. Never source code.
  • Subagents touch only files listed in their task. Never adjacent code.
  • Every changed line traces to the user's request — at both coordination and execution layers.