一键导入
task-delegation
Project-agnostic skill for delegating execution work to subagents with skill activation, parallel execution, and quality verification.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Project-agnostic skill for delegating execution work to subagents with skill activation, parallel execution, and quality verification.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Systematic code review guidance covering correctness, maintainability, security, and performance. Activates for PR reviews and code quality checks.
Audience-first documentation guidance for READMEs, API docs, architecture docs, and tutorials. Ensures clarity, completeness, and maintainability.
Defines the technical lead role for main thread in agentic coding workflows - planning, delegation, coordination, and quality oversight
Comprehensive testing guidance covering test planning, TDD workflow, testing pyramid, and coverage targets. Ensures confidence through layered testing.
| name | task-delegation |
| description | Project-agnostic skill for delegating execution work to subagents with skill activation, parallel execution, and quality verification. |
Plan → Create Task → Design Approach → Delegate → Review → Commit
Main Thread (You): Planning, architecture, coordination, review, user communication Subagents: Execution of well-defined work items with clear outputs
✅ Always delegate:
✅ Benefits:
❌ Never delegate:
Choose model based on task complexity and cost optimization:
| Task Type | Model | Rationale |
|---|---|---|
| Simple mechanical work | Haiku | Cost-efficient; Skills compensate for smaller model |
| Research compilation | Haiku | Search and compile work; Skills enforce quality |
| Structured writing | Sonnet | Balance capability/cost; structured output |
| Technical analysis | Sonnet | Synthesis required beyond Haiku capability |
| Deep critique | Opus | Maximum analytical insight needed |
| Complex synthesis | Opus | Scholarly rigor, philosophical depth, 10K+ word expansion |
Cost Optimization Principle: Use smallest model capable of task with Skills active. Skills elevate Haiku/Sonnet to achieve quality standards previously requiring larger models.
How to Assign:
assignee field in Backlog (if project uses task assignment)model='haiku' or model='opus'Skills activate automatically when task description contains trigger keywords.
Pattern: [Action] + [Skill Trigger] + [Context]
Examples:
# Activates essay-research-compilation skill
"Compile comprehensive research for Essay 11 (Step 1)"
# Activates essay-first-draft skill
"Write first draft for Essay 11 based on research.md (Step 2)"
# Activates essay-critique skill
"Create comprehensive critique for Essay 11 draft (Step 3)"
Trigger Keywords by Skill Type:
Best Practices:
After delegating, check subagent's initial response for Skill confirmation.
Positive Confirmation:
"Using essay-research-compilation Skill to guide research compilation..."
"Activating essay-first-draft Skill for structured writing..."
If Skill Did NOT Activate:
.claude/skills/ directoryWhy Activation Matters: Skills provide comprehensive templates, examples, and verification checklists. Without activation, subagent lacks guidance that prevents common errors.
# Create parent task
task_create(title, description, acceptanceCriteria, assignee=['model-name'])
# Create subtasks with dependencies
task_create(title, description, parentTaskId='parent-id', assignee=['haiku'])
# Single delegation
Task tool with:
- Clear description (triggers Skills)
- Model specification (haiku/sonnet/opus)
- Reference to input files
- Expected output format
# Parallel delegation (independent tasks)
Multiple Task tool calls in single message:
- Task 1: "Research Essay 3 (Step 1)" → haiku
- Task 2: "Research Essay 5 (Step 1)" → haiku
- Task 3: "Research Essay 10 (Step 1)" → haiku
git commit -m "[task-id] Brief description
Detailed explanation of what was completed."
Update task with commit reference:
task_edit(id='task-id', notesAppend=['Completed in commit abc123'])
Pattern: Launch multiple subagents for independent tasks in single message.
When to Use:
Example:
# Single message with 3 parallel Task tool calls:
Task 1: "Research Essay 3 Data Readiness (Step 1)" model=haiku
Task 2: "Research Essay 5 Technical Debt (Step 1)" model=haiku
Task 3: "Research Essay 10 Infrastructure (Step 1)" model=haiku
Benefits:
Dependency Modeling: If Task B depends on Task A output, run sequentially:
Verification Checklist:
Completeness:
Skill Adherence:
Format:
Scope:
If Quality Insufficient:
Common Issues and Fixes:
| Issue | Root Cause | Fix |
|---|---|---|
| Skill didn't activate | Missing trigger keywords | Redelegate with "Step X" or skill name in description |
| Output missing required sections | Unclear acceptance criteria | Add specific checklist to task description |
| Scope creep | Vague task description | Define exact input files and output format |
| Wrong model used | Model not specified | Explicitly set model parameter in Task tool |
| Quality below standard | Skill verification skipped | Review against Skill checklist, return specific sections |
Escalation Pattern:
Well-delegated task produces:
Signs of poor delegation:
Delegation Decision Tree:
Is this execution work >5 min? → NO → Do in main thread
↓ YES
Is scope well-defined? → NO → Plan first, then delegate
↓ YES
Can it run in parallel? → YES → Launch multiple subagents
↓ NO
Does it depend on other work? → YES → Wait for dependency
↓ NO
Delegate with:
- Clear description (trigger Skills)
- Model assignment (haiku/sonnet/opus)
- Input files referenced
- Output format specified
Model Selection:
Parallel Pattern:
Review Pattern: