/kraft:preparefrom kraft
Defines non-trivial work by writing a spec, sizing it, and deciding whether to run inline or hand off to Kraft. Use before starting any work that needs a plan.
Ships in kraft. 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 is the layer above kraft:handoff: it defines the work first, then decides where
it should run.
Before writing one, search(q) for the area: the decision may already be in
another repo's spec or plan (kraft:board says how). A hit that settles it goes
to the user before the spec skill runs; otherwise pass it to the spec skill.
With no kraft tools, skip the search and say that handing off isn't possible.
Then run a spec skill - default superpowers:brainstorming - unless the user
named a different one. If none is installed, write a half-page spec (goal,
chosen approach, parts, out of scope), show it, and get approval. The spec
skill's own review and approval cover "review the spec"; don't add a second
review pass on top of it.
Stop when the spec is approved. If the spec skill then hands on to a plan
skill (brainstorming invokes superpowers:writing-plans), don't follow it:
this overrides that hand-off, not the spec skill's approval gate. Come back to
step 2; step 3 says when a plan is written. If the spec skill did a quick task
itself, there is nothing left to judge. If it splits the request into several
independent projects, run steps 1 and 2 for each, in the order agreed: each is
its own inline task or work item.
Right after the spec, before touching a plan. Size the work by what the spec
describes; the spec skill may already have said it (superpowers:brainstorming
sizes work as a quick task, a small change, or a project with a written
design). If it didn't, size it yourself and say that you did:
CLAUDE.md,
AGENTS.md or CONTRIBUTING says where they live), and write a new test
function only for a new behaviour.kraft:handoff to file it, attaching the spec. Kraft's own chain plans it -
don't write a plan doc just to hand it straight to something that writes its
own.Explicit user override wins outright. If the user asked to file the work
as it is and skip the spec, that's kraft:handoff alone, with no spec. If they
already said "do this inline" or "hand this to Kraft," skip the inline/handoff
verdict and honour that instead - still write the spec first. It replaces the
verdict, not the parts call: if parts stand alone, send the message below for
that and wait; if none do, act.
Then decide how independent parts are built. Slices don't replace sub-agents. Sub-agents are the default, inline or inside one Kraft item: they share the worktree and need no setup or join. A part earns more only when it makes sense on its own: a coherent piece with its own tests, which its own implement, verify and review loop can check without another part's code. Size is a weak hint, not the test, and a part of a task or two almost never earns a slice. So:
kraft:handoff per part, each attaching
a spec for that part only, each its own merge request.For slices or separate items, add a short Parts section to the approved spec and show just that section in the message below; the user's go covers it. Cut a spec per part only after the go.
Then send one message and stop: the verdict (inline or handoff), the parts call (sub-agents, slices or separate items, with names) and a one-line reason. Wait for the user to confirm or override it before acting: they know what a filed item costs them. Auto (step 4), or an override whose parts call needs no question, skips the wait.
A plan is bound to the code as it is right now; a spec isn't. A spec written today is still good in two days, a plan might not be - so don't produce one speculatively.
If asked, run a plan skill - default superpowers:writing-plans - with its own
review gate. On a handoff, skip its execution-method question and its hand-on:
the plan is attached, not executed here. Re-run the judgement above with the
plan in hand (it sharpens the same inline/handoff call - e.g. a plan that turns
out to be one small task can move a project-sized spec to inline), and attach
the plan alongside the spec if handing off. If the parts are slices, end the
plan with a ## Slices section, one bullet per slice (- **Slice 1: Parser.** Tasks 1-3.), nothing but task numbers after "Tasks", two to six slices by
default. A slice can't use another's work, a task belongs to one slice at most,
and tasks two slices share stay outside every slice: Kraft builds those first.
Do not put a full-test-suite run in the plan. A plan headed for Kraft runs under a chain whose verification node already runs the suite (and local review) after implementation, with its own fix loop - a task step that re-runs it is redundant work the chain repeats anyway. Per-task targeted tests (the test the task itself is about) stay in the plan; only the suite-wide run is out.
If the user said auto after the skill name (/kraft:prepare auto ...) or
"do this in auto": skip step 2's confirmation, including after step 3 re-runs
the judgement, act on it immediately, and report the outcome afterwards instead
of asking first. Auto never skips the spec skill's own approval.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub itsomidkarami/kraft --plugin kraft11 skills in this plugin
/boardReads what Kraft is doing across work items: the board, and a cross-repo search of specs, plans and session summaries. Use when asked what work is running, blocked or waiting on a person, or whether a decision was already made in a spec or plan in another repo. One item's progress or a watch belongs to kraft:status, and a stopped item to kraft:triage./checkReports where Kraft's config on this machine has drifted from what this Kraft version ships: chains that no longer resolve, a chain that hides Kraft's built-in kraft-default, a missing setup command, skills a chain names that are not installed. Use after `kraft admin update` has been applied, when `kraft admin templates lint` fails, a chain won't resolve, or a chain names a skill that isn't installed; a server that is unhealthy is kraft:doctor./Other plugins' skills for the same job