graphify
GRGraphify-Labs/graphify156k2,564 new stars in the last 7 days
Chinese thesis defense deck builder for existing XeLaTeX PhD or master thesis repositories. Extracts chapters, figures, equations, tables and publications read-only, plans pages by talk length, renders a Beamer or Typst Touying pre-defense or defense deck with speaker notes, and runs a fidelity quality gate plus page previews. Not for .pptx, journal talks, or English defenses.
从已有的中文学位论文 LaTeX 仓库生成 XeLaTeX Beamer 答辩稿(预答辩或正式答辩)与讲稿:脚本只读提取论文清单,按时长生成页面规划骨架, LLM 按内容规范填写结论句、要点与讲稿,再渲染、编译并用保真质量门检查,最后逐页预览交付。
extract(只读提取清单)、plan(按时长与阶段生成规划骨架、串读大纲)、build(渲染 defense.tex、讲稿与主题并编译投屏版与备注版 PDF)、
check(22 个 D-* 码的质量门)、preview(逐页 PNG 与总览图)。intro、foundation、research、application、conclusion 可在规划中覆盖。yanshan(复刻参考框架的颜色、版位与字号层级)与 generic(同版式、中性配色、无校徽);校徽只从论文仓库读取。agents/qa-committee-agent.md)。defense-notes.pdf 每页左幻灯片、右备注,推荐用 FerroStage(Windows)或 pympress 双屏放映。--backend touying 则生成 Typst 答辩稿 defense.typ(simply-ysu-touying 主题,只支持 yanshan),备注版每帧后一页 notes:N 备注页,质量门同为 22 个 D-* 码。用户有中文学位论文的 LaTeX 源仓库(XeLaTeX,常见为 \include 分章文件),并要求:生成预答辩或正式答辩的 Beamer 幻灯片;
按汇报时长规划页数;写答辩讲稿或准备答辩提问;检查已生成答辩稿的溢出、密度、时长或图、数字、公式是否来自论文;预览答辩稿页面。
只提到其中一步(例如「答辩稿编译后有溢出,帮我修」)也应触发。
.pptx 或 Keynote 文件:本技能只输出 LaTeX Beamer 或 Typst Touying 答辩稿(.tex、.typ 与编译得到的 PDF)。typst-paper。latex-thesis-zh);审稿式评价或评分(用 paper-audit)。命令约定:
$SKILL_DIR指本 skill 的安装目录(本 SKILL.md 所在目录,安装后通常为~/.claude/skills/academic-defense-beamer)。它不是预定义环境变量——执行前替换为实际路径, 或先SKILL_DIR=<安装路径>。$THESIS为论文仓库,$OUT为用户同意的工作目录。
| 模块 | 用途 | 命令 | 参考 |
|---|---|---|---|
extract | 只读提取元数据、章节树与章角色建议、图表、公式、成果与结论条目 | uv run python -B $SKILL_DIR/scripts/extract_thesis.py --thesis $THESIS --out $OUT/inventory.json --json | references/plan-schema.md |
plan | 按时长与阶段生成规划骨架;填写后输出串读大纲 | uv run python -B $SKILL_DIR/scripts/plan_deck.py --inventory $OUT/inventory.json --out $OUT/slide_plan.yaml --minutes 40 --stage predefense --theme yanshan | references/defense-framework.md、references/time-budget.md、references/content-rules.md |
build | 校验规划,渲染答辩稿、讲稿与主题,并编译 | uv run python -B $SKILL_DIR/scripts/build_deck.py --plan $OUT/slide_plan.yaml --inventory $OUT/inventory.json --out $OUT/deck --compile | references/slide-layouts.md、references/visual-spec.md、references/speaker-notes.md、references/presenting.md、references/touying-backend.md |
check | D-* 质量门:结构、图、源文本、密度、时长、讲稿、编译、备注版 PDF | uv run python -B $SKILL_DIR/scripts/check_deck.py --deck $OUT/deck/defense.tex --inventory $OUT/inventory.json --plan $OUT/slide_plan.yaml --json | references/quality-gate.md |
preview | 逐页 PNG 与带页码的总览图,供目视检查 | uv run python -B $SKILL_DIR/scripts/render_preview.py --pdf $OUT/deck/defense.pdf --out $OUT/deck/preview --cols 4 | references/quality-gate.md(预览与目视检查) |
串读大纲:uv run python -B $SKILL_DIR/scripts/plan_deck.py --plan $OUT/slide_plan.yaml --outline。
主文件有多个候选(例如正式版与盲审版并存)时,extract 加 --main document.tex。重建已有输出时 build 加 --force;
--logo PATH 覆盖规划与清单中的校徽;--no-notes-pdf 只编译投屏版。check 默认读同目录的 defense-notes.pdf,可用 --notes-pdf 指定。
Touying 后端:plan 加 --backend touying(写入 deck.backend,build 只从规划读取后端);check 改为 --deck $OUT/deck/defense.typ;
build 可加 --typst-package SPEC(默认 @preview/simply-ysu-touying:0.2.0)、--typst-package-path DIR、--font-path DIR。细节见 references/touying-backend.md。
退出码:extract 2 = 主文件缺失或多候选未指定;plan 2 = 参数或输入错误;build 2 = 规划校验失败,4 = 目标文件已存在且无 --force,
5 = 投屏版或备注版编译失败(或缺 latexmk / typst),6 = Touying 所需 Typst 包未安装(不联网下载);check 1 = 有 Critical 或 Major,2 = 输入错误;preview 3 = 缺少 PyMuPDF(运行 uv pip install pymupdf)。
.tex 与分章文件;有 .aux 时图号优先取 aux)。多个主文件候选时需指定 --main。predefense 预答辩 | defense 正式答辩)、主题(yanshan | generic)。<论文仓库>/defense/ 或论文仓库外的目录;不默认写入论文仓库。@preview/simply-ysu-touying:0.2.0、@preview/touying:0.8.0、@preview/mitex:0.2.6(安装方法见 references/touying-backend.md);论文图须为 PDF、PNG、JPG 或 SVG。缺哪一项只问哪一项。
$OUT/inventory.json(清单)与 $OUT/slide_plan.yaml(规划),字段见 references/plan-schema.md。$OUT/deck/ 下八个自有文件:defense.tex、defense-notes.tex、thesis-macros.tex、notes.md、build_manifest.json、
beamerthemeYanshanDefense.sty、beamerthemeGenericDefense.sty、defense-layouts.sty;编译后另有投屏版 defense.pdf、备注版 defense-notes.pdf 与两份 .log。defense.typ、notes.md、build_manifest.json 与 img/(论文原图副本);编译后另有 defense.pdf、defense-notes.pdf 与 defense.log。% D-CODE (frame=<id>, defense.tex:<行>) [Severity: Critical|Major|Minor|Info] [Priority: P0|P1|P2|P3]: [Script] message;
--json 含 findings[]、summary、skipped。LLM 的判断另标 [LLM]。$OUT/deck/preview/page-NNN.png 与 contact-sheet.png。extract:运行提取,汇报章数、图表公式计数、章角色建议与 warnings。
检查点 1:请用户确认章角色、阶段、时长、主题与输出目录。plan:生成骨架;LLM 读 references/content-rules.md、references/defense-framework.md、references/speaker-notes.md,
逐帧把 〔待填写〕 替换为结论句、要点与讲稿,文字只取论文事实;可按 hints 调整图表选择与版式。--outline 串读帧标题与结论句。检查点 2:请用户确认串读主线后再构建。build --compile:失败时读 defense.log 定位并修改规划,不直接改 defense.tex 或 defense.typ;退出 6 时请用户按 references/touying-backend.md 安装 Typst 包。check:按 references/quality-gate.md 修规划并 build --force --compile 重建,最多 3 轮;
溢出与过密按「删减文字 → 拆页 → 换版式 → 缩小图宽」处理;D-NUM-SRC 逐条回到论文原句复核(NEEDS-LLM)。preview:生成总览图并逐页目视(标题位置、图清晰度、强调色不超过 3 处、页脚不遮挡、章前目录高亮)。defense-notes.pdf 双屏放映,提交与打印用 defense.pdf(references/presenting.md)。agents/qa-committee-agent.md 为每个研究章准备 3–5 个答辩提问与答案骨架。脚本失败时停止当前步骤,报告命令与退出码,再给出最小的下一步。
Frontmatter allowed-tools is Claude-compatible metadata. It is not a mandatory permission list on other platforms. Map this skill's read / search / write / exec needs onto the current session's available capabilities. Script and semantic contracts do not depend on the literal names Read, Glob, Grep, Write, Edit, or Bash.
If this session has no native delegate, run the question-preparation agent sequentially in one agent and say so. Keep academic judgment, fact checks, and final acceptance on a strong model.
--force。\cite、\ref、\label 与数学内容;创新点与展望只取自论文结论章。references/defense-framework.md:全稿页序、章角色、各章页角色序列、问题—研究内容—创新点对应、「论文」框、阶段差异。references/slide-layouts.md:十二个版式的字段、适用角色与内容上限,宏一览。references/content-rules.md:帧标题、结论句、要点字数、图表与数字、公式、强调、创新点与展望写法、溢出处置顺序。references/visual-spec.md:两主题颜色、版位、字号层级、字体回退与校徽规则。references/time-budget.md:分钟→页数与秒数公式、参考区间。references/speaker-notes.md:讲稿五栏、notes.md 格式与进入 PDF 的备注。references/presenting.md:投屏版与备注版、备注页内容、FerroStage 与 pympress 放映方法。references/touying-backend.md:Touying 后端的安装、版式映射、nav_label、演讲备注、保真限制、退出码与定稿后手工维护。references/qa-prep.md:答辩提问类别与答案骨架。references/plan-schema.md:清单与规划字段、骨架预填规则、构建转义与变换规则、已知限制。references/quality-gate.md:D-* 码表、阈值、修复循环、NEEDS-LLM 复核、预览目视清单。templates/beamer/:beamerthemeYanshanDefense.sty、beamerthemeGenericDefense.sty、defense-layouts.sty(页型宏)与 demo-deck.tex(全版式演示稿)。templates/jinja/:deck.tex.j2、defense-notes.tex.j2、frames/<layout>.tex.j2 帧模板与 frames/_note.tex.j2,由 build_deck.py 使用,不手改。templates/typst/:Touying 后端的 deck.typ.j2 与 frames/<layout>.typ.j2,只调用主题包与 mitex 的公开 API。agents/qa-committee-agent.md:答辩委员会提问准备 agent。只读当前步骤需要的文件。
examples/predefense-40min.mdexamples/formal-defense.mdexamples/fix-after-check.mdexamples/touying-defense.mdGRGraphify-Labs/graphify156k2,564 new stars in the last 7 days
PApaperclipai/paperclip119k1,966 new stars in the last 7 days
NEnexu-io/open-design111k1,277 new stars in the last 7 days
HEheygen-com/hyperframes94k4,558 new stars in the last 7 days
BYbytedance/deer-flow86k276 new stars in the last 7 days
BYbytedance/deer-flow86k276 new stars in the last 7 days