/kraft-lite:statusfrom kraft-lite
Reports the status of Kraft Lite chains: current node, whether blocked or running, steps, gates, slices, and held decisions. Use when asked where a chain is, if it's stuck, or after a run completes.
Ships in kraft-lite. 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.
This reports. Its one write is decisions --mark, below.
If $CLAUDE_PLUGIN_ROOT is unset, kl.py is two directories above this file;
it needs python3 3.10 or newer, and without one, tell the user and stop.
List every chain in the directory first:
python3 "$CLAUDE_PLUGIN_ROOT/kl.py" chains
That gives each chain's id, title, status and current node. Report all of them. A
status that silently covers one of two chains is worse than no status, and state
alone cannot see the others. A chain with status: done gets one line (id, title,
done); give its state and summary only when the user asks about it. If
chains prints [] (a bare state says status: unstarted), no chain exists
here yet: say so (kraft-lite:start begins one), not that nothing runs.
Then, for each chain that isn't done:
python3 "$CLAUDE_PLUGIN_ROOT/kl.py" state --chain-id <id>
Report, in a sentence or two: the node and its kind, whether it is open
(running) or blocked, and which backend holds the state. For an exec node, its steps in
order with what each task runs (its skill, prompt or command), and attempts spent
against cap if there is one. For a gate node, gate.message, the file at
gate.artifact_path, and that a rejection goes back to gate.reject_to.
If gate.reviewer is set and gate.review is null, its reviewer checks it before
the user does. A non-empty note means the node was sent back: quote it.
An illustration, not a template: "Add export is at plan_approval, a gate,
blocked: review and approve the plan, docs/plan.md; a rejection goes back to
plan. State in jsonl. It needs your answer before anything runs."
If state shows sliced not null, also run these. --mark is refused together
with --held, so they are separate commands. --mark marks what you are about
to report as reported, so the next report doesn't repeat it:
python3 "$CLAUDE_PLUGIN_ROOT/kl.py" slices --chain-id <id>
python3 "$CLAUDE_PLUGIN_ROOT/kl.py" decisions --held --chain-id <id>
python3 "$CLAUDE_PLUGIN_ROOT/kl.py" decisions --unreported --mark --chain-id <id>
Report held questions first, each with why it is held and how to answer it: they
wait on the user, and stay at the top until answered. A slice's after slices not
yet merged are what it waits on; one in ready is ready to start, and one in
early may start from the branch of the one slice it comes after, once the
controller's review of that slice found nothing or only small things. Then
what starts or merges next (in main mode, a slice ready to merge is the
user's to merge), the decisions since the last report, and what the user needs
to do. Leave out a heading with nothing under it. A held question is also in the
--unreported list: report it once, under held. A held push is answered in that
slice's own session, where the user types You may push to <branch>.; any other
held question, to the controller. The shape, in this order:
Held for you (first, every time until answered):
- <slice>: <question> - <why held>. To answer: <exact words, and where>
Where: <chain> at <node> (<kind>, open or blocked), state in <backend>
Slices:
- <key> <title>: waiting on <keys> | ready to start | can start early from <key> | starting | running (<session>) | in review | ready to merge | merged
- rebase pending: <key> onto <its cut_from> (each key in `base_moved`)
Next: <what starts or merges next>
Decided since the last report:
- <slice>: <question> -> <answer> (<why>)
Needs from you: <each action, with the session and the words>
When the user asks about a finished chain, or what a run has cost so far:
python3 "$CLAUDE_PLUGIN_ROOT/kl.py" summary --chain-id <id>
Render it as the table in kraft-lite:next's section 5 (read it, in
../next/SKILL.md beside this skill; do not invoke next from here). Read only
that section. There is
no token count or cost: Lite never sees them, so estimate none. duration_seconds
is null until the chain is done: report the nodes walked so far and say the
total lands at the end.
Advance, close, approve, answer or start nothing from here, not even a slice in
ready or early: that is what kraft-lite:next, kraft-lite:gate and
kraft-lite:run-slices are for. When kraft-lite:run-slices invoked you,
return to it after the report.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub itsomidkarami/kraft --plugin kraft-lite7 skills in this plugin
/build-sliceBuilds one slice of a sliced Kraft Lite run as a child session that answers to its controller. Use when a controller's starting instructions name this skill, when a session is titled `<chain-id> <key>: <slice title>`, or when a controller or the harness tells a child to continue its slice, to rebase it, or that an earlier slice merged; the controller's side is `kraft-lite:run-slices`./gatePresents a Kraft Lite gate node to the user and records their answer. Use when a Kraft Lite chain's state is `blocked` at a gate node, or the user answers a gate./initWrites `.kraft-lite/bindings.yaml`, which binds a Kraft Lite chain's tasks to installed skills, instructions, or the repo's own test and CI commands where the defaults do not fit. Use when setting up Kraft Lite in a repo, when its bindings are stale, when a task should run a different skill or command, or when the repo still has a pre-V1 `.kraft-lite/registry.yaml` or a Kraft Lite verb refuses with `Run: python3 kl.py migrate`; starting work is `kraft-lite:start`, which needs no bindings.Other plugins' skills for the same job