frontmatter-guard

Validate and repair YAML frontmatter on brain pages with .bak backups.

Updated May 4, 2026
One-click install
npx skills add https://github.com/Postergully/11mirror-plugin --skill frontmatter-guard-postergully
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontmatter-guard
Source: https://github.com/Postergully/11mirror-plugin/tree/main/skills/frontmatter-guard
Command: npx skills add https://github.com/Postergully/11mirror-plugin --skill frontmatter-guard-postergully

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Brain pages pile up with malformed YAML frontmatter that can break ingestion, search, and automation. This skill validates and auto-repairs common frontmatter issues before they enter the brain.

Core Features & Use Cases

  • Audit of brain pages to surface frontmatter issues (missing opening/closing markers, YAML parse failures, null bytes, slug mismatches, and nested quotes).
  • Validate & Fix frontmatter with safe backups (.bak) and integration with the central frontmatter_integrity rules.
  • Use Case: run a maintenance pass across a corpus of pages to ensure metadata consistency and reliable downstream processing.

Quick Start

Run a frontmatter audit on your brain pages to detect and fix issues.

Frequently Asked Questions about frontmatter-guard

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

FAQPage Schema
How do I validate and repair malformed YAML frontmatter on my pages?

To validate YAML frontmatter, you can use an automated audit and fix workflow that detects missing markers, parse failures, and slug mismatches, then auto-repairs them while generating .bak file backups to ensure safe metadata mutation.

What causes YAML frontmatter parsing to fail during content ingestion?

YAML frontmatter parsing fails during ingestion due to missing opening or closing frontmatter markers, null bytes, nested quote issues, or structural formatting errors that prevent the YAML parser from reading the metadata block correctly.

How do I audit a large repository of pages for frontmatter consistency?

Auditing a large repository involves running a maintenance pass across all brain pages to surface frontmatter issues like missing markers and slug mismatches, ensuring metadata consistency and reliable downstream processing before ingestion occurs.

Does the frontmatter repair process permanently modify my original files?

The frontmatter repair process does not permanently destroy original files, as it creates .bak backups when mutating content to safely preserve the unmodified source data before applying any automated frontmatter corrections.

What is the best way to fix slug mismatches across multiple content sources?

Fixing slug mismatches across multiple sources requires running a validation workflow aligned with central frontmatter integrity rules, automatically detecting and correcting identifier discrepancies to ensure metadata consistency across the corpus.

Why does null byte content break YAML frontmatter ingestion?

Null bytes break YAML frontmatter ingestion because they corrupt the text encoding structure, causing the YAML parser to fail when attempting to read the metadata block, which necessitates an automated validation and repair process to strip invalid characters.