AGENT SKILL

deniz-coordination.delegating-to-worker-models

Use when you hand off implementation, a plan, research a decision will rely on, or a review, and you brief the worker and check what comes back. A subagent that searches, reads in parallel, or keeps your context small is ordinary tool use. Covers what stays with you, the mechanism, assigning work by strength, the walls preflight, prompts without contradictions, the worker contract and model profiles, evidence from your own run, review, and the fix-up loop.

License 许可
MIT
最近更新
2026-11-13
Stars
★ 1
Forks
0

01 前言 Front Matter

name
deniz-coordination.delegating-to-worker-models
description
Use when you hand off implementation, a plan, research a decision will rely on, or a review, and you brief the worker and check what comes back. A subagent that searches, reads in parallel, or keeps your context small is ordinary tool use. Covers what stays with you, the mechanism, assigning work by strength, the walls preflight, prompts without contradictions, the worker contract and model profiles, evidence from your own run, review, and the fix-up loop.

02 资源文件 13

03 SKILL.md 正文

Delegating to worker models

You keep the judgement; other agents do the work.

Mechanism. Use the first that applies: the mechanism the user names for this work; a calling skill that pins one; the repository addendum's Worker mechanism; otherwise your host's own subagents. Another harness's workers or a dispatch tool run only when one of the first three names them.

Within that mechanism, assign work by strength: judgement to the strongest reasoner it reaches, implementation to the strongest implementer it reaches. references/models/ says which model is strong at what, how to brief it, and where to look when you review it; it ranks models, the mechanism decides which ones a task can use. The rules below hold for every mechanism.

What stays with you

  • Deciding whether something earns its place: whether a file, flag, check, or abstraction should exist.
  • Scope, ownership, cross-lane ordering, maintainer policy, and canon or decision wording.
  • Suppressions, baseline, ratchet, and threshold decisions; baseline mappings without a mechanical oracle.
  • A choice between equally valid designs, API taste, and judging whether evidence supports a claim.
  • Pushes, merges, filing issues, and the words "verified" and "green". Green means the head SHA, its required checks passed, and the change mergeable: a conflicted change runs no main CI and only looks green.
  • Anything where "verified" rests on the worker's own report.
  • Research you rely on. Delegate it like code: a read-only worker task that cites file and line for each claim. Check every claim you use, and give research that feeds a spec, a decision or an upstream report a review as for code (Review, below).

