agentleFS
bettyguobettyguo/obsidian_mcp/skills/find-orphans/SKILL.md

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.

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
  1. Very specific:

    Call find_orphans(near_topic=topic, min_word_count=50, limit=20).

    line 17
  2. Distinctive:

    If zero orphans returned, congratulate the user and stop.

    line 18
  3. Distinctive:

    Ask the user which orphans they want to integrate.

    line 23
  4. Distinctive:

    Don't auto-link orphans without per-orphan confirmation.

    line 45
  5. Very specific:

    Don't propose linking an orphan to an existing MOC unless the MOC's topic actually matches.

    line 46
  6. Distinctive:

    Don't recommend deletion. Ever.

    line 47
  7. Very specific:

    Don't run find_orphans with min_word_count below 50 by default — stubs aren't orphans, they're TODOs.

    line 48

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. 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").
  2. Call find_orphans(near_topic=topic, min_word_count=50, limit=20). If topic is None, omit near_topic and just return the top 20 by recency.
  3. If zero orphans returned, congratulate the user and stop.
  4. Group orphans into buckets of ≤5 by detected primary tag (use the tag list returned in each orphan record).
  5. 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)
  6. Ask the user which orphans they want to integrate.
  7. 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.
  8. Propose link inserts. The user confirms each.
  9. 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-MOC later.
  • Don't recommend deletion. Ever. Orphans are often the most valuable seedlings.
  • Don't run find_orphans with min_word_count below 50 by default — stubs aren't orphans, they're TODOs.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.