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-refreshgit 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-refresh)<a href="https://agentmods.dev/skills/olegvg/olegvg-skills/kb-refresh"><img src="https://agentmods.dev/badge/skills/olegvg/olegvg-skills/kb-refresh/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-refresh"><img src="https://agentmods.dev/badge/skills/olegvg/olegvg-skills/kb-refresh.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.00077 | $0.03159 |
| Opus 5 | $0.00039 | $0.01580 |
| Sonnet 5 | $0.00015 | $0.00632 |
| Haiku 4.5 | $0.00008 | $0.00316 |
Grade B, and why
kb-refresh scanned grade B with 1 finding 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 12d 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.
Subtle steeringmediumPrompt injection
Instructions that bias recommendations or shape behaviour without the user noticing.
- **Drift artifact is optional fuel, not a contract.** If it exists and matches, reuse it. If not, do the work yourself. Never warn the user about a stale artifact — silently ignore. How it starts
The opening of the file, as written. The whole thing — 183 lines — stays where its author put it; the contents beside it link to each section on GitHub.
kb-refresh — Synchronize .kb/ After Corpus Changes
When to use
User invokes /kb-refresh <path1> [<path2> ...] after making changes to the corpus. Manual, targeted operation. Never automatic.
If the user did not specify any path, do not infer the scope from git status or pick "the whole corpus" silently — even in non-interactive / auto modes. Either ask, or invoke kb-check-drift first (see step 0 below) and propose specific paths. A bare refresh against the whole corpus is the most expensive form of this skill and almost never what the user wants.
Input
- One or more paths — subdirectories or files within the corpus. Multi-path is the preferred form when several scopes need refreshing in the same pass; it does one
git diffand one state advance over the union of paths. --base-sha <sha>(optional) — override the refresh watermark. Defaults to.kb/.kb-state.json:last_linted_sha. Used by thekb-maintainorchestrator to run a multi-call sequence against a single base.--no-advance-state(optional) — perform all the work but skip the final state write. Used by the orchestrator when chaining refresh with other writes; the orchestrator advances state once at the end.
Scope budget (hard gates)
These limits exist to keep the main agent's context bounded. Check them after step 3 (diff). If a gate trips, switch flow as instructed — do not plow ahead in the main context.
| Signal | Soft threshold | Hard threshold |
|---|---|---|
Changed source files (excluding .kb/) |
15 | 25 |
| Diff insertions+deletions across scope | 1500 lines | 3000 lines |
.kb/summaries/** files needing edits |
8 | 15 |
| Distinct KB areas touched | 3 | 5 |
- Below soft threshold: proceed inline (steps 5–8).
- Between soft and hard threshold: switch to multi-area subagent dispatch (step 5b). Do not attempt inline patching.
- At or above hard threshold: STOP. Report the count and ask the user to narrow scope (split
<path>into subpaths and re-invoke per area), or to runkb-buildfor the affected area if it has structurally changed.
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 12d ago First seen · 183 lines · 77 tokens per session scan B 1bf9736ec4ba
kb-refresh is a skill published in the GitHub repository olegvg/olegvg-skills (7 stars, last pushed 2mo ago), licensed MIT. It adds 77 tokens to every session and 3,159 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it B with 1 finding (subtle steering). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
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…
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…
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.
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.
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/.
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.