baoyu-format-markdown

仓库创建 2026年2月2日最近提交 1 天前SkillHot 收录 20 天前
▸ 精选理由

自动美化与补齐元信息,提升发布效率与一致性。

这个 Skill 做什么

将纯文本或 Markdown 格式化为结构化并补全 frontmatter 的文章文件。

把凌乱的纯文本或 Markdown 自动整理成结构化文章,补全 frontmatter、标题、摘要、段落、列表和代码块,输出干净的 -formatted.md 文件。写完草稿想要美化排版、补齐元数据或统一样式时用。对中文排版和常见层级处理友好,节省大量手动整理工作。

▸ 展开 SKILL.md 英文原文

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.

内容创作Markdown格式化frontmatter通用
4.2k
Stars
417
Forks
40
仓库内 Skill
+1.0k
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/anbeime/skill/main/skills/content-creation-publisher/baoyu-format-markdown/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/anbeime/skill/main/skills/content-creation-publisher/baoyu-format-markdown/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Markdown Formatter

Transforms plain text or markdown files into well-structured markdown with proper frontmatter, formatting, and typography.

## Script Directory

Scripts in `scripts/` subdirectory. Replace `${SKILL_DIR}` with this SKILL.md's directory path.

| Script | Purpose |
|--------|---------|
| `scripts/main.ts` | Main entry point with CLI options (uses remark-cjk-friendly for CJK emphasis) |
| `scripts/quotes.ts` | Replace ASCII quotes with fullwidth quotes |
| `scripts/autocorrect.ts` | Add CJK/English spacing via autocorrect |

## Preferences (EXTEND.md)

Use Bash to check EXTEND.md existence (priority order):

```bash
# Check project-level first
test -f .baoyu-skills/baoyu-fo
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有