Vault Frontmatter Linter · Obsidian plugin documentation
Vault Frontmatter Linter documentation

Vault Frontmatter Linter checks and cleans YAML frontmatter locally inside Obsidian with zero network requests during linting or fixing. It scans the active note or a chosen folder for broken YAML syntax, non-ISO date values, duplicate keys, inconsistent tags formats, empty or null required keys, and trailing whitespace. You can fix the active note in one click using atomic vault.process writes that preserve YAML # comments, body text, and original CRLF or LF line endings.
Version 1.0.0. Requires Obsidian 1.13.4 or later. Works on desktop and mobile.
1 Installation
From Obsidian Community Plugins
- Open Settings and go to Community plugins.
- Turn off Restricted mode if needed.
- Select Browse, search for Vault Frontmatter Linter, and select Install.
- Select Enable to turn the plugin on.
Manual installation
- Download
main.js,manifest.json, andstyles.cssfrom the latest GitHub release. - Create the folder
<vault>/.obsidian/plugins/vault-frontmatter-linter/. - Copy the three files into that folder.
- Reload Obsidian and enable Vault Frontmatter Linter under Settings > Community plugins.
2 Getting started
Lint and fix the active note or a folder (Free)
- Open any Markdown note and run "Vault Frontmatter Linter: Open frontmatter linter" from the command palette, or select the ribbon icon.
- Switch between "Active note" and "Folder" scope to inspect issues across a single note or a chosen folder.
- Filter issues by All, Errors, Warnings, Fixable, or Schema, and select "Jump to line" on any row to open the exact frontmatter line.
- Select "Fix active note" (or run "Vault Frontmatter Linter: Fix active note frontmatter") to normalize dates, tags, duplicate keys, and trailing whitespace atomically.
Run schema checks, vault-wide batch fix, undo, and exports (Pro)
- In Settings, edit "Folder and tag schema rules (JSON)" to define required keys, allowed enums, regex patterns, and numeric bounds for specific folders or tags.
- In the linter modal, switch to "Entire vault" and select "Batch fix preview" to review every proposed frontmatter diff.
- Uncheck any note you want to skip, then select "Apply selected fixes".
- Select "Undo last batch fix" (or run the command) to restore unmodified notes to their pre-fix state.
- Select "Export Markdown" or "Export CSV" to save a deterministic lint report into your configured export folder.
3 Features
Local YAML frontmatter linter and 1-click active note fix
Open "Open frontmatter linter" from the command palette or select the ribbon icon to inspect the active note or any folder in your vault. The linter detects broken YAML syntax (unclosed --- delimiters, tab indentation, unclosed quotes, unclosed flow brackets, and malformed key lines), duplicate top-level keys, and trailing whitespace on frontmatter lines.
It also flags non-ISO date values on date-like keys (date, created, updated, due, published, and *_date or *_at keys) such as YYYY/MM/DD, YYYY.MM.DD, MM/DD/YYYY, or Nov 27, 2026, normalizing them to YYYY-MM-DD. Inconsistent tags formats (#tag hashes inside YAML, comma-separated strings, or duplicate entries) are normalized into a clean YAML block list, and missing or empty/null required keys ("", null , ~) are reported with exact line numbers.
Select "Fix active note" to apply all safe auto-fixes atomically through vault.process. Auto-fix merges duplicate tags or aliases lists uniquely, keeps the final value for duplicate scalar keys, and preserves standalone and inline # comments, UTF-8 BOM, note body text, and original CRLF or LF line endings. Notes with broken YAML syntax are skipped during auto-fix so malformed files are never corrupted. Select "Jump to line" on any issue row to open that note directly at the exact frontmatter line.
Vault-wide batch lint, dry-run diff preview, and 1-click atomic undo (Pro)
Pro unlocks vault-wide frontmatter linting across all folders while respecting your excluded folders list. Open "Batch fix preview" to inspect a line-by-line before and after diff for every fixable note, uncheck any note you want to skip, and apply all selected fixes atomically while preserving # comments and CRLF or LF line endings. If you change your mind, select "Undo last batch fix" to restore the modified notes. Any note edited manually after the batch fix is skipped automatically so later edits stay safe.
Custom folder and tag schema rules and report export (Pro)
Define custom JSON schema rules in Settings scoped by folderPrefix, tag, or both. Each schema rule can enforce required keys, allowed enum values, regular expression patterns, and numeric min/max bounds. Filter schema violations directly in the linter modal and export deterministic Markdown summary tables or RFC-4180 CSV reports to your configured vault export folder for archival or review.
Interactive What Pro adds demos
Open "What Pro adds" from Settings or the command palette to test custom folder and tag schema validation, vault-wide batch auto-fix dry-run diff preview with 1-click undo, and Markdown or CSV report export on in-memory sample notes. Each demo runs locally inside the modal and never reads or modifies your vault files.
4 Commands
Open the command palette and type the plugin name to see these commands. You can give each one a hotkey in Settings, Hotkeys.
| Command | Command id |
|---|---|
| Open frontmatter linter | vault-frontmatter-linter:open-frontmatter-linter |
| Fix active note frontmatter | vault-frontmatter-linter:fix-active-note-frontmatter |
| Vault-wide batch lint and auto-fix (${PRO_LABEL | vault-frontmatter-linter:vault-batch-lint-fix |
| Undo last batch frontmatter fix (${PRO_LABEL | vault-frontmatter-linter:undo-last-batch-frontmatter-fix |
| Export frontmatter lint report as Markdown (${PRO_LABEL | vault-frontmatter-linter:export-frontmatter-report-markdown |
| Export frontmatter lint report as CSV (${PRO_LABEL | vault-frontmatter-linter:export-frontmatter-report-csv |
| What Pro adds | vault-frontmatter-linter:what-pro-adds |
5 Settings
| Setting | Default | Description |
|---|---|---|
| Required keys | Empty | Comma-separated frontmatter keys that must be present and non-empty on linted notes. |
| Flag empty or null values | On | Warn when an existing frontmatter key has an empty, null , or ~ value. |
| Ambiguous slash date order | MDY |
Order (MM/DD/YYYY or DD/MM/YYYY) used when normalizing ambiguous slash dates such as 03/04/2026. |
| Default folder scope | Empty | Optional vault folder pre-selected when opening the linter in Folder scope. |
| Show confirmation notices | On | Show a short status notice after fixing notes, undoing a batch fix, or exporting reports. |
| Folder and tag schema rules (JSON) (Pro) | Projects sample | JSON array of custom folder and tag schema rules (required, enums, patterns, ranges). |
| Excluded folders for batch lint (Pro) | Templates, Archive |
Comma-separated folders skipped during vault-wide batch lint and auto-fix. |
| Lint report export folder (Pro) | Frontmatter-Lint-Reports |
Vault folder where Markdown and CSV frontmatter lint reports are saved. |
6 Privacy, payment and network
The core features are free. Pro features need a GitHub Sponsors sponsorship of theluckystrike: $5 a month or more, or $15 once. A total payment of $15 meets the payment requirement for Pro without further payment. Sign-in and the checks below still apply. Your notes stay readable and editable with or without Pro.
One payment turns on Pro in every NoteMods plugin.
GitHub handles the payment. Sponsor at https://notemods.com/pro/go?p=vault-frontmatter-linter&s=readme. You need no account for the free features. Pro needs the GitHub account that sponsors.
Until you select "Sign in with GitHub" in the settings, Vault Frontmatter Linter makes no network requests. Sign in uses the GitHub device flow. Vault Frontmatter Linter sends its public client ID and the scope read:user to https://github.com/login/device/code and shows you a code. While you enter the code at https://github.com/login/device, it asks https://github.com/login/oauth/access_token every few seconds to check the sign-in status. The scope permits profile reads only. GitHub needs this access to show the sponsorship tier. It grants no repository scope and no write access.
After sign in, Vault Frontmatter Linter sends one query to https://api.github.com/graphql. It checks if the signed-in account sponsors theluckystrike. It asks for the tier and the total payment to theluckystrike. The plugin reuses a successful check for 7 days. Failed checks can retry after 6 hours. Select Refresh to request an earlier check. It sends no note content, file names or other vault data, and it has no telemetry.
After a successful check, Pro can work offline for up to 14 days. Sign out or a negative sponsorship answer turns Pro off. The plugin stores the GitHub token through the secret storage API of Obsidian. It does not put the token in its saved settings or its local sponsorship data. The local storage of this device keeps your GitHub login, the tier and the time of the last check. Sign out clears the token. You can also revoke the access in your GitHub settings, under Applications.
7 Questions and answers
Does Vault Frontmatter Linter send my notes or frontmatter to any server?
No. All YAML parsing, date normalization, tag cleanup, schema validation, atomic auto-fix, undo, and report exports run locally in pure TypeScript inside Obsidian.
Will auto-fix delete my YAML comments or change CRLF line endings?
No. Auto-fix uses atomic vault.process writes that preserve standalone # comments, inline # comments, UTF-8 BOM, note body text, and original CRLF (\r\n) or LF (\n) line endings.
What happens if a note has broken YAML syntax?
The linter reports exact line numbers for unclosed delimiters, tab indentation, unclosed quotes, unclosed flow brackets, and malformed lines, and skips auto-fix on that note until you fix the syntax error.
8 Support
Report bugs or request features in the GitHub issue tracker. Learn more about Pro across the NoteMods catalog at NoteMods Pro.