find-orphans
Skill8 starsChanged 11 months agoMITView on GitHub
Surface orphan notes near a topic and help the user integrate them into the existing link graph.
In this repository6 other files it gives its agents.
- build-MOCSkill
- connect-ideasSkill
- daily-summarySkill
- prep-for-writingSkill
- refactor-tag-treeSkill
- review-and-linkSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Call find_orphans(near_topic=topic, min_word_count=50, limit=20).
- Distinctive: line 18
If zero orphans returned, congratulate the user and stop.
- Distinctive: line 23
Ask the user which orphans they want to integrate.
- Distinctive: line 45
Don't auto-link orphans without per-orphan confirmation.
- Very specific: line 46
Don't propose linking an orphan to an existing MOC unless the MOC's topic actually matches.
- Distinctive: line 47
Don't recommend deletion. Ever.
- Very specific: line 48
Don't run find_orphans with min_word_count below 50 by default — stubs aren't orphans, they're TODOs.
≈ “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
When to use
The user is curating their vault — usually after a burst of capture — and wants to know which atomic notes never got linked into anything. Often paired with /build-MOC.
Procedure
- Parse the user's request. If they named a topic (e.g. "near RAG"), capture it as
topic. If not, ask for one (or default to "the whole vault" if the user explicitly says "all orphans"). - Call
find_orphans(near_topic=topic, min_word_count=50, limit=20). Iftopicis None, omitnear_topicand just return the top 20 by recency. - If zero orphans returned, congratulate the user and stop.
- Group orphans into buckets of ≤5 by detected primary tag (use the tag list returned in each orphan record).
- For each bucket, surface a short list in chat:
- Bucket title (the primary tag, or "Untagged")
- Each orphan: path + 1-line summary (from the first non-frontmatter paragraph)
- Ask the user which orphans they want to integrate.
- For each chosen orphan, call
find_related(seed=orphan_path, top_k=5)to find the best candidate parent(s). Surface the top 1–2. - Propose link inserts. The user confirms each.
- Apply via
link_notes(..., confirm=true).
Output format
Found {N} orphans near "{topic}":
#research/rag
- [[Chunking by structure]] — {1-line summary}
- [[Embedding-aware preprocessing]] — {1-line summary}
#evals
- [[Long-tail recall benchmark]] — {1-line summary}
Which would you like to integrate? (e.g. "the first two", "all in #research/rag")Anti-patterns
- Don't auto-link orphans without per-orphan confirmation. The user knows which truly belong somewhere.
- Don't propose linking an orphan to an existing MOC unless the MOC's topic actually matches. Better to suggest the orphan join the MOC via
/build-MOClater. - Don't recommend deletion. Ever. Orphans are often the most valuable seedlings.
- Don't run
find_orphanswithmin_word_countbelow 50 by default — stubs aren't orphans, they're TODOs.
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.

