baoyu-format-markdown

Format plain text and markdown files with YAML frontmatter and typography fixes.

5|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/oldwinter/skills --skill baoyu-format-markdown-oldwinter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baoyu-format-markdown
Source: https://github.com/oldwinter/skills/tree/main/lenny-skills/marketing-skills/baoyu-format-markdown
Command: npx skills add https://github.com/oldwinter/skills --skill baoyu-format-markdown-oldwinter

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?

This Skill streamlines the process of formatting plain text or markdown files, ensuring they have proper structure, clear headings, and readable typography.

Core Features & Use Cases

  • Automated Formatting: Adds frontmatter, titles, summaries, headings, bold text, lists, and code blocks to improve readability.
  • Typography Enhancement: Corrects CJK/English spacing and quote styles.
  • Use Case: You have a draft article in plain text. Use this Skill to automatically convert it into a well-formatted markdown file with a title, summary, and organized sections.

Quick Start

Use the baoyu-format-markdown skill to format the file 'my-draft.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 automatically format plain text into markdown with proper headings and YAML frontmatter?

To format plain text into markdown, this tool analyzes content structure and automatically adds YAML frontmatter, titles, summaries, headings, bolding, lists, and code blocks, transforming drafts into well-structured markdown files.

What is the best way to fix CJK and English spacing issues in markdown files?

Fixing CJK and English spacing in markdown files is handled automatically through typography enhancement, which corrects mixed CJK/Latin spacing and normalizes quote styles for improved readability during the formatting process.

Can I use remark and unified to add a summary and frontmatter to my draft articles?

Yes, this formatting process leverages unified and remark plugins like remark-parse and remark-stringify to analyze content, automatically generating YAML frontmatter and summaries for draft articles.

Does this markdown formatting tool support GFM features like lists and code blocks?

Yes, the tool supports GFM features by using remark-gfm, allowing it to detect content structure and properly format lists and code blocks alongside adding headings and bold text.

What are the limitations when converting plain text to markdown using automated formatting?

The conversion relies on automated content analysis for structure detection, so limitations arise if the plain text lacks clear semantic cues for generating accurate headings, summaries, and frontmatter.

Why does my markdown content need typography fixes for mixed CJK and English text?

Typography fixes are needed because mixed CJK and English text often lacks proper spacing and consistent quote styles, which this tool normalizes to ensure professional and readable markdown output.