second-brain-graph
Skill891 starsChanged 3 months agoMITView on GitHub
Analyse the vault's link graph and report on its shape: orphan rate, average degree, components, hubs, bridges and clusters, with what each number means for retrieval. Use this skill when the user asks about the health or structure of their graph, wants metrics, asks which pages are most connected or most isolated, or asks whether the vault is fragmented. Do NOT use for fixing what it finds, which is second-brain-lint, or for answering a content question.
In this repository18 other files it gives its agents.
- vault-template/CLAUDE.mdCLAUDE.md
- second-brain-backfillSkill
- second-brain-changed-my-mindSkill
- second-brain-chat-importSkill
- second-brain-ingestSkill
- second-brain-lintSkill
- second-brain-mergeSkill
- second-brain-metricsSkill
- second-brain-privacySkill
- second-brain-projectSkill
- second-brain-publishSkill
- second-brain-querySkill
- second-brain-quizSkill
- second-brain-renameSkill
- second-brain-reportSkill
- second-brain-reviewSkill
- second-brain-transcriptSkill
- second-brain-writeSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 51
Never report page count or word count as a health signal.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Analyse the graph
The graph is the search space every answer is drawn from. Its shape decides whether retrieval reaches the relevant material in a few hops or reaches nothing.
Core rule
Report shape and what it means, never fix anything. This skill is read-only.
Workflow
- Run the scripts rather than reading files:
scripts/vault_stats.pyfor counts and degree,scripts/link_check.pyfor orphans and breaks,scripts/graph_export.pywhen deeper analysis is wanted. - Compute the four metrics: orphan rate, average degree, component count, stale-page rate.
- Identify hubs (pages that have swallowed the graph) and bridges (pages connecting otherwise separate clusters).
- Name the clusters. These are what the vault is actually about, which is reliably different from what the user would say it is about.
- Say what each number means for answering questions, not just the value.
Output format
Pages <n> | links <n> | avg degree <n>
Orphan rate <n>% (healthy under 5)
Components <n> (main holds <n>%)
Stale concepts <n>% (untouched 90+ days)
Hubs: <pages with outsized degree, and whether to split them>
Bridges: <pages connecting clusters, and what breaks if they are wrong>
Clusters: <what the vault is actually about>
What this means: <two or three sentences>Calibration
Never report page count or word count as a health signal. Both rise whether the vault is improving or not.
A single reading says little. If the user has recorded previous numbers, compare against them; if not, suggest recording these.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

