/kagura-engineer:runfrom kagura-engineer
Use to drive a single GitHub issue to a pull request with the kagura-engineer harness — shells out to `kagura-engineer run` with an issue number (guard → recall → worktree → start → implement → ship → persist). HARNESS — this mutates the repo, creates a PR, and spends model budget; 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 run CLI verb. It drives one GitHub issue
through the full memory-grounded loop to an open PR. It reimplements nothing — the
orchestration lives entirely in the CLI; this skill discovers config, gates on
doctor, shells out, and surfaces the result.
⚠️ This is a Harness, not an atomic tool. Before launching, make sure the user understands the consequences and has confirmed:
- Repo mutation — creates a
run-<issue>git worktree and commits there.- PR creation — opens a GitHub pull request via gh-issue-driven on success.
- Cost — invokes the selected brain backend multiple times (start / implement / ship).
- HITL — gates can halt (
blocked, exit 2) and wait for a human decision.
Announce: "Using the kagura-engineer:run skill — this is a Harness that will create a PR."
If invoked without an issue number, do NOT guess or shell out — print this and stop:
kagura-engineer:run <issue-number>
Drive one GitHub issue to a PR via the kagura-engineer harness.
⚠ Harness: creates a worktree + commits, opens a PR, spends model budget, gates on HITL.
Example: kagura-engineer:run 42
New here? run kagura-engineer:doctor first to check the environment.
Validate the issue argument. The CLI takes a single positive integer issue
number. Reject anything that does not match ^[1-9][0-9]{0,8}$ before interpolating
it into the shell — do not pass free-form text through.
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: surface the blocking checks and hand off
to kagura-engineer:setup. Do not proceed to run. (ok/warn may proceed.)
Confirm with the user (the Harness warning above) unless they have already opted into an unattended run.
Run:
kagura-engineer run <issue> --json
Add --unattended to proceed without prompting on green/yellow gates
(red/unknown still halt), or --no-remember to skip the memory savepoint.
Without --json, phase progress streams live.
Interpret the status. status == "ok" (exit 0) → PR created (pr_url).
"blocked" (exit 2) → a gate halted; show resume_hint and surface the verdict for
a human decision. "fail" (exit 1) → hard error; show the failing phase's detail
from the phases array (there is no top-level detail key).
Surface & hand off. Print the phase table and pr_url. On success, extract the
PR number from pr_url and suggest kagura-engineer:review <PR-number>. On
blocked/fail, surface the resume_hint so the user can retry after addressing
the cause.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 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./evalUse 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./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./setupUse when kagura-engineer:doctor reports a blocked or failing environment — scaffolds missing config, installs and authenticates harness prerequisites, and generates Memory Cloud MCP config by shelling out to `kagura-engineer setup`, then re-checks with doctor.npx claudepluginhub kagura-ai/kagura-engineer --plugin kagura-engineer