Guides Claude through Kibi's change arc: finding requirements, editing, recording rules, running tests, and committing with .kb files. Also covers KB quality tasks like auditing, splitting requirements, and retiring obsolete knowledge.
Ships in Kibi for ZCode. 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.
Read when SKILL.md points to them.
Kibi records what the code must do and why. These steps expand the brief every Kibi surface opens with. Ask the person only for a decision: a conflict with a recorded rule, a choice between behaviours, an exception, or wording of a rule that says more or less than theirs. Do the steps a Kibi result lists without asking, then report them.
Use the kb_* MCP tools when visible (hosts may prefix them, such as
kibi_kb_search); otherwise the trusted project-local CLI, which takes the
same object:
printf '%s\n' '{"query":"checkout"}' | npx --no-install kibi search --input -.
If neither is available, stop and name the missing capability; never use a
global or installing runner. Elsewhere, pass workspaceRoot. Shapes agents
guess wrong (more in resources/interfaces.md, operation-access.md):
kb_search {"query"}; kb_query {"id"} or {"sourceFile"}kb_record {"statement", "why", "saidBy", "quote", "code": [{"file", "symbol"}]}:
symbol is the exported or top-level declaration holding the behaviourkb_review_firm_edit {"reviews": [{"requirementId", "sourceFile", "symbol", "verdict", "note"}]}
for the symbols the hook or finding namesBefore changing behaviour, kb_search the question, then kb_query({id})
the governing requirement; if the answer is weak, add the file in
sourceLocations. The requirement's statement and why are the rule.
Answer a "why" question from its recorded why, or say none is recorded;
never supply one. A file with no linked symbols can still be governed.
Hook snippets name the requirements a file implements, what they must keep
true, and their tests (resources/hook-snippets.md). A request that would
make a recorded requirement or ADR false (narrowing it or adding an exception
counts; touching its code does not) is a question, not a task: name the rule
and ask; change the code or the rule only when the person says so. Load
kibi-decisions when a request conflicts with a rule.
Recording what a change adds is part of it, in the same turn, and needs no
permission. Record a rule with one kb_record (CLI: kibi record --input -):
statement (one must sentence), why (the giver's reason, else "Reason
not stated"), saidBy (user, maintainer, agent), their quote, the
code, and an existing test. Their words approve it: confirm your wording
only if it says more, less or other than theirs. The result has the gate's
verdict (commitAllowed, findings with blocks), the steps left
(nextActions) and what only the person settles (approvalsNeeded). Send
each next action's input as returned, in order; never rebuild it from
kb_model output or resend a firm requirement's title. After two refusals
of a write, read recording.md "After kb_record". Facts, decisions and
proof contracts go through kb_upsert, endpoints before links. On
committed_with_repairs run the repairs; never resend. Never edit .kb/
by hand.
Before your final message, run the tests linked to the code you changed
(the snippet's "Covered by" lines or the TEST ids kb_check names) and
update any that pin the old behaviour. Then run one kb_check with
changed: true and sourceFiles (CLI: kibi check --changed <files>) and
fix what it reports about your change. Say first if tests could not run.
At level remember (kb_status) Kibi asks for no scenarios or proofs; at
test, follow nextActions (resources/proof-first.md).
When you commit: Kibi writes .kb files but never Git-stages or commits
them, so stage them with the code (git add .kb). When
kibi check --staged or the pre-commit hook refuses, load
kibi-commit-review.
Read one with kb_skills (action: "read", id: "kibi-usage",
resource: "resources/<name>") or from resources/ beside this file:
domain-subjects.md, quantified-claims.md,
predicate-ontology.md, fact-lanes.md, logic-ir.mdsecond-agent-edits.md, source-authoring.mdrequirement-size.md, kb-quality.md,
kb-improvement.mdresults-and-recovery.md,
branch-lifecycle.mdproof-first.md, then proof.md, prolog-proofs.md; UI:
ui-requirements.mdoperation-fields.md (large; search it),
workflows.md, relationship-directions.mdresources/branch-lifecycle.md (opens in a new tab)resources/domain-subjects.md (opens in a new tab)resources/fact-lanes.md (opens in a new tab)resources/hook-snippets.md (opens in a new tab)resources/interfaces.md (opens in a new tab)resources/kb-improvement.md (opens in a new tab)resources/kb-quality.md (opens in a new tab)resources/logic-ir.md (opens in a new tab)resources/operation-access.md (opens in a new tab)resources/operation-fields.md (opens in a new tab)resources/predicate-ontology.md (opens in a new tab)resources/prolog-proofs.md (opens in a new tab)resources/proof-first.md (opens in a new tab)resources/proof.md (opens in a new tab)resources/quantified-claims.md (opens in a new tab)resources/recording.md (opens in a new tab)resources/relationship-directions.md (opens in a new tab)resources/requirement-size.md (opens in a new tab)resources/results-and-recovery.md (opens in a new tab)resources/second-agent-edits.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/kibi-zcode:kibi-usagefrom Kibi for ZCode
npx claudepluginhub looted/kibi --plugin kibi-zcode7 skills in this plugin
/kibi-bootstrapUse for any Kibi bootstrap or onboarding task: seeding a new or thin knowledge base; reviewing a bootstrap or onboarding plan, preview, or evidence; judging approval readiness or coverage; diagnosing a blocked, partial, or failed bootstrap or its repair; applying an approved bootstrap plan; or asking the human which knowledge sources hold intent. Covers kb_status first, source interview, cited intent claims, read-only kb_plan_bootstrap preview, explicit approval, exact-plan kb_apply_plan, and repair-safe close-out./kibi-commit-reviewUse when kibi check --staged or the Kibi pre-commit hook blocks a commit (kibi_impact_evidence_missing, symbols_manifest_stale, symbol_granularity_violation, symbol-coverage, kibi check-generated drift, Staged impact review failed), or when preparing a commit or pull-request impact review. Covers reading the per-file Detail lines, authoring .kb/symbols.yaml symbol entries through kb_upsert, staging the tracked Kibi evidence with git add (symbol coordinates are derived and never staged), kb_prepare_impact_review for a staged or diff scope and kb_author_impact_review to write the record, the kibi signoff requirements summary to show before a commit, how merge commits and migration renames are judged, and which requirement a newly listed symbol belongs to without making that requirement too broad.Other plugins' skills for the same job