/kaizen:kaizen-initfrom kaizen
Set up Kaizen in a repo — create the improvement log folder, add the CLAUDE.md rules block, and enable the plugin at project scope.
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.
Read when SKILL.md points to them.
Installs the scaffolding that makes Kaizen behaviour predictable in this repo: a log
folder inside the project-management folder, the rules file, a marker-delimited
block in the repo's CLAUDE.md, and a project-scope install of this plugin.
Idempotent — run it again to repair a partial setup. It never overwrites an existing
backlog.md, log.md, kaizen.json or passes/.
Find the repository root: git rev-parse --show-toplevel. If this is not a
git repo, stop and tell the user — Kaizen depends on one commit per unit.
Check for an existing setup: look for kaizen.json under the repo
(git ls-files '*kaizen/kaizen.json', then a filesystem search excluding
node_modules, .git, vendor). If found, that folder is KAIZEN_DIR; skip
to step 5 and only fill in what is missing.
Choose the project-management folder. Use, in order:
planning/, project-management/, pm/,
.planning/, docs/planning/, docs/project/;planning/.KAIZEN_DIR is <that folder>/kaizen, relative to the repo root.
Detect the verification command from the repo's own tooling — package.json
scripts (test, lint, typecheck), Makefile targets, pyproject.toml
(pytest/ruff), Cargo.toml, go.mod, CI workflow files. Confirm it with the
user in one line. If there is genuinely nothing, record null; kaizen-step
then verifies per item.
Write the folder from this skill's templates/ directory, creating only
what is missing:
KAIZEN_DIR/PRINCIPLES.md ← templates/PRINCIPLES.mdKAIZEN_DIR/backlog.md ← templates/backlog.mdKAIZEN_DIR/log.md ← templates/log.mdKAIZEN_DIR/kaizen.json ← templates/kaizen.json, with __KAIZEN_DIR__
replaced by KAIZEN_DIR, __DATE__ by today (ISO), and verify_command set
from step 4KAIZEN_DIR/passes/ — created by kaizen-baseline, not hereAdd the CLAUDE.md block. Read templates/claude-md-snippet.md, replace
__KAIZEN_DIR__. In the repo-root CLAUDE.md (create it if absent):
<!-- kaizen:begin --> … <!-- kaizen:end --> block exists, replace it;Enable the plugin at project scope, so anyone opening the repo in Claude Code gets the skills:
claude plugin list --json — find the entry whose id starts with
kaizen@. The text after @ is the marketplace name..claude/settings.json already has "enabledPlugins": {"kaizen@<marketplace>": true},
it is done. Otherwise run, from the repo root:
claude plugin install kaizen@<marketplace> --scope project.claude/settings.json back and confirm the enabledPlugins entry is
there. If the CLI is unavailable or the install fails, add the entry by
hand and say so.extraKnownMarketplaces does not name the marketplace, add it so
collaborators are prompted to add it. For the public catalogue:
"extraKnownMarketplaces": {
"danielrosehill": {
"source": { "source": "github", "repo": "danielrosehill/Claude-Code-Plugins" }
}
}
For any other marketplace, take its source from
claude plugin marketplace list and ask the user before writing it.Commit the setup as one commit: kaizen: initialise improvement log,
containing only KAIZEN_DIR/, CLAUDE.md and .claude/settings.json.
Report KAIZEN_DIR, the verify command, whether the plugin is project-
enabled, and the next step: kaizen-baseline for the first pass.
KAIZEN_DIR/, CLAUDE.md, .claude/settings.json.PRINCIPLES.md is copied, not linked, so the rules hold for agents without the
plugin. The user may edit it to suit the repo; re-running init will not
overwrite it.AGENTS.md rather than CLAUDE.md, add the block there too.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/kaizen-baselineFirst Kaizen pass on a mature repo — survey the code or take a user list, triage an atomic backlog, ship one unit, record the baseline./kaizen-intakeSplit improvement ideas into atomic Kaizen backlog units, without implementing. Use whenever the user hands over a list of improvements./kaizen-passRun a follow-up Kaizen pass — review what changed since the last pass, report the delta, and add new atomic units to the backlog./kaizen-statusShow where Kaizen stands in this repo — open units, next eligible item, recent log entries, and time since the last pass. Read-only./kaizen-stepImplement exactly one Kaizen backlog unit — change, verify, commit, log — then stop. Use for "next improvement", "do K-012", "next N".kaizen@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin kaizen