Agent skill

Make Latex Model

by huangwb8 in huangwb8/ChineseResearchLaTeX

当用户明确要求“LaTeX 模板优化”“样式参数对齐”“像素级比对”“make-latex-model”或旧写法“makelatexmodel”,或要把 ChineseResearchLaTeX 里的某个项目做成高质量模板时使用。适配 NSFC / paper / thesis / cv 四条产品线;先依据 packages/ 与 projects/…

MITAuto-check passedDocuments & Office

Install Make Latex Model

skills CLI
$ npx skills add huangwb8/ChineseResearchLaTeX --skill make-latex-model -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install huangwb8/ChineseResearchLaTeX make-latex-model --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/huangwb8/ChineseResearchLaTeX.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/make-latex-model .claude/skills/make-latex-model && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
make-latex-model
GitHub stars
2.9k
Token cost
~867 tokens
SKILL.md length
215 words
Files
65 (incl. scripts, references)
Skills in repo
27
Repo updated
First seen
Licence
MIT

At a glance

当用户明确要求“LaTeX 模板优化”“样式参数对齐”“像素级比对”“make-latex-model”或旧写法“makelatexmodel”,或要把 ChineseResearchLaTeX 里的某个项目做成高质量模板时使用。适配 NSFC / paper / thesis / cv 四条产品线;先依据 packages/ 与 projects/…

  • Works in 4 steps: 先证明项目层方案不够 → 运行 python3… → 优先把改动收敛到最窄的模板专属 profile/style/template → …
  • Tasks that involve LaTeX
  • SKILL.md covers 流程 and 约束
  • Runs Python, Batch and Shell scripts from its folder; calls python3

What it does

Make Latex Model is an agent skill from huangwb8/ChineseResearchLaTeX. 当用户明确要求“LaTeX 模板优化”“样式参数对齐”“像素级比对”“make-latex-model”或旧写法“makelatexmodel”,或要把 ChineseResearchLaTeX 里的某个项目做成高质量模板时使用。适配 NSFC / paper / thesis / cv 四条产品线;先依据 packages/ 与 projects/ 的真实分层判断改项目层还是公共包,再用各产品线官方构建入口验收。若必须修改 packages 下公共包,需先生成受影响模板回归计划并完成相关回归;NSFC 专项工具仅在明确属于 NSFC 参数对齐场景时按需使用。

Its SKILL.md is about 870 tokens, which your agent loads only when the skill is triggered. The skill folder holds 69 other files, including scripts and reference files (for example `CHANGELOG.md`, `README.md` and `config.yaml`).

It sits in Documents & Office, covering LaTeX and Essays and academic help. It works with LaTeX. The licence is MIT.

When your agent uses it

  • Tasks that involve LaTeX
  • Tasks that involve Essays and academic help

Example prompts

  • “LaTeX 模板优化”
  • “样式参数对齐”
  • “make-latex-model”
  • “/make-latex-model”

Requirements

  • Python 3
  • A Bash shell

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. 先证明项目层方案不够
  2. 运行 python3 skills/make-latex-model/scripts/plan_package_regression.py
  3. 优先把改动收敛到最窄的模板专属 profile/style/template
  4. 改完先验目标项目,再回归该公共包直接覆盖的全部现有项目

What it can do on your machine

Read from SKILL.md and the folder at commit b8b4142. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 5 files in scripts/ (Python, Batch and Shell, from the files we listed), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Make Latex Model loads about 867 tokens when it runs, and up to ~2k if it reads all its reference files. Until then it costs about 76 tokens; SKILL.md has 215 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~76
When it runs · the whole SKILL.md, loaded when a task matches
~867
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from huangwb8/ChineseResearchLaTeX at commit b8b4142, republished under its MIT licence (© huangwb8). 215 words, ~867 tokens.

