npx claudepluginhub shallow-dusty/claude-plugins --plugin scriptoriumThis skill uses the workspace's default tool permissions.
封装 LaTeX 编译流程和常用诊断操作,服务于论文编辑-编译-修复循环。
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
封装 LaTeX 编译流程和常用诊断操作,服务于论文编辑-编译-修复循环。
thesis/thesis/main.texthesis/data/chapter-{1..6}.tex, abstract-*.tex, appendix.tex 等thesis/main.logthesis/main.pdf/thesis build编译论文并输出结果摘要。
执行步骤:
cd thesis && latexmk -xelatex -latexoption='-interaction=nonstopmode -halt-on-error' main/thesis errors 解析错误/thesis errors解析 thesis/main.log 提取可读的错误和警告信息。
解析规则:
! 开头的行(LaTeX fatal error),向上追溯找到 l.\d+ 行号(./data/chapter-5.tex 这类括号匹配确定当前文件LaTeX Warning: Reference .* undefined → 未定义的引用LaTeX Warning: Citation .* undefined → 未定义的参考文献Overfull \\hbox → 排版溢出(宽度 > 10pt 才报告)Package hyperref Warning → 超链接问题输出格式:
=== 编译错误 (N 个) ===
[1] data/chapter-5.tex:123 — Undefined control sequence \textbff
[2] data/appendix.tex:45 — Missing $ inserted
=== 警告 (M 个) ===
[1] 未定义引用: \ref{tab:nonexist} (data/chapter-5.tex)
[2] 排版溢出: Overfull \hbox (15.2pt) at data/chapter-3.tex:89
/thesis wordcount统计论文各章节的字数/字符数。
执行方式: 由于 texcount 可能未安装,使用以下策略:
对每个 thesis/data/*.tex 文件:
grep -v '^\s*%' 去掉注释行sed 去掉 LaTeX 命令(\xxx{...} → 保留花括号内容)\begin{...}, \end{...}, \label{...}, \ref{...} 等结构命令grep -oP '[\x{4e00}-\x{9fff}]' | wc -l)wc -w 减去中文字符)输出格式:
章节 中文字数 英文词数 合计(估)
─────────────────────────────────────────────────
chapter-1.tex (绪论) 2,450 120 2,570
chapter-2.tex (相关工作) 3,800 85 3,885
...
─────────────────────────────────────────────────
合计 18,500 650 19,150
注:中文字数按字符计,英文按词计。"合计(估)"为两者简单相加,供参考。
/thesis refs检查交叉引用完整性。
检查项:
main.log 搜索 Reference .* undefinedmain.log 搜索 Citation .* undefined\label{xxx} 和 \ref{xxx}/\eqref{xxx},找出从未被引用的标签fig: 和 tab: 前缀的标签是否有遗漏输出格式:
=== 引用完整性检查 ===
未定义引用: (无)
未定义参考文献: [Zhang2024] (chapter-2.tex:45)
孤立标签 (定义了但从未引用): tab:old_results (chapter-5.tex:200)
重复标签: (无)
xelatex 和 latexmk(已安装)csbachelor.cls,对 XeLaTeX 有硬依赖main.log 是编译后自动生成的,/thesis errors 和 /thesis refs 依赖它存在/thesis build