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.
What it does
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.
Prerequisites
Node.js, npm
Installation
Use the upstream install or setup path that matches your environment:
- $ npm install --save gray-matter
- $ git clone https://github.com/jonschlinkert/gray-matter my-project
Requirements and caveats from upstream:
- Add the HTML in the following example to example.html, then add the following code to example.js and run $ node example (without the $):
- const fs = require('fs');
- const matter = require('gray-matter');
Basic usage or getting-started notes:
-
sh
-
Heads up!
-
Please see the changelog to learn about breaking changes that were made in v3.0.
-
Extracted from upstream docs: https://raw.githubusercontent.com/jonschlinkert/gray-matter/HEAD/README.md
Documentation
Source
Capabilities
Install
Quality
deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (1,423 chars)