personal-kb-usage

personal-kb-usage is a skill for Claude Code from josix/agent-flow. It costs 39 tokens per session (1,863 once invoked), scanned A, original, MIT.

A method for querying a personal knowledge base: a searchable graph built from the user's notes, decisions, and past learnings across projects.

In plain words
What is it for?
Use it to find earlier project-independent notes, decisions, and lessons that may apply to current work.
Why use it?
It helps recover relevant prior context instead of making decisions without knowing what was learned or agreed before.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/you/personal/knowledge-base/decisions/auth-patterns.md:42.

Part of the agent-flow plugin — 11 skills, 5 commands, 6 agents, 7 hooks shipped together

Good fit Use it to find earlier project-independent notes, decisions, and lessons that may apply to current work.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add josix/agent-flow
Claude Code
/plugin install agent-flow

Made for: Claude Code.

Or install agent-flow, the plugin that ships this one along with the rest of its 11 skills, 5 commands, 6 agents, 7 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 personal-kb-usage

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/josix/agent-flow/personal-kb-usage"><img src="https://agentmods.dev/badge/skills/josix/agent-flow/personal-kb-usage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,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.
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.00039 $0.01863
Opus 5.5 $0.00016 $0.00745
Sonnet 5.5 $0.00008 $0.00373
Haiku 4.5 $0.00004 $0.00186

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

Security

Grade A, and why

personal-kb-usage 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 2mo 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/personal-kb-usage/SKILL.md · 136 lines

How it starts

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

Personal KB Usage

Query the user's personal knowledge base effectively, interpret results accurately, and stay within token budgets.

Overview

The personal-kb MCP server exposes the user's cross-project personal knowledge base as a pre-built knowledge graph stored at $AGENT_FLOW_PERSONAL_KB_PATH/graphify-out/graph.json. This is a graph built by the user from their own notes, journals, decision records, or any other personal documents — outside of any single project directory.

Owner: Riko (Explorer Agent) — Riko is the primary personal-kb query agent and owns interpretation of results. Consumers: Senku (Planner Agent), Lawliet (Reviewer Agent) — both may consult the personal KB during planning and review to surface cross-project decisions and patterns. Out of scope: Loid (Executor) and Alphonse (Verifier) do NOT have personal-kb access by design. This preserves the one-writer invariant and keeps write/verify agents focused on project artifacts.

All 7 tools are accessed via the MCP prefix mcp__personal-kb__*. See references/tool-reference.md for full signatures.

Contrast with graphify-usage:

  • graphify-usage — queries the current project's graph at graphify-out/graph.json (relative to project root). Use for structural questions about THIS codebase.
  • personal-kb-usage — queries the user's personal graph at an absolute path outside the project. Use for cross-project recall: prior decisions, anti-patterns encountered before, personal preferences, notes from past work.

When to Query the Personal KB vs. Project Graph vs. Grep

Trigger condition Preferred approach
"Have I solved this problem before in another project?" Personal KB: query_graph
"What did I decide about X in past projects?" Personal KB: query_graph
"What patterns have I used for Y across codebases?" Personal KB: query_graph
"What personal anti-patterns have I documented?" Personal KB: god_nodes then get_community
"What is the dependency structure of THIS project?" Project graph (graphify-usage)
"Which community does file F belong to in THIS repo?" Project graph (graphify-usage)
"Find the string literal TODO: fix" Grep
"What does a specific config key say in THIS project?" Read the file directly
Personal KB is not configured (available: false in state) Skip — use project graph or Grep

Read the full file on GitHub · 136 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. 2mo ago Changed · +1 lines d6cd7c69a9ca
  2. 3mo ago First seen · 135 lines · 39 tokens per session scan A 2e5cf5b15f8e

Subscribe to this mod's changes

personal-kb-usage is a skill published in the GitHub repository josix/agent-flow (8 stars, last pushed 12d ago), licensed MIT. It adds 39 tokens to every session and 1,863 once invoked, about $0.0002 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

personal-kb-usage compared with skills from other repositories

personal-kb-usage next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
personal-kb-usagejosix/agent-flowSkill812d agoMITA39Claude Code
agents-bridgeellmos-ai/skillsSkill10todayMITA114Claude Code, Codex
llm-wikigraniet/kheishSkill20923d agoApache-2.0B32Claude Code, Codex
context-anchorWh0FF24/whoff-agentsSkill25mo agoMITA36Claude Code, Codex
unified-memoryaffaan-m/ECCSkill314kyesterdayMITA60Claude Code, Codex
llm-wikiNousResearch/hermes-agentSkill267ktodayMITB19Claude Code, Codex
qmdNousResearch/hermes-agentSkill267ktodayMITB14Claude Code, Codex