kerbylisted
Install: claude install-skill sorawit-w/kerby
# kerby — session loader
This skill loads the `kerby` guardrails into the current session and provides per-project install utilities. **The skill does not contain the rules themselves** — those live in **self-contained rulebook folders** under `./rulebooks/` (each with its own manifest, prose bodies, references, workflows, and hooks), while `./resources/` holds only engine machinery (the validator, the SessionStart state hooks, state templates, engine references).
## Locating the bundled rule content
Resolve the **install root** via the first method that succeeds:
1. **Glob discovery (preferred).** Use the `Glob` tool with pattern `**/skills/kerby/SKILL.md`; the install root is that file's parent directory. Common install locations are `~/.claude/skills/kerby` (global) or `<project>/.claude/skills/kerby` (project-local). Use the first match that exists. Never glob for BOOTSTRAP.md — the engine anchors on SKILL.md; rulebook bodies (including external clones under `.kerby/rulebooks/`) are resolved from the install root, and a BOOTSTRAP glob could match any rulebook's copy.
2. **`KERBY_DIR` env var.** If set, the install root is `${KERBY_DIR}`.
3. **Ask the user.** If both fail: "Where is your kerby install? (Could not auto-locate BOOTSTRAP.md.)"
From the install root: rulebooks live at `<install-root>/rulebooks/<id>/`, engine machinery at `<install-root>/resources/`. The locator finds the *install*; **what to load comes from rulebook manifests**, below.
---
## Rulebooks,