baoyu-format-markdown
O que ela faz
Esta skill deixa textos longos mais fáceis de percorrer, acrescentando estrutura e destaque. Ela é indicada para escritores que têm conteúdo difícil de ler como um bloco único.
Quando usar
- ✓Quando você tem um rascunho de texto simples que precisa de subtítulos e listas.
- ✓Quando você quer que os pontos principais sejam fáceis de percorrer em um artigo.
- ✓Quando você precisa limpar um arquivo markdown antes de publicar.
Link da skill
https://github.com/JimLiu/baoyu-skills/blob/main/skills/baoyu-format-markdown/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Formate este artigo para ficar mais fácil de percorrer, com subtítulos e pontos-chave em negrito.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
Seu agente adiciona o frontmatter, um título, um resumo, subtítulos e destaques, corrige erros de digitação óbvios e salva o resultado como um arquivo novo.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Markdown Formatter
Make plain text or markdown scannable so readers grasp key points and structure fast.
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):
- Prefer built-in user-input tools exposed by the current agent runtime — e.g.,
AskUserQuestion,request_user_input,clarify,ask_user, or any equivalent. - 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.
- 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
{baseDir} = this SKILL.md's directory. ${BUN_X} = bun if installed; else npx -y bun if npx available; else suggest installing bun. Replace {baseDir} and ${BUN_X} with actual values.
| 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)
First one found wins:
| Priority | Path | Scope |
|---|---|---|
| 1 | .baoyu-skills/baoyu-format-markdown/EXTEND.md |
Project |
| 2 | ${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-format-markdown/EXTEND.md |
XDG |
| 3 | $HOME/.baoyu-skills/baoyu-format-markdown/EXTEND.md |
User home |
None found → use defaults (no first-time setup for this skill).
| Setting | Values | Default | Description |
|---|---|---|---|
auto_select |
true/false |
false |
Skip both title and summary selection, auto-pick best |
auto_select_title |
true/false |
false |
Skip title selection only |
auto_select_summary |
true/false |
false |
Skip summary selection only |
| Other | — | — | Default formatting options, typography preferences |
Workflow
The agent analyzes and formats (Steps 1-5), then runs the typography script (Step 6).
Step 1: Read & Detect Content Type
Read the file. It is Markdown if it has --- YAML frontmatter, #/##/### headings, or **bold**/*italic*/lists/code blocks/blockquotes; otherwise plain text.
If Markdown, ask:
Detected existing markdown formatting. What would you like to do?
1. Optimize formatting (Recommended)
- Analyze content, improve headings, bold, lists for readability
- Run typography script (spacing, emphasis fixes)
- Output: {filename}-formatted.md
2. Keep original formatting
- Preserve existing markdown structure
- Run typography script only
- Output: {filename}-formatted.md
3. Typography fixes only
- Run typography script on original file in-place
- No copy created, modifies original file directly
- Optimize → Step 2 (full workflow)
- Keep original → skip to Step 5 (copy file), then Step 6
- Typography only → skip to Step 6 on the original file
Step 2: Analyze Content (Reader's Perspective)
Read the whole text and ask what would help a reader quickly understand and remember it. Save {original-filename}-analysis.md — the blueprint for Step 4:
# Content Analysis: {filename}
## Highlights & Key Insights
- [core arguments/conclusions, surprising facts or data, counterintuitive claims, golden quotes]
## Structure Assessment
- Current flow: [describe]
- Suggested sections: [heading candidates with brief rationale; unheaded section boundaries; walls of text needing breaks]
## Reader-Important Information
- [actionable takeaways, key definitions, lists buried in prose, comparisons that should be tables]
## Formatting Issues
- [specific issues with location: heading hierarchy, mixed-topic paragraphs, parallel items as prose, unmarked code/commands/terms]
## Typos Found
- [obvious typos with corrections, or "None found"]
Step 3: Check/Create Frontmatter, Title & Summary
Create a YAML frontmatter block if missing.
| Field | Processing |
|---|---|
title |
See Title Generation |
slug |
Infer from file path or generate from title |
summary |
One-sentence |
Perguntas frequentes
Ela altera minhas palavras?
Não. A skill ajusta apenas a formatação e corrige erros óbvios de digitação, sem nunca acrescentar ou reescrever conteúdo.
Onde a saída é salva?
Ela salva um arquivo novo com o sufixo formatted, então o seu original permanece intacto.
Ela lida com textos em chinês?
Sim. Ela usa ferramentas que tratam o destaque em CJK, então textos com mistura de idiomas são suportados.
Detalhes
Descrição original do autor
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.
repo: JimLiu/baoyu-skills
Popularidade
- Estrelas no GitHub
- 27 mil
- Posição no ranking
- #9956
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
release-skills
27 milGuia seu agente em uma release de qualquer projeto: aumentar a versão, atualizar os changelogs e publicar uma release ou tag no GitHub.
baoyu-article-illustrator
27 milAjuda seu agente a ilustrar um artigo, encontrando os trechos que precisam de imagens e criando ilustrações em um estilo consistente.
baoyu-comic
27 milMostra ao seu agente como criar uma história em quadrinhos educativa, com painéis, estilos de arte e tons, como uma biografia ou um tutorial.
baoyu-compress-image
27 milPermite que seu agente reduza arquivos de imagem convertendo-os para WebP ou PNG, com seleção automática da ferramenta, para carregarem mais rápido.
Skills parecidas
obsidian-vault-maintainer
394 milAjuda seu agente a manter um vault de memória compatível com o Obsidian organizado, com links funcionando, propriedades consistentes e seções seguras.
wiki-maintainer
394 milAjuda seu agente a manter uma wiki de memória do OpenClaw com páginas repetíveis, blocos gerenciados seguros e verificações de contradições ou lacunas.
obsidian
394 milPermite que seu agente leia, pesquise, crie e edite notas, tarefas, links e propriedades do Obsidian usando a linha de comando oficial do Obsidian.