agentleFS
AdrianV101AdrianV101/obsidian-pkm-plugin/skills/pkm-explore/SKILL.md

pkm-explore

Skill13 starsChanged 10 months agoMITView on GitHub

Use when researching what the vault knows about a topic — performs graph + semantic exploration with gap analysis to map existing knowledge and find missing connections. Primarily used via the vault-explorer agent. Not for routine session-start context loading (hooks handle that).

  • Reads credentials

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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. Distinctive:

    If a specific note path was provided, use that directly as the seed.

    line 24
  2. Very specific:

    If vault_semantic_search is unavailable (no OPENAI_API_KEY), use vault_search with key terms and vault_query by tags/type to locate a seed …

    line 28
  3. Distinctive:

    Search for conceptually related notes that may not be in the graph:

    line 42
  4. Very specific:

    If vault_semantic_search is unavailable (no OPENAI_API_KEY), use vault_search with multiple keyword variations and vault_query with …

    line 48
  5. Very specific:

    Note: If Step 3 used vault_search/vault_query (no OPENAI_API_KEY), the gap analysis is less precise — text search misses conceptually …

    line 60

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

PKM Explore — Knowledge Discovery and Gap Analysis

Understand what the vault already knows about a topic before creating new notes or doing research. Combines graph traversal with semantic search to find both explicit connections and hidden relationships.

When to use: Researching vault knowledge on a topic, finding related notes, exploring a topic area before writing.

Step 1: Identify Seed Note

Find the most relevant existing note for the topic:

vault_semantic_search({ query: "<topic>", limit: 5 })

A note on score interpretation. vault_semantic_search uses text-embedding-3-large (3072-dim) cosine similarity, which compresses hard. In a typical vault, even genuinely on-topic notes score around 0.45–0.65, and tangential notes that share surface tokens (e.g., "vibration" matching a "vibe coding" note) often score 0.40–0.45 too. Absolute scores cannot reliably separate "topically relevant seed" from "tangential surface match" — you must read and judge.

Routing:

  • If a specific note path was provided, use that directly as the seed.
  • Otherwise: read the top result with vault_read and judge whether it is topically relevant to the query (not just sharing surface tokens). If yes, use it as the seed and advance to Step 2.
  • If the top result is tangential or off-topic, corroborate with one vault_search keyword query using a distinctive term from the topic. If vault_search returns zero matches AND the semantic top hits are all tangential on read, the vault has minimal coverage — report that and suggest creating a seed note using pkm-write. Do not advance into Steps 2–5 and do not synthesize from tangential matches.

If vault_semantic_search is unavailable (no OPENAI_API_KEY), use vault_search with key terms and vault_query by tags/type to locate a seed note.

Step 2: Graph Context

Explore the structural neighborhood around the seed note:

vault_neighborhood({ path: "<seed-note-path>", depth: 2, direction: "both" })

This reveals the intentional knowledge structure — what someone explicitly linked. If the seed note has no links (new or isolated note), this is expected — rely on Step 3 results for connection discovery. If vault_neighborhood returns an error (e.g., 'File not found'), the seed note may have been deleted or the path misresolved — try the next-best result from Step 1, or verify with vault_search.

Step 3: Semantic Expansion

Search for conceptually related notes that may not be in the graph:

vault_semantic_search({ query: "<topic>", limit: 10 })

If vault_semantic_search is unavailable (no OPENAI_API_KEY), use vault_search with multiple keyword variations and vault_query with relevant tags.

Step 4: Gap Analysis

Compare the graph results (step 2) with semantic results (step 3):

CategoryMeaningAction
In graph AND semanticWell-connected, established knowledgeNo action needed
In graph but NOT semanticStructurally linked but topically distantMay indicate weak/outdated link
In semantic but NOT graphMissing links — conceptually related but unconnectedHighest-value findings — suggest linking

Note: If Step 3 used vault_search/vault_query (no OPENAI_API_KEY), the gap analysis is less precise — text search misses conceptually related notes that use different terminology. Flag this reduced fidelity when presenting findings.

Step 5: Synthesize

Return findings organized as:

  1. What exists: Key notes on this topic with brief summaries (type, status, tags)
  2. How it's connected: Graph structure — which notes link to which, at what depth
  3. Missing links: Conceptually related notes not yet in the graph (candidates for linking — note reduced precision if semantic search was unavailable)
  4. Knowledge gaps: Topics referenced but not covered by any note — candidates for new notes via pkm-write

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.