fritzprix/libr-agent/delegation-eval-loop

Claude Code and agent skill by fritzprix/libr-agent

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Verify delegated work before accepting it: the parent evaluates a child with layered checks, or a separate reviewer session gates a creator (gatekeeper). Use for strict acceptance criteria, proof before done, or rework loops. Triggers: generator-evaluator, delegation eval, verify subagent, acceptance criteria, gatekeeper, 게이트키퍼, 리뷰 루프, 검증 게이트, 품질 검증, reviewer loop, quality gate.

Install

npx vskill@latest install fritzprix/libr-agent/delegation-eval-loop

SKILL.md

The same SKILL.md was published earlier as fritzprix/libr-agent/delegation-eval-loop.

Delegation Eval Loop

Generator–evaluator: the child session generates (implements, researches, edits); the parent session evaluates and alone decides acceptance. Never treat the child's self-reported success as the final grade.

For spawn, isolation, workspace inheritance, and tool naming, follow `delegate` first. This skill owns briefing contracts, layered grading, reject/re-steer, and bounded retries.

Choose the pattern

SituationPattern
The parent can check the result itself (run tests, inspect diffs, compare to requirements)Parent evaluates — the workflow in this file
The review needs its own context, role, or model, or must stay independent of the parent's plan (strict code review, compliance or style audit, long rework cycles)Gatekeeper — a separate Reviewer session gates a Creator session: gatekeeper.md

Default to Parent evaluates. It needs fewer sessions and the parent keeps the original requirements. Use Gatekeeper only when an independent reviewer adds real value. Both patterns use bounded rework (3–5 cycles) and the same evidence rules below.

Core Rules

  1. Evidence over assertion: "all tests pass" from the child is a hypothesis. Run or inspect deterministic verification in the parent (or from parent-visible raw output).
  2. Layered grading order: Deterministic → Invariant → Trajectory/reliability → Semantic. Fail fast on earlier layers.
  3. Sprint contract before spawn: Negotiate objective, authorized paths, and checkbox acceptance criteria in the brief. Do not invent pass criteria after the child returns.
  4. Targeted feedback: On reject, send exact failure output via agent__messageToSession — not "try again".
  5. Bounded loop: Cap at 3–5 cycles. Then escalate to the user with diagnostics; do not spin forever.
  6. Reliability hard-fail: Incomplete, cancelled, timed-out, circuit-broken, or evidence-free runs fail evaluation even if the prose claims completion.

The 4-Layer Evaluation Stack

LayerCheckVerification MethodAction on Failure
1. DeterministicBuild, types, tests, lintParent runs the agreed commands (or requires raw exit-0 output in evidence)Reject with compiler/test log
2. Invariant GatePath/policy boundariesgit status / git diff --stat vs authorized pathsReject; force revert of forbidden edits
3. Trajectory / reliabilityReal execution, no fake doneResult text + actions: missing cmds, loops, cancel/incomplete signalsReject; demand missing evidence or stop
4. SemanticUser intent, edge casesParent LLM vs original requirements (only after 1–3 pass)Reject with specific missed requirements

Composite cheerleading is forbidden: Layer 1 pass does not override Layer 2/3 failure.

Workflow

1. Brief with a Sprint Contract

When calling agent__spawnSession(..., complexity="...") or agent__messageToSession(..., complexity="..."), include:

  • Exact Objective — concrete deliverable
  • Authorized paths / FORBIDDEN paths — invariant gate inputs
  • Acceptance Criteria — checkbox list of commands/checks that must pass (- [ ])
  • Deliverable Channel — status + raw evidence in final text (not child scratchpad)

See handoff-templates.md.

2. Poll and Capture Child Result
  • agent__checkSession until terminal idle/error (or use wait=true when appropriate)
  • Capture final text. If the session errored, cancelled, or returned empty/incomplete diagnostics → Layer 3 fail; do not soft-accept.
3. Execute Layered Evaluation

Do not present the result to the user until layers pass (or you escalate).

  1. Deterministic checks in the child's effective workspace (see Metadata workspace:)
  2. Invariant gates (git status / scope)
  3. Trajectory & reliability (claims vs evidence; incomplete/circuit-break)
  4. Semantic review only if 1–3 pass

Details: evaluation-protocol.md.

4. Reject & Re-steer

If any layer fails:

  1. Increment iteration counter (abort if over max, typically 4)
  2. Structured correction: which layer, exact error snippet, single next action
  3. agent__messageToSession(sessionId, complexity="...", message="...")
  4. Return to Step 2

Templates: handoff-templates.md.

5. Final Acceptance

When all layers pass, synthesize for the user with verified evidence (commands run, scope clean). Mark which criteria were checked.

References

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/fritzprix/libr-agent/delegation-eval-loop/badge)](https://verified-skill.com/skills/fritzprix/libr-agent/delegation-eval-loop)

Something wrong with this skill or its page? Tell us.