Download SKILL.mdSave it as .claude/skills/make-latex-model/SKILL.md (or your agent's skills folder). This skill also uses 64 other files; get the full folder from GitHub.
name
make-latex-model
description
当用户明确要求“LaTeX 模板优化”“样式参数对齐”“像素级比对”“make-latex-model”或旧写法“make_latex_model”,或要把 ChineseResearchLaTeX 里的某个项目做成高质量模板时使用。适配 NSFC / paper / thesis / cv 四条产品线;先依据 packages/ 与 projects/ 的真实分层判断改项目层还是公共包,再用各产品线官方构建入口验收。若必须修改 packages 下公共包,需先生成受影响模板回归计划并完成相关回归;NSFC 专项工具仅在明确属于 NSFC 参数对齐场景时按需使用。
metadata.author
Bensz Conan

ChineseResearchLaTeX 模板落地与高保真对齐器

  • 让 ChineseResearchLaTeX 中的目标项目按当前真实架构落成高质量模板。
  • 先判断该改 projects/* 还是 packages/bensz-*。
  • 若必须改公共包,先做回归计划,再跑受影响模板的官方验证。
  • 验收始终以各产品线官方构建入口为准。
适用任务
  • 把某个项目对齐到官方 PDF、Word 导出 PDF 或既有 baseline
  • 判断问题属于项目层差异还是共享样式/共享脚本
  • 做像素级 PDF 比对、标题对齐、参数抽取
  • 新增或重构 NSFC / paper / thesis / cv 模板

流程

输入

按用户请求和配置文件提供必要输入;缺失信息应明确列出并停止依赖该输入的步骤。

执行步骤
  • 当用户环境中出现因本 skill 设计缺陷导致的 bug 时,优先使用 bensz-collect-bugs 按规范记录到 ~/.bensz-skills/bugs/,严禁直接修改用户本地 Claude Code / Codex 中已安装的 skill 源码。

  • 若 AI 仍可通过 workaround 继续完成用户任务,应先记录 bug,再继续完成当前任务。

  • 当用户明确要求“report bensz skills bugs”等公开上报动作时,调用本地 gh 与 bensz-collect-bugs,仅上传新增 bug 到 huangwb8/bensz-bugs;不要 pull / clone 整个 bug 仓库。

  • 产品线标准:docs/for-developers/*-template-standard.md

  • 本 skill 工作流:docs/WORKFLOW.md

  • 产品线识别:references/PRODUCT_LINE_RULES.md

  • 脚本职责:references/SCRIPT_SCOPE.md

  • 工具说明:scripts/README.md

  • 基线准备:docs/BASELINE_GUIDE.md

判断验收口径
  • 用户要“像某份 PDF/Word 一样”
  • 还是“按当前仓库标准做成好模板”
  • 还是“新增一套模板能力”
判断修改层级
  • projects/*:示例内容、薄封装、项目资源、局部差异
  • packages/bensz-*:共享样式、共享字体、profile、统一构建逻辑
最小范围实现
  • 只改与当前任务直接相关的文件
  • 除非用户明确要求,否则默认不改正文语义内容
包层安全门禁

当必须改 packages/ 时,额外执行:

  1. 先证明项目层方案不够
  2. 运行 python3 skills/make-latex-model/scripts/plan_package_regression.py <packages/bensz-*>
  3. 优先把改动收敛到最窄的模板专属 profile/style/template
  4. 改完先验目标项目,再回归该公共包直接覆盖的全部现有项目
官方入口验证
  • NSFC:nsfc_project_tool.py

  • Paper:paper_project_tool.py

  • Thesis:thesis_project_tool.py

  • CV:cv_project_tool.py

  • analyze_pdf.py

  • compare_headings.py

  • compare_pdf_pixels.py

  • optimize_heading_linebreaks.py

  • plan_package_regression.py

这些脚本是辅助工具箱,不是唯一工作流;NSFC 专项工具不能默认替代 paper / thesis / cv 的官方入口。

输出

输出 Skill description 所承诺的交付物,并明确格式、路径和失败返回形式。

输出管理

本 Skill 的新任务中间文件统一写入 ./.bensz-api/task-{yyyymmdd-hhmm}-{简短描述}/{skill名}/input|output|log/。同一任务复用一个任务根目录;多 Skill 协作才创建 shared/。正式交付物不写入该目录,历史隐藏目录只允许显式兼容读取、迁移或清理。

校验
  1. 改动落在正确层级
  2. 通过对应产品线官方入口
  3. warning 需要说明是已有还是新增
  4. 若改了公共包,必须说明回归了哪些模板
  5. 若用户给 baseline,完成必要 compare
  6. paper 默认兼顾 PDF 与 DOCX;cv 默认兼顾中英文;thesis 默认兼顾 profile/style 与项目入口一致性
失败与恢复

保留错误证据和已完成产物;仅在输入、环境或外部依赖恢复后从最近的失败步骤重试。

约束

允许:

  • 调整项目层版式参数、标题体系、入口装配
  • 把共享实现沉淀到 packages/bensz-*
  • 修改 profile、style、wrapper、官方 compare 验收链

避免:

  • 把共享实现复制回单个项目
  • 绕过官方构建入口只跑裸 xelatex
  • 为了像素对齐破坏仓库真实分层
  • 默认改写用户正文语义
公共硬约束
  • 任务需要落盘时,使用唯一的 ./.bensz-api/task-{yyyymmdd-hhmm}-{简短描述}/ 根目录;共享材料放入 shared/,Skill 专属材料放入该 Skill 的 input/、output/、log/。
  • 正式交付物、源代码和正式计划按项目约定保存,不写入任务工作区;未经授权不覆盖、删除、迁移或远程写入。
  • 项目维护变更检查 BAC 可用性并记录需求、AI 产出、工具结果、文件改动和验证摘要;BAC 只做过程审计,不替代署名、责任或合规判断。
  • 不记录 API Key、访问令牌、密码、Cookie、环境/凭据文件、私有 Prompt、身份信息、本地用户名、主机名或不必要的大体积原始数据。
  • 文件路径必须规范化并限制在授权项目范围内;外部 URL、子进程和网络访问遵循最小权限,防止路径遍历、SSRF 和命令注入。
  • Skill 版本唯一记录在自身 config.yaml:skill_info.version;公开 API、协议、目录或配置变更同步文档与 CHANGELOG.md。
  • 仅将 Skill 或 Bensz 基础设施本身的设计缺陷交给 bensz-collect-bugs;先脱敏写入 ~/.bensz-skills/bugs/,当前任务不中断,只有用户明确要求才公开上报,禁止直接修改用户已安装的 Skill 源码。
<!-- End of canonical common constraints. -->
Skill 专属约束

不得超出本 Skill description 和上方流程所声明的范围;不将未验证的信息伪装成确定结论。

© huangwb8, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 64 other files (scripts, references) in skills/make-latex-model of huangwb8/ChineseResearchLaTeX.

  • SKILL.md
  • CHANGELOG.md
  • README.md
  • config.yaml
  • docs/BASELINE_GUIDE.md
  • docs/FAQ.md
  • docs/WORKFLOW.md
  • output/README.md
  • prompts/analysis_template.txt
  • references/PRODUCT_LINE_RULES.md
  • references/SCRIPT_SCOPE.md
  • scripts/README.md
  • scripts/__init__.py
  • scripts/analyze_pdf.py
  • scripts/benchmark.bat
  • scripts/benchmark.sh
  • … and 49 more

Open the folder on GitHubat commit b8b4142

Compare with similar skills

Make Latex Model next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Make Latex Model compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Make Latex Model this skillhuangwb8/ChineseResearchLaTeX2.9k—~867Automated safety check: PassMIT
Thesis Defense PPTX Builderzouchenzhen/thesis-defense-pptx-skill266—~2.4kAutomated safety check: PassApache-2.0
Tikz Figure Code0xE1337/thesis-figure-skill1431 repos~1.2kAutomated safety check: PassMIT
Thesis Figure Skill0xE1337/thesis-figure-skill143—~9.1kAutomated safety check: PassMIT
Repo Maintenancewengan-li/ncku-thesis-template-latex151—~4.3kAutomated safety check: PassCustom licence
Sci PptShZhao27208/Aut_Sci_Write209—~757Automated safety check: PassMIT

Similar skills

  • Thesis Defense PPTX Builder

    zouchenzhen/thesis-defense-pptx-skill

    Builds an editable thesis defense PowerPoint from a thesis PDF or LaTeX project while preserving a supplied university or lab template, then runs a visual quality check.

    266 GitHub stars~2.4k tokensUpdated 4 mo ago
    Documents & OfficeAuto-check passed
  • Tikz Figure Code

    0xE1337/thesis-figure-skill

    写出高质量、一次过编译、编辑安全的 TikZ/LaTeX 配图代码的工程基础技能. An agent skill from 0xE1337/thesis-figure-skill.

    143 GitHub starsUsed in 1 repo~1.2k tokens
    Documents & OfficeAuto-check passed
  • Thesis Figure Skill

    0xE1337/thesis-figure-skill

    生成学术论文配图:LaTeX/TikZ 代码(结构化图表,直接嵌入论文)或 draw.io XML (技术路线图、汇报配图)。自动按论文领域风格设计,编译验证后交付。

    143 GitHub stars~9.1k tokensUpdated 2 mo ago
    Documents & OfficeAuto-check passed
  • Repo Maintenance

    wengan-li/ncku-thesis-template-latex

    A skill your agent uses for maintaining and releasing this repository.

    151 GitHub stars~4.3k tokensUpdated 6 days ago
    Documents & OfficeAuto-check passed
  • Sci Ppt

    ShZhao27208/Aut_Sci_Write

    Generate professional academic PowerPoint (PPTX) presentations from paper PDFs, structured outlines, or plain text.

    209 GitHub stars~757 tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed
  • Latex Defense Zh

    bahayonghang/academic-writing-skills

    Chinese thesis defense deck builder for existing XeLaTeX PhD or master thesis repositories.

    498 GitHub stars~2.2k tokensUpdated 11 days ago
    Documents & OfficeAuto-check passed

More from huangwb8/ChineseResearchLaTeX

All 27 skills in this repo
  • NSFC Grant Rationale Writer

    huangwb8/ChineseResearchLaTeX

    Writes, restructures, reviews and polishes the rationale section of NSFC research grant applications in LaTeX, with backups and a diff before every write.

    2.9k GitHub stars~945 tokensUpdated 5 days ago
    Auto-check passed
  • LaTeX Example Content Generator

    huangwb8/ChineseResearchLaTeX

    Fills an existing LaTeX project with sample sections, tables and figure narratives, protecting the template structure and previewing before writing.

    2.9k GitHub starsUsed in 1 repo~744 tokens
    Auto-check passed
  • Journal Selector for Manuscripts

    huangwb8/ChineseResearchLaTeX

    Recommends journals for a manuscript by filtering a bundled impact-factor catalog, verifying scope and quality online, and writing a ranked Markdown report.

    2.9k GitHub stars~1.7k tokensUpdated 5 days ago
    Auto-check passed
  • NSFC Abstract Writer

    huangwb8/ChineseResearchLaTeX

    Writes Chinese and English abstracts for NSFC grant applications, with a recommended title and five alternatives, within set character limits.

    2.9k GitHub starsUsed in 1 repo~1.3k tokens
    Auto-check passed
  • NSFC Budget Justification Writer

    huangwb8/ChineseResearchLaTeX

    Writes a submission-ready NSFC budget justification as a LaTeX project and renders budget.pdf from your grant proposal text and supporting materials.

    2.9k GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • NSFC Application Code Recommender

    huangwb8/ChineseResearchLaTeX

    Recommends five pairs of NSFC application codes, primary and secondary, from a grant proposal's text and writes the reasons to a Markdown report.

    2.9k GitHub starsUsed in 1 repo~1.1k tokens
    Auto-check passed

Works with

Questions about Make Latex Model

What does Make Latex Model do?

当用户明确要求“LaTeX 模板优化”“样式参数对齐”“像素级比对”“make-latex-model”或旧写法“makelatexmodel”,或要把 ChineseResearchLaTeX 里的某个项目做成高质量模板时使用。适配 NSFC / paper / thesis / cv 四条产品线;先依据 packages/ 与 projects/…. Make Latex Model is an agent skill from huangwb8/ChineseResearchLaTeX.

When should I use Make Latex Model?

Make Latex Model fits situations like: tasks that involve LaTeX; tasks that involve Essays and academic help.

How do I install Make Latex Model in Claude Code?

Run `npx skills add huangwb8/ChineseResearchLaTeX --skill make-latex-model -a claude-code`. Or copy the skill folder (skills/make-latex-model in huangwb8/ChineseResearchLaTeX) into .claude/skills/make-latex-model in your project. Claude Code loads it when a task matches its description.

How do I install Make Latex Model in Codex?

Run `npx skills add huangwb8/ChineseResearchLaTeX --skill make-latex-model -a codex`. Or copy the skill folder (skills/make-latex-model in huangwb8/ChineseResearchLaTeX) into .agents/skills/make-latex-model in your project. Codex loads it when a task matches its description.

Can I use Make Latex Model in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add huangwb8/ChineseResearchLaTeX --skill make-latex-model -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/make-latex-model, .gemini/skills/make-latex-model, .github/skills/make-latex-model and .opencode/skills/make-latex-model in your project.

What does Make Latex Model need to run?

Going by SKILL.md and its folder, Make Latex Model needs Python, Windows cmd and a shell for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3; A Bash shell.

Does Make Latex Model access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Make Latex Model safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Make Latex Model use?

Make Latex Model is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Make Latex Model use?

About 867 tokens (SKILL.md is roughly 3.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.1k tokens, read only when the agent opens those files.

What are the alternatives to Make Latex Model?

Skills that share tags, products or a category with Make Latex Model: Thesis Defense PPTX Builder (zouchenzhen/thesis-defense-pptx-skill, 266 stars), Tikz Figure Code (0xE1337/thesis-figure-skill, 143 stars), Thesis Figure Skill (0xE1337/thesis-figure-skill, 143 stars) and Repo Maintenance (wengan-li/ncku-thesis-template-latex, 151 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Make Latex Model?

huangwb8 (a GitHub user) maintains it in huangwb8/ChineseResearchLaTeX, which has 2,870 GitHub stars. The repository holds 27 skills in this directory. The repository was last updated on October 4, 2026.

Source: huangwb8/ChineseResearchLaTeX on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.