Agent SkillsXiaomingX/mimofan › delegate

delegate

GitHub

指导如何战略性地拆分任务,利用子代理并行执行探索、代码修改或验证等专注工作,同时保留父代理的架构决策和最终审核职责。

crates/tui/assets/skills/delegate/SKILL.md XiaomingX/mimofan

触发场景

需要并行处理多个独立编码任务 将复杂任务拆分为父级推理与子级执行 进行独立的代码审查或测试运行

安装

npx skills add XiaomingX/mimofan --skill delegate -g -y
更多选项

非标准路径

npx skills add https://github.com/XiaomingX/mimofan/tree/main/crates/tui/assets/skills/delegate -g -y

不安装直接使用

npx skills use XiaomingX/mimofan@delegate

指定 Agent (Claude Code)

npx skills add XiaomingX/mimofan --skill delegate -a claude-code -g -y

安装 repo 全部 skill

npx skills add XiaomingX/mimofan --all -g -y

预览 repo 内 skill

npx skills add XiaomingX/mimofan --list

SKILL.md

Frontmatter
{
    "name": "delegate",
    "metadata": {
        "short-description": "Delegate focused work to sub-agents"
    },
    "description": "Strategic delegation for multi-step coding, research, or verification work. Use when a task can be split into parent reasoning plus focused sub-agent execution through the agent tool."
}

Delegate

Use sub-agents when they can do focused work in parallel while the parent keeps architectural judgment, integration, and final verification.

Keep vs Delegate

Keep in the parent:

  • Understanding the user's actual request and constraints
  • Architecture, security, product, and release-risk decisions
  • Cross-module integration
  • Final review, test interpretation, and user-facing summary

Delegate to sub-agents:

  • Read-only exploration over a bounded file set
  • Mechanical edits with a clear file ownership boundary
  • Focused test or lint runs
  • Boilerplate generation from an explicit spec
  • Independent checks that can run while parent work continues

Do not delegate tiny one-step tasks, ambiguous product decisions, destructive operations without a clear acceptance criterion, or final verification.

Launch Focused Work

Use agent for a focused child run. Launch independent children together so they can run in parallel.

Prefer provider-neutral model_strength over hardcoded model ids — type: "explore" already defaults to model_strength: "faster" (the cheaper same-family sibling), so for read-only exploration you can usually omit it entirely:

{
  "name": "config_audit",
  "prompt": "Inspect crates/tui/src/config.rs and crates/tui/src/settings.rs for duplicate model-default logic. Return file/line findings only; do not edit files.",
  "type": "explore",
  "model_strength": "faster",
  "cwd": "."
}

For code changes, give the child a precise write boundary and tell it not to revert unrelated edits. Keep implementation children capable with model_strength: "same":

{
  "name": "docs_patch",
  "prompt": "Update only docs/configuration.md to document the new [statusline] keys. Match the surrounding style. Do not edit other files.",
  "type": "implementer",
  "model_strength": "same",
  "cwd": "."
}

Use fork_context: true only when the child genuinely needs the current conversation prefix. Leave it omitted for fresh, narrower context.

Evaluate and Verify

Sub-agent outputs are self-reports. Re-check material claims before relying on them:

  • Read changed files directly.
  • Run the relevant tests locally.
  • Inspect unexpected diffs before committing.
  • Verify externally visible or destructive claims against source data.

Prompt Shape

A good delegation prompt includes:

  • The exact task
  • Files or modules owned by the child
  • Files or behavior the child must not touch
  • Expected output format
  • Acceptance criteria

Weak prompt:

Fix the settings bug.

Strong prompt:

Own only crates/tui/src/settings.rs and its tests. Preserve existing config key names. Add a regression test showing that provider-specific API key changes do not restart DeepSeek onboarding. Return the changed paths and test command output.

版本历史

  • ccf85b9 当前 2026-08-08 08:00

同 Skill 集合

.workbuddy/skills/parallel-agent-lock-guard/SKILL.md
crates/tui/assets/skills/documents/SKILL.md
crates/tui/assets/skills/feishu/SKILL.md
crates/tui/assets/skills/fleet-manager/SKILL.md
crates/tui/assets/skills/mcp-builder/SKILL.md
crates/tui/assets/skills/pdf/SKILL.md
crates/tui/assets/skills/plugin-creator/SKILL.md
crates/tui/assets/skills/presentations/SKILL.md
crates/tui/assets/skills/skill-creator/SKILL.md
crates/tui/assets/skills/skill-installer/SKILL.md
crates/tui/assets/skills/spreadsheets/SKILL.md
crates/tui/assets/skills/v4-best-practices/SKILL.md

元信息

文件数
0
版本
ccf85b9
Hash
e42413bd
收录时间
2026-08-08 08:00

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-08 23:59
浙ICP备14020137号-1 $访客地图$