Skip to content
Back to skills

Kibi Freshness

ASecurity

Check exact Git attachment, branch migration/quarantine, compiled-store freshness, source linkage, and repair state before decisions or writes.

  • 13 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 13, 2026
ai-agentsrustgobashgitdocumentation

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 13, 2026

npx -y skills add Looted/kibi --skill kibi-freshness --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Kibi Freshness?

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

Security grade badge for Kibi Freshness
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/looted-kibi-freshness-kibi/badge)](https://www.skillsdirectory.com/skills/looted-kibi-freshness-kibi)

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
---
id: kibi-freshness
name: kibi-freshness
description: Check exact Git attachment, branch migration/quarantine, compiled-store freshness, source linkage, and repair state before decisions or writes.
version: 2.0.0
kibiCompatibility: ">=1.0.0"
tags:
  - kibi
  - mcp
  - freshness
  - agent-guidance
resources:
  - resources/branch-lifecycle.md
  - resources/source-authoring.md
  - resources/operation-access.md
---
## Goal

Help agents decide whether Kibi knowledge is current enough to support safe changes while preserving source-file traceability and approved interface boundaries.

## Interface Selection

1. Use whichever approved peer is visible: MCP or the trusted project-local CLI.
2. They have the same operation semantics and machine envelope; neither is preferred.
3. If neither surface is available, stop and tell the operator which capability must be enabled.
4. Never install packages, choose a package manager, or use a global fallback as part of freshness inspection.

Use `kibi-usage/resources/operation-access.md` for exact dedicated routes. A project-local CLI freshness check is executable as:

```bash
echo '{}' | npx --no-install kibi status --input -
```

## Capability Workflow

- Use `kb_status`, or `status --input`, first to confirm branch attachment, freshness state, dirty-worktree evidence, and whether the knowledge snapshot is safe to rely on.
- Treat `branchAttachment.gitBranch`, `branchAttachment.kbBranch`, and
  `branchAttachment.storePath` as exact identities. Hashed stores require a
  matching `branch.json`; a `legacy_compat` attachment is read-only until an
  explicit old/new migration is approved.
- Inspect bounded `staleReasons` (indexed source missing/newer or documentation
  source newer) and `proofSnapshotChanges`. Kibi deliberately reports
  editor/config paths such as editor dot-directories; do not silently ignore them.
- Use `kb_query`, or `query --input`, with `sourceFile` and text references for source-linked discovery.
- Re-run `kb_search`, or `search --input`, after sync gaps or stale context are detected.
- If knowledge must change, use the selected interface's `kb_upsert`/`upsert` or `kb_delete`/`delete` operation sequentially, then finish with `kb_check`/`check`.
- If status returns `migrationPlan.version: kibi.migration-plan.v2`, inspect its
  hash, scope, dependencies, and safety classes. Apply only ready automatic
  actions with explicit hash/action approval through `kb_apply_plan` or
  `kibi migrate --apply-safe`; escalate operator actions and never infer a
  migration from prose suggestions.
- Parse the outer `kibiProtocol`/`resultVersion` envelope. If a mutation returns
  `committed_with_repairs`, follow required typed `nextActions`; never retry the
  original operation.

When asked whether requirements are consistent or proven, run `kb_check` (or `check --input`) with both the domain-contradictions and coverage checks, then read the result's completeness information before you conclude anything. If any clause is unmodeled or its status is unknown, report incomplete analysis and name that clause rather than calling the requirements consistent, because a clean check is not proof when a clause is unmodeled. When the pair is fully modeled and compatible, report no conflict plainly without inventing doubt. If knowledge must change under authorization, keep the actual supplied target and intended relationship edges, and discover and query those targets first. Validate the exact payload with `kb_upsert` and `dryRun: true`, then perform the authorized `kb_upsert` with that same payload. Read the written result back exactly before running final checks, since validation alone is not completion. Distinct authorized payloads may need several sequential writes, so do not cap the work at one write, but never retry a mutation that has already committed. If a mutation returns `committed_with_repairs`, follow its typed `nextActions` instead of repeating the original operation.

## Guidance

- Treat MCP and the trusted project-local CLI as equal peer surfaces.
- Report task outcome separately from KB, verification, proof, and limitation
  state. A maintenance task can be complete with stale KB state or unresolved
  proof only when its scoped objective is complete and the status is named
  accurately; never call the KB clean/fresh in that case.
- A legacy attachment blocks mutation, and a dirty verification snapshot blocks
  evidence-dependent closeout. Name the exact paths/symbol IDs and whether the
  result is fixed, accepted, or deferred.
- If entities look stale, refresh context through an approved Kibi capability and then re-query.
- Preserve source-file traceability by carrying `sourceFile`, text references, and validation evidence through discovery, mutation, and completion.
- Do not read or edit files inside `.kb` directly; use the selected Kibi interface instead.
- Kibi authors tracked files but never Git-stages or commits them; ordinary Git workflows remain responsible for review and commit.
- Completion must state one freshness outcome: KB updated, no KB impact with rationale, or deferred/failed.

For exact branch lifecycle, quarantine, restore, and source-first writes, read
the shared `kibi-usage/resources/branch-lifecycle.md` and
`source-authoring.md` resources.

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.