style-calibrate
Skill2 starsChanged 58 days agoMITView on GitHub
Turn ''learn the target journal''s writing style'' from guesswork into a reproducible pipeline: build a corpus, generate a measurable style card, then lint drafts against it. (指导内容为中文 / guidance is in Chinese) 把"目标期刊语言风格学习"从语感变成可复现的产线:建语料库、生成风格卡、补齐人工清单、同步硬格式约束
In this repository6 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- deliver-docxSkill
- lit-intakeSkill
- paper-writeSkill
- refs-verifySkill
- session-closeSkill
The file
Files
目标期刊风格校准
为什么需要这一步
原工作流里的"喂范文(见效最快)"是把范文 PDF 全文塞给 AI,靠语感模仿。 问题有三个:范文占用主上下文、学到的风格随会话丢失、改完无法验收。
风格卡把这一步变成:语料库 → 风格卡 → 硬约束 → 机械体检。
步骤
1. 建语料库(关键:范文要选对)
不是随手找范文,而是目标刊 同栏目 + 同方法 + 近五年 的 10–20 篇。
corpus/<期刊>/
├── style/ 仅供统计(本篇的主要来源)
├── exemplar/ 结构范本,人工标注可模仿的具体环节
└── rival/ 同题竞争稿,用来判断本研究的增量在哪把 PDF 用 _mineru.py 解析成 md 后放进对应子目录。
语料 ≥10 篇;少于 5 篇时比例类指标不稳定,style_lint.py 会自动把偏离降级为参考。
2. 生成风格卡
python "tools/style_card.py" --journal <期刊> --corpus corpus/<期刊>产出:_输出文件/2_文献管理/风格卡_<期刊>.md
自动给出:引注制与密度、句均长与长短句配比、段均长、小标题密度、 篇均参考文献数、高频学术动词与连接词、自称习惯、禁则基准。
3. 补齐第五节人工清单(脚本取不到的部分)
**这一步不能省。**风格卡的价值一半在这里:
- 投稿硬约束:字数上限、图表数量上限、摘要字数、关键词数、基金标注格式
- 结构惯例:引言是否分小标题、文献综述是否独立成节、假设呈现方式
- 摘要结构:目的/方法/结果/结论各自句数占比
- 引注体例细节:多处文献的分隔符、页码标注、英文作者名写法
- 术语偏好:该刊惯用术语与本研究术语表的映射
- 替换词表:本刊编辑反感的表述与替换方案
- 范文锚点:2–3 篇最值得模仿的篇目,注明可模仿的具体环节
4. 同步硬格式条款进项目 CLAUDE.md
风格卡里硬格式那半(引注制、字数、图表数、摘要结构)写进项目 CLAUDE.md,
让每次会话自动生效;软风格那半交给 style_lint.py 检验。
5. 仿写时的安全边界
模仿范文只允许迁移前两层:
- L1 结构骨架(章节 → 段落功能序列)—— 安全
- L2 句式模板(与内容解耦的句型)—— 安全
- L3 措辞原样照搬 —— 禁止
写完模仿段落立刻跑护栏:
python "tools/similarity_check.py" --draft <稿> --corpus corpus/<期刊>命中硬性风险时的改写方式:保留句子的论证功能(L2),更换全部措辞与语序; 不要只做同义词替换。
改投其它期刊时
风格卡换新刊的,硬格式条款换掉,并且全套重核引注制
(顺序编码制 ↔ 著者-出版年制转换),然后跑 refs_check.py。
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.

