Agent skill

Analyze Kb

by Abilityai in Abilityai/cornelius

Analyze knowledge base structure and update the knowledge-base-analysis.md report

MITAuto-check: notesKnowledge Management

Install Analyze Kb

skills CLI
$ npx skills add Abilityai/cornelius --skill analyze-kb -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Abilityai/cornelius analyze-kb --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Abilityai/cornelius.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/analyze-kb .claude/skills/analyze-kb && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
analyze-kb
GitHub stars
109
Token cost
~1.3k tokens
SKILL.md length
471 words
Files
1
Skills in repo
51
Repo updated
First seen
Licence
MIT

At a glance

Analyze knowledge base structure and update the knowledge-base-analysis.md report

  • Works in 8 steps: Get vault statistics using Local Brain… → List all notes with full directory tree… → Use Glob to explore directory structure → …
  • Tasks that involve Knowledge bases
  • SKILL.md covers Local Brain Search, State Dependencies and Completion Checklist
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Analyze Kb is an agent skill from Abilityai/cornelius. Analyze knowledge base structure and update the knowledge-base-analysis.md report

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Knowledge Management, covering Knowledge bases. The repository describes itself as: AI-powered second brain template for Claude Code + Obsidian. The licence is MIT.

When your agent uses it

  • Tasks that involve Knowledge bases

Example prompts

  • “/analyze-kb”

Requirements

  • Pre-approved tools (allowed-tools): Read, Bash, Glob, Grep

Workflow steps

8 steps, taken from the first numbered list in SKILL.md.

  1. Get vault statistics using Local Brain Search
  2. List all notes with full directory tree using Bash find
  3. Use Glob to explore directory structure
  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
  6. Pull BDG statistics for layer distribution and lifecycle phases
  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)

What it can do on your machine

Read from SKILL.md and the folder at commit fd5e9a4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Bash
    • Glob
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Analyze Kb loads about 1.3k tokens when it runs. Until then it costs about 23 tokens; SKILL.md has 471 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~23
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Bash, Glob, Grep

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Abilityai/cornelius at commit fd5e9a4, republished under its MIT licence (© Abilityai). 471 words, ~1,298 tokens.

