frontmatter-guard

Validate and repair malformed YAML frontmatter in Markdown pages.

Updated Jun 20, 2026
One-click install
npx skills add https://github.com/Sigmacodeat/subsumio-web --skill frontmatter-guard-sigmacodeat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontmatter-guard
Source: https://github.com/Sigmacodeat/subsumio-web/tree/main/server/skills/frontmatter-guard
Command: npx skills add https://github.com/Sigmacodeat/subsumio-web --skill frontmatter-guard-sigmacodeat

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents malformed YAML frontmatter from corrupting knowledge bases by detecting structural issues before they break synchronization, search, or ingestion workflows.

Core Features & Use Cases

  • Frontmatter Validation: Scans brain pages for missing delimiters, YAML parsing failures, slug mismatches, null bytes, nested quotes, and other canonical validation errors.
  • Safe Auto-Repair: Fixes supported mechanical issues with backup files while preserving cases that require human review.
  • Use Case: Maintain a large knowledge repository by running audits before commits or sync operations to catch and repair malformed Markdown metadata.

Quick Start

Use the frontmatter-guard skill to audit the brain pages for frontmatter issues and report repairable problems.

Frequently Asked Questions about frontmatter-guard

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

FAQPage Schema
How do I validate YAML frontmatter in Markdown pages before committing to a knowledge base?

To validate YAML frontmatter in Markdown pages, scan the files for missing delimiters, parsing failures, slug mismatches, and null bytes. This identifies structural issues before they break search or ingestion workflows in your knowledge base repository.

What causes malformed YAML frontmatter in Markdown knowledge bases?

Malformed YAML frontmatter is caused by missing delimiters, nested quotes, null bytes, and slug mismatches. These structural issues corrupt metadata synchronization and search ingestion workflows if not detected and repaired before committing changes.

Can I automatically repair malformed frontmatter without losing data?

Yes, you can automatically repair malformed frontmatter using safe auto-fix handling. It fixes supported mechanical issues while creating backup files, intentionally preserving complex validation errors that require human review to prevent data loss.

Does frontmatter validation work for CI checks and pre-commit hooks?

Frontmatter validation works for CI checks and pre-commit validation scenarios. It audits brain repositories to catch malformed Markdown metadata before sync operations, applying parsing and error classification to prevent ingestion workflow failures.

What are the limitations of automated frontmatter repair in Markdown files?

Automated frontmatter repair is limited to supported mechanical issues. Complex YAML parsing failures, nested quotes, and structural corruptions requiring human review are intentionally preserved without modification to avoid unsafe metadata changes.