{"id":"3b51bf54-b456-42f4-805e-a5a11a70c0a9","shortId":"rwkFat","kind":"skill","title":"Split Markdown front matter and body before docs migrations, metadata audits, or static-site transforms","tagline":"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.","description":"# Split Markdown front matter and body before docs migrations, metadata audits, or static-site transforms\n\nUse 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.\n\n## Prerequisites\n\nNode.js, npm\n\n## Installation\n\nUse the upstream install or setup path that matches your environment:\n- $ npm install --save gray-matter\n- $ git clone https://github.com/jonschlinkert/gray-matter my-project\n\nRequirements and caveats from upstream:\n- Add the HTML in the following example to example.html, then add the following code to example.js and run $ node example (without the $):\n- const fs = require('fs');\n- const matter = require('gray-matter');\n\nBasic usage or getting-started notes:\n- sh\n- ## Heads up!\n- Please see the [changelog](CHANGELOG.md) to learn about breaking changes that were made in v3.0.\n\n- Source: https://github.com/jonschlinkert/gray-matter\n- Extracted from upstream docs: https://raw.githubusercontent.com/jonschlinkert/gray-matter/HEAD/README.md\n\n## Documentation\n\n- https://github.com/jonschlinkert/gray-matter\n\n## Source\n\n- [Agent Skill Exchange](https://agentskillexchange.com/skills/split-markdown-front-matter-and-body-before-docs-migrations-metadata-audits-or-static-site-transforms/)","tags":["split","markdown","front","matter","and","body","before","docs","migrations","metadata","audits","static"],"capabilities":["skill","source-agentskillexchange","skill-split-markdown-front-matter-and-body-before-docs-migrations-metadata-audits-or-static-site-transforms","topic-agent-skills","topic-ai-agents","topic-ai-tools","topic-awesome-list","topic-claude-code","topic-codex","topic-cursor","topic-llm","topic-mcp","topic-npx-skills","topic-openclaw","topic-skills-catalog"],"categories":["skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/agentskillexchange/skills/split-markdown-front-matter-and-body-before-docs-migrations-metadata-audits-or-static-site-transforms","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add agentskillexchange/skills","source_repo":"https://github.com/agentskillexchange/skills","install_from":"skills.sh"}},"qualityScore":"0.454","qualityRationale":"deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (1,423 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T19:12:35.710Z","embedding":null,"createdAt":"2026-05-18T13:19:35.347Z","updatedAt":"2026-05-18T19:12:35.710Z","lastSeenAt":"2026-05-18T19:12:35.710Z","tsv":"'/jonschlinkert/gray-matter':156,225,236 '/jonschlinkert/gray-matter/head/readme.md':232 '/skills/split-markdown-front-matter-and-body-before-docs-migrations-metadata-audits-or-static-site-transforms/)':243 'add':165,175 'agent':23,88,238 'agentskillexchange.com':242 'agentskillexchange.com/skills/split-markdown-front-matter-and-body-before-docs-migrations-metadata-audits-or-static-site-transforms/)':241 'audit':11,76 'basic':197 'bodi':6,38,71,103 'break':215 'caveat':162 'chang':216 'changelog':210 'changelog.md':211 'clean':37,102 'clone':153 'cms':61,126 'code':178 'const':187,191 'content':29,94 'doc':8,73,229 'document':233 'environ':145 'exampl':171,184 'example.html':173 'example.js':180 'exchang':240 'extract':31,96,226 'file':30,95 'follow':170,177 'front':3,33,53,68,98,118 'fs':188,190 'full':60,125 'generat':65,130 'get':201 'getting-start':200 'git':152 'github.com':155,224,235 'github.com/jonschlinkert/gray-matter':154,223,234 'gray':19,84,150,195 'gray-matt':18,83,149,194 'head':205 'html':167 'instal':134,138,147 'learn':213 'made':219 'markdown':2,27,67,92 'match':143 'matter':4,20,34,54,69,85,99,119,151,192,196 'metadata':10,41,75,106 'migrat':9,74 'my-project':157 'need':24,89 'next':44,109 'node':183 'node.js':132 'note':203 'npm':133,146 'open':26,91 'pars':50,115 'pass':36,101 'path':141 'pleas':207 'plus':40,105 'prerequisit':131 'project':159 'raw.githubusercontent.com':231 'raw.githubusercontent.com/jonschlinkert/gray-matter/head/readme.md':230 'requir':160,189,193 'rewrit':52,117 'run':58,123,182 'safe':55,120 'save':148 'see':208 'setup':140 'sh':204 'site':15,64,80,129 'skill':47,112,239 'skill-split-markdown-front-matter-and-body-before-docs-migrations-metadata-audits-or-static-site-transforms' 'sourc':222,237 'source-agentskillexchange' 'split':1,66 'start':202 'static':14,63,79,128 'static-sit':13,78 'step':45,110 'structur':32,97 'text':39,104 'topic-agent-skills' 'topic-ai-agents' 'topic-ai-tools' 'topic-awesome-list' 'topic-claude-code' 'topic-codex' 'topic-cursor' 'topic-llm' 'topic-mcp' 'topic-npx-skills' 'topic-openclaw' 'topic-skills-catalog' 'transform':16,81 'upstream':137,164,228 'usag':198 'use':17,82,135 'v3.0':221 'without':185","prices":[{"id":"746fab6c-52db-4e8a-8053-a2e1a35240e8","listingId":"3b51bf54-b456-42f4-805e-a5a11a70c0a9","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"agentskillexchange","category":"skills","install_from":"skills.sh"},"createdAt":"2026-05-18T13:19:35.347Z"}],"sources":[{"listingId":"3b51bf54-b456-42f4-805e-a5a11a70c0a9","source":"github","sourceId":"agentskillexchange/skills/split-markdown-front-matter-and-body-before-docs-migrations-metadata-audits-or-static-site-transforms","sourceUrl":"https://github.com/agentskillexchange/skills/tree/main/skills/split-markdown-front-matter-and-body-before-docs-migrations-metadata-audits-or-static-site-transforms","isPrimary":false,"firstSeenAt":"2026-05-18T13:19:35.347Z","lastSeenAt":"2026-05-18T19:12:35.710Z"}],"details":{"listingId":"3b51bf54-b456-42f4-805e-a5a11a70c0a9","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"agentskillexchange","slug":"split-markdown-front-matter-and-body-before-docs-migrations-metadata-audits-or-static-site-transforms","github":{"repo":"agentskillexchange/skills","stars":8,"topics":["agent-skills","ai-agents","ai-tools","awesome-list","claude-code","codex","cursor","llm","mcp","npx-skills","openclaw","skills-catalog"],"license":"mit","html_url":"https://github.com/agentskillexchange/skills","pushed_at":"2026-05-18T19:02:17Z","description":"The open catalog of AI agent skills — 2,000+ security-scanned skills for Claude Code, Cursor, Codex, and more.","skill_md_sha":"9ef3c588b026ca056cb5ce5c3709e85949f3e8d1","skill_md_path":"skills/split-markdown-front-matter-and-body-before-docs-migrations-metadata-audits-or-static-site-transforms/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/agentskillexchange/skills/tree/main/skills/split-markdown-front-matter-and-body-before-docs-migrations-metadata-audits-or-static-site-transforms"},"layout":"multi","source":"github","category":"skills","frontmatter":{"name":"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."},"skills_sh_url":"https://skills.sh/agentskillexchange/skills/split-markdown-front-matter-and-body-before-docs-migrations-metadata-audits-or-static-site-transforms"},"updatedAt":"2026-05-18T19:12:35.710Z"}}