/kaizen:improvefrom kaizen
Use when the user wants to run multi-agent improvement cycles against a git repository — runs N cycles and opens one bundled GitHub PR. Trigger on '/kaizen:improve <git-url>', 'run kaizen on <repo>', 'improve <repo>', or similar.
Ships in kaizen. 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.
The only user-invocable Kaizen command. Runs N independent improvement cycles against the target git repository in a temporary clone, then opens one bundled GitHub PR summarising every successful and abandoned cycle.
This skill is intentionally thin: it parses the invocation, verifies hard dependencies, and routes through to internal/run/SKILL.md which does the actual orchestration. All the methodology lives in the internal procedures.
User instructions override this skill's defaults at all times. If the user provides a direct instruction — "skip the destructive check," "don't open the PR," "abort after cycle 1" — comply immediately. Persistent instructions in CLAUDE.md or saved preferences pre-authorize routing choices without a live confirmation per session.
Priority order when instructions conflict:
/kaizen:improve <git-url> [--cycles N] [--subject "<area to improve>"]
<git-url> — required. https or ssh (e.g., https://github.com/owner/repo.git or [email protected]:owner/repo.git).--cycles N — number of independent improvement cycles to run. Default: 1.--subject "..." — optional focus area. If omitted, the PM agent decides per cycle.Cycles run via fire-and-forget Agent tool calls (subagent mode); Phase 4 + the review→fix loop + commit are delegated to atelier's in-process host engine (see KAIZEN_TRANSPORT below).
When the Loom agent-chat server is available, loom-agent-chat inter-agent comms are MANDATORY — KAIZEN_LOOM_COMMS=0 is the only opt-out, and loom errors never abort a run. Detection and wiring are automatic: follow the "Loom comms — MANDATORY when available (F16)" section in internal/cycle/SKILL.md (detect via PYTHONPATH=. python3 scripts/loom_comms.py detect; per-agent block via PYTHONPATH=. python3 scripts/loom_comms.py block --role <role> --channel <chan>). Subagent completion replies are unchanged.
Run from the Kaizen repo root:
PYTHONPATH=. python3 scripts/setup.py
This verifies git, gh (authenticated), memex, atelier on disk, and Python ≥ 3.11. If any check fails, the script prints actionable instructions and exits non-zero. Abort — do not proceed. Surface the script's output to the user verbatim and stop.
Verify memex:run is available: Read ~/.claude/settings.json and confirm enabledPlugins["memex@agora"] is truthy. If it is absent or falsy, surface the error: "memex@agora plugin not enabled. Enable it via Agora (/agora:install memex) before running kaizen:improve." and abort.
If scripts/setup.py has not previously run on this machine, it will also apply Kaizen's DB migrations. That is expected; the run is safe to proceed if all dependency checks pass.
Extract git_url, cycles (default 1), and subject (default None) from the user's invocation. Validate:
git_url is present and looks like a git URL (https or ssh form).cycles is a positive integer.If any check fails, ask the user to correct and stop until they do.
Read internal/run/SKILL.md and follow its procedure inline, passing along (git_url, cycles, subject). That procedure handles project lookup/registration, clone setup, cycle loop, push, PR open, and teardown.
When Step 3 returns, surface the summary to the user. It should include:
run_id (Kaizen DB)S succeeded / A abandoned out of N requestedmemex:run ask/kaizen:improve from within another skill, script, or autonomous flow. Kaizen is always run by a human.scripts/setup.py exits non-zero, abort without touching the target repo./kaizen:improve run produce exactly one bundled PR. Cycle-per-PR is out of scope.<kaizen-root>/experiment/<owner>-<repo>/ and the directory is deleted after the PR opens.internal/run/SKILL.md for the skip-and-continue policy.| Variable | Default | Effect |
|---|---|---|
KAIZEN_TRANSPORT | host | Dispatch transport (M8). host (unset/empty — the DEFAULT) — Phase 4 (+ the review→fix loop + commit) is delegated to atelier's in-process host engine via scripts/host_cycle_entry.py instead of being run by prose; the Phase 1-3 meeting still runs in-prose and hands its Action-Items DAG to the engine. Resolved by scripts/transport.py (single source of truth); a typo fails loud (UnknownTransportError). Wired at the subagent-SKILL layer (see internal/cycle/SKILL.md Phase 4 transport fork). |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub nitekeeper/kaizen --plugin kaizen