baoyu-format-markdown

Format Markdown files with YAML frontmatter and normalized typography.

947|163|Updated Jan 13, 2026
One-click install
npx skills add https://github.com/guanyang/open-agent-hub --skill baoyu-format-markdown-guanyang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baoyu-format-markdown
Source: https://github.com/guanyang/open-agent-hub/tree/main/skills/baoyu-format-markdown
Command: npx skills add https://github.com/guanyang/open-agent-hub --skill baoyu-format-markdown-guanyang

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) and references (resource) components.

What problem does it solve?

Formats plain text or markdown files by applying frontmatter, titles, summaries, headings, bold, lists, and code blocks while preserving original content.

Core Features & Use Cases

  • Applies YAML frontmatter formatting and consistent metadata
  • Normalizes headings, bold emphasis, lists, and code blocks for readability
  • Automatically adjusts typography, spacing, and CJK-friendly formatting when processing markdown documents
  • Use Case: Normalize a poorly formatted project README to a clean, consistent document without content changes

Quick Start

Format a Markdown file by running the formatter on your target file, for example article.md

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 markdown files with consistent frontmatter and typography without changing the content?

To format markdown cleanly without altering content, this Skill parses plain text or markdown using Node.js tooling to apply YAML frontmatter, normalize headings, bold emphasis, lists, and code blocks for reader-friendly documentation.

Can I automatically adjust CJK-friendly spacing when I format markdown documents?

Yes, you can automatically adjust typography and CJK-friendly spacing when formatting markdown documents. The Skill utilizes the remark-cjk-friendly dependency to process and correct spacing issues specific to CJK characters.

Do I need Node.js to apply YAML frontmatter to markdown files?

Yes, Node.js is required to apply YAML frontmatter and format markdown files. The Skill relies on Node.js-based tooling and included scripts to parse, format, and apply YAML metadata through the remark-parse and remark-stringify pipeline.

What is the best way to normalize a poorly formatted project README into a clean document?

The best way to normalize a poorly formatted project README is to run the included formatting scripts on your target file. It restructures plain text into well-structured markdown with consistent metadata without changing original content.

Does this markdown formatting tool support GitHub Flavored Markdown?

Yes, this markdown formatting tool supports GitHub Flavored Markdown (GFM). It integrates the remark-gfm dependency to parse and format GFM syntax, ensuring tables, strikethrough, and autolinks are correctly processed and rendered.

Why does my markdown heading formatting change after running the formatter?

Markdown heading formatting is normalized to improve readability, which adjusts structure but preserves original content. The formatter normalizes headings, bold emphasis, lists, and code blocks to ensure a consistent, reader-friendly document structure.