# Skills

The skills the Claude Code plugin `kebbie@kebbie` ships, and the hooks kebbie gives a task. You run the skills marked with a slash command; kebbie or Claude runs the rest.

| Skill | Run by | What it does |
| --- | --- | --- |
| `kebbie:set-up-worktree` | A task's Claude at the start of a task, or `/kebbie:set-up-worktree` | Makes the worktree runnable without touching the main checkout. The default `worktree.setup_skill`. |
| `kebbie:work-rules` | A task's Claude when it commits, the reviewer, the lead, `tidy` | Commit rules. The default `task.rules_skill`. |
| `kebbie:review` | The reviewer started by `kebbie review`, and the rules check on a ready report | Reviews a task's branch independently and gives a verdict with located findings. |
| `kebbie:keep-docs` | A task's Claude in a repo with `docs.required`, or when a review finding ends `(keep-docs)` | Updates the README and `docs/` in the same task as the change. |
| `kebbie:configure` | Claude, when you ask it to configure kebbie | Changes a setting in config.toml or a repo config, sets a machine up, or adopts a team's linked setup, and checks each change with `kebbie doctor`. |
| `kebbie:playbook` | The lead, when it plans or starts a task; a task's Claude, when it meets an obstacle, revises its plan or writes its card | The recipes for how a task gets done: when each applies, its phases and where you are needed. The lead names one with `kebbie start --recipe`. Its pages hold what happens on the way: [obstacles](/docs/explanation/obstacles-and-findings.md), plan revisions and the sign-off card. |
| `kebbie:investigate` | kebbie's investigator, which the keeper starts on an obstacle or a review finding about scope or intent | Decides what happens to it in line with the task's goal: a workaround, a preparatory subtask, a task of its own first, or a question to you. |
| `kebbie:using-kebbie` | Claude, the lead and tasks, when you ask about kebbie itself | Answers a question about kebbie from kebbie's own docs first, and cites the page the answer came from. |
| `kebbie:write-backlog-item` | The lead, kebbie's writer, and a task's Claude filing what it noticed | Searches for the item first and adds to it when it is filed already; otherwise writes it out while it is filed, by the backlog style `kebbie backlog template` prints. See [Fill the backlog](/docs/how-to/fill-the-backlog.md#what-a-written-out-item-holds). |
| `kebbie:write-question` | A task's Claude, the lead and the investigator, when they ask you something | The question first, at most three plain sentences of context, and two to four options that each say what you get. |
| `kebbie:write-push-summary` | A task's Claude, when it writes its sign-off card | The card's short headline, and a first Built line saying what changes for you when you push it and what proves it. |
| `kebbie:write-decision-line` | A task's Claude, when it writes the card's Decisions | Each decision as one line: the choice as you meet it, its reason in one clause, and who took it. |
| `kebbie:write-plan-brief` | A task's Claude, and the lead, when it asks you to approve a plan | Writes the plan's brief for you in the vault's language: one sentence on what you approve, then what you get, what it costs, what is left out and what is already decided. `kebbie ask --plan` refuses a plan without one. |
| `kebbie:write-jobs` | The lead, once you said yes on the board to making jobs of the `kebbie run --on` commands a task ran more than once, or when you ask | Proposes the commands [`kebbie job suggest`](/docs/reference/commands.md#jobs-on-another-machine) lists as named [jobs](/docs/reference/configuration.md#jobs), writes them into the repo config, and runs each once with `kebbie job run`. |
| `kebbie:propose-change` | The lead, when kebbie cost something; a task's Claude, to tell the lead | Saves what kebbie cost as a [kebbie issue](/docs/reference/commands.md#kebbie-issues), with no question to you. |
| `kebbie:review-split` | `/kebbie:review-split [base or what to review]` | Opens the [review split](/docs/reference/review-split.md). |
| `kebbie:history-split` | `/kebbie:history-split` | Opens `tig` in a split next to the pane. |
| `kebbie:move-to-worktree` | `/kebbie:move-to-worktree <task name>` | Moves this session's work in progress out of the main checkout into its own worktree and Space, and continues there. |
| `kebbie:expose-dev-servers` | `/kebbie:expose-dev-servers` | On a remote Linux machine you reach over ssh, serves each worktree's dev server through Caddy at its own host, so it opens in your laptop's browser. |
| `kebbie:make-worktree-safe` | `/kebbie:make-worktree-safe` | Audits a repo for what breaks across worktrees and, on your yes, drafts `bin/setup-worktree` and the fixes in a worktree for you to review. |

`kebbie:set-up-worktree` sets up dependencies, the gitignored inputs the main checkout has, its own databases and a free port, then runs one check that tests run.

`kebbie:work-rules`:

- Its rules: the work cut into small commits, each green and safe to deploy on its own and written so it reads alone, preparatory commits (a move, a rename, an interface) first, the change itself after them and a risky step (a data migration, a merge of identities, a deletion) last and alone; with subtasks on, those commits grouped into subtasks in the order they go out; a subject and a body that says why, one logical change per commit, staging by explicit file list, the push left to you.
- Its page `CUT.md` holds a checklist for planning the cut before any code, one for judging a finished branch commit by commit, the techniques that keep a commit safe (preparatory refactoring, parallel change, dark launches and flags) and a worked example.
- The task checks its own branch by it before it reports ready.
- The reviewer runs it in the rules check on a ready report and in `kebbie review`. The lead runs it when that check gives no verdict.

`kebbie:review`: the rules check on a ready report does only its commit, rules and docs steps.

`kebbie:keep-docs` finds what a change alters for the user and places each item on its page by Diátaxis (reference, how-to, explanation, tutorial).

`kebbie:using-kebbie` answers how to set something up, what a command, key or config does, or how a feature works. It reads [`kebbie docs <words>`](/docs/reference/commands.md#setup-and-maintenance), the pages it names and `kebbie help`.

`kebbie:propose-change`:

- Unless `[issues] propose = false` keeps the lead to your own requests, it saves what kebbie cost by itself, with a text about kebbie alone, and reopens a closed one that came back instead of filing it again.
- It asks you nothing about it: what it saved waits in the board's bugs to send.
- A fault you point out in kebbie, when kebbie's repo is among your areas, becomes a task that fixes it instead.
- It never sends one anywhere or opens a GitHub issue for it. A bug or wish reaches kebbie's maintainers through the hub report you approve (the list to send on the board, or `kebbie issue report`). `kebbie issue send` is yours to run, suggested only when you ask for a GitHub issue.

`kebbie:expose-dev-servers`:

1. Turns on `worktree.dev_route` per repo, on your yes.
2. Installs Caddy.
3. Writes `kebbie routes` to `/etc/caddy/kebbie.caddy` and reloads it.
4. Says what DNS or the proxy in front must point where.

## The review hook

The plugin's `PreToolUse` hook runs on `Edit`, `Write`, `MultiEdit` and `NotebookEdit`. It opens the review split on a task's first file edit when `auto_open` is on.

## Hooks kebbie gives a task

Each task's Claude starts with settings kebbie writes:

| Hook | Runs | For |
| --- | --- | --- |
| `SessionStart` | `kebbie hook inbox <task>` | Recording the session's inbox socket, which kebbie delivers its messages through. |
| `UserPromptSubmit`, `Stop` | `kebbie hook` | Delivering held messages and collecting the task's report at the end of a turn. |
| `PreToolUse` on `Edit`, `Write`, `MultiEdit`, `NotebookEdit` | `kebbie hook files <task> …` | With the sandbox on only: keeping Claude's file tools to the task's worktrees and temp folder. |
| `PostToolUse`, `PostToolUseFailure` on `Bash` | `kebbie hook evidence <task>` | Recording the task's test runs for [`kebbie evidence`](/docs/reference/commands.md#kebbie-evidence-name---json). It speaks to Claude only about a test run it could not record. |

The same settings deny `git push`, every kebbie command that is yours alone or the lead's (such as `kebbie push`, `approve`, `try`, `away`, `decide` and `issue send`), and herdr's commands that type into another pane.
