canghe-format-markdown

Format Markdown files with YAML frontmatter, headings, lists, and code blocks.

429|102|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/freestylefly/canghe-skills --skill canghe-format-markdown
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: canghe-format-markdown
Source: https://github.com/freestylefly/canghe-skills/tree/main/skills/canghe-format-markdown
Command: npx skills add https://github.com/freestylefly/canghe-skills --skill canghe-format-markdown

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 notes into standardized, well-structured Markdown by automatically injecting YAML frontmatter, organizing headings, and applying typography improvements.

Core Features & Use Cases

  • Frontmatter generation and normalization, ensuring consistent metadata across documents.
  • Automatic heading structuring, bold emphasis, and list formatting for readability.
  • Use Case: Convert project notes or draft articles into polished Markdown ready for publication or documentation.

Quick Start

Format a plain text or Markdown file into a well-structured Markdown with frontmatter, headings, bold emphasis, lists, and code blocks, saving as {filename}-formatted.md.

Frequently Asked Questions about canghe-format-markdown

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

FAQPage Schema
How do I automatically format markdown files with YAML frontmatter?

To automatically format markdown files with YAML frontmatter, this Skill parses and rewrites your content to inject standardized metadata, organize headings, and apply typography tweaks for consistent document structure across projects.

What is the best way to standardize plain text notes into structured markdown?

Standardizing plain text notes into structured markdown is achieved by applying deterministic formatting options that automatically generate frontmatter, apply bold emphasis, and format lists and code blocks for publication readiness.

Can I batch process multiple markdown documents to normalize headings and typography?

Yes, you can batch process multiple markdown documents to normalize headings and typography, applying consistent YAML frontmatter and structural formatting across all project files simultaneously.

Does remark support CJK friendly typography tweaks for markdown formatting?

Remark supports CJK friendly typography tweaks for markdown formatting through the remark-cjk-friendly dependency, ensuring proper text processing and deterministic formatting options for international content.

How do GFM features like lists and code blocks get formatted during markdown processing?

GFM features like lists and code blocks get formatted during markdown processing by leveraging remark-gfm and unified, parsing unist trees and rewriting content with deterministic options for standardized readability.

When should I use automated markdown formatting instead of manual editing?

You should use automated markdown formatting instead of manual editing when converting project notes or draft articles into polished documentation, ensuring consistent structure and typography across single or batched files.