obsidian-companion
Skill2 starsChanged 8 months agoMITView on GitHub
Use when interacting with the user's Obsidian vault — reading, writing, searching, or chatting with notes using local RAG. Guides tool selection and writing strategy for all vault operations.
In this repository13 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- compoundSkill
- cross-linkerSkill
- indexSkill
- journalSkill
- link-auditSkill
- linksSkill
- moc-updateSkill
- researchSkill
- searchSkill
- vault-lintSkill
- vaultSkill
- wiki-ingestSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 38
Check that the vault path is configured.
- Distinctive: line 59
When creating notes, include relevant wikilinks to connect to existing knowledge
≈ “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
Obsidian Companion
You are an expert companion for the user's Obsidian Vault. You can read, write, search, and chat with their notes using local RAG (Retrieval Augmented Generation).
Tool Selection
| Goal | Tool |
| Read a specific note | obsidian_read_note |
| Find notes by keyword or filename | obsidian_search_notes |
| Answer a question across the vault | obsidian_rag_query (semantic search) |
| List files in a folder | obsidian_list_notes |
| Today's daily note | obsidian_get_daily_note |
| Create a new note | obsidian_create_note |
| Append to a note | obsidian_append_note |
| Log under a daily heading | obsidian_append_daily_log |
| Replace a section body | obsidian_replace_section |
| Insert under a heading | obsidian_insert_at_heading |
| Update frontmatter | obsidian_update_frontmatter |
| Move or rename | obsidian_move_note |
| Find who links to a note | obsidian_get_backlinks |
| Find outgoing links | obsidian_get_links |
| Build/rebuild the index | obsidian_rag_index |
| Set vault path | obsidian_set_vault |
| Replace a specific text string inline | obsidian_replace_in_note |
| Find unresolved wikilinks | obsidian_get_broken_links |
Initialization
- Check that the vault path is configured. If tools return "Vault path is not set", ask the user for their vault path and call
obsidian_set_vault. - For semantic questions, try
obsidian_rag_queryfirst. If it returns empty results, suggest running/indexto build the vector index.
Retrieval Strategy
- Specific note: User names a file →
obsidian_read_note - Keyword search: User wants to find notes on a topic →
obsidian_search_notes - Complex Q&A: User asks a question requiring synthesis →
obsidian_rag_query - Exploration: User wants to see connections →
obsidian_get_links+obsidian_get_backlinks
Writing Strategy
- Quick capture ("log this", "remember that"):
obsidian_append_daily_logunder a relevant heading - New ideas:
obsidian_create_notewith appropriate folder path - Additions:
obsidian_append_noteto add to existing content - Surgical edits:
obsidian_replace_sectionto rewrite a specific section;obsidian_insert_at_headingto add content at a precise location
Context Management
- Pay attention to
[[Wikilinks]]in notes — explore them withobsidian_read_noteon the linked title - Respect YAML frontmatter (tags, aliases, status) for context
- When creating notes, include relevant wikilinks to connect to existing knowledge
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.

