lock
Skill1 starsChanged 7 months agoApache-2.0View on GitHub
Restrict the router to a single vault for the current session (single-vault isolation mode). While locked, tool calls targeting any other vault are refused, cross-vault fan-out (`vault: "*"`) is refused, and tool calls without an explicit `vault` resolve to the locked one. Lift the lock with `/obsidian-router:unlock`. Pass "persist" to make the lock survive a restart: it is recorded on this workspace's binding in the user's own config, since a lock named only by a project `.env` is no longer applied at start-up.
- Reads credentials
3 other projects use a version of this.
Adopted by
Most recently taken up by
- devinat1/skillstheir own version, first seen Oct 13, 2026
- chris-santiago/ml-wikitheir own version, first seen Jul 16, 2026
- Megaprompting/torque-looptheir own version, first seen Jul 3, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- Megaprompting/torque-loop★ 10same name
- devinat1/skills★ 1same name
- chris-santiago/ml-wiki★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository49 other files it gives its agents.
- AGENTS.mdAGENTS.md
- auto-modeSkill
- autoresearchSkill
- bind-workspaceSkill
- build-search-indexSkill
- canvasSkill
- conventionsSkill
- decision-consolidateSkill
- defuddleSkill
- discover-list-filesSkill
- discover-list-vaultsSkill
- force-new-port-startSkill
- hot-compactSkill
- manage-deleteSkill
- manage-moveSkill
- meta-attach-vaultSkill
- meta-audit-bridge-readinessSkill
- meta-setupSkill
- meta-statusSkill
- meta-sync-templateSkill
- obsidian-basesSkill
- obsidian-markdownSkill
- read-frontmatterSkill
- read-getSkill
- read-searchSkill
- read-search-smartSkill
- saveSkill
- sync-from-githubSkill
- template-executeSkill
- unlockSkill
- who-is-speakingSkill
- wiki-boundarySkill
- wiki-exportSkill
- wiki-foldSkill
- wiki-graphSkill
- wiki-ingestSkill
- wiki-lintSkill
- wiki-neighborsSkill
- wiki-pathSkill
- wiki-querySkill
- wiki-refresh-digestsSkill
- wikiSkill
- wiki-tourSkill
- write-appendSkill
- write-bundleSkill
- write-create-or-replaceSkill
- write-frontmatter-mergeSkill
- write-frontmatter-setSkill
- write-patchSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Verify the named vault is in the active set (the tool itself does this and refuses otherwise — surface the error clearly to the user, …
- Very specific: line 28
If the user phrased it persistently ("permanently", "de manière permanente", "à chaque démarrage") but didn't explicitly say "persist", …
- Very specific: line 29
If the user phrased it temporarily ("just for now", "juste pour cette session", "pour l'instant"), default persist=false.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
lock
Invoke the lock_vault MCP tool.
Argument parsing from $ARGUMENTS
- bare vault name →
vault=<name>, persist defaults to false <name> --persistor "permanently" / "persist" / "de manière permanente" / "qui survit au restart" →persist=truevault=X persist=true— explicit form
Always
- Verify the named vault is in the active set (the tool itself does this and refuses otherwise — surface the error clearly to the user, including the list of known vaults).
- After a successful lock, confirm to the user: which vault, whether the lock is volatile or persisted, and where the
.envhint was written if persisted. Readpersistedfrom the result, do not infer it frompersist: true— it means "will survive a restart", so it is false when the router config could not be written even though the.envline was. In that case the result also carrieshintWritten: trueand a message saying the lock does NOT survive; relay that rather than reporting success. - If the user phrased it persistently ("permanently", "de manière permanente", "à chaque démarrage") but didn't explicitly say "persist", default
persist=true— that's clearly their intent. - If the user phrased it temporarily ("just for now", "juste pour cette session", "pour l'instant"), default
persist=false.
Push back if
- The vault name is missing or ambiguous → ask for the explicit name.
- The user is already locked to a different vault → tell them, ask if they want to switch (which means re-running
lockwith the new name) orunlockfirst.
Homedir refusal caveat (persist mode only)
If the user asks for a persistent lock from their home directory (e.g., they launched Claude Code from ~ rather than a project folder), the tool refuses with an explicit error and the in-memory lock still applies for the session. Surface the message verbatim — it tells them how to fix it (run from a real project directory, or set OBSIDIAN_ROUTER_LOCKED=<vault> in their shell profile / PowerShell $PROFILE). Do not retry the persist call from the same cwd.
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.

