/ralph-knowledge:setup-obsidian [thoughts-directory]from ralph-knowledge
Set up Obsidian as the browsing UI for ralph-knowledge documents. Provisions .obsidian/ config, updates .gitignore, and runs reindex with index note generation. Use when users want to browse thoughts/ in Obsidian, set up Obsidian integration, or ask about viewing knowledge documents.
Ships in ralph-knowledge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Configure a thoughts/ directory as an Obsidian vault with navigational index notes, issue hubs, and Dataview query references.
The ralph-knowledge plugin must be installed and working. If knowledge_search tool is not available, tell the user to run /ralph-knowledge:setup first.
If an argument was provided, use it as the thoughts directory path.
Otherwise, look for a thoughts/ directory in these locations (in order):
./thoughts/ (current project root)../thoughts/ (parent directory, for worktree setups)If found, confirm with the user:
Found thoughts directory: [path]
Contains [N] markdown files
Proceed with Obsidian setup?
If not found, ask the user for the path.
Check if [thoughts-dir]/.obsidian/ exists.
If absent, create the directory and write these config files:
[thoughts-dir]/.obsidian/app.json:
{
"useMarkdownLinks": false,
"newLinkFormat": "shortest",
"showFrontmatter": true
}
[thoughts-dir]/.obsidian/graph.json:
{
"colorGroups": [
{ "query": "path:_", "color": { "a": 1, "rgb": 8421504 } },
{ "query": "tag:#research OR type:research", "color": { "a": 1, "rgb": 4474111 } },
{ "query": "tag:#plan OR type:plan", "color": { "a": 1, "rgb": 4487360 } },
{ "query": "tag:#idea OR type:idea", "color": { "a": 1, "rgb": 16761095 } },
{ "query": "type:report", "color": { "a": 1, "rgb": 16744272 } },
{ "query": "type:spec", "color": { "a": 1, "rgb": 12517631 } }
]
}
If present, patch conservatively:
app.json. For each key in our config, only write it if the key does NOT already exist in the user's config. Write the merged result back.graph.json. Only add our colorGroups entries if colorGroups is empty or absent. If the user already has color groups, do not modify them.Report what was created or patched.
Check if [thoughts-dir]/.gitignore exists.
If absent, create it with:
_*.md
_issues/
.obsidian/
If present, read it and append any missing lines from the list above. Do not duplicate existing entries.
Run reindex using the same mechanism as /ralph-knowledge:setup:
cd /tmp && npm install --no-save ralph-hero-knowledge-index@latest 2>&1 | tail -3
node /tmp/node_modules/ralph-hero-knowledge-index/dist/reindex.js [thoughts-dir] [db-path]
The db-path defaults to ~/.ralph-hero/knowledge.db unless RALPH_KNOWLEDGE_DB is set.
This will index all documents AND generate the navigational index notes (_index.md, _research.md, _plans.md, _ideas.md, _reviews.md, _reports.md, _issues/GH-NNNN.md, _queries.md).
Display output as it runs.
Check that generated files exist:
ls [thoughts-dir]/_index.md [thoughts-dir]/_research.md [thoughts-dir]/_queries.md [thoughts-dir]/_issues/ 2>/dev/null
If files exist, setup is complete. If not, check for errors in the reindex output.
Obsidian Vault Ready
====================
Thoughts directory: [thoughts-dir]
Generated indexes: _index.md, _research.md, _plans.md, _ideas.md, _reviews.md, _reports.md
Issue hubs: _issues/ ([N] issues)
Query reference: _queries.md
Next steps:
1. Open Obsidian → "Open folder as vault" → select [thoughts-dir]
2. Install Dataview: Settings → Community Plugins → Browse → search "Dataview" → Install → Enable
3. Start with _index.md for navigation
To regenerate after adding new documents:
/ralph-knowledge:setup [thoughts-dir]
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub cdubiel08/ralph-hero --plugin ralph-knowledge5 skills in this plugin
/captureCapture — In-Flow Memory CaptureCapture an insight, decision, or session learning as a raw memory in ralph-knowledge — the in-flow "remember this" surface. Distills what just happened (an exchange, a debugging breakthrough, a whole session) into 1-3 atomic raw memories via the knowledge_remember MCP tool, so the nightly dream-loop reflection pass can synthesize them. Use when the user says "remember this", "capture this", "save this insight", "make a memory of this", "don't let me forget", "TIL", "turn this session into memories", or wants to bank a learning without leaving flow. Not for curated knowledge — wiki promotion is the human-gated /ralph-knowledge:curate surface./curateCurate the personal wiki tierCurate the personal wiki tier — the third memory tier above raw and reflection. Iterates through atomic axiom candidates one at a time, fact-checks each against the corpus, external sources, and code, applies governance gates (outside-code-surface, atomicity, lede-writability, MUSTIE, domain freshness), and presents fully-evidenced candidates for the user to gate y/n/edit. Use whenever the user mentions "curate the wiki", "promote to wiki", "find canonical entries", "add to my wiki", "wiki tier", "wiki axioms", or wants to grow their thoughts/wiki/ directory. Also trigger when the user wants to distill recurring patterns from their thoughts/ corpus into canonical entries, synthesize reflections into wiki-grade material, or when they ask to "find atomic axioms" in their notes. The wiki resists growth — the gate is biased toward rejection.Other plugins' skills for the same job