analyze-kb

analyze-kb is a skill for Claude Code, Codex from Abilityai/cornelius. It costs 17 tokens per session (1,256 once invoked), scanned A, original, MIT.

A knowledge-base analysis tool for Obsidian, a note-taking app that stores notes as files. It examines the structure and connections in the notes and regenerates a summary report.

In plain words
What is it for?
Use it to inspect vault statistics, note folders, connected notes, central notes, and bridge notes, then update knowledge-base-analysis.md.
Why use it?
It turns a large, hard-to-navigate collection of notes into a shorter report that shows its organization and important relationships.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/abilityai/cornelius/analyze-kb
Any agent
npx skills add Abilityai/cornelius --skill analyze-kb
Clone the repo
git clone --depth 1 https://github.com/Abilityai/cornelius

Made for: Claude Code, 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 analyze-kb

README.md
[![agentmods](https://agentmods.dev/badge/skills/abilityai/cornelius/analyze-kb.svg)](https://agentmods.dev/skills/abilityai/cornelius/analyze-kb)
Your own site
<a href="https://agentmods.dev/skills/abilityai/cornelius/analyze-kb"><img src="https://agentmods.dev/badge/skills/abilityai/cornelius/analyze-kb.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,256 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00017 $0.01256
Opus 5 $0.00009 $0.00628
Sonnet 5 $0.00003 $0.00251
Haiku 4.5 $0.00002 $0.00126

Measured 5d ago against content hash 6f85b58febab, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

analyze-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 5d 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.

.claude/skills/analyze-kb/SKILL.md · 122 lines

How it starts

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

Analyze the Obsidian knowledge base structure and regenerate a condensed, manageable analysis report.

Use Local Brain Search for all semantic search operations.

Scripts:

# Semantic search
resources/local-brain-search/run_search.sh "query" --limit 10 --json

# Find connections
resources/local-brain-search/run_connections.sh "Note Name" --json

# Get graph statistics
resources/local-brain-search/run_connections.sh --stats --json

# Find hub notes
resources/local-brain-search/run_connections.sh --hubs --json

# Find bridge notes
resources/local-brain-search/run_connections.sh --bridges --json

Follow these steps:

  1. Get vault statistics using Local Brain Search:

    resources/local-brain-search/run_connections.sh --stats --json
    
  2. List all notes with full directory tree using Bash find:

    find $VAULT_BASE_PATH/Brain -name "*.md" -type f | head -50
    
  3. Use Glob to explore directory structure:

    • All notes: Brain/**/*.md
    • Permanent notes: Brain/02-Permanent/*.md
    • MOCs: Brain/03-MOCs/*.md
    • Sources: Brain/01-Sources/**/*.md
  4. Read key hub notes from major clusters using Read tool (Dopamine, Self/Buddhism, Decision-Making, Flow, etc.)

  5. Use Local Brain Search to identify hub notes and bridges:

    resources/local-brain-search/run_connections.sh --hubs --json
    resources/local-brain-search/run_connections.sh --bridges --json
    

    Fingerprint scope note: --hubs/--bridges are the cognitive-fingerprint axis. Scope enforcement is now ON (MEMORY_CONFIG['scope']['enforce']=True, since 2026-06-25; see SCOPE-IMPLEMENTATION-PLAN.md), so they compute on the core subgraph only (02-Permanent, 03-MOCs, AI Extracted Notes, 01-Sources). Document-Insights-inflated hubs (Dopamine/Flow) no longer appear; the true core hubs (MOC - Eight-Circuit, Decision Making, Gilbert, Tetlock, Hagen) surface. --stats stays whole-graph (it answers "how big is the store", not "who am I"). Note which mode is active when recording hubs.

  6. Pull BDG statistics for layer distribution and lifecycle phases:

    resources/brain-graph/run_brain_graph.sh status --json
    
  7. Analyze thematic clusters, hierarchical organization, and conceptual architecture

  8. Use Edit or Write to update the knowledge-base-analysis.md file with a condensed report (target: ~600-800 lines max):

    • Executive summary with key statistics
    • Hierarchical structure mapping (condensed)
    • 6 major thematic hubs with hub nodes (core thesis + key notes only)
    • Network properties and connectivity (metrics + critical bridges)
    • Content topology and source analysis (top-tier influences only)
    • Intellectual trajectory and maturity assessment (phases + current focus)
    • Recommendations for enhancement (high priority only)

CRITICAL OUTPUT REQUIREMENTS:

  • Length target: 600-800 lines maximum (50% of previous verbose reports)
  • Prioritize: Core insights, actionable frameworks, critical statistics, key bridge notes
  • Eliminate: Excessive examples, redundant explanations, verbose elaborations
  • Focus: What's unique, what's actionable, what's growing, what's next
  • Style: Bullet points over paragraphs, tables over lists where appropriate
  • No duplication: Say things once, clearly, then move on

Generate a condensed, scannable, high-signal report that reveals the knowledge base's personality, cognitive fingerprint, and growth opportunities without overwhelming detail.

Read the full file on GitHub · 122 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. 5d ago First seen · 122 lines · 17 tokens per session scan A 6f85b58febab

Subscribe to this mod's changes

analyze-kb is a skill published in the GitHub repository Abilityai/cornelius (105 stars, last pushed 12d ago), licensed MIT. It adds 17 tokens to every session and 1,256 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-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens