/ Annuaire / Playground / document-format-skills
● Communauté KaguraNanaga ⚡ Instantané

document-format-skills

par 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.

Pourquoi l'utiliser

Fonctionnalités clés

Démo en direct

Aperçu en pratique

document-format-skill.replay ▶ prêt
0/0

Installation

Dépôt de l’auteur · Documentation officielle des Skills Claude

Cas d'usage

Usages concrets : document-format-skills

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

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

Quand l'utiliser : You received a draft 公文 and need it to pass 公文处理 review.

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

Résultat : A report that passes internal formatting review without manual reformatting.

Pièges
  • Complex tables get re-rendered incorrectly — Review tables manually — the skill is conservative there
Combiner avec : filesystem

Clean punctuation and formatting in a Chinese academic paper

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

Quand l'utiliser : Before submitting to a Chinese journal that enforces strict punctuation standards.

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

Résultat : A submission-ready paper.

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

Combinaisons

Associez-le à d'autres MCPs pour un effet X10

document-format-skill + filesystem

Batch-format every .docx in a folder

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

Outils

Ce que ce MCP expose

OutilEntréesQuand appelerCoût
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

Coût et limites

Coût d'exécution

Quota d'API
None
Tokens par appel
Minimal — the skill mostly drives a Python script
Monétaire
Free
Astuce
Run analyze_format once, then apply_preset — don't ask Claude to do the formatting by hand in tokens

Sécurité

Permissions, secrets, portée

Stockage des identifiants : None
Sortie de données : None — fully local via python-docx

Dépannage

Erreurs courantes et correctifs

ModuleNotFoundError: python-docx

pip install python-docx

Vérifier : 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

Vérifier : fc-list :lang=zh

Alternatives

document-format-skills vs autres

AlternativeQuand l'utiliserCompromis
Manual Word stylesOne-off doc, you already know Word wellNo batch, easy to be inconsistent

Plus

Ressources

📖 Lire le README officiel sur GitHub

🐙 Voir les issues ouvertes

🔍 Parcourir les 400+ serveurs MCP et Skills