baoyu-format-markdown
Formats plain text or markdown files with frontmatter, titles, summaries, headings, bold, lists, and code blocks.
Skill by XX-Trader
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/xx-trader-baoyu-format-markdown
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
baoyu-format-markdown- Description
- 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.
- License
- MIT
- Instructions
- 295 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (7)
- SKILL.md
- autocorrect.ts · scripts/
- bun.lock · scripts/
- cjk-emphasis.ts · scripts/
- main.ts · scripts/
- package.json · scripts/
- quotes.ts · scripts/
SKILL.md (first lines)
# 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 |
| `scripts/cjk-emphasis.ts` | Fix CJK emphasis/bold punctuation issues |
| `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-format-markdown/EXTEND.md && echo "project"
# Then user-level (cross-platform: $HOME works on macOS/Linux/WSL)
test -f "$HOME/.baoyu-skills/baoyu-format-markdown/EXTEND.md" && echo "user"
```
┌──────────────────────────────────────────────────────────┬───────────────────┐
│ Path │ Location │
├──────────────────────────────────────────────────────────┼───────────────────┤
│ .baoyu-skills/baoyu-format-markdown/EXTEND.md │ Project directory │
├──────────────────────────────────────────────────────────┼───────────────────┤
│ $HOME/.baoyu-skills/baoyu-format-markdown/EXTEND.md │ User home │
└──────────────────────────────────────────────────────────┴───────────────────┘
┌───────────┬───────────────────────────────────────────────────────────────────────────┐
│ Result │ Action │
├───────────┼───────────────────────────────────────────────────────────────────────────┤
│ Found │ Read, parse, apply settings │
├───────────┼───────────────────────────────────────────────────────────────────────────┤
│ Not found │ Use defaults │
└───────────┴───────────────────────────────────────────────────────────────────────────┘
**EXTEND.md Supports**: Default formatting options | Summary length preferences
## Usage
Claude performs content analysis and formatting (Steps 1-6), then runs the script for typography fixes (Step 7).
## Workflow
### Step 1: Read Source File
Read the user-specified markdown or plain text file.
### Step 1.5: Detect Content Type & Confirm
**Content Type Detection:**
| Indicator | Classification |
|-----------|----------------|
| Has `---` YAML frontmatter | Markdown |
| Has `#`, `##`, `###` headings | Markdown |
| Has `**bold**`, `*italic*` | Markdown |
| Has `- ` or `1. ` lists | Markdown |
| Has ``` code blocks | Markdown |
| Has `> ` blockquotes | Markdown |
| None of above | Plain text |
**Decision Flow:**
┌─────────────────┬────────────────────────────────────────────────┐
│ Content Type │ Action │
├─────────────────┼────────────────────────────────────────────────┤
│ Plain text │ Proceed to Step 2 (format to markdown) │
├─────────────────┼────────────────────────────────────────────────┤
│ Markdown │ Use AskUserQuestion to confirm optimization │
└─────────────────┴────────────────────────────────────────────────┘
**If Markdown detected, ask user:**
```
Detected existing markdown formatting. What would you like to do?
1. Optimize formatting (Recommended)
- Add/improve frontmatter, headings, bold, lists
- Run typography script (spacing, emphasis fixes)
- Output: {filename}-formatted.md
2. Keep original formatting
- Preserve existing markdown structure
- Run typography script (spacing, emphasis fixes)
- Output: {filename}-formatted.md
3. Typography fixes only
- Run typography script on original file in-place
- No copy created, modifies original file directly
```
**Based on user choice:**
- **Optimize**: Continue to Step 2-8 (full workflow)
- **Keep original**: Skip Steps 2-5, copy file → Step 6-8 (run script on copy)
- **Typography only**: Skip Steps 2-6, run Step 7 on original file directly
### Step 2: Analyze Content Structure
Identify:
- Existing title (H1 `#`)
- Paragraph separations
- Keywords suitable for **bold**
- Parallel content convertible to lists
- Code snippets
- Quotations
### Step 3: Check/Create Frontmatter
Check for YAML frontmatter (`---` block). Create if missing.
**Meta field handling:**From XX-Trader/openclaw-hardflow-backup-20260302, MIT.
More from XX-Trader/openclaw-hardflow-backup-20260302
- 0.524score
engineering-cybernetics-experience-loop
XX-Trader
Use when any runtime-host Hermes agent consolidates work experience under Qian Xuesen's Engineering Cybernetics standard: store only bottom-level logic in…
SkillBFreshness: BClaude Code +9 - 0.523score
config-watchdog
XX-Trader
配置变更安全兜底技能。用于定期快照 OpenClaw 配置文件、 检测意外变更、JSON 格式校验、必要时自动回滚。 当怀疑配置被意外修改或 JSON 损坏时使用。
SkillBFreshness: BClaude Code +9 - 0.522score
cross-runtime-memory-distiller
XX-Trader
Hermes / OpenClaw 共用的跨宿主记忆蒸馏技能。 从 Claude / Gemini / OpenClaw / Hermes 多源会话中提取归一化事件, 经清洗、打分、分类后写入热记忆(USER.md / MEMORY.md), 同时产出蒸馏报告、控制面桥接记录和技能候选草稿。
SkillBFreshness: BClaude Code +9 - 0.521score
api-registry-manager
XX-Trader
API 注册表管理 Skill。负责项目外部 API 和来源的注册、查询、更新、删除。 每个项目维护独立的 API_REGISTRY.json 和 SOURCE_REGISTRY.json, 记录第三方依赖的接口定义、文档地址、版本信息。 是 project-agent 的核心组件之一,也是 API watch…
SkillBFreshness: BClaude Code +9 - 0.520score
control-plane-ops
XX-Trader
通用控制面巡检技能,用于 Task Center、Cron、调度注册表、运行快照和故障恢复。
SkillBFreshness: BClaude Code +9 - 0.518score
failure-learning
XX-Trader
失败学习回写 Skill。当模型反复失败时,分析根因、检索外部方案、 回写到需求/方案/模型执行规约文档,形成闭环纠偏。 核心约束:失败学习触发后,一定要与人沟通,不允许 AI 自行闷头解决。
SkillBFreshness: BClaude Code +9 - 0.515score
db-deploy
XX-Trader
兼容入口:按目标项目提供的部署、烟测和回滚命令执行交付流水线部署阶段
SkillBFreshness: BClaude Code +9 - 0.515score
auto-fix
XX-Trader
兼容入口:将缺陷复现、隔离修改、验证、审查和可选发布交给通用项目交付流水线
SkillBFreshness: BClaude Code +9 - 0.512score
feature-development
XX-Trader
兼容入口:按目标仓库契约完成需求、方案、实现、验证和审查
SkillBFreshness: BClaude Code +9 - 0.512score
deployment-test
XX-Trader
兼容入口:使用项目注入的验证命令和验收断言检查已部署版本
SkillBFreshness: BClaude Code +9 - 0.487score
agent-manager
XX-Trader
agent-manager 技能
SkillBFreshness: BClaude Code +9 - 0.411score
dual-ai-review
XX-Trader
双 AI 对抗式审查 Skill。用于需求审查、方案审查、代码审查三个阶段, 强制要求 2 个不同模型的 AI 互相探讨、互相质疑,产出联合审查结论。 不是单 AI 走过场,而是通过对抗发现单模型盲点。 当 coordinator 需要审查需求/方案/代码时,必须按此 Skill 执行。
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Mar 2, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.770score
baoyu-format-markdown
JimLiu
Formats plain text or markdown files with frontmatter, titles, summaries, headings, bold, lists, and code blocks.
SkillCFreshness: C★ 26.9KClaude Code +9 - 0.358score
baoyu-format-markdown
EthanYoQ
Formats plain text or markdown files with frontmatter, titles, summaries, headings, bold, lists, and code blocks.
SkillBFreshness: B★ 11Claude Code +9 - 0.352score
baoyu-format-markdown
Hb-zzz-momo
Formats plain text or markdown files with frontmatter, titles, summaries, headings, bold, lists, and code blocks.
SkillAFreshness: A★ 1Claude Code +9 - 0.338score
baoyu-format-markdown
guanyang
Formats plain text or markdown files with frontmatter, titles, summaries, headings, bold, lists, and code blocks.
SkillCFreshness: C★ 980Claude Code +9 - 0.299score
baoyu-format-markdown
SassumiX
Formats plain text or markdown files with frontmatter, titles, summaries, headings, bold, lists, and code blocks.
SkillCFreshness: C★ 2Claude Code +9 - 0.259score
baoyu-format-markdown
makerjackie
Formats plain text or markdown files with frontmatter, titles, summaries, headings, bold, lists, and code blocks.
SkillDFreshness: D★ 1Claude Code +9 - 0.246score
baoyu-format-markdown
xfs96192
Formats plain text or markdown files with frontmatter, titles, summaries, headings, bold, lists, and code blocks.
SkillDFreshness: DClaude Code +9 - 0.246score
baoyu-format-markdown
chengyihua
Formats plain text or markdown files with frontmatter, titles, summaries, headings, bold, lists, and code blocks.
SkillDFreshness: DClaude Code +9
More from XX-Trader
- 0.524score
engineering-cybernetics-experience-loop
XX-Trader
Use when any runtime-host Hermes agent consolidates work experience under Qian Xuesen's Engineering Cybernetics standard: store only bottom-level logic in…
SkillBFreshness: BClaude Code +9 - 0.523score
config-watchdog
XX-Trader
配置变更安全兜底技能。用于定期快照 OpenClaw 配置文件、 检测意外变更、JSON 格式校验、必要时自动回滚。 当怀疑配置被意外修改或 JSON 损坏时使用。
SkillBFreshness: BClaude Code +9 - 0.522score
cross-runtime-memory-distiller
XX-Trader
Hermes / OpenClaw 共用的跨宿主记忆蒸馏技能。 从 Claude / Gemini / OpenClaw / Hermes 多源会话中提取归一化事件, 经清洗、打分、分类后写入热记忆(USER.md / MEMORY.md), 同时产出蒸馏报告、控制面桥接记录和技能候选草稿。
SkillBFreshness: BClaude Code +9 - 0.521score
api-registry-manager
XX-Trader
API 注册表管理 Skill。负责项目外部 API 和来源的注册、查询、更新、删除。 每个项目维护独立的 API_REGISTRY.json 和 SOURCE_REGISTRY.json, 记录第三方依赖的接口定义、文档地址、版本信息。 是 project-agent 的核心组件之一,也是 API watch…
SkillBFreshness: BClaude Code +9 - 0.520score
control-plane-ops
XX-Trader
通用控制面巡检技能,用于 Task Center、Cron、调度注册表、运行快照和故障恢复。
SkillBFreshness: BClaude Code +9 - 0.518score
failure-learning
XX-Trader
失败学习回写 Skill。当模型反复失败时,分析根因、检索外部方案、 回写到需求/方案/模型执行规约文档,形成闭环纠偏。 核心约束:失败学习触发后,一定要与人沟通,不允许 AI 自行闷头解决。
SkillBFreshness: BClaude Code +9
Cite this page
baoyu-format-markdown skill. Agent Mart. https://agentmart.dev/skills/xx-trader-baoyu-format-markdown (last updated 2026-10-24)