kb-memory

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

A knowledge-base and memory system for AI agents that stores facts, decisions, preferences, and project context for later sessions.

In plain words
What is it for?
It helps save and retrieve company knowledge, recall earlier decisions, restore project state, and continue work across sessions.
Why use it?
It prevents important context from being lost when a session ends, the conversation becomes too large, or work is handed to another session.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

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

Good fit It helps save and retrieve company knowledge, recall earlier decisions, restore project state, and continue work across sessions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/oyi77/1ai-skills/kb-memory
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-memory
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 187 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-memory

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/oyi77/1ai-skills/kb-memory"><img src="https://agentmods.dev/badge/skills/oyi77/1ai-skills/kb-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 938 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 warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Memory Poisoning · line 29
    Skill injects content designed to persist in agent memory or context across interactions. Persistent injection can alter agent behavior long after the initial interaction.
    Fix: Do not allow untrusted input to persist in agent memory or context. Validate all content before storing and implement memory isolation between sessions.
  • medium Memory Poisoning · line 55
    Skill injects content designed to persist in agent memory or context across interactions. Persistent injection can alter agent behavior long after the initial interaction.
    Fix: Do not allow untrusted input to persist in agent memory or context. Validate all content before storing and implement memory isolation between sessions.
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.00031 $0.00938
Opus 5 $0.00015 $0.00469
Sonnet 5 $0.00006 $0.00188
Haiku 4.5 $0.00003 $0.00094

Measured 6d ago against content hash 535eeec1a30b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

kb-memory 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 6d 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.

core/kb-memory/SKILL.md · 101 lines

How it starts

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

KB-Memory: Knowledge Base & Memory System

Unified skill for agent knowledge persistence and recall. Covers four approaches to maintaining context across sessions.

When to Use

Trigger phrases:

  • "save this to memory" / "remember this for later"
  • "what do we know about…" / "search the knowledge base"
  • "restore context from last session" / "where did we leave off?"
  • "update the company KB" / "sync knowledge to brain"

Use when:

  • A fact, decision, or preference should survive the current session
  • You need to recall prior context, decisions, or project state
  • Session continuity matters (compaction, resume, handoff)

Don't use for:

  • One-off lookups that live entirely in the current context window
  • General file storage — this is for structured knowledge, not arbitrary files

Anti-Rationalization Table

Excuse Reality Rule
"I'll remember it" Human memory is unreliable; agent context windows overflow Persist everything; retrieval > recall
"Vector search is enough" Vectors miss exact matches, relationships, temporal ordering Combine vector + graph + keyword; no single index suffices
"One big context window" Large contexts dilute attention and increase cost Chunk, summarize, and retrieve precisely

Trigger phrases:

  • "save this to memory" / "remember this for later"
  • "what do we know about…" / "search the knowledge base"
  • "restore context from last session" / "where did we leave off?"
  • "update the company KB" / "sync knowledge to brain"

Use when:

  • A fact, decision, or preference should survive the current session
  • You need to recall prior context, decisions, or project state
  • Session continuity matters (compaction, resume, handoff)

Don't use for:

  • One-off lookups that live entirely in the current context window
  • General file storage — this is for structured knowledge, not arbitrary files

How to Use

  1. Pick the approach — Match the need to one of the four approaches below (KB, Company KB, Memory System, Session Brain)
  2. Follow the approach doc — Each row links a reference file with the exact commands and storage format
  3. Store with structure — Include entities/relations and timestamps so recall is precise
  4. Recall before acting — Query memory before duplicating effort or re-deriving decisions
  5. Consolidate — Promote durable facts from session brain to persistent memory at session end

Read the full file on GitHub · 101 lines

Files

What ships with it

2 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. 6d ago First seen · 101 lines · 31 tokens per session scan A 535eeec1a30b

Subscribe to this mod's changes

kb-memory is a skill published in the GitHub repository oyi77/1ai-skills (12 stars, last pushed yesterday), licensed MIT. It adds 31 tokens to every session and 938 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-09-03.

Related

Other skills, from other repositories

wiki-export

Export the Obsidian wiki's knowledge graph to structured formats for use in external tools. Use this skill when the user says "export wiki", "export graph", "export to JSON", "export to Gephi", "export to Neo4j", "export to Postgres", "export to SQL", "graphml", "visualize wiki", "knowledge graph export", "export to…

Ar9av/obsidian-wiki · 172 tokens

wegent-knowledge

Knowledge base management and search tools for Wegent. Provides capabilities to list, create, update, and search knowledge bases and documents using RAG retrieval. Use this skill when the user wants to manage knowledge bases, documents, or search for information programmatically.

wecode-ai/Wegent · 51 tokens

project-wiki

A system for creating and maintaining a project wiki: a set of organized documents that explain a software project's plans, rules, references, and progress.

GeminiLight/MindOS · 63 tokens

mindos-zh

A local knowledge-base assistant for storing and finding decisions, meeting notes, procedures, troubleshooting lessons, and preferences across conversations and coding agents. It works only with the MindOS knowledge base.

GeminiLight/MindOS · 490 tokens

mindos

MindOS: local knowledge assistant & shared KB. Keeps decisions, notes, SOPs, debugging lessons, research findings, preferences across sessions/agents. Core: save notes, search KB, organize files, run workflows, review, append CSV, hand off context, distill lessons. NOT for app source or paths outside KB. Triggers…

GeminiLight/MindOS · 136 tokens

mindos-max

MindOS: local knowledge assistant & global memory layer. Keeps decisions, notes, SOPs, debugging lessons, architecture choices, research findings, preferences, conversation summaries for all connected agents. PROACTIVE: (1) search MindOS first for past context, (2) offer to save after valuable work, (3) persist key…

GeminiLight/MindOS · 145 tokens