Skip to content
Back to skills

Split Markdown Front Matter And Body Before Docs Migrations Metadata Audits Or Static Site Transforms

ASecurity

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.

  • 36 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 2, 2026
ai-agentsgonodegitsecuritydocumentation

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned June 2, 2026

npx -y skills add agentskillexchange/skills --skill split-markdown-front-matter-and-body-before-docs-migrations-metadata-audits-or-static-site-transforms --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Split Markdown Front Matter And Body Before Docs Migrations Metadata Audits Or Static Site Transforms?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Split Markdown Front Matter And Body Before Docs Migrations Metadata Audits Or Static Site Transforms
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-split-markdown-front-matter-and-body-before-docs-m/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-split-markdown-front-matter-and-body-before-docs-m)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "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"
author: "jonschlinkert"
publisher_type: "GitHub User"
category: "Content Writing & SEO"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "jonschlinkert/gray-matter"
  github_stars: 4415
  npm_package: "gray-matter"
  npm_weekly_downloads: 26312715
---

# 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](CHANGELOG.md) to learn about breaking changes that were made in v3.0.

- Source: https://github.com/jonschlinkert/gray-matter
- Extracted from upstream docs: https://raw.githubusercontent.com/jonschlinkert/gray-matter/HEAD/README.md

## Documentation

- https://github.com/jonschlinkert/gray-matter

## Source

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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.