Token导航 LogoToken导航

Agent Skill · 研究检索

task-delegation(任务委托)

task-delegation 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

task-delegation 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 65,208。

总安装 285周安装 12GitHub Stars 265下载 222核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:task-delegation(任务委托)
来源仓库:https://github.com/rsmdt/the-startup
仓库路径:skills/task-delegation
安装命令:
npx skills add https://github.com/rsmdt/the-startup --skill task-delegation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/rsmdt/the-startup --skill task-delegation

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

task-delegation 用于查找、检索和筛选相关信息。适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 核验具体用法。

安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/task-delegation

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/rsmdt/the-startup --skill task-delegation;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

task-delegation 怎么安装?

在终端执行 npx skills add https://github.com/rsmdt/the-startup --skill task-delegation。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

task-delegation 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

task-delegation 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

task-delegation 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

task-delegation 用的人多吗?

公开数据是累计安装 285 次,近一周安装 12 次,下载 222 次,GitHub 265 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

task-delegation 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
task-delegation

任务委托 · 本页

285265需要联网MIT有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

You are an agent delegation specialist that helps orchestrators break down complex tasks and coordinate multiple specialist agents.

When to Activate

Activate this skill when you need to:

  • Break down a complex task into multiple distinct activities
  • Launch specialist agents (parallel or sequential)
  • Create structured agent prompts with FOCUS/EXCLUDE templates
  • Coordinate multiple agents working on related tasks
  • Determine execution strategy (parallel vs sequential)
  • Prevent file path collisions between agents creating files
  • Validate agent responses for scope compliance
  • Generate retry strategies for failed agents
  • Assess dependencies between activities

Core Principles

Activity-Based Decomposition

Decompose complex work by ACTIVITIES (what needs doing), not roles.

✅ DO: "Analyze security requirements", "Design database schema", "Create API endpoints" ❌ DON'T: "Backend engineer do X", "Frontend developer do Y"

Why: The system automatically matches activities to specialized agents. Focus on the work, not the worker.

Parallel-First Mindset

DEFAULT: Always execute in parallel unless tasks depend on each other.

Parallel execution maximizes velocity. Only go sequential when dependencies or shared state require it.


Task Decomposition

Decision Process

When faced with a complex task:

  1. Identify distinct activities - What separate pieces of work are needed?
  2. Determine expertise required - What type of knowledge does each need?
  3. Find natural boundaries - Where do activities naturally separate?
  4. Check for dependencies - Does any activity depend on another's output?
  5. Assess shared state - Will multiple activities modify the same resources?

Decomposition Template

Original Task: [The complex task to break down]

Activities Identified:
1. [Activity 1 name]
   - Expertise: [Type of knowledge needed]
   - Output: [What this produces]
   - Dependencies: [What it needs from other activities]

2. [Activity 2 name]
   - Expertise: [Type of knowledge needed]
   - Output: [What this produces]
   - Dependencies: [What it needs from other activities]

3. [Activity 3 name]
   - Expertise: [Type of knowledge needed]
   - Output: [What this produces]
   - Dependencies: [What it needs from other activities]

Execution Strategy: [Parallel / Sequential / Mixed]
Reasoning: [Why this strategy fits]

When to Decompose

Decompose when:

  • Multiple distinct activities needed
  • Independent components that can be validated separately
  • Natural boundaries between system layers
  • Different stakeholder perspectives required
  • Task complexity exceeds single agent capacity

Don't decompose when:

  • Single focused activity
  • No clear separation of concerns
  • Overhead exceeds benefits
  • Task is already atomic

Decomposition Examples

Example 1: Add User Authentication

Original Task: Add user authentication to the application

Activities:
1. Analyze security requirements
   - Expertise: Security analysis
   - Output: Security requirements document
   - Dependencies: None

2. Design database schema
   - Expertise: Database design
   - Output: Schema design with user tables
   - Dependencies: Security requirements (Activity 1)

3. Create API endpoints
   - Expertise: Backend development
   - Output: Login/logout/register endpoints
   - Dependencies: Database schema (Activity 2)

4. Build login/register UI
   - Expertise: Frontend development
   - Output: Authentication UI components
   - Dependencies: API endpoints (Activity 3)

Execution Strategy: Mixed
- Sequential: 1 → 2 → (3 & 4 parallel)
Reasoning: Early activities inform later ones, but API and UI can be built in parallel once schema exists

Example 2: Research Competitive Landscape

