---
title: Split Markdown front matter and body before docs migrations, metadata audits, or static-site transforms
slug: split-markdown-front-matter-and-body-before-docs-migrations-metadata-audits-or-static-site-transforms
description: Use gray-matter when an agent needs to open Markdown or content files, extract structured front matter, and pass clean body text plus metadata into the next step. This skill is for parsing and rewriting front matter safely, not for running a full CMS or static site generator.
github_stars: 4415
verification: security_reviewed
source: https://github.com/jonschlinkert/gray-matter
category: Content Writing & SEO
framework: Multi-Framework
tool_ecosystem:
  github_repo: jonschlinkert/gray-matter
  github_stars: 4415
---
# Split Markdown front matter and body before docs migrations, metadata audits, or static-site transforms

Use gray-matter when an agent needs to open Markdown or content files, extract structured front matter, and pass clean body text plus metadata into the next step. This skill is for parsing and rewriting front matter safely, not for running a full CMS or static site generator.

## Installation

1. Clone this skill repository.
2. Open this skill folder.
3. Review prerequisites and setup needs.
4. Install required dependencies.
5. Run and test in your environment.

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/split-markdown-front-matter-and-body-before-docs-migrations-metadata-audits-or-static-site-transforms/)
