Latex thesis zh

From bahayonghang/academic-writing-skills · View interactive version

Latex thesis zh is an AI agent skill from the GitHub repository bahayonghang/academic-writing-skills. 中文 LaTeX 学位论文助手,面向已有 .tex 硕博论文工程与学位论文评阅书:编译诊断、GB/T 7714、模板识别、结构/格式/公式断行、术语一致性、逻辑与文献综述、方法/工程应用章、标题优化、去 AI 味、主张前置(自我削弱/免责句后置)检查、单元润色与漂移核对、盲审隐匿、对照学校规范逐项终检;评阅意见整理、逐条回复、修改说明与修改审查表(仅评阅书也可先建台账)。Beamer 答辩稿用 academic-defense-beamer,不用于期刊/会议审稿回复信。触发词:学位论文/毕业论文/硕士/博士论文/润色这段/润色这一节/单元润色/核对润色。英文论文用 latex-paper-en

How to use this skill

Skill file

LaTeX 中文学位论文助手

处理已有中文 LaTeX 学位论文项目中的定向问题:先判断最小匹配模块,再运行对应脚本,最后以论文审阅友好的格式返回问题和建议。

Capability Summary

Triggering

用户拥有现有中文 .tex 学位论文项目,且请求涉及:编译失败/工具链不确定;格式、国标或学校模板检查;公式编号被挤到下一行、长公式拆行;章节结构或模板识别;术语/缩略语一致性;逻辑连贯、文献综述质量、导语完整性、标题架构、跨章节闭合;绪论漏斗、章引言、本章小结、方法动机/设计/优势、实验讨论分层;标题优化、去 AI 化;定稿对照学校规范逐项终检;盲审版生成。即使只提到单一问题(如“判断是不是 thuthesis”“按 GB/T 7714 看参考文献”)也应触发。

学位论文评阅书返回后,整理意见、逐条回复、填写修改说明或修改审查表、核对回复覆盖与修改位置,也应触发;只有评阅书时可先运行 intake。

Do Not Use

Module Router

命令约定:$SKILL_DIR 指本 skill 的安装目录(本 SKILL.md 所在目录,安装后通常为

~/.claude/skills/latex-thesis-zh)。它不是预定义环境变量——执行前替换为实际路径,

或先 SKILL_DIR=<安装路径>。入口文件 main.tex 同样按实际路径替换。

| Module | Use when | Primary command | Read next |

| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |

| compile | Thesis build fails or toolchain is unclear | uv run python $SKILL_DIR/scripts/compile.py main.tex | references/modules/compile.md |

| format | User asks about thesis formatting, formula layout/line breaks, rendered figure/table layout, or GB/T 7714 layout; draft-note/hedge leakage and placeholder table rows (F-NOTE / F-PLACEHOLDER) | uv run python $SKILL_DIR/scripts/check_format.py main.tex | references/modules/format.md(已知模板时改读 templates/<template>.md,如 thuthesis、pkuthss、generic) |

| structure | Need chapter/section map or thesis skeleton overview | uv run python $SKILL_DIR/scripts/map_structure.py main.tex | references/writing/structure-guide.md |

| consistency | Terms, abbreviations, or naming drift across chapters | uv run python $SKILL_DIR/scripts/check_consistency.py main.tex --terms | references/modules/consistency.md |

| template | Need to identify or validate thesis class/template | uv run python $SKILL_DIR/scripts/detect_template.py main.tex | references/modules/template.md |

| bibliography | GB/T 7714 or BibTeX validation(2026-07-01 起可加 --standard gb7714-2025 按新国标检查) | uv run python $SKILL_DIR/scripts/verify_bib.py references.bib --standard gb7714 | references/modules/bibliography.md |

| title | Optimize Chinese thesis titles and chapter/section title architecture | uv run python $SKILL_DIR/scripts/optimize_title.py main.tex --check --headings | references/modules/title.md |

| expression | 中文表达/语句级润色:口语化、绝对化词汇、搭配不当、成分残缺、中英标点混用、冒号/分号句间逻辑([LLM])、数值与单位写法、单句过长 | uv run python $SKILL_DIR/scripts/check_style_zh.py main.tex | references/modules/expression.md |

| deai | Reduce AI-writing traces in visible Chinese prose | uv run python $SKILL_DIR/scripts/deai_check.py main.tex --section introduction | references/modules/deai.md |

| logic | Check logical coherence, introduction funnel, heading lead-ins, lit review quality, chapter mainline, engineering-application/system-implementation argument, and cross-section closure; method-module narrative and interfaces (--method-narrative --section <章名>); subsection context (--subsection-context, --subsection, --emit-window); paragraph roles (--paragraph-roles); chapter-intro style (--chapter-intro-style); intro/process mainline checks; paper-stitching sweep and chapter-intro bridging tiers | uv run python $SKILL_DIR/scripts/analyze_logic.py main.tex [--method-narrative --section <章名>] [--subsection-context] [--paragraph-roles] [--chapter-intro-style] | references/modules/logic.md |

| literature | 文献综述像流水账、缺少主题综合/代表文献归因/簇末比较、研究空白没有被自然推出;绪论引用数量/堆引/年份分布诊断(--intro-citations) | uv run python $SKILL_DIR/scripts/analyze_literature.py main.tex --section related | references/modules/literature.md |

| claim-forward | 主张被免责句或限制句后置、对自身结果的自我削弱搭配(遗憾的是/仍明显落后于)、主张句 hedge 堆叠、结论末段负面收尾无展望;去除防御性表述、预设辩解、润色后观点被磨平 | uv run python $SKILL_DIR/scripts/check_claim_forward.py main.tex --section introduction | references/modules/claim-forward.md |

