paper-style-review
用这个 skill 处理中文论文的“风格学习 + 结构化审校 + Word 批注回挂”任务。
保持的公开版边界
- - 只保留可公开发布的脚本、schema、派生规则和运行说明。
- 不保留真实论文、命名样例、历史输出、原始
.doc 附件或本地工作区绝对路径。 - 风格学习依赖用户自行提供的
refs,仓库不内置参考论文。
当前主链
CODEBLOCK0
能力范围
- 1. refs 风格学习
- 为每篇 ref 建立统一结构图谱
- 按
paragraphType 聚类
- 生成
style-profile.json 与 INLINECODE4
- 2. target 审查
- 建立 target 结构图谱
- 运行格式检查
- 运行 fused LLM 审查:术语 / 逻辑 / 风格偏离
- 3. Word 批注回挂
- 汇总为
annotations.json
- 生成 INLINECODE6
关键边界
- - target 风格判断只消费
style-profile.json,不在 target 阶段回读 refs 原文。 - 风格学习、target 审查、批注定位共用统一结构图谱。
- 所有正式输出都走统一锚点与注入链路。
- INLINECODE8 只收窄 target-side LLM 审查;格式检查仍是文档级。
运行方式
完整主链:
CODEBLOCK1
独立阶段:
CODEBLOCK2
限制章节范围:
CODEBLOCK3
最小配置
CODEBLOCK4
重要文件
- -
scripts/job_defaults.py / scripts/runtime_config.py:配置归一化 - INLINECODE11 :统一结构图谱
- INLINECODE12 :refs 风格学习
- INLINECODE13 :target-side fused 审查
- INLINECODE14 /
scripts/annotation_assembler.py / scripts/inject_word_comments.py:批注链路 - INLINECODE17 /
references/format-rule-matrix.md:公开可分发的派生格式规则 - INLINECODE19 :风格画像提取约束
使用时要做的事
- 1. 准备自己的
target 与 refs。 - 按配置文件指定
outputDir、检查项和可选 chapterScope。 - 若已存在稳定
style-profile.json,可直接通过 styleProfilePath 复用。 - 调试结构或定位问题时,优先检查
target-structure-map.json、target-style-units.json、annotations.json。
不要做的事
- - 不要假设仓库内自带任何真实论文样本。
- 不要把 target 阶段改成直接回读 refs 原文。
- 不要在公开版里加入历史输出、用户文档、原始附件或本地路径。
paper-style-review
使用此技能处理中文论文的“风格学习 + 结构化审校 + Word 批注回挂”任务。
保持的公开版边界
- - 仅保留可公开发布的脚本、schema、派生规则和运行说明。
- 不保留真实论文、命名样例、历史输出、原始 .doc 附件或本地工作区绝对路径。
- 风格学习依赖用户自行提供的 refs,仓库不内置参考论文。
当前主链
text
scripts/run_review.py
-> orchestrators/revieworchestrator.runreview()
-> style-profile handoff or build
-> format checker
-> target style units
-> fused review runtime
-> annotation assembly
-> inject Word comments
能力范围
- 1. refs 风格学习
- 为每篇 ref 建立统一结构图谱
- 按 paragraphType 聚类
- 生成 style-profile.json 与 ref-style-basis.md
- 2. target 审查
- 建立 target 结构图谱
- 运行格式检查
- 运行 fused LLM 审查:术语 / 逻辑 / 风格偏离
- 3. Word 批注回挂
- 汇总为 annotations.json
- 生成
-annotated.docx
关键边界
- - target 风格判断仅消费 style-profile.json,不在 target 阶段回读 refs 原文。
- 风格学习、target 审查、批注定位共用统一结构图谱。
- 所有正式输出均走统一锚点与注入链路。
- chapterScope 仅收窄 target-side LLM 审查;格式检查仍为文档级。
运行方式
完整主链:
bash
python3 scripts/run_review.py --config ./references/review-config.example.json
独立阶段:
bash
python3 scripts/runreview.py --config ./references/review-config.example.json --stage styleprofile
python3 scripts/runreview.py --config ./references/review-config.example.json --stage styleannotation
python3 scripts/run_review.py --config ./references/review-config.example.json --stage annotation
限制章节范围:
bash
python3 scripts/run_review.py --config ./references/review-config.example.json --chapters abstract,1
最小配置
json
{
target: {
path: ./inputs/target.docx
},
refs: [
{
id: ref-style-01,
path: ./inputs/ref-style-01.docx,
enabled: true,
styleProfileEnabled: true
}
],
outputDir: ./outputs
}
重要文件
- - scripts/jobdefaults.py / scripts/runtimeconfig.py:配置归一化
- scripts/paperstructureanchor.py:统一结构图谱
- scripts/profilers/refstyleprofiler.py:refs 风格学习
- scripts/fusedreviewruntime.py:target-side fused 审查
- scripts/annotationanchorinfra.py / scripts/annotationassembler.py / scripts/injectword_comments.py:批注链路
- references/format-rules.json / references/format-rule-matrix.md:公开可分发的派生格式规则
- references/style-profile-extractor.md:风格画像提取约束
使用时要做的事
- 1. 准备自己的 target 与 refs。
- 按配置文件指定 outputDir、检查项和可选 chapterScope。
- 若已存在稳定 style-profile.json,可直接通过 styleProfilePath 复用。
- 调试结构或定位问题时,优先检查 target-structure-map.json、target-style-units.json、annotations.json。
不要做的事
- - 不要假设仓库内自带任何真实论文样本。
- 不要把 target 阶段改成直接回读 refs 原文。
- 不要在公开版里加入历史输出、用户文档、原始附件或本地路径。