Agent Skills › Gentleman-Programming/gentle-ai › hermes-ephemeral-delegation

hermes-ephemeral-delegation

GitHub

用于父级编排器在特定条件下(如并行任务、高风险变更、上下文溢出)通过 delegate_task 委托子代理执行工作。强调仅在有明确理由时委托,禁止仅因规模或文件数委托,确保工人无状态且自包含。

internal/assets/skills/hermes-ephemeral-delegation/SKILL.md Gentleman-Programming/gentle-ai

Trigger Scenarios

需要并行执行多个独立行为单元 涉及高风险变更需独立验证 多步调试导致上下文过载 需要进行对抗性代码审查

Install

npx skills add Gentleman-Programming/gentle-ai --skill hermes-ephemeral-delegation -g -y
More Options

Non-standard path

npx skills add https://github.com/Gentleman-Programming/gentle-ai/tree/main/internal/assets/skills/hermes-ephemeral-delegation -g -y

Use without installing

npx skills use Gentleman-Programming/gentle-ai@hermes-ephemeral-delegation

指定 Agent (Claude Code)

npx skills add Gentleman-Programming/gentle-ai --skill hermes-ephemeral-delegation -a claude-code -g -y

安装 repo 全部 skill

npx skills add Gentleman-Programming/gentle-ai --all -g -y

预览 repo 内 skill

npx skills add Gentleman-Programming/gentle-ai --list

SKILL.md

Frontmatter
{
    "name": "hermes-ephemeral-delegation",
    "license": "Apache-2.0",
    "metadata": {
        "author": "gentleman-programming",
        "version": "1.0"
    },
    "description": "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."
}

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.

Version History

  • 4acaf42 Current 2026-10-19 08:19

    修正委托逻辑:仅在有命名理由(如并行单元或上下文需求)时才委托 writer,不再仅因任务规模或文件数量委托;引入风险行记录机制。

  • e8c9f59 2026-09-28 01:17

    废弃 SDD 和 OpenSpec 工作流,保留独立 RDD 和严格 TDD,移除已退休的 SDD 运行时和夹具,破坏性变更:不再提供 SDD 命令和 OpenSpec 集成。

  • e01b114 2026-07-25 06:59

Same Skill Collection

internal/assets/skills/_shared/SKILL.md
internal/assets/skills/branch-pr/SKILL.md
internal/assets/skills/chained-pr/SKILL.md
internal/assets/skills/cognitive-doc-design/SKILL.md
internal/assets/skills/comment-writer/SKILL.md
internal/assets/skills/gentle-ai-bench/SKILL.md
internal/assets/skills/go-testing/SKILL.md
internal/assets/skills/issue-creation/SKILL.md
internal/assets/skills/judgment-day/SKILL.md
internal/assets/skills/rdd-defect-workflow/SKILL.md
internal/assets/skills/sdd-archive/SKILL.md
internal/assets/skills/sdd-design/SKILL.md
internal/assets/skills/sdd-explore/SKILL.md
internal/assets/skills/sdd-init/SKILL.md
internal/assets/skills/sdd-onboard/SKILL.md
internal/assets/skills/sdd-propose/SKILL.md
internal/assets/skills/sdd-research/SKILL.md
internal/assets/skills/sdd-spec/SKILL.md
internal/assets/skills/sdd-tasks/SKILL.md
internal/assets/skills/sdd-verify/SKILL.md
internal/assets/skills/skill-creator/SKILL.md
internal/assets/skills/skill-improver/SKILL.md
internal/assets/skills/skill-registry/SKILL.md
internal/assets/skills/systemic-issue-triage/SKILL.md
internal/assets/skills/work-unit-commits/SKILL.md
skills/branch-pr/SKILL.md
skills/chained-pr/SKILL.md
skills/cognitive-doc-design/SKILL.md
skills/comment-writer/SKILL.md
skills/gentle-ai-bench/SKILL.md
skills/gentle-ai-collab-perfect/SKILL.md
skills/issue-creation/SKILL.md
skills/issue-root-resolution/SKILL.md
skills/rdd-advisory-transport/SKILL.md
skills/rdd-defect-workflow/SKILL.md
skills/systemic-issue-triage/SKILL.md
skills/work-unit-commits/SKILL.md

Metadata

Files
0
Version
4acaf42
Hash
df9610c4
Indexed
2026-07-25 06:59

홈 - 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-23 09:53
浙ICP备14020137号-1