capture-knowledge
Capture project knowledge
This skill writes a markdown note into the user's Obsidian vault capturing reusable, cross-project technical knowledge. The user invokes you from inside one of their software projects; you distill what you've learned (from the code, conversation, or your own investigation) into a note that future-them can find and apply on a different project.
Resolving the vault path
The vault is named Main but lives at a different absolute path on different machines (e.g. /Users/arjen/Documents/Obsidian/Main on one Mac, /Users/arjenschwarz/Documents/Obsidian/Main/Main on another). Never hardcode the path. The skill keeps a per-machine cache of the path so it doesn't depend on Obsidian (or its CLI) being available at write time.
Cache location: ~/.config/capture-knowledge/config.json, with shape:
{
"vault_path": "/Users/arjen/Documents/Obsidian/Main"
}
Resolution workflow
On every invocation, run this in order — stop at the first step that yields a path: