kb

kb is a skill for Claude Code from oyi77/1ai-skills. It costs 23 tokens per session (3,863 once invoked), scanned A, original, MIT.

A project knowledge base that stores decisions, facts, architecture notes, and current state so an AI agent can recover context between sessions. It combines files, a relationship graph, and a temporary session scratchpad.

In plain words
What is it for?
Use it to record project decisions, maintain architecture documentation, preserve context across sessions, and retrieve related information from a knowledge graph.
Why use it?
It reduces the need to repeat project background after context limits, session changes, or agent restarts. It keeps long-term project information separate from short-lived working notes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the 1ai-skills plugin — 209 skills, 4 commands shipped together

Good fit Use it to record project decisions, maintain architecture documentation, preserve context across sessions, and retrieve related information from a knowledge graph.

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

Made for: Claude Code.

Or install 1ai-skills, the plugin that ships this one along with the rest of its 209 skills, 4 commands.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/oyi77/1ai-skills/kb"><img src="https://agentmods.dev/badge/skills/oyi77/1ai-skills/kb.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,863 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00023 $0.03863
Opus 5 $0.00012 $0.01931
Sonnet 5 $0.00005 $0.00773
Haiku 4.5 $0.00002 $0.00386

Measured today against content hash c74d74c6e84c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

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 today.

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.

core/core/kb/SKILL.md · 518 lines

How it starts

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

Knowledge Base (KB)

Overview

The Knowledge Base (KB) is a PARA-structured persistent memory system for AI agents. It survives agent compactions, session boundaries, and context window limits by storing facts, decisions, architecture records, and project state in files on disk.

PARA stands for:

  • Projects — active deliverables with deadlines
  • Areas — ongoing responsibilities without end dates
  • Resources — reference material, templates, cross-references
  • Archives — stale content, git-preserved, never deleted

The KB works alongside the memory MCP tools (search_nodes, open_nodes, read_graph, create_entities, add_observations, create_relations) and the file-based scratchpad pattern. Use all three layers together:

Layer Scope Persistence Example
KB files Long-term org memory Indefinite (git) ~/kb/projects/foo/facts.yaml
MCP knowledge graph Relationship graph Per-session + recall Entities, relations, observations
Scratchpad file Active session bridge < 30 min ~/.kb-session-context.md

Workflow

The KB lifecycle follows a predictable loop across every agent session:

Session Start → Load Context → Check Decisions → Work & Capture → Log → Session End

Per-Session Loop

  1. Cold start — MCP server connects, scratchpad is checked for < 30 min state
  2. Load yesterday — last session's End-of-Session Summary is retrieved
  3. Open decisions — all facts with status: open across every category
  4. Work — agent performs tasks, captures facts as they arise
  5. Log decisions — every resolved decision gets a fact with status: confirmed
  6. End-of-Session — summary written, scratchpad updated, git commit + brain save

Weekly Loop

  1. Archive projects untouched > 90 days
  2. Prune stale observations
  3. Rebuild entity cross-reference index
  4. Review open decisions for closure
  5. Verify all code blocks in KB skills parse correctly

Querying the Knowledge Base

Read the full file on GitHub · 518 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. today Changed · +7 lines c74d74c6e84c
  2. 7d ago First seen · 511 lines · 23 tokens per session scan A ada74b9a4f79

Subscribe to this mod's changes

kb is a skill published in the GitHub repository oyi77/1ai-skills (12 stars, last pushed today), licensed MIT. It adds 23 tokens to every session and 3,863 once invoked, about $0.0001 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-09-03.

Related

Other skills, from other repositories

workflow-extract

Baut aus einem Chatverlauf oder aus bestehenden Automatisierungs-Prompts (z. B. eines anderen Agenten-Systems) eine selbstlaufende, user-neutrale Workflow-Automatisierung: einen wiederkehrenden Prompt bzw. Automations-Skill für Cron/Schedule/Loop. Alias: automations-extractor. Nutze diesen Skill bei „mach daraus eine…

ellmos-ai/skills · 249 tokens

letter-hooker

Erweitert automation-self-care um Letter Hooks, Preflight-Bootloader, Dokument-Traversierungsregeln und selbstheilende Prompt-Kontext- Anreicherung für KI-Agenten und CLIs ohne native, ereignisgetriebene JSON-Lifecycle-Hooks (wie Antigravity / Gemini CLI). Nutzen, wenn ein Agent Preflight-Regeln injizieren, vor…

ellmos-ai/skills · 129 tokens

hive.colony-progress-tracker

Claim tasks, record step progress, and verify SOP gates in the colony SQLite queue. Applies when your spawn message includes a dbpath field.

aden-hive/hive · 36 tokens

persistent-notes

Save notes locally to /mnt/workspace/notes.json file. Use when user wants to "save a note" or "remember something".

awslabs/agentcore-samples · 32 tokens

cache

Use when the user wants to view, search, add, edit, prune, archive, or clear hyperflow memory entries. CRUD interface for .hyperflow/memory/ — never modifies source code, only memory files. Trigger with /hyperflow:cache, "show memory", "search memory for X", "clear memory", "what does hyperflow remember about Y".

jeremylongshore/tons-of-skills-marketplace · 78 tokens

hive.context-preservation

Proactively extract critical values from tool results into working notes before automatic context pruning destroys them.

aden-hive/hive · 24 tokens