Download SKILL.mdSave it as .claude/skills/analyze-kb/SKILL.md (or your agent's skills folder).
name
analyze-kb
description
Analyze knowledge base structure and update the knowledge-base-analysis.md report
allowed-tools
Read, Bash, Glob, Grep
automation
gated

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

Use Local Brain Search for all semantic search operations.

Scripts:

bash
# 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:

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

    bash
    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:

    bash
    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:

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

Show full SKILL.md (142 more words)Show less

State Dependencies

SourceLocationReadWriteDescription
Brain notesBrain/**/*.mdXAll vault notes for analysis
Permanent notesBrain/02-Permanent/XCore insights
MOCsBrain/03-MOCs/XMap of Content hubs
SourcesBrain/01-Sources/XReference materials
AI InsightsBrain/AI Extracted Notes/XAI-extracted notes
Document InsightsBrain/Document Insights/XResearch session notes
Book scopesBrain/Books/XPer-book scopes (non-core, family)
ChangelogsBrain/05-Meta/Changelogs/XSession logs
Local Brain Searchresources/local-brain-search/XGraph statistics, hubs, bridges
Knowledge base analysisknowledge-base-analysis.mdXXOutput report

Completion Checklist

  • Vault statistics retrieved from Local Brain Search
  • Directory structure explored with Glob
  • Key hub notes read (Dopamine, Buddhism, Decision-Making, Flow, AI)
  • Hub notes and bridges identified
  • Thematic clusters analyzed
  • knowledge-base-analysis.md updated with condensed report
  • Report is 600-800 lines (not verbose)
  • Executive summary includes key statistics
  • 6 major thematic hubs documented
  • Network properties and bridges noted
  • Recommendations provided (high priority only)

© Abilityai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/analyze-kb of Abilityai/cornelius.

Open the folder on GitHubat commit fd5e9a4

Compare with similar skills

Analyze Kb next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Analyze Kb compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Analyze Kb this skillAbilityai/cornelius109—~1.3kAutomated safety check: NotesMIT
Capture Conversationoutline/outline41k—~474Automated safety check: PassCustom licence
Project CairniBlinkQ/project-cairn2352 repos~861Automated safety check: PassMIT
LLM Wiki Knowledge GraphEgonex-AI/Understand-Anything86k1 repos~1.5kAutomated safety check: PassMIT
Find And Citeoutline/outline41k—~537Automated safety check: PassCustom licence
Xhs Virtual Productchenjin-cmd/xhs-virtual-product727—~862Automated safety check: PassMIT

Similar skills

  • Capture Conversation

    outline/outline

    Save the current conversation, a decision, or a set of notes as a document in an Outline collection; use when the user wants to keep what was discussed in their knowledge base.

    41k GitHub stars~474 tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Project Cairn

    iBlinkQ/project-cairn

    Standardize how an AI-collaboration project turns work into reusable knowledge.

    235 GitHub starsUsed in 2 repos~861 tokens
    Knowledge ManagementAuto-check passed
  • LLM Wiki Knowledge Graph

    Egonex-AI/Understand-Anything

    Detects a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit relationships and topic clusters.

    86k GitHub starsUsed in 1 repo~1.5k tokens
    Knowledge ManagementAuto-check passed
  • Find And Cite

    outline/outline

    Answer questions from the Outline knowledge base with quotes and links to the source documents; use when the user asks what the team knows, documented, or decided about a topic.

    41k GitHub stars~537 tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Xhs Virtual Product

    chenjin-cmd/xhs-virtual-product

    This skill helps plan, select, produce, and market Xiaohongshu (RED) virtual/digital products — templates, knowledge bases, test tools, study materials.

    727 GitHub stars~862 tokensUpdated 7 days ago
    Knowledge ManagementAuto-check passed
  • Openkb

    VectifyAI/OpenKB

    A skill your agent uses when the user asks about content in their OpenKB knowledge base — research topics, concepts compiled from their documents, cross-document synthesis — or mentions openkb, an…

    4.7k GitHub starsUsed in 1 repo~2k tokens
    Knowledge ManagementAuto-check: warnings

More from Abilityai/cornelius

All 51 skills in this repo
  • Nano Banana Image Generator

    Abilityai/cornelius

    Generate images using Google's Nano Banana (Gemini 2.5 Flash Image).

    109 GitHub stars~1.2k tokensUpdated 16 days ago
    Auto-check: notes
  • Changelog Protocol

    Abilityai/cornelius

    Protocol for creating dated changelog files after significant agent sessions.

    109 GitHub stars~555 tokensUpdated 16 days ago
    Auto-check passed
  • Create Article

    Abilityai/cornelius

    Create long-form articles from knowledge base insights. An agent skill from Abilityai/cornelius.

    109 GitHub stars~2.1k tokensUpdated 16 days ago
    Auto-check: notes
  • Epistemic Classification

    Abilityai/cornelius

    Framework for distinguishing research findings from hypotheses and speculative synthesis.

    109 GitHub stars~1.5k tokensUpdated 16 days ago
    Auto-check passed
  • Get Youtube Transcript

    Abilityai/cornelius

    Extract the transcript from a YouTube video by URL or video ID.

    109 GitHub stars~525 tokensUpdated 16 days ago
    Auto-check: notes
  • Insight Capture Format

    Abilityai/cornelius

    Standard format for capturing and documenting insights in the knowledge base.

    109 GitHub stars~616 tokensUpdated 16 days ago
    Auto-check passed

Questions about Analyze Kb

What does Analyze Kb do?

Analyze knowledge base structure and update the knowledge-base-analysis.md report. Analyze Kb is an agent skill from Abilityai/cornelius.

When should I use Analyze Kb?

Analyze Kb fits situations like: tasks that involve Knowledge bases.

How do I install Analyze Kb in Claude Code?

Run `npx skills add Abilityai/cornelius --skill analyze-kb -a claude-code`. Or copy the skill folder (.claude/skills/analyze-kb in Abilityai/cornelius) into .claude/skills/analyze-kb in your project. Claude Code loads it when a task matches its description.

How do I install Analyze Kb in Codex?

Run `npx skills add Abilityai/cornelius --skill analyze-kb -a codex`. Or copy the skill folder (.claude/skills/analyze-kb in Abilityai/cornelius) into .agents/skills/analyze-kb in your project. Codex loads it when a task matches its description.

Can I use Analyze Kb in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Abilityai/cornelius --skill analyze-kb -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/analyze-kb, .gemini/skills/analyze-kb, .github/skills/analyze-kb and .opencode/skills/analyze-kb in your project.

What does Analyze Kb need to run?

SKILL.md names no scripts, command-line tools or credentials: Analyze Kb is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Bash, Glob, Grep.

Does Analyze Kb access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Analyze Kb safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Analyze Kb use?

Analyze Kb is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Analyze Kb use?

About 1.3k tokens (SKILL.md is roughly 5.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Analyze Kb?

Skills that share tags, products or a category with Analyze Kb: Capture Conversation (outline/outline, 41k stars), Project Cairn (iBlinkQ/project-cairn, 235 stars), LLM Wiki Knowledge Graph (Egonex-AI/Understand-Anything, 86k stars) and Find And Cite (outline/outline, 41k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Analyze Kb?

Abilityai (a GitHub organization) maintains it in Abilityai/cornelius, which has 109 GitHub stars. The repository holds 51 skills in this directory. The repository was last updated on September 22, 2026.

Source: Abilityai/cornelius on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.