document-format-skills
10
总安装量
3
周安装量
#29768
全站排名
安装命令
npx skills add https://github.com/kagurananaga/document-format-skills --skill document-format-skills
Agent 安装分布
opencode
3
claude-code
3
codex
3
github-copilot
2
gemini-cli
2
Skill 文档
ææ¡£æ ¼å¼å¤çå·¥å ·
å¤çææ¡£æ ¼å¼é®é¢ï¼è¯ææ ¼å¼é误ãä¿®å¤æ ç¹ç¬¦å·ãç»ä¸ææ¡£æ ·å¼ã
åè½æ¦è§
| åè½ | 说æ | èæ¬ |
|---|---|---|
| æ ¼å¼è¯æ | åæææ¡£åå¨çæ ¼å¼é®é¢ | analyzer.py |
| æ ç¹ä¿®å¤ | ä¿®å¤ä¸è±ææ ç¹æ··ç¨ | punctuation.py |
| æ ¼å¼ç»ä¸ | åºç¨é¢è®¾æ ¼å¼è§è | formatter.py |
| è¡¨æ ¼èªå¨è°æ´ | èªå¨è°æ´è¡¨æ ¼å¸å±ä¸å¯¹é½ | formatter.py |
| 页ç è§è | ç»ä¸é¡µç æ ¼å¼ä¸ä½ç½® | formatter.py |
ä½¿ç¨æ¹æ³
æ ¼å¼è¯æ
åæææ¡£åå¨çé®é¢ï¼è¾åºè¯ææ¥åï¼
uv run --with python-docx python3 scripts/analyzer.py input.docx
è¾åºç¤ºä¾ï¼
=== æ ¼å¼è¯ææ¥å ===
ãæ ç¹é®é¢ãå
± 5 å¤
- 第2段: è±ææ¬å· () 建议æ¹ä¸º ï¼ï¼
- 第3段: è±æå¼å· "" 建议æ¹ä¸º ""
ãåºå·é®é¢ãå
± 2 å¤
- åºå·æ ¼å¼ä¸ç»ä¸: åæ¶åå¨ "1ã" å "1."
- 第5段: å±çº§è·³è·ï¼ä» "ä¸ã" ç´æ¥å° "1."
ãæ®µè½é®é¢ãå
± 3 å¤
- 第2ã4ã7段: 缺å°é¦è¡ç¼©è¿
- è¡è·ä¸ç»ä¸: åå¨ååã1.5åæ··ç¨
ãåä½é®é¢ãå
± 2 å¤
- æ£æåå·ä¸ç»ä¸: 12ptã14pt æ··ç¨
- æ£æµå° 4 ç§å使··ç¨
æ ç¹ç¬¦å·ä¿®å¤
# æºè½æ¨¡å¼ï¼æ ¹æ®ä¸ä¸æå¤æï¼
uv run --with python-docx python3 scripts/punctuation.py input.docx output.docx
# 强å¶å
¨é¨è½¬ä¸ææ ç¹
uv run --with python-docx python3 scripts/punctuation.py input.docx output.docx --mode chinese
# 强å¶å
¨é¨è½¬è±ææ ç¹
uv run --with python-docx python3 scripts/punctuation.py input.docx output.docx --mode english
# åªä¿®å¤ç¹å®ç±»å
uv run --with python-docx python3 scripts/punctuation.py input.docx output.docx --fix brackets,quotes
æ ¼å¼ç»ä¸
# åºç¨å
¬ææ ¼å¼
uv run --with python-docx python3 scripts/formatter.py input.docx output.docx --preset official
# åºç¨å¦æ¯è®ºææ ¼å¼
uv run --with python-docx python3 scripts/formatter.py input.docx output.docx --preset academic
# åºç¨æ³å¾æä¹¦æ ¼å¼
uv run --with python-docx python3 scripts/formatter.py input.docx output.docx --preset legal
ç»å使ç¨
# å
è¯æ
uv run --with python-docx python3 scripts/analyzer.py messy.docx
# ä¿®å¤æ ç¹ + åºç¨æ ¼å¼
uv run --with python-docx python3 scripts/punctuation.py messy.docx temp.docx
uv run --with python-docx python3 scripts/formatter.py temp.docx clean.docx --preset official
æ ç¹ç¬¦å·å¤çè§å
ä¿®å¤èå´
| ç±»å | é误 | æ£ç¡®ï¼ä¸æï¼ | æ£ç¡®ï¼è±æï¼ |
|---|---|---|---|
| æ¬å· | ä¸è±æ··ç¨ | ï¼ï¼ | () |
| å¼å· | ç´å¼å· “” | “”” | “” ” |
| åå· | ä¸è±æ··ç¨ | ï¼ | : |
| éå· | ä¸è±æ··ç¨ | ï¼ | , |
| å¥å· | ä¸è±æ··ç¨ | ã | . |
| åå· | ä¸è±æ··ç¨ | ï¼ | ; |
| é®å· | ä¸è±æ··ç¨ | ï¼ | ? |
| å¹å· | ä¸è±æ··ç¨ | ï¼ | ! |
| çç¥å· | … | â¦â¦ | … |
| ç ´æå· | — æ â | ââ | — |
æºè½å¤æé»è¾
- 䏿ç¯å¢ï¼åå齿¯ä¸æå符 â ç¨ä¸ææ ç¹
- è±æç¯å¢ï¼åå齿¯è±æ/æ°å â ç¨è±ææ ç¹
- æ··åç¯å¢ï¼é»è®¤ç¨ä¸ææ ç¹ï¼å¯é ç½®ï¼
ç¹æ®å¤ç
- æ°åä¸åä½ä¹é´ï¼
100%ä¿æè±æ - è±æç¼©åï¼
e.g.i.e.ä¿æè±æå¥ç¹ - ç½åé®ç®±ï¼ä¿æåæ ·ä¸å¤ç
- 代ç åï¼è·³è¿ä¸å¤ç
æ ¼å¼é¢è®¾
å ¬ææ ¼å¼ï¼GB/T 9704-2012ï¼
页é¢ï¼A4ï¼ä¸è¾¹è·37mmï¼ä¸è¾¹è·35mmï¼å·¦è¾¹è·28mmï¼å³è¾¹è·26mm
æ é¢ï¼æ¹æ£å°æ å®ç®ä½ï¼äºå·ï¼22ptï¼ï¼å±
ä¸
ä¸çº§æ é¢ï¼é»ä½ï¼ä¸å·ï¼16ptï¼ï¼é¡¶æ ¼ï¼"ä¸ã"
äºçº§æ é¢ï¼æ¥·ä½_GB2312ï¼ä¸å·ï¼16ptï¼ï¼é¡¶æ ¼ï¼"ï¼ä¸ï¼"
ä¸çº§æ é¢ï¼ä»¿å®_GB2312ï¼ä¸å·ï¼16ptï¼ï¼é¦è¡ç¼©è¿ï¼"1."
æ£æï¼ä»¿å®_GB2312ï¼ä¸å·ï¼16ptï¼ï¼é¦è¡ç¼©è¿2å符ï¼è¡è·åºå®å¼28pt
妿¯è®ºææ ¼å¼
页é¢ï¼A4ï¼è¾¹è·25mm
æ é¢ï¼é»ä½ï¼å°äºï¼18ptï¼ï¼å±
ä¸
ä¸çº§æ é¢ï¼é»ä½ï¼å°ä¸ï¼15ptï¼ï¼"1"
äºçº§æ é¢ï¼é»ä½ï¼åå·ï¼14ptï¼ï¼"1.1"
æ£æï¼å®ä½/Times New Romanï¼å°åï¼12ptï¼ï¼é¦è¡ç¼©è¿2å符ï¼è¡è·1.5å
æ³å¾æä¹¦æ ¼å¼
页é¢ï¼A4ï¼ä¸è¾¹è·30mmï¼ä¸è¾¹è·25mmï¼å·¦è¾¹è·30mmï¼å³è¾¹è·25mm
æ é¢ï¼å®ä½å ç²ï¼äºå·ï¼22ptï¼ï¼å±
ä¸
æ¡æ¬¾æ é¢ï¼é»ä½ï¼åå·ï¼14ptï¼ï¼"ç¬¬ä¸æ¡"
æ£æï¼å®ä½ï¼åå·ï¼14ptï¼ï¼é¦è¡ç¼©è¿2å符ï¼è¡è·1.5å
æä»¶ç»æ
document-format-skills/
âââ SKILL.md
âââ README.md
âââ scripts/
â âââ analyzer.py # æ ¼å¼è¯æ
â âââ punctuation.py # æ ç¹ä¿®å¤
â âââ formatter.py # æ ¼å¼ç»ä¸
âââ presets/
âââ official.yaml # å
¬ææ ¼å¼
âââ academic.yaml # 妿¯è®ºæ
âââ legal.yaml # æ³å¾æä¹¦
ä¾èµ
- python-docx
ä½¿ç¨ uv run --with python-docx èªå¨å®è£
ã
注æäºé¡¹
- åªæ¯æ .docxï¼ä¸æ¯ææ§ç .doc æ ¼å¼
- å¤ä»½åæä»¶ï¼ä¿®æ¹å建议å¤ä»½
- åä½ä¾èµï¼è¾åºæä»¶éè¦ç³»ç»å®è£ 对åºåä½æè½æ£ç¡®æ¾ç¤º
- è¡¨æ ¼å 容ï¼ä¼èªå¨å¤çè¡¨æ ¼å çæå