baoyu-format-markdown

Format plain text or Markdown into structured Markdown with frontmatter and typography.

Updated Jan 25, 2026
One-click install
npx skills add https://github.com/xfs96192/claude-config --skill baoyu-format-markdown-xfs96192
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baoyu-format-markdown
Source: https://github.com/xfs96192/claude-config/tree/main/skills/baoyu-format-markdown
Command: npx skills add https://github.com/xfs96192/claude-config --skill baoyu-format-markdown-xfs96192

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires remark-cjk-friendly, remark-frontmatter, remark-gfm, remark-parse, remark-stringify, unified, unist-util-visit, yaml, and includes scripts (resource) components.

What problem does it solve?

Formats plain text or rough Markdown into well-structured Markdown documents with consistent frontmatter, headings, bold, lists, and typography, saving editing time and improving readability.

Core Features & Use Cases

  • Frontmatter handling and formatting for consistent metadata
  • Structural formatting: headings, bold emphasis, lists, and code blocks
  • Output to {filename}-formatted.md for easy publishing and versioning

Quick Start

Run the formatter on your Markdown file to generate a -formatted.md output.

Frequently Asked Questions about baoyu-format-markdown

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

FAQPage Schema
How do I format plain text into structured markdown with YAML frontmatter?

Formatting plain text into markdown with YAML frontmatter is done by running this Skill, which parses content through a remark pipeline and outputs a structured {filename}-formatted.md file with standardized metadata and typography.

Can I batch process multiple markdown files to standardize formatting across projects?

Yes, you can batch process markdown files to standardize formatting across projects. The Skill supports a batch workflow that applies consistent frontmatter, headings, and typography corrections to multiple documents in a single run.

Does this markdown formatter handle GitHub Flavored Markdown and CJK typography?

Yes, the markdown formatter handles GitHub Flavored Markdown and CJK typography. It uses the remark-gfm plugin for GFM support and remark-cjk-friendly to apply correct spacing and emphasis corrections for CJK characters.

What is the best way to clean up rough markdown and fix typography spacing issues?

The best way to clean up rough markdown and fix typography spacing is using an automated remark pipeline. This Skill parses text with remark-parse, applies typography corrections, and outputs clean markdown via remark-stringify.

How do I add and format YAML frontmatter to existing markdown documents?

To add and format YAML frontmatter to existing markdown documents, this Skill utilizes the remark-frontmatter and yaml dependencies. It parses your files, injects or standardizes the metadata block, and writes the formatted output to a new file.