Skip to content
Back to skills

Init

ASecurity

Writes `.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.

  • 16 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 21, 2026
ai-agentspythongonodegit

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add itsOmidKarami/kraft --skill init --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Init?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Init
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/itsomidkarami-init/badge)](https://www.skillsdirectory.com/skills/itsomidkarami-init)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: init
description: "Writes `.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."
---

# Setting up Kraft Lite in this repo

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.

A pre-V1 `.kraft-lite/registry.yaml` with no `.kraft-lite/bindings.yaml`, or a
verb saying `Run: python3 kl.py migrate`: see the last section first.

Every binding is optional. A task with none runs on its default: an agent task's
own skill or prompt, and an instruction for each builtin and forge task. The file
holds only what differs. A child walking a slice needs nothing more: its slice
defaults are built in.

Run `python3 "$CLAUDE_PLUGIN_ROOT/kl.py" detect` from the repo root, with
`--chain <id or path>` for a chain other than the default. It prints
`test_command`, `ci_command`, `candidates` (for each agent task under `tasks`,
builtin under `builtins` and forge target under `forge`, the installed skills that
plausibly serve it) and `proposed`: the bindings that need no question - an agent
task with exactly one candidate, the test command for
`kraft.verify_changed_test_scopes`, the CI command for `mr.ci`.

Write `.kraft-lite/bindings.yaml` from `proposed` plus the user's choices:

- An agent task with two or more candidates, and a builtin or forge task with
  any, is the user's call: a skill bound there replaces the default. Ask once, in
  one message listing them all with their candidates - not one question per
  task - and write nothing for them until they answer.
- A task with no candidate gets no entry.
- Write only a command detect reported or the user gave you, never one you
  inferred: a binding that can't run here reads as finished until the node fails.
  A skill the user names that `candidates` doesn't list isn't installed here, so
  its `prompt` runs instead: say so before you write it. A `null` `test_command`
  or `ci_command` leaves that task on its default.
- Each entry has a `kind` and the keys it needs, or `start` refuses the file:
  `skill` takes `skill` and `prompt` (the one `proposed` gives, or one line on
  the task's job), which runs when the skill is missing; `prompt` takes
  `prompt`; `subprocess` takes `command`, a list; `skip` takes `why`.

      tasks:
        spec_author:
          kind: skill
          skill: superpowers:brainstorming
          prompt: Produce the work item's specification.
      builtins:
        kraft.verify_changed_test_scopes:
          kind: subprocess
          command: [just, test]
      forge:
        mr.ci:
          kind: subprocess
          command: [gh, pr, checks]

If `.kraft-lite/bindings.yaml` already exists, start from its entries: add the
`proposed` ones for tasks it doesn't bind, and ask only about the unbound tasks
that need a choice (the first bullet above). With nothing to add, say so and
write nothing. Where it holds a different command than detect printed, keep
theirs. Show the user a diff against it, and ask before you write; don't
overwrite one they've edited.

## Finish

Print the path and say it is meant to be edited and committed. Tell the user
to add `.kraft-lite/decisions/`, `.kraft-lite/messages/`, `.kraft-lite/proposals/`
and `.kraft-lite/reviews/` to `.gitignore`: a sliced run writes its decisions log,
messages and proposals there, and a gate's reviewer its reports, and they are not
for the repo. Nor is a chain's run state: `.kraft-lite/chains/`, the frozen
chains, and with no `bd`, `.kraft-lite/chain.jsonl`. After a migrate,
`.kraft-lite/registry.yaml.migrated` goes there too, or is deleted.
`bindings.yaml` stays committed, and so does `.kraft-lite/harnesses/`, what a
sliced run learned about a harness's tools.

## A pre-V1 directory: migrate

A directory is an older Kraft Lite's when it has `.kraft-lite/registry.yaml` and
no `.kraft-lite/bindings.yaml`, or when a verb refuses with
`Run: python3 kl.py migrate`. Write no bindings by hand: run
`python3 "$CLAUDE_PLUGIN_ROOT/kl.py" migrate`. It prints:

- `bindings`: what it wrote to `bindings.yaml` from the registry; `{}` when
  there was no registry, so no file was written.
- `dropped`: hooks it left out, because no V1 task serves them or they repeat
  a default. Report them; there's nothing to do.
- `chains`: each unfinished run's old id (`from`) and new one (`to`), which
  every later verb takes.

Report each, say a written `bindings.yaml` is to be committed and the registry
is now `registry.yaml.migrated`, then go to Finish. A run that finished before V1 needs no
migrate: `state` says `done`; its `summary`, `export` and other reports need the
previous Kraft Lite, and `kl.py` refuses every chain verb but `state` for it.

It refuses, and moves nothing, in these cases; any other refusal names its own
way on: follow it.

- A run it cannot move (sliced, a slice's child, on another legacy chain, with
  nodes the old default lacks, or with its chain record missing): tell the user
  the two ways on it names - finish that run on the previous Kraft Lite version,
  or `python3 "$CLAUDE_PLUGIN_ROOT/kl.py" migrate --abandon <chain-id>`, which
  closes the run's open records, labelled `kraft-abandoned`, and keeps them -
  and run nothing until they choose. After an abandon, run `migrate` again; after
  the other choice, stop: the run must finish first. `--abandon` refuses an id
  that is not an unfinished pre-V1 run.
- A registry hook migrate doesn't know (the refusal names it): take it out of
  the registry, run `migrate`, then bind it in `bindings.yaml` by hand, under
  the task the user says it serves.
- A registry Lite cannot read (named with its file and line), one that is not a
  mapping of hooks, or an entry that would make a bindings file Lite refuses,
  such as a `skill` with no `prompt`: correct it in the registry, run `migrate`
  again.
- `bindings.yaml` and `registry.yaml` both present: move `bindings.yaml` aside
  (`.kraft-lite/bindings.yaml.mine`), run `migrate`, then show the user a diff of
  the two files and merge them by hand, their own entries kept unless they say
  otherwise. Delete `bindings.yaml.mine` once merged.
- `the bindings did not read back as written`: a fault in Lite; report it.

With both files present and no verb refusing, `bindings.yaml` is what the walk
reads: leave the registry alone and carry on with the setup above.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.