Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Personal Kb Usage

ASecurity

This skill should be used when querying the user's personal knowledge base (cross-project personal knowledge graph) for prior learnings, notes, or decisions that apply across projects.

7 stars
0 votes
0 copies
0 views
Added 9/28/2026
ai-agentsrustgonodedocumentation

Works with

mcp

Security Analysis

A100/100

Scanned 9/28/2026

Install to Claude Code

$npx -y skills add josix/agent-flow --skill personal-kb-usage --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Personal Kb Usage?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Personal Kb Usage
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/josix-personal-kb-usage/badge)](https://www.skillsdirectory.com/skills/josix-personal-kb-usage)

More formats (shields.io, HTML) on the badges page.

Files
SKILL.md
---
name: personal-kb-usage
user-invocable: false
description: This skill should be used when querying the user's personal knowledge base (cross-project personal knowledge graph) for prior learnings, notes, or decisions that apply across projects.
---

# 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](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 |

**Rule of thumb**: Personal KB is for **memory across sessions and projects**. Project graph is for **structure within this session's codebase**. Grep/Read is for **current file content**.

---

## Tool Decision Table

Choose the right tool for the question type. See [references/query-patterns.md](references/query-patterns.md) for detailed decision sequences.

| Question type | Primary tool | Follow-up |
|---|---|---|
| What prior decisions exist on topic X? | `query_graph` (BFS, depth=2) | `get_node` on returned labels |
| What are my recurring patterns / hubs? | `god_nodes` | `get_community` to explore clusters |
| Which personal notes cluster around topic Y? | `get_community` | `get_node` on members |
| What connects concept A to decision B? | `get_neighbors` | `get_node` on connectors |
| Have I documented an anti-pattern like Z? | `query_graph` (BFS for broad, DFS for specific chain) | `get_node` on results |
| Full details on a known personal note/decision | `get_node` | — |
| Path between two cross-project concepts | `shortest_path` | `get_node` on intermediate nodes |
| Overall scale of personal KB | `graph_stats` | `god_nodes` for central concepts |

---

## Token Hygiene

Hard rules for staying within context budget:

1. **Always set `top_k` / `top_n`** when available. Default `god_nodes` returns 10 nodes — only request more if explicitly needed.
2. **Set `token_budget`** on `query_graph` calls. The default is 2000 tokens; lower it (e.g., 500) for quick orientation queries.
3. **Set `depth` conservatively**. Default depth is 3; start at 1-2 for narrow questions, increase only if the result is insufficient.
4. **Do NOT paste raw subgraph JSON downstream** into task prompts or summaries. Extract only node IDs, labels, and `source_location` fields.
5. **Summarize before handing off**. Convert graph results to bullet lists of `label → source_location` pairs. Downstream agents (Senku, Lawliet) need names and file paths, not raw graph output.
6. **Chain calls, don't parallelize blindly**. Run `graph_stats` first, then decide if `god_nodes` is needed. Avoid firing all 7 tools simultaneously.

---

## Result Interpretation

How to read and trust what the personal KB returns:

### Cite `source_location` fields with ABSOLUTE paths

Every node in the personal KB graph carries a `source_location` field (file path, sometimes line range). Because the personal KB lives **outside the current project root**, always report these as absolute paths:

```
Node: AuthDecision2025
source_location: /Users/you/personal/knowledge-base/decisions/auth-patterns.md:42
```

Never truncate these to relative paths — downstream agents working in a different project directory cannot resolve relative paths pointing into the personal KB.

### Surface confidence tags

The graph annotates edges with confidence labels:

| Tag | Meaning | Trust level |
|---|---|---|
| EXTRACTED | Directly observed in source text | High — treat as fact |
| INFERRED | Model-reasoned relationship | Medium — verify if load-bearing |
| AMBIGUOUS | Multiple interpretations possible | Low — always verify with Read |

When an edge is INFERRED or AMBIGUOUS, note this explicitly in your summary.

### Personal KB vs. project docs

The personal KB reflects the user's **personal notes and past decisions**, not authoritative project documentation. When personal KB content conflicts with current project docs:

- Project docs take precedence for THIS project's requirements.
- Personal KB is a useful prior but not a mandate.
- Note conflicts explicitly so Senku or Lawliet can resolve them.

### Trust-but-verify for recently updated notes

The personal KB graph is built once (at the user's last `/graphify` run on their KB) and is not updated during a session. If the user has recently added notes, those may not be indexed yet.

---

## What NOT to Do

- **Do not paste personal KB content into commit messages, PR descriptions, or other public artifacts** — user notes may contain private context or personal opinions not intended for external audiences.
- **Do not assume the personal KB is always authoritative over project docs** — personal priors should inform, not override, current requirements.
- **Do not skip the project graph query just because the personal KB has similar content** — the project graph reflects THIS codebase's actual structure; personal KB reflects past experience that may not apply.
- **Do not query the personal KB on freshly edited personal notes** expecting current content — the graph is a snapshot.
- **Do not set `depth` > 4** without a specific reason — output will overflow context.
- **Do not pass raw graph JSON blobs** in task descriptions or summaries to other agents.
- **Do not report INFERRED edges as facts** — always surface the confidence tag.
- **Do not skip `source_location` citations** — every claimed relationship needs a file anchor (absolute path).

---

## Cross-References

- [docs/guides/using-personal-kb.md](../../docs/guides/using-personal-kb.md) — setup instructions, env var contract, verification steps
- [references/tool-reference.md](references/tool-reference.md) — full MCP tool signatures, parameters, cost profiles
- [references/query-patterns.md](references/query-patterns.md) — decision table mapping question types to tool sequences
- [examples/worked-queries.md](examples/worked-queries.md) — end-to-end query scenarios with expected result shapes
- [skills/graphify-usage/SKILL.md](../graphify-usage/SKILL.md) — sibling skill for querying the current project's graph

Attribution

josixjosix
View sourceMore from josix →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1074701 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

695601 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

691 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →