baoyu-format-markdown

Format plain text and markdown into structured markdown with YAML frontmatter.

333|83|Updated Jan 9, 2026
One-click install
npx skills add https://github.com/SpaceZephyr/myskill --skill baoyu-format-markdown-spacezephyr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baoyu-format-markdown
Source: https://github.com/SpaceZephyr/myskill/tree/main/baoyu-format-markdown
Command: npx skills add https://github.com/SpaceZephyr/myskill --skill baoyu-format-markdown-spacezephyr

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?

This Skill turns rough plain text or markdown into clean, structured articles with consistent formatting, saving time on manual cleanup and layout fixes.

Core Features & Use Cases

  • Markdown Cleanup: Adds or improves frontmatter, titles, summaries, headings, lists, bold text, and code blocks.
  • Typography Fixes: Applies spacing and emphasis corrections for mixed CJK and English text, with optional quote normalization.
  • Use Case: Use it to polish a draft article, normalize a note export, or prepare a markdown document for publishing.

Quick Start

Ask the skill to format the attached markdown or text file into a polished version and save the result as a formatted markdown file.

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 markdown with YAML frontmatter and clean up typography?

To format markdown with YAML frontmatter and clean typography, you need a tool that parses the document, normalizes headings and lists, and re-stringifies it. This Skill applies remark processing to add or improve frontmatter, titles, and structural elements automatically.

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

Fixing spacing and emphasis in mixed CJK and English markdown text requires a CJK-friendly parser that correctly handles spacing between different character sets. This Skill uses remark-cjk-friendly to apply typography corrections and normalize emphasis in your documents.

Can I use remark to automatically add frontmatter to plain text drafts?

Yes, you can use remark to add frontmatter to plain text drafts by parsing the text into an abstract syntax tree, injecting YAML frontmatter, and stringifying it back. This Skill leverages remark-frontmatter and yaml dependencies to handle this conversion seamlessly.

What is the best way to clean up rough notes into structured markdown for publishing?

The best way to clean up rough notes into structured markdown for publishing is using an automated formatting pipeline that standardizes headings, lists, bold text, and code blocks. This Skill transforms rough text into polished markdown with consistent formatting and optional quote normalization.

Does remark formatting work with GitHub Flavored Markdown (GFM) syntax?

Yes, remark formatting works with GitHub Flavored Markdown syntax because this Skill includes the remark-gfm dependency. It supports parsing and stringifying GFM features like tables, strikethrough, and task lists while applying typography fixes and structural cleanup.