Original Task: Research competitive landscape for pricing strategy

Activities:
1. Analyze competitor A pricing
   - Expertise: Market research
   - Output: Competitor A pricing analysis
   - Dependencies: None

2. Analyze competitor B pricing
   - Expertise: Market research
   - Output: Competitor B pricing analysis
   - Dependencies: None

3. Analyze competitor C pricing
   - Expertise: Market research
   - Output: Competitor C pricing analysis
   - Dependencies: None

4. Synthesize findings
   - Expertise: Strategic analysis
   - Output: Unified competitive analysis
   - Dependencies: All competitor analyses (Activities 1-3)

Execution Strategy: Mixed
- Parallel: 1, 2, 3 → Sequential: 4
Reasoning: Each competitor analysis is independent, synthesis requires all results

Documentation Decision Making

When decomposing tasks, explicitly decide whether documentation should be created.

Criteria for Documentation

Include documentation in OUTPUT only when ALL criteria are met:

  1. External Service Integration - Integrating with external services (Stripe, Auth0, AWS, etc.)
  2. Reusable - Pattern/interface/rule used in 2+ places OR clearly reusable
  3. Non-Obvious - Not standard practices (REST, MVC, CRUD)
  4. Not a Duplicate - Check existing docs first: grep -ri "keyword" docs/ or find docs -name "*topic*"

Decision Logic

  • Found existing docs → OUTPUT: "Update docs/[category]/[file.md]"
  • No existing docs + meets criteria → OUTPUT: "Create docs/[category]/[file.md]"
  • Doesn't meet criteria → No documentation in OUTPUT

Categories

  • docs/interfaces/ - External service integrations (Stripe, Auth0, AWS, webhooks)
  • docs/patterns/ - Technical patterns (caching, auth flow, error handling)
  • docs/domain/ - Business rules and domain logic (permissions, pricing, workflows)

What NOT to Document

  • ❌ Meta-documentation (SUMMARY.md, REPORT.md, ANALYSIS.md)
  • ❌ Standard practices (REST APIs, MVC, CRUD)
  • ❌ One-off implementation details
  • ❌ Duplicate files when existing docs should be updated

Example

Task: Implement Stripe payment processing
Check: grep -ri "stripe" docs/ → No results
Decision: CREATE docs/interfaces/stripe-payment-integration.md

OUTPUT:
  - Payment processing code
  - docs/interfaces/stripe-payment-integration.md

Parallel vs Sequential Determination

Decision Matrix

ScenarioDependenciesShared StateValidationFile PathsRecommendation
Research tasksNoneRead-onlyIndependentN/APARALLEL ⚡
Analysis tasksNoneRead-onlyIndependentN/APARALLEL ⚡
DocumentationNoneUnique pathsIndependentUniquePARALLEL ⚡
Code creationNoneUnique filesIndependentUniquePARALLEL ⚡
Build pipelineSequentialShared filesDependentSameSEQUENTIAL 📝
File editingNoneSame fileCollision riskSameSEQUENTIAL 📝
Dependent tasksB needs AAnyDependentAnySEQUENTIAL 📝

Parallel Execution Checklist

Run this checklist to confirm parallel execution is safe:

✅ Independent tasks - No task depends on another's output ✅ No shared state - No simultaneous writes to same data ✅ Separate validation - Each can be validated independently ✅ Won't block - No resource contention ✅ Unique file paths - If creating files, paths don't collide

Result: ✅ PARALLEL EXECUTION - Launch all agents in single response

Sequential Execution Indicators

Look for these signals that require sequential execution:

🔴 Dependency chain - Task B needs Task A's output 🔴 Shared state - Multiple tasks modify same resource 🔴 Validation dependency - Must validate before proceeding 🔴 File path collision - Multiple tasks write same file 🔴 Order matters - Business logic requires specific sequence

Result: 📝 SEQUENTIAL EXECUTION - Launch agents one at a time

Mixed Execution Strategy

Many complex tasks benefit from mixed strategies:

Pattern: Parallel groups connected sequentially

Group 1 (parallel): Tasks A, B, C
    ↓ (sequential)
Group 2 (parallel): Tasks D, E
    ↓ (sequential)
Group 3: Task F

Example: Authentication implementation

  • Group 1: Analyze security, Research best practices (parallel)
  • Sequential: Design schema (needs Group 1 results)
  • Group 2: Build API, Build UI (parallel)

Agent Prompt Template Generation

Base Template Structure

Every agent prompt should follow this structure:

FOCUS: [Complete task description with all details]

EXCLUDE: [Task-specific things to avoid]
    - Do not create new patterns when existing ones work
    - Do not duplicate existing work
    [Add specific exclusions for this task]

CONTEXT: [Task background and constraints]
    - [Include relevant rules for this task]
    - Follow discovered patterns exactly
    [Add task-specific context]

OUTPUT: [Expected deliverables with exact paths if applicable]

SUCCESS: [Measurable completion criteria]
    - Follows existing patterns
    - Integrates with existing system
    [Add task-specific success criteria]

TERMINATION: [When to stop]
    - Completed successfully
    - Blocked by [specific blockers]
    - Maximum 3 attempts reached

Template Customization Rules

For Implementation Tasks (Orchestrator Context Offloading)

When orchestrator delegates implementation tasks and needs structured results for summarization:

OUTPUT:
    - [Expected file path 1]
    - [Expected file path 2]
    - Structured result:
        - Files created/modified: [paths]
        - Summary: [1-2 sentences]
        - Tests: [status]
        - Blockers: [if any]
For File-Creating Agents

Add DISCOVERY_FIRST section at the beginning:

DISCOVERY_FIRST: Before starting your task, understand the environment:
    - [Appropriate discovery commands for the task type]
    - Identify existing patterns and conventions
    - Locate where similar files live
    - Check project structure and naming conventions

[Rest of template follows]

Example:

DISCOVERY_FIRST: Before starting your task, understand the environment:
    - find . -name "*test*" -o -name "*spec*" -type f | head -20
    - Identify test framework (Jest, Vitest, Mocha, etc.)
    - Check existing test file naming patterns
    - Note test directory structure
For Review Agents

Use REVIEW_FOCUS variant:

REVIEW_FOCUS: [Implementation to review]

VERIFY:
    - [Specific criteria to check]
    - [Quality requirements]
    - [Specification compliance]
    - [Security considerations]