| polish | 润色一个自然段或小节并核对漂移;整章或全文先列单元清单 | uv run python $SKILL_DIR/scripts/polish_unit_zh.py main.tex --plan | references/modules/polish.md |

| experiment | Review experiment language, discussion layers, and conclusion completeness; per-method-chapter completeness (--per-chapter) or opt-in results depth, display/statistical scope, and evidence cues (--results-analysis) | uv run python $SKILL_DIR/scripts/analyze_experiment.py main.tex [--per-chapter] [--results-analysis] | references/modules/experiment.md |

| references | Cross-reference integrity: undefined \ref, unreferenced labels, missing \caption / \bicaption, numbering gaps | uv run python $SKILL_DIR/scripts/check_references.py main.tex | references/modules/references.md |

| tables | 表格结构、真实题注位置、三线表生成和 booktabs 检查;长表留白与二次缩放按指南人工复核 | uv run python $SKILL_DIR/scripts/check_tables.py main.tex | references/modules/tables.md |

| abstract | 摘要学位论文骨架诊断(默认)/五要素后备、多组件依赖或并行关系、中英一致性、字数校验 | uv run python $SKILL_DIR/scripts/analyze_abstract.py main.tex | references/modules/abstract.md |

| conclusion | 结论章三段式(首段总领/编号贡献/展望)、贡献动词与证据、展望空话、结论抄摘要、结论数值一致性检查 | uv run python $SKILL_DIR/scripts/analyze_conclusion.py main.tex | references/modules/conclusion.md |

| spec-check | 定稿对照学校规范清单逐项终检(毕业前格式自查) | uv run python $SKILL_DIR/scripts/check_spec.py main.tex --template yanshan --degree doctor | references/modules/spec-check.md |

| blind-review | 盲审送审前个人信息隐匿检查与盲审版生成 | uv run python $SKILL_DIR/scripts/blind_review.py main.tex --check | references/modules/blind-review.md |

| rebuttal-intake | 读取评阅书,创建归一化原文与台账骨架 | uv run python -B $SKILL_DIR/scripts/rebuttal_intake.py --reviews $REVIEWS --json | references/rebuttal-workflow.md |

| rebuttal-build | 校验台账,生成修改计划与粘贴用回复 | uv run python -B $SKILL_DIR/scripts/rebuttal_build.py --workspace $ROOT/workspace --json | references/rebuttal-writing.md |

| rebuttal-check | 核对覆盖、原文、证据、位置、页码、粘贴格式与语气 | uv run python -B $SKILL_DIR/scripts/rebuttal_check.py --workspace $ROOT/workspace --json | references/rebuttal-gate.md |

$REVIEWS 为评阅书目录,$ROOT 默认为其父目录;三个回复命令可加 --thesis $THESIS 指定论文仓库。

路由规则

评阅意见回复流程

按 references/rebuttal-workflow.md 执行 intake → 用户确认评阅人顺序与送审基线 → 拆分意见并用 rebuttal-build --plan-only 生成修改计划 → 用户批准计划。实际正文修改使用本技能相应模块并遵循授权边界;回复脚本不修改、提交或编译论文。

根据 references/rebuttal-writing.md 填回复、修改位置与证据,再运行 build → check;按 references/rebuttal-gate.md 最多修复 3 轮,人工复核 NEEDS-LLM,交付文件与遗留项。详细退出码、手改覆盖保护及跳过规则以这些参考为准。

Required Inputs

Output Contract

Rewrite Contract

仅适用于产出可直接替换原文的具体文本的模块:expression。纯诊断模块保持原有挑错格式;契约适用范围三分法(纳入 / 仅 LLM 层 / 排除)逐项列在 references/modules/routing-rules.md。

每个改写块追加以下四个字段(字段名保持英文标识符,说明文本用中文):

% Changed:       <脚本可验证的变更事实,或 none>
% Protected:     <本行内被识别并跳过的受保护 token,或 none>
% Meaning-Check: <PRESERVED | NEEDS-LLM>
% Risk-Flags:    <none | not-assessed | lexical-substitution | whitespace-normalized | overstatement | understatement | ambiguity | terminology-drift | invented-claim>

Workflow

  1. Parse $ARGUMENTS,锁定入口文件并推断模块;缺参数只追问缺失项。
  2. 多模块请求按“路由规则”顺序串行执行,分模块回报;template 与 structure 都不明时先 template。
  3. Read the one reference file tied to that module (see "Read next" column).
  4. Run the corresponding script with uv run python ....
  5. Return findings as % Module (L##) [Severity] [Priority]: .... Report exact command and exit code on failure.

跨工具执行

frontmatter 中的 allowed-tools 是 Claude 兼容元数据,不是其他平台的强制权限列表。把本技能的读 / 搜索 / 写入 / 执行 / 委派需求映射到当前会话已有的能力。脚本与语义契约不依赖 Read、Glob、Grep、Write、Edit、Bash 或 Task 这些字面名称。

评阅回复的写入能力仅用于用户指定的 workspace/ 与 responses/:LLM 编辑 workspace/concerns.yaml,脚本生成其余工作产物与回复。不得手改归一化原文或绕过回复覆盖保护;该能力声明不隐含论文正文编辑、提交或编译授权,正文操作仍按对应模块与用户授权执行。

当前会话若有原生委派,仅在本工具确实生成了独立子代理时使用。若无原生委派,则在同一代理内顺序完成相同检查,并如实说明。不得声称本会话未提供的能力。

根因分析、学术判断、严重度和最终验收由强模型负责。低成本模型只处理已批准且有明确文件与测试边界的工作。出现新接口、越出批准目录、学术结论变化或失败原因超出计划时,立即升级。

Safety Boundaries

Reference Map

只读取当前模块所需的参考文件,避免一次加载整套指南。

Example Requests

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.