deliver-docx
Skill2 starsChanged 57 days agoMITView on GitHub
Delivery: pass style and citation checks before converting to DOCX, then verify the converted file is complete and store it date-stamped. (指导内容为中文 / guidance is in Chinese) 交付环节:转 docx 前先过风格与引注双检查,转换后校验内容完整,文件按日期戳命名进 _输出文件/
In this repository6 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- lit-intakeSkill
- paper-writeSkill
- refs-verifySkill
- session-closeSkill
- style-calibrateSkill
The file
Files
交付
顺序不能颠倒
**先检查,后转换。**转换完再发现禁则违规或编号错乱,等于白转一遍 (而且目标 docx 被 Word 占用时还会覆盖失败)。
第一步:双检查
# 04 禁则 + 风格偏离
python "tools/style_lint.py" --draft _输出文件/5_论文草稿 \
--card "_输出文件/2_文献管理/风格卡_<期刊>.md"
# 引注编号
python "tools/refs_check.py" --draft _输出文件/5_论文草稿两个都退出码 0 才能往下走。有硬性违规先修。
投稿前另需人工确认(脚本管不了):
- 字数是否在刊物的上限内
- 匿名化要求:论证活页只留成果名称、形式、作者排序、是否核心期刊;申请书可完整披露
- 前后一致性:全文各栏目必须对板同一选题,替换模板内容后检查残留的旧主题表述
- 图表编号与正文引用是否对应
第二步:转换
python "tools/_md2docx.py" "<文件.md>"- 产物:同名 docx;文件名无日期戳时自动补今天日期(
YYYY-MM-DD) - 目标 docx 正被 Word 打开时会报权限错误,用
--out <新名.docx>换名输出 - 反向需要时:
_docx2md.py <文件.docx>提取文本为 UTF-8 md(含表格)
第三步:校验内容完整
转换后必须回读校验,不要假定转换无误:
python "tools/_docx2md.py" "<产物.docx>"读回提取的 md,核对:
- 关键条目是否都在(抽查标题、小标题层级、表格行列)
- 表格有没有丢列
- 楷体引文标记有没有转换成功
- 参考文献区是否完整
发现缺失就回到源 md 修正后重转。
第四步:命名与存放
- 文件名:
{内容描述}_{YYYY-MM-DD}.docx;表格为主的内容用.xlsx - 一律放
_输出文件/下,不散落根目录 - 文件名不用中文标点
- md 源文件保留(是源,不是交付物)
第五步:临时文件清理
_tmp_*确认无用后删除_read_*内容迁移到结构化笔记后删除- 不要在输出目录散落临时文件
交付给用户
在 DSH 里用 present 把成品文件声明为交付物,用户可直接在界面打开。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

