kibi-commit-review
/kibi-commit-review
Use 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, the kibi signoff requirements summary to show before a
Assessment and security
- Files in this package
- 2
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.
AGPL-3.0, copyleft: przeróbki udostępniane innym muszą mieć tę samą licencję.
What it does and when to use it
Use 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, the kibi signoff requirements summary to show before a
Original author description
Use 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, the kibi signoff requirements summary to show before a
How it works
- Goal
- Interface Selection
- When this applies
- Steps
- Requirements signoff
- Impact reviews
- Merge commits and migrations
- Typed results and report
SKILL.md preview
---
name: kibi-commit-review
description: "Use 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, the kibi signoff requirements summary to show before a commit, and how merge commits and migration renames are judged."
license: AGPL-3.0-or-later
metadata:
displayName: kibi-commit-review
id: kibi-commit-review
version: 1.3.0
kibiCompatibility: ">=1.0.0"
tags:
- kibi
- commit
- staged-check
- traceability
- agent-guidance
resources:
- resources/staged-gate.md
---
## Goal
Get a commit through Kibi's staged gate by fixing the cause: the commit
carries the knowledge its behavior change needs, with current symbol
coordinates, so the gate passes for the same reason a reviewer would accept it.
## Interface Selection
Use the visible approved MCP tools or the trusted project-local CLI as equal
peer interfaces (CLI JSON: `printf '%s\n' '{}' | npx --no-install kibi status
--input -`). The gate itself is CLI: `npx --no-install kibi check --staged`
(add `--format json` for the full evidence). If neither surface is available,
stop and name the missing capability. Never read or edit `.kb/` files directly.
## When this applies
- `kibi check --staged` fails, or the pre-commit hook (`kibi check-generated
--staged --changed-only`, then `kibi check --staged`) blocks a commit.
- You are about to commit or open a pull request and want the impact review
ready first.
Never read or open any file under `.kb`, not even read-only with a file tool to look at symbols or coordinates; doing so fails the session even when nothing is written. What you need is already shown elsewhere: the gate's `Detail:` lines, `kb_query` by `sourceFile` or `id`, and `kb_check` with `staged: true` show which symbols and coordinates are covered and which are missing. Before deciding what the change is, always run `kb_search` with `sourceLocations` for each named file and `kb_query` the requirement that governs it, even when the edit looks coordinate-only or seems to contradict a firm rule. When a write is authorized, keep the supplied target and its intended edges, query those targets first, validate the exact payload with `kb_upsert` and `dryRun: true`, then send that same payload with `kb_upsert` and exact-read the result back with `kb_query` before the final checks. Distinct authorized payloads may need several sequential writes, but never resend a write that is already committed, and let typed `nextActions` drive recovery. A passing dry run is validation only, not completion.
## Steps
1. **Read the whole failure.** Each finding names an id, the files, `Detail:`
lines and a `Suggestion:`. Detail lines are complete per file: how many
symbols extraction finds in the staged content, how many the staged
evidence covers, and every symbol missing from `.kb/symbols.yaml` with its
line. The common ids and their fixes are in `resources/staged-gate.md`.
2. **Find the owning knowledge.** `kb_search` with `sourceLocations` for each
named file (or `kb_query({sourceFile})`), then `kb_query` the requirements,
scenarios and tests it returns. Run `kb_check` with `sourceFiles`,
`includeImpactDiagnostics: true` and `staged: true` to see the impact
findings, including `requirement_statement_unverified` quotes.
3. **Decide what the change is.**
- Behavior changed: update or record the knowledge (a requirement with a
scenario, or a new clause) through `kb_upsert`. If the change contradicts
a recorded rule, stop and ask; load `kibi-decisions`.
- New or uncovered symbols: author a `symbol` entity per listed symbol
through `kb_upsert` (`title` = the member the extractor names,
`sourceFile`, `status: active`, `symbol_role: behavioral`, `implements`
to the requirement, `covered_by` to the test).
- Only lines moved: nothing to do. Symbol coordinates are derived locally
by every sync and never committed.
- No behavior change (a genuine false positive): see the audited
no-impact note in `resources/staged-gate.md`; it never covers a real
behavior change.
4. **Stage the evidence.** Kibi authors tracked files but never Git-stages or
commits them. `git status --short .kb` lists what it wrote; `git add` the
entity Markdown, `.kb/relationships/` shards and `.kb/symbols.yaml` that
belong to this change (use `git add -p` when the files hold unrelated
edits). `.kb/symbol-coordinates.yaml` is gitignored; never stage it.
5. **Re-run** `kibi check --staged` (and `kibi check-generated --staged` when it
failed) until it passes. Never bypass the hook (`--no-verify`) unless the
person says so.
## Requirements signoff
Before you ask the person to approve a commit that adds, rewrites or retires
requirements, or changes code that implements them, show them what they are
signing off:
```
npx --no-install kibi signoff # working tree; --staged for the index
```
It prints Markdown listing each new, changed, affected and retired
requirement with its statement (before and after for a rewrite), firmness,
origin, scenarios and proof state. Put it in your reply unchanged (in the
messaging tool's message when replies go through one), then add one or two
sentences on why the requirements changed. Offer the full page with
`kibi signoff --format html --open`, or publish `.kb/briefs/signoff/latest.html`
as a rendered page when your host has a page tool (the Artifact tool in Claude
apps); never attach the `.html` as a file, which chat apps show as raw source;
past 15 requirements the Markdown stops and only the page lists them all.
Host details: `kibi-decisions`, `resources/signoff-views.md`. `--no-proof` skips the proof lookup, which reads coverage and is slow
on a large knowledge base. The summary is not an approval: never set
`approved_by` or `origin.ref` from it.
## Impact reviews
When the repository's base commit carries `.kibi/impact-policy.json`, the gate
also demands a content-bound review record at `.kibi/impact-review.json`
(`Staged impact review failed: impact_review_invalid ...`). Prepare it with
`kb_prepare_impact_review` (`scope: {"kind":"staged"}`, or `{"kind":"diff",
"baseCommit":"<40-hex sha>","headCommit":"<40-hex sha>"}` for a pull
request). It is read-only: it returns per-file evidence, requirement scopes,
residual review obligations and an unauthored record template. Draft each
file's `decision` from what you verified, leave `reviewer.id` for the person
who reviews, and never present the record as their approval. Field details are
in `resources/staged-gate.md`.
## Merge commits and migrations
During a merge (`MERGE_HEAD` exists), files staged unchanged from a merged
parent are skipped (`Merge commit: N staged file(s) are taken unchanged ...`);
only what the merge resolved or edited is judged. A commit that moves
knowledge into `.kb/` after `kibi migrate` is compared with the old paths
(`Baseline: HEAD with N staged knowledge rename(s) ...`), and symbol records
changed only by the migration are not judged as changed. Debt reported there
came from the branch or the old layout; the full `kibi check` still shows it.
## Typed results and report
Parse `kibiProtocol`, `status`, diagnostics and typed `nextActions` on every
Kibi write. On `committed_with_repairs`, run the repair actions and never
resend the original write. Report the findings you fixed (id, file, what
changed), the knowledge you recorded or confirmed still current, the files
you staged, the final `kibi check --staged` result, and anything left for the
person (an open rule conflict, an unauthored review decision).
Files in this package (2)
- SKILL.md 8 KB
- resources/staged-gate.md 8 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · looted/kibi | 100 | AGPL-3.0 |
| looted/kibi | 100 | AGPL-3.0 |
| looted/kibi | 90 | AGPL-3.0 |
Identical content appears in 2 other GitHub folders. We show one copy with the highest score.
Database snapshot: 13.11.2026 · package version 44578f830da9 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100kibi-traceability
Maintain source-first requirement, scenario, test, symbol, and proof traceability through Kibi's peer interfaces. Use when linking a code symbol to a requirement (implements, covered_by, executable_for), choosing which function owns a behavior, moving or removing links, or when… - 85Kibi Usage
Use Kibi's source-first, exact-Git, migration-aware, proof-aware operations safely across MCP or the trusted local CLI, including partial completion repair. Also use for knowledge base quality work: cleaning up or auditing a KB, clearing kibi check review findings… - 98pre-commit-review
Run the required staged-diff review (a simplification pass, a secret scan, then four read-only review lanes) before every git commit, and record the approved staged-tree state for the shared Git hook. Use when an agent is about to commit, runs /pre-commit-review, reviews staged… - 100commit-staged
This skill should be used when user asks to "commit these changes", "write commit message", "stage and commit", "create a commit", "commit staged files", or explicitly invokes "commit-staged". - 100pre-commit-review
Review staged and unstaged changes before committing. Use when asked for a pre-commit review, a code-quality review of the current diff, or when a solve workflow requests an independent review. - 100pre-commit-review
Review local staged and unstaged tracked-file changes before committing or before a pull request exists. Use when the user invokes /pre-commit-review, asks for a pre-commit review, asks to review local changes before commit, or wants a local working-tree review before a PR exists.