跳到正文
Skillpedia
智能体8.2k · #12552

hermes-ephemeral-delegation

它能做什么

这项技能告诉你的 AI 何时应把任务交给单独的帮手智能体,而不是在当前上下文中直接完成。适合运行可委派任务的 AI 智能体的人。

适用场景

  • ✓当一项任务需要先大范围梳理代码库,才能做出决定的时候。
  • ✓当一项工作中有两个或更多独立部分可以同时进行的时候。
  • ✓当一项高风险修改需要单独、独立的检查或全新的审阅的时候。

技能链接

https://github.com/Gentleman-Programming/gentle-ai/blob/main/internal/assets/skills/hermes-ephemeral-delegation/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/Gentleman-Programming/gentle-ai/blob/main/internal/assets/skills/hermes-ephemeral-delegation/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“这项改动风险很高。请让一个单独的帮手智能体独立验证一下,然后我们再合并。”

每周 5 个新技能,1 分钟读完。

工作原理

技能为委派设定了明确的理由。帮手从全新的上下文开始,并获得一个自包含的任务,因此主智能体能让自己的上下文保持专注。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Activation Contract

Load this skill when you are acting as the parent orchestrator and the work ahead has a named reason to delegate:

  • A map you need to decide or route that exceeds the inline evidence budget (codebase mapping, approach comparison); never to read files you will read anyway before writing inline
  • A writer reason: 2+ independent units of behavior (code, tests, and docs together; each several minutes of work) launched together, or the context backstop; a large task alone is tracked, not delegated
  • A high-risk change that needs an independent verifier, or a large task's long suites and builds
  • Fresh adversarial review (diffs, PR readiness, incident audit); never restart it automatically for a candidate whose terminal approved authority was already burned and that is unchanged since, unless a new independent review is deliberately requested
  • Multi-step debugging that would flood the parent context

Do NOT load this skill if you are already inside a delegated child task — you are the executor, not the orchestrator.

Hard Rules

  • Use delegate_task only for a named reason listed above. Without one, work inline following your logbook; file count, size, or a large task alone is never a reason.
  • Workers are EPHEMERAL: each delegate_task call creates a fresh context. Do NOT request persistent agent files or profiles.
  • Pass a self-contained mission. Workers have no memory of the parent conversation.
  • Treat worker output as self-report: verify file writes, test pass/fail, URLs, and IDs before reporting success to the user.
  • Batch parallel calls only for INDEPENDENT workstreams. Sequential dependencies must run sequentially.

Decision Gates

Situation Action
Need a map to decide or route beyond the inline evidence budget Delegate a narrow exploration worker
A large (tracked) task Track it; delegate a writer only for a reason (parallel units or context) with the full mission
A small task's focused test and suite Run inline, once each
A high-risk change or a large task's long suites Delegate an executor
Need an adversarial review of a diff Delegate a fresh-context reviewer
Multi-step debug that grows the context Delegate a debug worker; feed results back inline
An understood change, even across files, with no named reason Do it inline; no delegation needed
Quick git/state check Do it inline; no delegation needed

Execution Steps

  1. Identify which gate applies. If none applies, skip delegation.
  2. Draft a self-contained mission for the worker — include:
    • Exact goal (one sentence)
    • File paths or targets to act on
    • Relevant prior context the worker needs (decisions, conventions, prior findings)
    • Constraints (style, budget)
    • For a writer: the applicable test-first policy and runner from ## Implementation Routing. Write one RED test per requested rule; for every existing command or option the change touches, add one test proving its previous behavior still holds; add no other cases; update help text and docs for any changed command, option, or message
    • For a verifier: the Verify handoff from the Delegated Verification Gate (the whole feature document, the baseline commit, the probe command forms, first-launch probes in a mktemp -d scratch copy never inside the workspace, and its severity rules)
    • Expected evidence to return (e.g., file written, test output, URL found)
    • Allowed toolsets/MCP/skills the worker should use
    • Any SKILL.md paths to load before work
  3. Call delegate_task with that mission.
  4. Wait for the worker summary.
  5. Verify the claimed output (check file existence, test result, side effect).
  6. Synthesize the verified result into your orchestrator reply.

Output Contract

After synthesizing worker results, return:

  • What was delegated and to how many workers
  • What each worker returned (verified, not just claimed)
  • Any discrepancy between worker self-report and verified evidence
  • Final answer or next step for the user

References

  • references/tuning-knobs.md — Full table of delegate_task configuration parameters and the explicit toolset/MCP/skill checklist for worker missions.
常见问题

帮手在任务之间会保留记忆吗?

不会。技能说明,帮手是临时的,因此每次委派调用都从全新的上下文开始。

仅因为任务很大,就应该委派吗?

不应该。技能说明,仅文件数量或规模不足以作为委派的理由。

谁不应加载这项技能?

已经身处委派任务之中的帮手不应加载,因为它是执行者,而不是编排者。

详情

作者的原始描述

Trigger: a mapping need, parallel units, context backstop, high-risk verify, fresh review, or multi-step debug. Delegate via delegate_task for a named reason.

repo: Gentleman-Programming/gentle-ai

热度

GitHub 星标
8.2k
排名
#12552
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能