Sync the current project's knowledge into the Obsidian wiki. Use this skill from any project when the user says "update wiki", "sync to wiki", "save this to my wiki", "update obsidian", or wants to distill what they've been working on into their knowledge base. This is the cross-project skill that lets you push knowledge from wherever you are into the vault.
You are distilling knowledge from the current project into the user's Obsidian wiki. This skill works from any project directory, not just the obsidian-wiki repo.
~/.obsidian-wiki/config to get:
OBSIDIAN_VAULT_PATH — where the wiki livesOBSIDIAN_WIKI_REPO — where the obsidian-wiki repo is cloned (for reading other skills if needed)~/.obsidian-wiki/config doesn't exist, tell the user to run bash setup.sh from their obsidian-wiki repo first.$OBSIDIAN_VAULT_PATH/.manifest.json to check if this project has been synced before.$OBSIDIAN_VAULT_PATH/index.md to know what the wiki already contains.Figure out what this project is by scanning the current working directory:
README.md, docs/, any markdown filespackage.json, pyproject.toml, go.mod, Cargo.toml or whatever defines the project.claude/ in the project)Derive a clean project name from the directory name.
Check .manifest.json for this project:
last_commit_synced. Only consider what changed since then. Use git log <last_commit>..HEAD --oneline to see what's new.If nothing meaningful changed since last sync, tell the user and stop.
This is the core question from Karpathy's pattern: what would you want to know about this project if you came back in 3 months with zero context?
Worth distilling:
Not worth distilling:
The heuristic: if reading the codebase answers the question, don't wiki it. If you'd have to re-derive the reasoning by reading git blame across 20 commits, wiki it.
Goes under $VAULT/projects/<project-name>/:
projects/<project-name>/
├── <project-name>.md ← project overview (named after the project, NOT _project.md)
├── concepts/ ← project-specific ideas, architectures
├── skills/ ← project-specific how-tos, patterns
└── references/ ← project-specific source summaries
The overview page (<project-name>.md) should have:
Things that aren't project-specific go in the global categories:
| What you found | Where it goes |
|---|---|
| A general concept learned | concepts/ |
| A reusable pattern or technique | skills/ |
| A tool/service/person | entities/ |
| Cross-project analysis | synthesis/ |
Every page needs YAML frontmatter:
---