baoyu-format-markdown

Formats markdown into frontmatter-enabled documents with typography improvements.

Updated Feb 13, 2026
One-click install
npx skills add https://github.com/chengyihua/nanobot-ts --skill baoyu-format-markdown-chengyihua
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baoyu-format-markdown
Source: https://github.com/chengyihua/nanobot-ts/tree/main/skills/baoyu-format-markdown
Command: npx skills add https://github.com/chengyihua/nanobot-ts --skill baoyu-format-markdown-chengyihua

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Formatting plain text or messy markdown into well-structured, frontmatter-enabled documents ready for publishing and processing.

Core Features & Use Cases

  • Formats plain text or markdown into well-structured Markdown with frontmatter
  • Applies typography improvements and spacing fixes for CJK and English text
  • Use Case: Prepare knowledge bases, docs, or articles with consistent structure and metadata ready for deployment.

Quick Start

Format a file by applying the formatter to a sample markdown file to generate a formatted version with frontmatter.

Frequently Asked Questions about baoyu-format-markdown

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

FAQPage Schema
How do I add YAML frontmatter to plain text or markdown files?

To add YAML frontmatter to plain text or markdown, this Skill parses your input and automatically injects structured metadata. It transforms unstructured content into a frontmatter-enabled document ready for publishing and version tracking.

How do I fix spacing issues between CJK and English text in markdown?

To fix spacing issues between CJK and English text in markdown, the formatter applies typography improvements specifically for mixed-language content. It parses your document and adjusts spacing to ensure consistent, readable output.

Can I use remark and unified scripts to format markdown for publishing?

Yes, you can use remark and unified scripts to format markdown for publishing. This Skill leverages remark-parse, remark-gfm, and remark-stringify to parse, modify, and write robust, frontmatter-ready output files.

What is the best way to prepare knowledge base docs with consistent metadata?

The best way to prepare knowledge base docs with consistent metadata is to run them through a markdown formatter that handles YAML frontmatter and typography. This ensures your articles have standardized structure for deployment.

Does markdown formatting with remark-cjk-friendly handle GFM tables?

Yes, markdown formatting with remark-cjk-friendly handles GFM tables. The Skill uses remark-gfm to parse GitHub Flavored Markdown while applying CJK-friendly typography improvements and spacing fixes.

When should I not use automated markdown formatting for my documents?

You should not use automated markdown formatting when your document relies on custom HTML or non-standard syntax that remark-stringify might overwrite. The formatter applies standardized typography rules that could alter specialized manual formatting.