Before every hand-off

  1. Walls preflight. Read the repository addendum's Walls field, then pick one:

    • (a) The repository has walls: put them in the verify step.
    • (b) It has none: bring ephemeral walls through the verify step: the gates in references/walls/any.md, plus the walls profile of the language's own skill module when one is installed (pinned tools, a scratch cache, no install, no repository change). Run them on the base first and gate only new findings and touched files; a new file is gated whole.
    • (c) Neither is possible: make plan-first mandatory, tighten the budget, add a reviewer, and tell the user that walls would help. Installing walls into a repository for good is the user's decision. The thresholds are yours; record them, and any change, with a reason.
  2. Verify the verify. Run every verify command once on the base and see a non-empty, meaningful result; a test run that reports zero tests is never a pass. Check that every test filter, class, or path it names exists. A change to a type, a public name, or a shared fixture runs the whole test project that holds inventories or registries, not a filtered subset. Before a move, rename, or removal, grep the tests for code they reach by name: reflection on each removed or renamed member, and source-text reads (file reads, path literals, parses) of each moved or edited file; each hit's test joins the verify. Verify where the result is used: every operating system, drive, and path depth it meets, or tests that do not depend on them.

  3. Prove the base. git merge-base --is-ancestor <prerequisite> <base> for every prerequisite, and put that SHA in the task. The worker only confirms that its HEAD equals the stated base.

  4. Plan-first when the spec leaves ownership or wiring open (which type owns a resource, what is passed where, who disposes it), when the change touches more than three production files, or when a new file is expected to exceed about 150 lines. A new type whose owner and wiring the spec pins needs no plan. The worker writes the plan with a required section "Contradictions and spec defects found"; you amend and approve it; the code task runs against the approved plan. Every other spec or prompt you wrote goes once in read-only mode to a worker of another family to scan for contradictions before the real task; a plan step is that scan, and the scan's own prompt needs none. After a stop, a narrow amendment sends only the text it changes to that scan. Before you approve a plan, cut what the request did not ask for: verification and one-off checks use the tools the repository already has, and a one-off check is a command in a step, not a new file.

  5. Fill the prompt from references/prompt-template.md. Write only the per-task fill-in. Every worker gets references/worker-contract.md and its model's worker block verbatim (the contract's status-line rule exempts a structured task): when your mechanism prepends files, name them; otherwise paste them in yourself. An agent you start without the contract (a reviewer, a researcher) gets its memory rule, Report item 10, in the prompt. Every value the repository owns elsewhere comes in as an input, never as an anchor to a document. Every term gets an in-scope and an out-of-scope example.

  6. No contradiction leaves your desk. Read what the worker will read as one text: the contract, the model block, the plan, every Read-first document, and your fill-in. A worker resolves a conflict toward the binding written text and stops, so close every path before you send:

    • Every case you can foresee has exactly one permitted path. Write a permission as a rule over what may change, never as line ranges or "as in an earlier task".
    • Your prompt outranks the plan, so check each rule you write against the plan section it cites.
    • Derive the Scope line from the requirements: name the file where each requirement's hook lands.
    • In a mechanical task, quote the exact list or count; never write "every X" beside an expected count.
    • A done-when that needs several commands at once says how to run them in the foreground.
    • Every prohibition traces to the request, the repository, or a measured hazard, never to a preference of yours or of an earlier plan.
    • The mechanical fallout of a planned change (an analyzer limit, a moved member) is named in the plan as pre-approved, not left to the contract's out-of-plan stop.
    • Overriding an older document is an amendment that names the document and the point. A free-text exemption beside a binding rule is a contradiction, not an override.
    • Every figure is measured: budget caps from a projection, the base as a SHA, a detector's exemptions checked against its own positive tests.
    • Code the prompt pins for the worker to use compiles under the repository's analyzers before you send it.

    A stop on any of these is cheap, but it is your defect, not the worker's.

During the run

  • Late information you cannot send to a running worker is applied at review: restore the affected files to the base and prove the diff is empty.
  • Cap concurrent heavy jobs to what the host's memory allows, and never run two builds in one working tree.

After the run

  1. Evidence is a run you or your tool made on the committed tree. The worker's "passed" lines are not. Rerun the gates at the branch head yourself before any local check.
  2. A stop is the product working. Read its reason. Most stops trace back to your prompt (an abstract slot, a coordinator duty pasted into the worker prompt, a name that does not exist): read the spec the worker received first, and fix the prompt, not the model profile.
  3. Prove the cause before you hand out a fix. When the cause is unproven, the task is "reproduce, prove it with evidence, fix it where it lives". A raised timeout, a retry, or a serialized test is not a fix for a flaky test.
  4. Review. A worker never judges its own work; the worker's profile says where to look.
    • When: send a head to review only after its build, analyzers included, and the task's verify passed: a static review is not a build.
    • Who: your own read follows deniz-process.requesting-code-review; low-risk scaffolding and mechanical work needs only that. Code and spec work adds a fresh reviewer from a family other than the author's when your mechanism reaches one, and otherwise a fresh reviewer of the author's family, with the gap named in your report. The reviewer gets the request, the requirements and the diff, but not your assessment. The family claim rests on your mechanism's record of the model that ran, for the author and the reviewer alike, never on the model you asked for; a session writing by hand is identified by its own model. Code you write by hand to fix a worker's work is authored by your family, so a hand fix that changes logic goes to a fresh reviewer, of another family where one is reachable, as a review of its hunks; a pure deletion, a rename, or a one-line change an analyzer mandates needs only your own read.
    • More readers: new lock, race, or cancellation-lifetime code adds a third family if one is available. A change to infrastructure another lane or team owns adds a review by that owner, even when the other reviews passed: it knows how the infrastructure is used.
    • Until it converges: code that deletes data or guards a boundary repeats review and fix-up until a pass finds nothing new; each fix of such code is new code to review.
    • Rubric: defects first, then gaps against the request, then anything not asked for, then tests that pass for a reason production lacks. For a refactor, both reads compare the base and the new code behaviour by behaviour. After a move or an extraction, the old owner keeps no forwarding member; a plan that lets one forward names the change that removes it.
    • Reading: read every scan and review report whole: the last finding weighs as much as the first, so a read through head or a line limit is no read.
    • Sources: a reviewer gets every source its claims depend on in a readable place (an initialized submodule, a fetched tag, a named path), and its report states what it could not read. The merge queue and CI stay the last net for cross-change effects.
  5. Fix-up loop. Turn findings into a per-file cut list with line ranges and the replacement. A worker fix pass reports each item done or rejected with figures. Spot-check the blockers yourself. A fix pass toward the same done-when is not new scope. Its prompt names every existing expectation the fixes change, or authorizes, within named test classes, the changes that follow necessarily from its items, each reported old -> new; a fix that needs an unnamed oracle change otherwise costs a stop.
  6. Land. When parallel tasks from one base conflict, a land task cherry-picks them onto the current tip, says which side wins, resolves toward the newer behaviour, and reruns the suite.

