Agent skill · Design & Presentation

baoyu-format-markdown

Formats plain text or markdown files with frontmatter, titles, summaries, headings, bold, lists, and code blocks. Use when user asks to "format markdown", "beautify article", "add formatting", or improve article layout. Outputs to {filename}-formatted.md.

JimLiugithub.com/JimLiuGitHub ↗
claude-codecodexships scriptsMIT
Install
npx skills add JimLiu/baoyu-skills --skill baoyu-format-markdown --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 8
SKILL.md size: 14 KB
Bundled scripts: yes
Version: 1.57.0
Path: skills/baoyu-format-markdown/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 24,562
Language: TypeScript
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Markdown Formatter Transforms plain text or markdown into well-structured, reader-friendly markdown. The goal is to help readers quickly grasp key points, highlights, and structure — without changing any original content. **Core principle**: Only adjust formatting and fix obvious typos. Never add, delete, or rewrite content. ## User Input Tools When this skill prompts the user, follow this tool-selection rule (priority order): 1. **Prefer built-in user-input tools** exposed by the current agent runtime — e.g., `AskUserQuestion`, `request_user_input`, `clarify`, `ask_user`, or any equivalent. 2. **Fallback**: if no such tool exists, emit a numbered plain-text message and ask the user to reply with the chosen number/answer for each question. 3. **Batching**: if the tool supports multiple questions per call, combine all applicable questions into a single call; if only single-question, ask them one at a time in priority order. Concrete `AskUserQuestion` references below are examples — substitute the local equivalent in other runtimes. ## Script Directory Scripts in `scripts/` subdirectory. `{baseDir}` = this SKILL.md's directory path. Resolve `${BUN_X}` runtime: if `bun` installed →

What's inside
Steps it walks through
  1. User Input Tools
  2. Script Directory
  3. Preferences (EXTEND.md)
  4. Usage
  5. Workflow
  6. Step 1: Read & Detect Content Type
  7. Step 2: Analyze Content (Reader's Perspective)
  8. Step 3: Check/Create Frontmatter, Title & Summary
  9. Step 4: Format Content
  10. Step 5: Save Formatted File
  11. Step 6: Execute Typography Script
  12. Step 7: Completion Report
  13. Notes
  14. Extension Support
Ships with 7 files
  • references/title-formulas.md
  • scripts/autocorrect.ts
  • scripts/bun.lock
  • scripts/main.ts
  • scripts/package-lock.json
  • scripts/package.json
  • scripts/quotes.ts
Commands it runs
if [ -f "{filename}-formatted.md" ]; then
mv "{filename}-formatted.md" "{filename}-formatted.backup-$(date +%Y%m%d-%H%M%S).md"
fi
Enable all features including quote replacement
Only fix emphasis issues, skip spacing
More from baoyu-skills
All skills →
About this skill
What does the baoyu-format-markdown skill do?

Formats plain text or markdown files with frontmatter, titles, summaries, headings, bold, lists, and code blocks. Use when user asks to "format markdown", "beautify article", "add formatting", or improve article layout. Outputs to {filename}-formatted.md.

How do I install it?

Run `npx skills add JimLiu/baoyu-skills --skill baoyu-format-markdown --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From JimLiu/baoyu-skills, a repository with 24,562 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going