npx skills add https://modelscope.cn/skills/@inforix/shmtu-word-formatter
inforix/skills · Archived
shmtu-word-formatter
把文章按“上海海事大学?
Installation
npx skills add inforix/skills --skill shmtu-word-formatter
Stronger alternatives
This repository is archived — consider an actively maintained alternative.
Fetch a Notion page by title, export to Markdown, convert Markdown to HTML with a user-provided…
32 installsFind an Obsidian note by title/path with obsidian-cli, keep note content as Markdown, upload no…
15 installsUse this skill whenever the user mentions 电子可信证明,成绩单,在读证明,绩点证明 electronic trus…
1 installsSimilar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Ensure ATS-friendly formatting and create clean scannable layouts
7.7K installsTurn a topic into a ready-to-publish LinkedIn post using PAS, AIDA, BAB, STAR, or SLAY framewor…
9 installsFormat and draft compelling LinkedIn posts using Unicode bold/italic styling, visual separators…
406 installsConvert long text into Slack-optimized format with emojis, bullets, code blocks, and threading …
299 installsInstalls and configures Prettier, ESLint, EditorConfig, and other code quality tools to enforce…
235 installsFormats markdown files according to best practices and common style guidelines. Use when cleani…
234 installsAlso in this package
Other skills from inforix/skills.
npx skills add inforix/skills
More details
Agent compatibility
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Also listed on
Alternate registries and mirrors of this skill.
Repository health
main
Package contents
Files included with this skill beyond the listing page.
-
skill md
SKILL.md2,478 B -
docs
SUMMARY.md344 B
History
- First recorded snapshot · 5 installs
SKILL.md
shmtu-word-formatter
用于把文章快速整理为符合上海海事大学党政公文规范的 Word 文档。
你要做什么
- 识别输入类型:
- 已有 .docx:直接重排版并输出新文件。 - 纯文本(.txt/.md 或用户直接粘贴):先转为文档,再统一排版。
- 调用脚本:
scripts/format_word.py。 - 输出结果:始终产出
.docx文件。 - 最后提示人工复核:标题多行形状、附件版式、印章签批等复杂布局。
格式标准(执行口径)
详见 references/format-spec.md。默认执行为:
- A4
- 标题 2号方正小标宋简体居中
- 正文 3号仿宋
- 层级字体:黑体 / 楷体 / 仿宋
- 日期去零
- 页码
— PAGE —
使用方式
0) 首次使用先安装依赖(仅一次)
python3 -m venv .venv
source .venv/bin/activate
pip install -r skills/shmtu-word-formatter/scripts/requirements.txt
1) 已有 Word,直接刷格式
source .venv/bin/activate
python skills/shmtu-word-formatter/scripts/format_word.py \
--input ./input.docx \
--output ./input-格式化.docx
2) 文本转 Word 并刷格式
source .venv/bin/activate
python skills/shmtu-word-formatter/scripts/format_word.py \
--input ./article.txt \
--output ./article-公文版.docx
3) 覆盖标题(可选)
source .venv/bin/activate
python skills/shmtu-word-formatter/scripts/format_word.py \
--input ./article.docx \
--output ./article-公文版.docx \
--title "关于开展春季学期重点工作的通知"
参数说明
--input:输入文件(.docx/.txt/.md)--output:输出.docx--title:可选,强制覆盖标题--text:可选,直接传文本--text-file:可选,从文本文件读取--no-page-number:可选,不加页码
处理原则
- 默认不覆盖原文件,输出到新文件。
- 若用户明确要求覆盖,先提醒风险再执行。
- 格式冲突时,以本技能规范为准;若用户给出新的明确规范,以用户规范优先。