baoyu-format-markdown

Formats plain text or Markdown into frontmatter-enabled, well-structured .md files.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/lihanghang/agent-daily-blog --skill baoyu-format-markdown-lihanghang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baoyu-format-markdown
Source: https://github.com/lihanghang/agent-daily-blog/tree/main/skills-archive/2026-03-17/baoyu-skills/skills/baoyu-format-markdown
Command: npx skills add https://github.com/lihanghang/agent-daily-blog --skill baoyu-format-markdown-lihanghang

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 markdown into a frontmatter-enabled, well-structured Markdown document, improving consistency and publish-readiness.

Core Features & Use Cases

  • Frontmatter handling and title/slug management for consistent metadata.
  • Formatting of headings, bold, lists, code blocks, and other Markdown elements to improve readability.
  • Flexible workflow: optimize formatting, preserve original formatting, and apply typography fixes via a dedicated script.

Quick Start

Format a Markdown file by running the formatter on article.md to produce article-formatted.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 plain text into Markdown with frontmatter and a consistent layout?

To format plain text into Markdown with frontmatter, this Skill structures headings, bold markers, lists, and code blocks into a consistent layout. It automatically enforces YAML frontmatter handling, slug and title management, and outputs a `{filename}-formatted.md` file.

What is the best way to manage YAML frontmatter and typography in Markdown drafts?

The best way to manage YAML frontmatter and typography in Markdown drafts is using a workflow that enforces metadata consistency while applying typography improvements. This Skill handles frontmatter formatting, title management, and structural cleanup via a dedicated supporting script.

How do I convert drafts into well-structured Markdown without breaking the original layout?

To convert drafts into well-structured Markdown without breaking the original layout, you can use the workflow mode that preserves original formatting. This ensures your content receives frontmatter and structural consistency while keeping the existing layout intact.

Does this Markdown formatter support GFM tables and CJK characters?

Yes, the Markdown formatter supports GFM tables and CJK characters. It utilizes dependencies like remark-gfm for GitHub Flavored Markdown and remark-cjk-friendly to ensure proper parsing, formatting, and readability for CJK languages.

Can I use this formatting workflow to apply typography fixes across multiple project articles?

Yes, you can apply typography fixes across multiple project articles. The Skill is designed to process drafts or articles across projects, applying consistent typography improvements and frontmatter structuring to each document individually.

Why does my Markdown formatting output a new file instead of overwriting the original?

The Markdown formatting process outputs a new file to preserve your source data. By generating a `{filename}-formatted.md` file, the workflow ensures the original draft remains untouched while you review the newly structured and frontmatter-enabled document.