llm-wiki-obsidian-hardening
Skill3 starsChanged 5 months agoMITView on GitHub
Harden an Obsidian vault for coding-agent and LLM-Wiki workflows. Use when the user wants Claude Code, Codex, Cursor, or other agents to edit an Obsidian vault without breaking wikilinks, attachments, frontmatter, sync, or human-owned synthesis.
In this repository50 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llm-wiki-adr-memorySkill
- llm-wiki-agent-memory-bridgeSkill
- llm-wiki-archiveSkill
- llm-wiki-capture-pipelineSkill
- llm-wiki-chooseSkill
- llm-wiki-claim-anchorsSkill
- llm-wiki-company-flow-auditSkill
- llm-wiki-conflict-resolverSkill
- llm-wiki-critique-auditSkill
- llm-wiki-designSkill
- llm-wiki-doctorSkill
- llm-wiki-domain-packSkill
- llm-wiki-ecosystem-registrySkill
- llm-wiki-evalSkill
- llm-wiki-eval-toolingSkill
- llm-wiki-export-publishSkill
- llm-wiki-faqSkill
- llm-wiki-github-actionSkill
- llm-wiki-gitlab-operating-modelSkill
- llm-wiki-human-first-designSkill
- llm-wiki-implementation-deep-diveSkill
- llm-wiki-ingestion-stackSkill
- llm-wiki-interviewSkill
- llm-wiki-local-first-stackSkill
- llm-wiki-mcp-integrationSkill
- llm-wiki-migration-plannerSkill
- llm-wiki-model-policySkill
- llm-wiki-news-radarSkill
- llm-wiki-orientSkill
- llm-wiki-paf-adoptionSkill
- llm-wiki-privacy-redactorSkill
- llm-wiki-provenanceSkill
- llm-wiki-refactorSkill
- llm-wiki-repo-docsSkill
- llm-wiki-retrieval-architectSkill
- llm-wiki-security-reviewSkill
- llm-wiki-setupSkill
- llm-wiki-skill-compilerSkill
- llm-wiki-skill-doctorSkill
- llm-wiki-source-refreshSkill
- llm-wiki-team-rolloutSkill
- llm-wiki-threat-modelSkill
- llm-wiki-trust-auditSkill
- llm-wiki-zero-to-working-wikiSkill
- wiki-ingestSkill
- wiki-lintSkill
- wiki-querySkill
- wiki-triageSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 11 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Before letting a coding agent edit an Obsidian vault for the first time.
- Distinctive: line 21
When wikilinks, embeds, or attachment folders keep breaking after agent edits.
- Distinctive: line 22
When setting up AGENTS.md/CLAUDE.md boundaries for a vault used with LLM-Wiki workflows.
- Distinctive: line 23
When a vault syncs via iCloud, Syncthing, or Obsidian Sync and index or WAL files risk corruption.
- Distinctive: line 24
Before running bulk edits or migrations across vault notes.
- Very specific: line 53
do not rewrite embeds ![[...]].
- Distinctive: line 54
do not move attachments without link repair.
- Very specific: line 55
do not cat the whole vault.
- Very specific: line 56
use rg or Obsidian CLI when available.
- Distinctive: line 71
Add protected section markers around human synthesis when useful.
- Very specific: line 80
no edits under raw/;
- Distinctive: line 93
Prefer per-device indexes and reconstructable caches.
- Very specific: line 115
Do not alter .obsidian/ settings without explicit approval.
- Distinctive: line 116
Do not rewrite wikilinks to Markdown links.
- Distinctive: line 117
Do not move attachments without link repair.
- Distinctive: line 118
Do not apply hardening changes without git or backup.
≈ “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
LLM-Wiki Obsidian Hardening
Goal
Make an Obsidian vault safer for agent-assisted LLM-Wiki work.
When to use
- Before letting a coding agent edit an Obsidian vault for the first time.
- When wikilinks, embeds, or attachment folders keep breaking after agent edits.
- When setting up
AGENTS.md/CLAUDE.mdboundaries for a vault used with LLM-Wiki workflows. - When a vault syncs via iCloud, Syncthing, or Obsidian Sync and index or WAL files risk corruption.
- Before running bulk edits or migrations across vault notes.
Inputs
- Obsidian vault path.
- Desired mode: audit-only or apply.
- Sync method if known.
- Existing plugins and conventions if relevant.
Procedure
1. Preflight
Check:
- git or backup exists;
.obsidian/is present;- attachment folders and embedded files;
- wikilink style;
- frontmatter style;
- existing
AGENTS.md/CLAUDE.md; - sync tool and local cache/index files;
- re-verify the vault's current file state immediately before applying changes, since sync tools may have modified files since the initial scan.
2. Protect Obsidian semantics
Ensure instructions say:
- preserve
[[wikilinks]]unless user asks otherwise; - do not rewrite embeds
![[...]]; - do not move attachments without link repair;
- do not
catthe whole vault; - use
rgor Obsidian CLI when available; - preserve comments, aliases and YAML quoting.
3. Add LLM-Wiki boundaries
Recommend or add:
raw/
wiki/
inbox/
_meta/
_agent/Add protected section markers around human synthesis when useful.
4. Harden writes
Suggest:
- dry-run for bulk edits;
- git branch for migrations;
- frontmatter validation;
- no edits under
raw/; wiki-lintafter large changes;- local-only handling for sensitive notes.
5. Sync and index policy
Flag dangerous patterns:
- syncing SQLite WAL/SHM files;
- syncing HNSW/vector index files;
- using multiple sync systems on one vault;
- treating generated indexes as source of truth.
Prefer per-device indexes and reconstructable caches.
Output
## Obsidian hardening summary
## Vault risks
## Recommended instruction updates
## Link and attachment policy
## Sync/index policy
## Proposed patches
## Next skillSafety gates
- Do not alter
.obsidian/settings without explicit approval. - Do not rewrite wikilinks to Markdown links.
- Do not move attachments without link repair.
- Do not apply hardening changes without git or backup.
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.

