/ Diretório / Playground / document-format-skills
● Comunidade KaguraNanaga ⚡ Instantâneo

document-format-skills

por KaguraNanaga · KaguraNanaga/document-format-skills

Formats Chinese .docx files to Chinese government / academic / legal standards — fixes indentation, punctuation, fonts, numbering with python-docx.

A focused Claude Code skill for Chinese Word document formatting. Detects mixed Chinese/English punctuation, inconsistent fonts, and spacing issues, then applies one of three style presets: GB/T 9704-2012 official documents, academic papers, or legal documents. Python-based, depends on python-docx.

Por que usar

Principais recursos

Demo ao vivo

Como fica na prática

document-format-skill.replay ▶ pronto
0/0

Instalação

Repositório do autor · Documentação oficial de Skills do Claude

Casos de uso

Usos do mundo real: document-format-skills

Format a government report to GB/T 9704-2012 standard

👤 Chinese government / SOE staff, secretaries ⏱ ~15 min beginner

Quando usar: You received a draft 公文 and need it to pass 公文处理 review.

Fluxo
  1. Analyze first
    分析 report.docx 的格式问题,按 GB/T 9704-2012 标准列出所有偏差。✓ Copiado
    → A list of deviations grouped by category
  2. Apply preset
    按公文标准自动修复,保留原内容。输出到 report-fixed.docx。✓ Copiado
    → New file generated, diff summary printed

Resultado: A report that passes internal formatting review without manual reformatting.

Armadilhas
  • Complex tables get re-rendered incorrectly — Review tables manually — the skill is conservative there
Combine com: filesystem

Clean punctuation and formatting in a Chinese academic paper

👤 Chinese-language graduate students and researchers ⏱ ~20 min beginner

Quando usar: Before submitting to a Chinese journal that enforces strict punctuation standards.

Fluxo
  1. Punctuation pass
    修正 paper.docx 中所有中英文标点混用问题,统一为中文全角标点。✓ Copiado
    → Every ( and , normalized
  2. Apply academic preset
    按学术论文标准应用格式预设。✓ Copiado
    → Consistent heading, indent, spacing

Resultado: A submission-ready paper.

Armadilhas
  • Code blocks or English quotations get over-converted — Ask the skill to preserve English-only paragraphs — specify section ranges to exclude

Combinações

Combine com outros MCPs para 10× de alavancagem

document-format-skill + filesystem

Batch-format every .docx in a folder

遍历 reports/ 下所有 .docx,全部按公文标准格式化,输出到 reports-fixed/。✓ Copiado

Ferramentas

O que este MCP expõe

FerramentaEntradasQuando chamarCusto
analyze_format path to .docx Before applying any changes 0 — local
fix_punctuation path, target (cn|mixed) Chinese/English punctuation unification 0
apply_preset path, preset (gov|academic|legal) After analysis, main transform 0

Custo e limites

O que custa rodar

Cota de API
None
Tokens por chamada
Minimal — the skill mostly drives a Python script
Monetário
Free
Dica
Run analyze_format once, then apply_preset — don't ask Claude to do the formatting by hand in tokens

Segurança

Permissões, segredos, alcance

Armazenamento de credenciais: None
Saída de dados: None — fully local via python-docx

Solução de problemas

Erros comuns e correções

ModuleNotFoundError: python-docx

pip install python-docx

Verificar: python -c 'import docx'
Tables misrender after formatting

Revert and run preset with tables excluded

Fonts missing on the final machine

Preset uses 宋体/仿宋/黑体 — install Chinese fonts on the system that opens the file

Verificar: fc-list :lang=zh

Alternativas

document-format-skills vs. outros

AlternativaQuando usarTroca
Manual Word stylesOne-off doc, you already know Word wellNo batch, easy to be inconsistent

Mais

Recursos

📖 Leia o README oficial no GitHub

🐙 Ver issues abertas

🔍 Ver todos os 400+ servidores MCP e Skills