kb-maintain

kb-maintain is a skill for Claude Code from olegvg/olegvg-skills. It costs 84 tokens per session (1,334 once invoked), scanned A, original, MIT.

A guided maintenance workflow for keeping a .kb/ knowledge base current. It combines drift checks, targeted refreshes, and recording decisions from project plans.

In plain words
What is it for?
Use it to check for stale content, refresh selected areas, record shipped decisions, or run a full maintenance pass on an existing knowledge base.
Why use it?
It helps you choose the right maintenance action while keeping changes visible and asking before ambiguous writes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the olegvg-skills plugin — 7 skills, 6 commands, 1 plugin shipped together

Good fit Use it to check for stale content, refresh selected areas, record shipped decisions, or run a full maintenance pass on an existing knowledge base.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/olegvg/olegvg-skills/kb-maintain
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add olegvg/olegvg-skills --skill kb-maintain
Clone the repo
git clone --depth 1 https://github.com/olegvg/olegvg-skills

Made for: Claude Code.

Or install olegvg-skills, the plugin that ships this one along with the rest of its 7 skills, 6 commands, 1 plugin.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kb-maintain

README.md
[![agentmods](https://agentmods.dev/badge/skills/olegvg/olegvg-skills/kb-maintain/github.svg)](https://agentmods.dev/skills/olegvg/olegvg-skills/kb-maintain)
Your own site
<a href="https://agentmods.dev/skills/olegvg/olegvg-skills/kb-maintain"><img src="https://agentmods.dev/badge/skills/olegvg/olegvg-skills/kb-maintain/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kb-maintain

Your own site · 80×15
<a href="https://agentmods.dev/skills/olegvg/olegvg-skills/kb-maintain"><img src="https://agentmods.dev/badge/skills/olegvg/olegvg-skills/kb-maintain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,334 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.01334
Opus 5 $0.00042 $0.00667
Sonnet 5 $0.00017 $0.00267
Haiku 4.5 $0.00008 $0.00133

Measured 11d ago against content hash 459fda981699, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

kb-maintain scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/kb-maintain/SKILL.md · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

kb-maintain — Guided KB Maintenance Flow

When to use

User wants the KB brought current but has not specified whether the work is a drift check, a scoped refresh, decision recording, or a sequence of those operations.

This skill is an orchestrator. It does not implement refresh or decision-record logic directly; it delegates to the atomic skills and keeps each write boundary visible to the user.

Input

  • Optional scope path(s), e.g. src/billing/ or src/billing/ src/auth/.
  • Optional plan path, e.g. docs/plans/2026-03-19-1400/plan-billing-rewrite.md.
  • Optional mode words like check only, refresh, record decisions, or full.

If the user's intent is ambiguous, ask one short clarification before writing anything.

Workflow

1. Branch on user input

If .kb/ does not exist, stop and suggest invoking the kb-build skill (or /kb-build).

Then choose a path:

  • Explicit scope provided (/kb-maintain src/billing/ or one or more path arguments) → fast path, see step 2a. Skip drift-check.
  • Plan path provided (/kb-maintain docs/plans/.../plan-X.md or --record <plan>) → record path, see step 2b. Skip drift-check.
  • No argumentsdiscovery path, see step 2c. Invoke kb-check-drift to surface candidates first.

The drift-check is read-only and never modifies .kb/. Skipping it on the fast/record paths is safe: the user already specified what to do.

2a. Fast path — direct refresh

Invoke the kb-refresh skill once with the full list of approved paths. Prefer one call with multiple paths over N sequential calls — see kb-refresh's multi-path input contract.

If the user gave one path, that is one batched refresh of one path. If many, that is one batched refresh of many. Either way: one invocation, one git diff, one state advance.

After the refresh returns, surface any decision candidates the refresh reported and ask whether to also record them (step 2b for each approved plan).

2b. Record path — decision recording

Read the full file on GitHub · 107 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 107 lines · 84 tokens per session scan A 459fda981699

Subscribe to this mod's changes

kb-maintain is a skill published in the GitHub repository olegvg/olegvg-skills (7 stars, last pushed 2mo ago), licensed MIT. It adds 84 tokens to every session and 1,334 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

engram

Read and write the project's durable reasoning memory (decisions, principles, cautions, problems, insights) through the Engram MCP tools. Recall relevant memory before non-trivial work; capture only durable, high-value knowledge silently at natural stopping points; keep the graph honest (judge suspects, close answered…

techtheist/engram · 78 tokens

engram-digest

Seed or top up this project's Engram graph from the existing codebase — an explicit, user-invoked digestion of the current working tree into typed memory nodes (decisions, principles, cautions, problems, insights, intents). Use when the user says "digest this project", "ingest the codebase into memory", "seed the…

techtheist/engram · 98 tokens

bootstrap-llm-synthesis

Construct the LLM synthesis prompt from project surface scan + optional tree-sitter context + optional Q&A answers. Call the LLM. Parse and validate the response into 6-8 structured memory entries with clarity tags and source traceability. Used as Stage 3 of the /gaai:bootstrap pipeline.

digipulse-engineering/GAAI-framework · 69 tokens

memory-delta-triage

Apply three deterministic heuristics to a single memory-delta file to produce a structured verdict block; invoke memory-ingest on ACCEPTED candidates only in validate mode. Activate when Discovery processes a raw memory-delta from contexts/artefacts/memory-deltas/.

digipulse-engineering/GAAI-framework · 58 tokens

memory-reconcile

Scan all memory files, documentation (/docs//.md), and README files (/README.md) for drift, contradictions, and stale references. Produce a reconciliation report for Discovery to action. Activate on demand or via cron.

digipulse-engineering/GAAI-framework · 0 tokens

memory-archive-superseded

Migrate a superseded DEC's index rows from active index.md to archive/superseded-decisions.archive.md. Idempotent. Discovery-only — never invoked by daemon delivery. Updates DEC frontmatter as canonical source of truth.

digipulse-engineering/GAAI-framework · 58 tokens