/kagura-engineer:evalfrom kagura-engineer
Use to measure whether memory grounding actually improves PR quality — shells out to `kagura-engineer eval` with one or more issue numbers, running the SAME fixed issue set in two arms (recall ON vs OFF) and printing an A/B table. HARNESS — high cost; it runs the full loop twice per issue and mutates the repo. Confirm with the user before launching.
Ships in kagura-engineer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Thin wrapper around the kagura-engineer eval CLI verb (moat lever M3). It drives the
same fixed issue set through two arms — grounded (the normal run loop with
recall + pinned + graph-expanded memory) and control (the identical loop with
grounding disabled) — and prints an A/B table on objective signals already in the
pipeline: PR-reached rate, gate-verdict rate, and (with --review) review findings +
re-fix-loop iterations. It reimplements nothing — the orchestration lives in the CLI;
this skill discovers config, gates on doctor, shells out, and surfaces the result.
⚠️ This is a Harness. Before launching, confirm the user understands:
- Repo mutation × 2N — the full run loop runs twice per issue (a worktree, commits, and a PR per arm). With
--reviewthe auto-fix loop also mutates each arm's branch.- Cost —
run's selected brain budget, doubled across both arms of every issue.- Disposable issue set — run it on a pinned, throwaway issue set, not production work.
Announce: "Using the kagura-engineer:eval skill — this is a Harness that runs the loop twice per issue."
If invoked without an issue set, do NOT guess or shell out — print this and stop:
kagura-engineer:eval <issue> [<issue> ...]
Measure memory-grounded uplift: run the same issues with recall ON vs OFF, print an A/B table.
⚠ Harness (high cost): the full run loop runs twice per issue; mutates the repo.
Example: kagura-engineer:eval 12 14 19 --review
New here? run kagura-engineer:doctor first to check the environment.
Validate the issue arguments. The CLI takes one or more issue numbers. Treat them
as data: accept only positive integers (^[0-9]+$ per token) and pass them as
positionals after a -- end-of-options separator. Do not pass unsanitized text.
Discover config. repo.yaml in CWD by default; pass --config <path> otherwise.
Precondition — run doctor:
kagura-engineer doctor --json
If overall == "fail" (exit 1), stop and hand off to kagura-engineer:setup — a
blocked environment would fail both arms of every issue.
Confirm with the user (the Harness warning above) unless they have opted into an unattended measurement. Be explicit that the loop runs twice per issue.
Run the eval:
kagura-engineer eval --json -- <issue> [<issue> ...]
Add --review (before the --) to also measure review findings + re-fix-loop
iterations per arm — this is more decisive but mutates each arm's branch and is slower.
Interpret the result. The report carries a uplift.verdict:
improved (grounding measurably helped), regressed (grounding hurt), neutral
(no measurable difference), or inconclusive (no issues / no comparable signals).
The grounded vs control blocks carry the per-arm rates; per_issue has the
per-issue gate outcomes for traceability.
Surface honestly. Print the A/B table and the verdict. Record the result whether or
not it is positive — an honest negative is itself moat evidence about where grounding
does and does not help. See docs/moat/m3-memory-uplift-eval.md for the full
methodology and how to publish the result.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kagura-ai/kagura-engineer --plugin kagura-engineer6 skills in this plugin
/doctorUse before any kagura-engineer run/review, or when the harness reports a blocked environment — diagnoses the local setup (git, selected brain CLI, gh, ollama, memory backend, and gh-issue-driven plugin) by shelling out to `kagura-engineer doctor` and reports what must be fixed./initUse to bootstrap a fresh checkout for the kagura-engineer harness — scaffolds a commented repo.yaml template and adds it to .gitignore by shelling out to `kagura-engineer init`. Run this before setup/run/review when no repo.yaml exists yet. Idempotent and never overwrites./reviewUse to review a git ref, branch, or PR with the local kagura-engineer reviewer — shells out to `kagura-engineer review [target]`, returning a structured verdict and findings. With `--fix` it is a HARNESS that edits files and commits; without `--fix` it is read-only.