Vault Sanitization

Sanitize Obsidian vault frontmatter by fixing unescaped quotes and malformed YAML.

24|2|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/jwintz/lithos --skill vault-sanitization
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Vault Sanitization
Source: https://github.com/jwintz/lithos/tree/main/skills/vault-sanitization
Command: npx skills add https://github.com/jwintz/lithos --skill vault-sanitization

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill fixes common vault frontmatter issues that cause rendering problems in Lithos, such as unescaped quotes in titles and malformed YAML, ensuring reliable site generation.

Core Features & Use Cases

  • Automated frontmatter sanitization: Fixes unescaped quotes, improper quoting, and common YAML syntax errors to prevent navigation and build issues.
  • Metadata consistency: Aligns frontmatter with document headers to avoid duplication and mismatches in the generated site.
  • One-click vault prep: Run a single script to sanitize an entire vault, with a manual fallback for targeted fixes.

Quick Start

Run the vault sanitizer on your vault: node ~/Syntropment/lithos/scripts/sanitize-vault.mjs /path/to/your/vault

Frequently Asked Questions about Vault Sanitization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix unescaped quotes in Obsidian vault frontmatter?

Fix unescaped quotes in Obsidian vault frontmatter by running the sanitize-vault.mjs script, which automatically corrects improper quoting and malformed YAML syntax across your entire vault.

Why does malformed YAML in markdown frontmatter cause site generation issues?

Malformed YAML in markdown frontmatter causes site generation issues because static site generators fail to parse invalid metadata, breaking navigation and document rendering during the build process.

What's the best way to sanitize an entire Obsidian vault for static site generation?

Sanitize an entire Obsidian vault for static site generation by running node sanitize-vault.mjs with your vault path, applying automated fixes to frontmatter consistency and YAML syntax errors.

Can I manually fix frontmatter metadata in a single markdown file?

You can manually fix frontmatter metadata in a single markdown file using the targeted manual adjustment steps provided alongside the automated vault sanitization script.

Does vault sanitization align markdown frontmatter with document headers?

Vault sanitization aligns markdown frontmatter with document headers to prevent metadata duplication and mismatches, ensuring consistent data quality throughout the generated static site.

When should I run vault sanitization during the onboarding process?

Run vault sanitization during onboarding, post-import cleanup, or before Lithos static site generation to ensure frontmatter metadata is standardized and free of YAML rendering errors.