knowledge-base

knowledge-base is a skill for Claude Code, Codex from svy04/ballast. It costs 47 tokens per session (964 once invoked), scanned A, original, MIT.

A knowledge-management guide for saving verified research in a local memory folder. It checks existing notes before new research and labels findings by how certain they are.

In plain words
What is it for?
Use it before researching a topic, when confirming a finding, or when answering from earlier work. It organizes verified findings into topic files for later reuse.
Why use it?
It prevents the same investigation from being repeated and keeps unverified observations from being treated as established facts. A verification step decides what can be saved as reliable knowledge.

Skill for Claude CodeCodex

Part of the ballast plugin — 16 skills, 4 hooks shipped together

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.

agentmods
npx agentmods add skills/svy04/ballast/knowledge-base
Any agent
npx skills add svy04/ballast --skill knowledge-base
Clone the repo
git clone --depth 1 https://github.com/svy04/ballast

Made for: Claude Code, Codex.

Or install ballast, the plugin that ships this one along with the rest of its 16 skills, 4 hooks.

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 knowledge-base

README.md
[![agentmods](https://agentmods.dev/badge/skills/svy04/ballast/knowledge-base.svg)](https://agentmods.dev/skills/svy04/ballast/knowledge-base)
Your own site
<a href="https://agentmods.dev/skills/svy04/ballast/knowledge-base"><img src="https://agentmods.dev/badge/skills/svy04/ballast/knowledge-base.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 964 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00047 $0.00964
Opus 5 $0.00023 $0.00482
Sonnet 5 $0.00009 $0.00193
Haiku 4.5 $0.00005 $0.00096

Measured 3d ago against content hash 33380b3c24f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

knowledge-base 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 3d 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/knowledge-base/SKILL.md · 57 lines

How it starts

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

Knowledge base

A session that researches well and forgets is a session that will research again. This skill adds the layer that makes learning cumulative: verified findings land in memory/knowledge/<topic>.md, and every new question checks there first.

Lookup before research — always

Before investigating any topic, read memory/knowledge/ for an entry that answers it. If a current entry exists, use it and cite it — re-researching a settled question wastes the work that settled it. If the entry is stale or only partially covers the question, research the gap, not the whole topic.

Drafts stay drafts

Findings made mid-task (a benchmark result, a library's actual behavior, an API's undocumented limit) are drafts. Label each with the verify-gate labels — confirmed / observed / assumed / hearsay / unknown — wherever the draft lives: session log, working notes, a comment in the task file. Drafts may inform the current task but must not be quoted later as established knowledge.

Promotion — the gate is the door

Only claims that pass the verify gate enter memory/knowledge/. One file per topic, entries shaped like:

## Connection pool exhausts under burst load — verified 2026-08-14

- Claim: the default pool (10) exhausts at ~40 concurrent requests; queue wait exceeds 2s.
- Sources: load test output (tests/load/pool.txt), library docs on pool sizing (both opened).
- Sample: 3 runs, same config. Limits: measured on the staging tier only; production tier untested.

Every entry carries: the claim, named primary sources, sample size, stated limits, and a verification date. An entry missing any of these is still a draft, whatever file it sits in.

The first time you create memory/knowledge/, add a row for it to the File map in memory/00-INDEX.md before writing the first entry — a folder missing from the map is a folder the next session never opens.

Check what the finding contradicts before filing it. Read the existing entries this finding touches. If it contradicts one, do not shelve the two beside each other: surface the conflict first, then either supersede the old entry — with a link back to it from the new one — or hold the new entry and register the question in OPEN-QUESTIONS.md. If the two rest on different layers of evidence (different scope, subject, or measurement), placing them side by side is as far as it goes; they do not get merged into one claim.

Read the full file on GitHub · 57 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. 3d ago First seen · 57 lines · 47 tokens per session scan A 33380b3c24f3

Subscribe to this mod's changes

knowledge-base is a skill published in the GitHub repository svy04/ballast (71 stars, last pushed 9d ago), licensed MIT. It adds 47 tokens to every session and 964 once invoked, about $0.0002 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-30.