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.
npx skills add olegvg/olegvg-skills --skill kb-maintaingit clone --depth 1 https://github.com/olegvg/olegvg-skillsWrote 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.
[](https://agentmods.dev/skills/olegvg/olegvg-skills/kb-maintain)<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.
<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>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00084 | $0.01307 |
| Opus 5.5 | $0.00034 | $0.00523 |
| Sonnet 5.5 | $0.00017 | $0.00261 |
| Haiku 4.5 | $0.00008 | $0.00131 |
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.
How it starts
The opening of the file, as written. The whole thing — 109 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/orsrc/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, orfull.
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.mdor--record <plan>) → record path, see step 2b. Skip drift-check. - No arguments → discovery path, see step 2c. Invoke
kb-check-driftto surface candidates first.
The discovery path writes only a temporary drift report. On the fast and record paths, the supplied paths already define the work.
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
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.
- 11d ago Changed · +2 lines 4eb30bf934b7
- 12d ago Changed 5aca3707e7e4
- 3mo ago First seen · 107 lines · 84 tokens per session scan A 459fda981699
kb-maintain is a skill published in the GitHub repository olegvg/olegvg-skills (10 stars, last pushed 12d ago), licensed MIT. It adds 84 tokens to every session and 1,307 once invoked, about $0.0003 per session on Opus 5.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.
kb-maintain compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| kb-maintainolegvg/olegvg-skills | Skill | 10 | 12d ago | MIT | A | 84 | Claude Code |
| engram-digesttechtheist/engram | Skill | 37 | 14d ago | MIT | A | 98 | Claude Code |
| engram-sleeptechtheist/engram | Skill | 37 | 14d ago | MIT | A | 114 | Claude Code |
| engramtechtheist/engram | Skill | 37 | 14d ago | MIT | A | 78 | Claude Code |
| thoughtline-memoryAgusLoza2021/Thoughtline | Skill | 4 | 9d ago | MIT | A | 40 | Claude Code |
| bootstrap-llm-synthesisdigipulse-engineering/GAAI-framework | Skill | 164 | 13d ago | none | A | 69 | Claude Code, Codex |
| memory-delta-triagedigipulse-engineering/GAAI-framework | Skill | 164 | 13d ago | none | A | 58 | Claude Code, Codex |