agentleFS
po4ykapo4yka/llm-wiki-skills/skills/llm-wiki-obsidian-hardening/SKILL.md

llm-wiki-obsidian-hardening

Skill6 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.

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
  1. Distinctive:

    Before letting a coding agent edit an Obsidian vault for the first time.

    line 20
  2. Distinctive:

    When wikilinks, embeds, or attachment folders keep breaking after agent edits.

    line 21
  3. Distinctive:

    When setting up AGENTS.md/CLAUDE.md boundaries for a vault used with LLM-Wiki workflows.

    line 22
  4. Distinctive:

    When a vault syncs via iCloud, Syncthing, or Obsidian Sync and index or WAL files risk corruption.

    line 23
  5. Distinctive:

    Before running bulk edits or migrations across vault notes.

    line 24
  6. Very specific:

    do not rewrite embeds ![[...]].

    line 53
  7. Distinctive:

    do not move attachments without link repair.

    line 54
  8. Very specific:

    do not cat the whole vault.

    line 55
  9. Very specific:

    use rg or Obsidian CLI when available.

    line 56
  10. Distinctive:

    Add protected section markers around human synthesis when useful.

    line 71
  11. Very specific:

    no edits under raw/;

    line 80
  12. Distinctive:

    Prefer per-device indexes and reconstructable caches.

    line 93
  13. Very specific:

    Do not alter .obsidian/ settings without explicit approval.

    line 115
  14. Distinctive:

    Do not rewrite wikilinks to Markdown links.

    line 116
  15. Distinctive:

    Do not move attachments without link repair.

    line 117
  16. Distinctive:

    Do not apply hardening changes without git or backup.

    line 118

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.md boundaries 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 cat the whole vault;
  • use rg or 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-lint after 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 skill

Safety 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.