References

  • references/worker-contract.md: what every worker gets, verbatim.
  • references/models/README.md: the model index (roles, cost, review focus) and each model's profile.
  • references/prompt-template.md: the per-task fill-in, with sections by task type.
  • references/work-types.md: read when the task is new code, a refactor, or an evaluation.
  • references/test-oracles.md: read when the task writes or changes tests.
  • references/walls/README.md: read during the walls preflight.
  • references/failure-modes.md: read when you review, and after any surprise.
  • references/repo-addendum-template.md: read when a repository has no addendum yet.

04 同仓库更多 Skills

Blind-Striker
Blind-Striker/agent-skills-and-plugins

writing-tunit-tests

Write tests in TUnit — the attributes, the async assertion model, data-driven cases, lifecycle hooks, and the parallelism rules. USE FOR writing or fixing a test in a TUnit project, translating a test idea into TUnit syntax, or reviewing TUnit test code for API mistakes. DO NOT USE FOR deciding what to test, judging whether a test is any good, or running tests.

★ 1
Blind-Striker
Blind-Striker/agent-skills-and-plugins

dotnet-walls

Walls for a .NET change in a repository without its own quality gates — pinned, ephemeral analyzer, format, clone and scanner commands for the verify step, their identity ratchet, and the build traps. Use during a walls preflight, or when a worker's verify step needs .NET quality gates.

★ 1
Blind-Striker
Blind-Striker/agent-skills-and-plugins

csharp-15

Write, review and modernize C# 15 (.NET 11) code correctly. Covers every C# 15 feature - collection expression arguments (`[with(...), ...]`), union types (`union`, `[Union]`, `IUnion`, custom unions), closed class hierarchies (`closed`), extension indexers, labeled `break`/`continue`, non-virtual static interface members on runtimes without default interface methods, and the preview memory-safety model (`unsafe(expr)`, `safe`, requires-unsafe members). Use when code targets net11.0 or LangVersion 15/preview, when the user mentions any of these features, when replacing marker interfaces, OneOf-style results, `goto`/flag loop exits or capacity/comparer boilerplate, or when the build reports CS8121, CS8509, CS8655, CS8510, CS0121/CS0411 on a `with(...)` element, CS9370, CS9380 or CS9363.

★ 1
Blind-Striker
Blind-Striker/agent-skills-and-plugins

verified-waves

Run one task as verified multi-agent waves. Plans the fan-out, sends findings to fresh skeptics, keeps a ledger, and reports N of M done; small tasks stay solo.

★ 1
Blind-Striker
Blind-Striker/agent-skills-and-plugins

harness

The bundled dispatch harness, which runs a task file on worker models through OpenCode or Codex, fences their writes, escalates their asks to the operator, settles each result from git and its verify commands, and records every step in a ledger. Its commands, task file, modes and write fence, configuration, runs and their recovery, ledger and exit codes.

★ 1
Blind-Striker
Blind-Striker/agent-skills-and-plugins

delegating-to-worker-models

Use when you hand off implementation, a plan, research a decision will rely on, or a review, and you brief the worker and check what comes back. A subagent that searches, reads in parallel, or keeps your context small is ordinary tool use. Covers what stays with you, the mechanism, assigning work by strength, the walls preflight, prompts without contradictions, the worker contract and model profiles, evidence from your own run, review, and the fix-up loop.

★ 1