agent-context-kb

agent-context-kb is a skill for Codex from lesliebiubiubiu/agent-context-kb-skill. It costs 86 tokens per session (1,045 once invoked), scanned A, original, MIT.

A repository-local knowledge base called .agent-kb/ for storing durable project facts and decisions for coding agents. It includes commands to initialise, validate, add notes, compile, trim, and inspect the knowledge base.

In plain words
What is it for?
Use it to set up project memory, record decisions, compile notes into topics, validate links and routes, inspect statistics, or remove stale knowledge.
Why use it?
It keeps important project knowledge available between tasks instead of leaving it scattered across conversations or temporary notes. Validation and link checks help find broken or outdated entries.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it to set up project memory, record decisions, compile notes into topics, validate links and routes, inspect statistics, or remove stale knowledge.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lesliebiubiubiu/agent-context-kb-skill/agent-context-kb
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 lesliebiubiubiu/agent-context-kb-skill --skill agent-context-kb
Clone the repo
git clone --depth 1 https://github.com/lesliebiubiubiu/agent-context-kb-skill

Made for: Codex.

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 agent-context-kb

README.md
[![agentmods](https://agentmods.dev/badge/skills/lesliebiubiubiu/agent-context-kb-skill/agent-context-kb/github.svg)](https://agentmods.dev/skills/lesliebiubiubiu/agent-context-kb-skill/agent-context-kb)
Your own site
<a href="https://agentmods.dev/skills/lesliebiubiubiu/agent-context-kb-skill/agent-context-kb"><img src="https://agentmods.dev/badge/skills/lesliebiubiubiu/agent-context-kb-skill/agent-context-kb/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 agent-context-kb

Your own site · 80×15
<a href="https://agentmods.dev/skills/lesliebiubiubiu/agent-context-kb-skill/agent-context-kb"><img src="https://agentmods.dev/badge/skills/lesliebiubiubiu/agent-context-kb-skill/agent-context-kb.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,045 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.00086 $0.01045
Opus 5.5 $0.00034 $0.00418
Sonnet 5.5 $0.00017 $0.00209
Haiku 4.5 $0.00009 $0.00104

Measured 1mo ago against content hash fea3dea29f19, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agent-context-kb 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 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/agent_kb.py, scripts/transcript_reads.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/agent-context-kb/SKILL.md · 98 lines

How it starts

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

Agent KB

Use this skill to manage a repository-local .agent-kb/ for coding agents. The KB is an agent-facing index of durable project knowledge, not a replacement for human docs.

Quick Start

Run the bundled script from the skill directory. Use --root . in the target repo.

python3 scripts/agent_kb.py init --root /path/to/repo
python3 scripts/agent_kb.py upgrade --root /path/to/repo
python3 scripts/agent_kb.py validate --root /path/to/repo
python3 scripts/agent_kb.py note --root /path/to/repo --title "Auth session note" --target decisions/active/auth-storage.md --body "Durable fact."
python3 scripts/agent_kb.py compile --root /path/to/repo
python3 scripts/agent_kb.py trim --root /path/to/repo
python3 scripts/agent_kb.py trim --root /path/to/repo --write
python3 scripts/agent_kb.py stats --root /path/to/repo

Workflow

  • init: create the scaffold and runtime protocol. Default versioning is a personal nested .agent-kb/.git; use --shared or --local when requested. When init reports an empty scaffold, initialization completes only after you have offered the user the one-time distillation pass described in the init output — then run it if they accept, or leave the scaffold as-is if they decline.
  • upgrade: refresh generated protocol/scaffold files conservatively.
  • validate: run after KB edits; fix errors before finishing.
  • note: capture durable knowledge when the stable target is unclear.
  • compile: merge inbox notes with valid Suggested target files.
  • trim: run it and follow its output. Size is a proxy; compact redundant or stale information, and stop when the remaining content is genuinely non-redundant. Use trim --write only for deterministic cleanup.
  • stats: run it with no flags unless the user asked for one, then do what its output says — it states its own options. Paste the full output verbatim in a fenced code block; the ASCII charts are the deliverable.

Knowledge Rules

Record durable knowledge only; the full do/don't canon lives in the generated .agent-kb/start.md. Summarize or link human docs rather than copying them in.

Read the full file on GitHub · 98 lines

Files

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.

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. 1mo ago First seen · 98 lines · 86 tokens per session scan A fea3dea29f19

Subscribe to this mod's changes

agent-context-kb is a skill published in the GitHub repository lesliebiubiubiu/agent-context-kb-skill (7 stars, last pushed 2mo ago), licensed MIT. It adds 86 tokens to every session and 1,045 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.

Related

Other skills, from other repositories

memorybox

Diagnoses bloated MEMORY.md files, splits oversized sections into domain-specific files, archives stale daily logs, and deduplicates content using a 3-tier hierarchy (MEMORY.md → domains/ → archive/). Use when MEMORY.md exceeds 10KB, context pressure is high, or the user asks to clean up, organize, or maintain agent…

Ramsbaby/openclaw-memorybox · 90 tokens

openclaw-memorybox

Memory health CLI that diagnoses bloated MEMORY.md files, splits oversized sections into domain files, archives stale daily logs, and runs continuous health monitoring. Use when MEMORY.md exceeds 10KB, context windows overflow from memory bloat, or agent sessions slow down from loading large memory files. Pure bash…

Ramsbaby/openclaw-memorybox · 69 tokens

agent-state-bar

A design guide for an agent status bar: a short, automatically updated summary of progress, remaining tasks, tool counts, errors, and system state placed near the latest model input.

bojieli/ai-agent-book · 105 tokens

knowledge-org

A guide to organising large bodies of knowledge so an AI system can navigate relationships, summaries, and layers instead of searching only flat text chunks. It covers tree indexes, knowledge graphs, file-like structures, incremental updates, and long-term memory layouts.

bojieli/ai-agent-book · 96 tokens

memory-system

A guide to giving an AI agent persistent, user-specific memory across conversations. It covers what to remember, how to store it, how to update or compress it, and when to use memory instead of a shared knowledge base.

bojieli/ai-agent-book · 95 tokens

wiki-lint

Audit wiki health: broken links, orphans, contradictions, stale content, lifecycle and tag issues. Use for maintenance or health checks. Default is report-only; use wiki-dedup for page-identity merges.

Ar9av/obsidian-wiki · 47 tokens