llm-wiki-obsidian-hardening

llm-wiki-obsidian-hardening is a skill for Claude Code, Codex from po4yka/llm-wiki-skills. It costs 68 tokens per session (723 once invoked), scanned A, original, MIT.

A safety guide for preparing an Obsidian vault—a folder of Markdown notes managed by the Obsidian app—for editing by coding agents.

In plain words
What is it for?
It is for auditing or hardening vaults, setting agent boundaries, checking backups and sync tools, and preparing for bulk edits or migrations.
Why use it?
It helps prevent broken wikilinks, attachments, metadata, synchronization data, and human-authored notes during automated edits.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Good fit It is for auditing or hardening vaults, setting agent boundaries, checking backups and sync tools, and preparing for bulk edits or migrations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/po4yka/llm-wiki-skills/llm-wiki-obsidian-hardening
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add po4yka/llm-wiki-skills --skill llm-wiki-obsidian-hardening
Clone the repo
git clone --depth 1 https://github.com/po4yka/llm-wiki-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for llm-wiki-obsidian-hardening

README.md
[![agentmods](https://agentmods.dev/badge/skills/po4yka/llm-wiki-skills/llm-wiki-obsidian-hardening/github.svg)](https://agentmods.dev/skills/po4yka/llm-wiki-skills/llm-wiki-obsidian-hardening)
Your own site
<a href="https://agentmods.dev/skills/po4yka/llm-wiki-skills/llm-wiki-obsidian-hardening"><img src="https://agentmods.dev/badge/skills/po4yka/llm-wiki-skills/llm-wiki-obsidian-hardening/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for llm-wiki-obsidian-hardening

Your own site · 80×15
<a href="https://agentmods.dev/skills/po4yka/llm-wiki-skills/llm-wiki-obsidian-hardening"><img src="https://agentmods.dev/badge/skills/po4yka/llm-wiki-skills/llm-wiki-obsidian-hardening.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 723 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.00723
Opus 5 $0.00034 $0.00362
Sonnet 5 $0.00014 $0.00145
Haiku 4.5 $0.00007 $0.00072

Measured 12d ago against content hash 2226535717e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

llm-wiki-obsidian-hardening scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/llm-wiki-obsidian-hardening/SKILL.md · 119 lines

How it starts

The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

Read the full file on GitHub · 119 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 119 lines · 68 tokens per session scan A 2226535717e4

Subscribe to this mod's changes

llm-wiki-obsidian-hardening is a skill published in the GitHub repository po4yka/llm-wiki-skills (3 stars, last pushed 19d ago), licensed MIT. It adds 68 tokens to every session and 723 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

wiki-lint

Health-check a wiki vault. Finds orphan pages (no inbound links), dead wikilinks (point to non-existent pages), missing frontmatter fields, stale claims, empty sections, and pages absent from catalog.md. Produces a structured report with severity tiers and proposes concrete fixes — but does not auto-apply them unless…

tboome33/obsidian-mcp-router · 119 tokens

save

File the current Claude conversation (or a specific insight from it) as a structured wiki note. Auto-detects the right type (decision, answer, session-log, technique, ADR), writes appropriate frontmatter, places the file in the correct wiki folder, and updates catalog.md, journal.md, hot.md. Use when the user says…

tboome33/obsidian-mcp-router · 112 tokens

wiki-export

Export a vault's wiki either as a single portable file (llms.txt or llms-full.txt per the llmstxt.org standard) or as an OKF knowledge bundle (Google's Open Knowledge Format v0.1 — a shareable directory of markdown files any AI agent can consume). Use when the user says "export my wiki", "make an llms.txt", "share my…

tboome33/obsidian-mcp-router · 129 tokens

wiki-query

Answer a question using ONLY the existing wiki vault as the knowledge base — no web search, no general LLM knowledge. Reads hot.md first (cheap recent context), then catalog.md to navigate, then drills into specific pages, then optionally semantic-searches the wiki, and synthesizes an answer with citations. Use when…

tboome33/obsidian-mcp-router · 129 tokens

wiki-fold

Roll up the wiki's journal.md entries into structured fold pages — like 2^k log compaction. Reads the last 2, 4, 8, 16... entries and writes a fold page that summarizes them by extractive summarization (no invention), with backlinks to children. Idempotent at the structural level — re-running with the same window…

tboome33/obsidian-mcp-router · 125 tokens

wiki

Bootstrap or check a Karpathy-style "LLM wiki" structure inside an Obsidian vault — a self-maintaining knowledge base where pages reference each other and the LLM keeps it tidy. Sets up catalog.md (curated page catalog), journal.md (append-only operation history), hot.md (recent-context cache), and overview.md…

tboome33/obsidian-mcp-router · 134 tokens