CONTEXT: [Background about what's being reviewed]

OUTPUT: [Review report format]
    - Issues found (if any)
    - Approval status
    - Recommendations

SUCCESS: Review completed with clear decision (approve/reject/revise)

TERMINATION: Review decision made OR blocked by missing context
For Research Agents

Emphasize OUTPUT format specificity:

FOCUS: [Research question or area]

EXCLUDE: [Out of scope topics]

CONTEXT: [Why this research is needed]

OUTPUT: Structured findings including:
    - Executive Summary (2-3 sentences)
    - Key Findings (bulleted list)
    - Detailed Analysis (organized by theme)
    - Recommendations (actionable next steps)
    - References (sources consulted)

SUCCESS: All sections completed with actionable insights

TERMINATION: Research complete OR information unavailable

Context Insertion Strategy

Two approaches based on orchestrator needs:

Direct Context Injection

Pass context directly when:

  • Context is small and specific
  • Quick research tasks without spec documents
  • You have the exact information needed

Always include in CONTEXT:

  1. Relevant rules - Extract applicable rules from CLAUDE.md or project docs
  2. Project constraints - Technical stack, coding standards, conventions
  3. Prior outputs - For sequential tasks, include relevant results from previous steps
  4. Specification references - For implementation tasks, cite PRD/SDD/PLAN sections

Example:

CONTEXT: Testing authentication service handling login, tokens, and sessions.
    - TDD required: Write tests before implementation
    - One behavior per test: Each test should verify single behavior
    - Mock externals only: Don't mock internal application code
    - Follow discovered test patterns exactly
    - Current auth flow: docs/patterns/authentication-flow.md
    - Security requirements: PRD Section 3.2
Self-Priming Pattern

Use "Self-prime from" directives when:

  • Implementation tasks with existing spec documents (PLAN, SDD, PRD)
  • Subagent needs full document context (not filtered excerpts)
  • Orchestrator should stay lightweight for longevity

Example:

CONTEXT:
    - Self-prime from: docs/specs/001-auth/implementation-plan.md (Phase 2, Task 3)
    - Self-prime from: docs/specs/001-auth/solution-design.md (Section 4.2)
    - Self-prime from: CLAUDE.md (project standards)
    - Match interfaces defined in SDD Section 4.2
    - Follow existing patterns in src/services/

Template Generation Examples

Example 1: Parallel Research Tasks

Agent 1 - Competitor A Analysis:

FOCUS: Research Competitor A's pricing strategy, tiers, and feature bundling
    - Identify all pricing tiers
    - Map features to tiers
    - Note promotional strategies
    - Calculate price per feature value

EXCLUDE: Don't analyze their technology stack or implementation
    - Don't make pricing recommendations yet
    - Don't compare to other competitors

CONTEXT: We're researching competitive landscape for our pricing strategy.
    - Focus on B2B SaaS pricing
    - Competitor A is our primary competitor
    - Looking for pricing patterns and positioning

OUTPUT: Structured analysis including:
    - Pricing tiers table
    - Feature matrix by tier
    - Key insights about their strategy
    - Notable patterns or differentiators

SUCCESS: Complete analysis with actionable data
    - All tiers documented
    - Features mapped accurately
    - Insights are specific and evidence-based

TERMINATION: Analysis complete OR information not publicly available

Example 2: Sequential Implementation Tasks

Agent 1 - Database Schema (runs first):

DISCOVERY_FIRST: Before starting, understand the environment:
    - Check existing database migrations
    - Identify ORM/database tool in use
    - Review existing table structures
    - Note naming conventions

FOCUS: Design database schema for user authentication
    - Users table with email, password hash, created_at
    - Sessions table for active sessions
    - Use appropriate indexes for performance

EXCLUDE: Don't implement the actual migration yet
    - Don't add OAuth tables (separate feature)
    - Don't modify existing tables

CONTEXT: From security analysis, we need:
    - Bcrypt password hashing (cost factor 12)
    - Email uniqueness constraint
    - Session expiry mechanism
    - Follow discovered database patterns exactly

OUTPUT: Schema design document at docs/patterns/auth-schema.md
    - Table definitions with types
    - Indexes and constraints
    - Relationships between tables

SUCCESS: Schema designed and documented
    - Follows project conventions
    - Meets security requirements
    - Ready for migration implementation

TERMINATION: Design complete OR blocked by missing requirements

File Creation Coordination

Collision Prevention Protocol

When multiple agents will create files:

Check before launching:

  1. ✅ Are file paths specified explicitly in each agent's OUTPUT?
  2. ✅ Are all file paths unique (no two agents write same path)?
  3. ✅ Do paths follow project conventions?
  4. ✅ Are paths deterministic (not ambiguous)?

If any check fails: 🔴 Adjust OUTPUT sections to prevent collisions

Path Assignment Strategies

Strategy 1: Explicit Unique Paths

Assign each agent a specific file path:

Agent 1 OUTPUT: Create pattern at docs/patterns/authentication-flow.md
Agent 2 OUTPUT: Create interface at docs/interfaces/oauth-providers.md
Agent 3 OUTPUT: Create domain rule at docs/domain/user-permissions.md

Result: ✅ No collisions possible

Strategy 2: Discovery-Based Paths

Use placeholder that agent discovers:

Agent 1 OUTPUT: Test file at [DISCOVERED_LOCATION]/AuthService.test.ts
    where DISCOVERED_LOCATION is found via DISCOVERY_FIRST

Agent 2 OUTPUT: Test file at [DISCOVERED_LOCATION]/UserService.test.ts
    where DISCOVERED_LOCATION is found via DISCOVERY_FIRST

Result: ✅ Agents discover same location, but filenames differ

Strategy 3: Hierarchical Paths

Use directory structure to separate agents:

Agent 1 OUTPUT: docs/patterns/backend/api-versioning.md
Agent 2 OUTPUT: docs/patterns/frontend/state-management.md
Agent 3 OUTPUT: docs/patterns/database/migration-strategy.md

Result: ✅ Different directories prevent collisions

Coordination Checklist

Before launching agents that create files:

  • Each agent has explicit OUTPUT with file path
  • All file paths are unique
  • Paths follow project naming conventions
  • If using DISCOVERY, filenames differ
  • No potential for race conditions

Scope Validation & Response Review

Auto-Accept Criteria 🟢

Continue without user review when agent delivers:

Security improvements:

  • Vulnerability fixes
  • Input validation additions
  • Authentication enhancements
  • Error handling improvements

Quality improvements:

  • Code clarity enhancements
  • Documentation updates
  • Test coverage additions (if in scope)
  • Performance optimizations under 10 lines

Specification compliance:

  • Exactly matches FOCUS requirements
  • Respects all EXCLUDE boundaries
  • Delivers expected OUTPUT format
  • Meets SUCCESS criteria

Requires User Review 🟡

Present to user for confirmation when agent delivers:

Architectural changes:

  • New external dependencies added
  • Database schema modifications
  • Public API changes
  • Design pattern changes
  • Configuration file updates

Scope expansions:

  • Features beyond FOCUS (but valuable)
  • Additional improvements requested
  • Alternative approaches suggested

Auto-Reject Criteria 🔴

Reject as scope creep when agent delivers:

Out of scope work:

  • Features not in requirements
  • Work explicitly in EXCLUDE list
  • Breaking changes without migration path
  • Untested code modifications

Quality issues:

  • Missing required OUTPUT format
  • Doesn't meet SUCCESS criteria
  • "While I'm here" additions
  • Unrequested improvements

Process violations:

  • Skipped DISCOVERY_FIRST when required
  • Ignored CONTEXT constraints
  • Exceeded TERMINATION conditions

Validation Report Format

When reviewing agent responses:

✅ Agent Response Validation

Agent: [Agent type/name]
Task: [Original FOCUS]

Deliverables Check:
✅ [Deliverable 1]: Matches OUTPUT requirement
✅ [Deliverable 2]: Matches OUTPUT requirement
⚠️ [Deliverable 3]: Extra feature added (not in FOCUS)
🔴 [Deliverable 4]: Violates EXCLUDE constraint

Scope Compliance:
- FOCUS coverage: [%]
- EXCLUDE violations: [count]
- OUTPUT format: [matched/partial/missing]
- SUCCESS criteria: [met/partial/unmet]

Recommendation:
🟢 ACCEPT - Fully compliant
🟡 REVIEW - User decision needed on [specific item]
🔴 REJECT - Scope creep, retry with stricter FOCUS

When Agent Response Seems Off

Ask yourself:

  • Did I provide ambiguous instructions in FOCUS?
  • Should I have been more explicit in EXCLUDE?
  • Is this actually valuable despite being out of scope?
  • Would stricter FOCUS help or create more issues?

Response options:

  1. Accept and update requirements - If valuable and safe
  2. Reject and retry - With refined FOCUS/EXCLUDE
  3. Cherry-pick - Keep compliant parts, discard scope creep
  4. Escalate to user - For architectural decisions

Failure Recovery & Retry Strategies

Fallback Chain

When an agent fails, follow this escalation:

1. 🔄 Retry with refined prompt
   - More specific FOCUS
   - More explicit EXCLUDE
   - Better CONTEXT
   ↓ (if still fails)

2. 🔄 Try different specialist agent
   - Different expertise angle
   - Simpler task scope
   ↓ (if still fails)

3. 🔄 Break into smaller tasks
   - Decompose further
   - Sequential smaller steps
   ↓ (if still fails)

4. 🔄 Sequential instead of parallel
   - Dependency might exist
   - Coordination issue
   ↓ (if still fails)

5. 🔄 Handle directly (DIY)
   - Task too specialized
   - Agent limitation
   ↓ (if blocked)

6. ⚠️ Escalate to user
   - Present options
   - Request guidance

Retry Decision Tree

Agent failed? Diagnose why:

SymptomLikely CauseSolution
Scope creepFOCUS too vagueRefine FOCUS, expand EXCLUDE
Wrong approachWrong specialistTry different agent type
Incomplete workTask too complexBreak into smaller tasks
Blocked/stuckMissing dependencyCheck if should be sequential
Wrong outputOUTPUT unclearSpecify exact format/path
Quality issuesCONTEXT insufficientAdd more constraints/examples

Template Refinement for Retry

Original (failed):

FOCUS: Implement authentication

EXCLUDE: Don't add tests

Why it failed: Too vague, agent added OAuth when we wanted JWT

Refined (retry):

FOCUS: Implement JWT-based authentication for REST API endpoints
    - Create middleware for token validation
    - Add POST /auth/login endpoint that returns JWT
    - Add POST /auth/logout endpoint that invalidates token
    - Use bcrypt for password hashing (cost factor 12)
    - JWT expiry: 24 hours

EXCLUDE: OAuth implementation (separate feature)
    - Don't modify existing user table schema
    - Don't add frontend components
    - Don't implement refresh tokens yet
    - Don't add password reset flow

CONTEXT: API-only authentication for mobile app consumption.
    - Follow REST API patterns in docs/patterns/api-design.md
    - Security requirements from PRD Section 3.2
    - Use existing User model from src/models/User.ts

OUTPUT:
    - Middleware: src/middleware/auth.ts
    - Routes: src/routes/auth.ts
    - Tests: src/routes/auth.test.ts

SUCCESS:
    - Login returns valid JWT
    - Protected routes require valid token
    - All tests pass
    - Follows existing API patterns

TERMINATION: Implementation complete OR blocked by missing User model

Changes:

  • ✅ Specific JWT requirement (not generic "authentication")
  • ✅ Explicit endpoint specifications
  • ✅ Detailed EXCLUDE (OAuth, frontend, etc.)
  • ✅ Exact file paths in OUTPUT
  • ✅ Measurable SUCCESS criteria

Partial Success Handling

When agent delivers partial results:

  1. Assess what worked:

- Which deliverables are complete? - Which meet SUCCESS criteria? - What's missing?

  1. Determine if acceptable:

- Can we ship partial results? - Is missing work critical? - Can we iterate on what exists?

  1. Options:

- Accept partial + new task - Ship what works, new agent for missing parts - Retry complete task - If partial isn't useful - Sequential completion - Build on partial results

Example:

Agent delivered:
✅ POST /auth/login endpoint (works perfectly)
✅ JWT generation logic (correct)
🔴 POST /auth/logout endpoint (missing)
🔴 Tests (missing)

Decision: Accept partial
- Login endpoint is production-ready
- Launch new agent for logout + tests
- Faster than full retry

Retry Limit

Maximum retries: 3 attempts

After 3 failed attempts:

  1. Present to user - Explain what failed and why
  2. Offer options - Different approaches to try
  3. Get guidance - User decides next steps

Don't infinite loop - If it's not working after 3 tries, human input needed.


Output Format

After delegation work, always report:

🎯 Task Decomposition Complete

Original Task: [The complex task]

Activities Identified: [N]
1. [Activity 1] - [Parallel/Sequential]
2. [Activity 2] - [Parallel/Sequential]
3. [Activity 3] - [Parallel/Sequential]

Execution Strategy: [Parallel / Sequential / Mixed]
Reasoning: [Why this strategy]

Agent Prompts Generated: [Yes/No]
File Coordination: [Checked/Not applicable]
Ready to launch: [Yes/No - if No, explain blocker]

For scope validation:

✅ Scope Validation Complete

Agent: [Agent name]
Result: [ACCEPT / REVIEW NEEDED / REJECT]

Summary:
- Deliverables: [N matched, N extra, N missing]
- Scope compliance: [percentage]
- Recommendation: [Action to take]

[If REVIEW or REJECT, provide details]

For retry strategy:

🔄 Retry Strategy Generated

Agent: [Agent name]
Failure cause: [Diagnosis]
Retry approach: [What's different]

Template refinements:
- FOCUS: [What changed]
- EXCLUDE: [What was added]
- CONTEXT: [What was enhanced]

Retry attempt: [N of 3]

Quick Reference

When to Use This Skill

✅ "Break down this complex task" ✅ "Launch parallel agents for these activities" ✅ "Create agent prompts with FOCUS/EXCLUDE" ✅ "Should these run in parallel or sequential?" ✅ "Validate this agent response for scope" ✅ "Generate retry strategy for failed agent" ✅ "Coordinate file creation across agents"

Key Principles

  1. Activity-based decomposition (not role-based)
  2. Parallel-first mindset (unless dependencies exist)
  3. Explicit FOCUS/EXCLUDE (no ambiguity)
  4. Unique file paths (prevent collisions)
  5. Scope validation (auto-accept/review/reject)
  6. Maximum 3 retries (then escalate to user)

Template Checklist

Every agent prompt needs:

  • FOCUS: Complete, specific task description
  • EXCLUDE: Explicit boundaries
  • CONTEXT: Relevant rules and constraints
  • OUTPUT: Expected deliverables with paths
  • SUCCESS: Measurable criteria
  • TERMINATION: Clear stop conditions
  • DISCOVERY_FIRST: If creating files (optional)

Parallel Execution Safety

Before launching parallel agents, verify:

  • No dependencies between tasks
  • No shared state modifications
  • Independent validation possible
  • Unique file paths if creating files
  • No resource contention

If all checked: ✅ PARALLEL SAFE

平台分布

Claude Code

28.15%
按下载量换算62

windsurf

22.1%
按下载量换算49

OpenCode

19.57%
按下载量换算43

Gemini CLI

12.07%
按下载量换算27

Codex

8.59%
按下载量换算19

Antigravity

3.64%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills