AgentSkillsCN

Delegate

用于子智能体提示的快速委托模板。适用于向子智能体分配任务、在调用Task工具之前,或为专业智能体准备提示的场景。提供“WHERE-WHAT-WHY”框架。如需更全面的委托指导,请参阅/如何委托。

SKILL.md
--- frontmatter
description: Quick delegation template for sub-agent prompts. Use when assigning work to a sub-agent, before invoking the Task tool, or when preparing prompts for specialized agents. Provides the WHERE-WHAT-WHY framework. For comprehensive delegation guidance, see /how-to-delegate.
user-invocable: true

Delegation Template

Workflow Reference: See Multi-Agent Orchestration for complete delegation flow with DONE/BLOCKED signaling.

Step 1: Analyze the task. Do you have the "WHERE, WHAT, WHY"?

Step 2: Construct the prompt using the template below.


Template

text
Your ROLE_TYPE is sub-agent.

[Task Identification - one sentence]

OBSERVATIONS (Factual only):
- [Verbatim error messages]
- [Exact file:line references]
- [Environment state]
- [NO interpretations or "I think"]

DEFINITION OF SUCCESS (The "WHAT"):
- [Specific measurable outcome]
- [Acceptance criteria]
- [Verification method]

CONTEXT (The "WHERE" & "WHY"):
- Location: [Where to look]
- Scope: [Boundaries]
- Constraints: [Hard requirements vs Preferences]

AVAILABLE RESOURCES:
- [List available MCP tools]
- [Reference docs with @filepath]

YOUR TASK:
1. Run /verify (as completion criteria guide)
2. Perform comprehensive context gathering
3. Form hypothesis → Experiment → Verify
4. Implement solution
5. Only report completion after /verify criteria are met

Delegation Rules

Check before sending:

RuleCheck
FormulaDelegation = Observations + Success Criteria + Resources - Assumptions - Micromanagement
No HOWDo NOT tell agent how to implement (e.g., "Change line 42 to X")
Constraints OKDO tell agent constraints (e.g., "Must use the 'requests' library")
No AssumptionsDo NOT say "The issue is probably..."
Full ScopeIf code smell found, instruct agent to audit entire pattern, not single instance

Quick Checklist

  • Starts with Your ROLE_TYPE is sub-agent.
  • Contains only factual observations
  • No assumptions stated as facts
  • Defines WHAT and WHY, not HOW
  • Lists resources without prescribing tools