Skip to content
cccskills
FreePublished on GitHub

make-latex-model

Refine application, paper, thesis, and CV templates in ChineseResearchLaTeX. Compare layouts with reference PDFs, adjust headings and styles at the appropriate project or shared package level, and validate changes through the designated build tools.

OriginalShow the original description

当用户明确要求“LaTeX 模板优化”“样式参数对齐”“像素级比对”“make-latex-model”或旧写法“make_latex_model”,或要把 ChineseResearchLaTeX 里的某个项目做成高质量模板时使用。

适配 NSFC / paper / thesis / cv 四条产品线;先依据 packages/ 与 projects/ 的真实分层判断改项目层还是公共包,再用各产品线官方构建入口验收。若必须修改 packages 下公共包,需先生成受影响模板回归计划并完成相关回归;NSFC 专项工具仅在明确属于 NSFC 参数对齐场景时按需使用。

Run score Not tested

See how to install

Good for

  • Matching a template to a reference PDF
  • Adjusting heading layout and line breaks
  • Checking affected templates after shared style changes

Files included (60)

  • SKILL.md6.2 KB
  • CHANGELOG.md3.3 KB
  • config.yaml9.8 KB
  • docs/BASELINE_GUIDE.md2.3 KB
  • docs/FAQ.md3.1 KB
  • docs/WORKFLOW.md4.8 KB
  • output/README.md245 B
  • prompts/analysis_template.txt1.1 KB
  • README.md5.6 KB
  • references/PRODUCT_LINE_RULES.md2.5 KB
  • references/SCRIPT_SCOPE.md1.7 KB
  • scripts/__init__.py36 B
  • scripts/analyze_pdf.py9.2 KB
  • scripts/benchmark.bat1.4 KB
  • scripts/benchmark.sh2.5 KB
  • scripts/check_state.py10.0 KB
  • scripts/compare_headings.py48.3 KB
  • scripts/compare_paragraph_images.py5.6 KB
  • scripts/compare_pdf_pixels.py19.7 KB
  • scripts/convergence_detector.py13.7 KB
  • scripts/core/__init__.py181 B
  • scripts/core/ai_optimizer.py5.4 KB
  • scripts/core/config_loader.py6.2 KB
  • scripts/core/decision_reasoner.py10.7 KB
  • scripts/core/diff_analyzer.py9.1 KB
  • scripts/core/font_detector.py7.0 KB
  • scripts/core/history_memory.py1.9 KB
  • scripts/core/latex_format_parser.py9.6 KB
  • scripts/core/paragraph_alignment.py9.0 KB
  • scripts/core/parameter_executor.py13.4 KB
  • scripts/core/template_base.py7.5 KB
  • scripts/core/template_catalog.py3.9 KB
  • scripts/core/validator_base.py4.1 KB
  • scripts/core/validators/__init__.py414 B
  • scripts/core/validators/compilation_validator.py5.6 KB
  • scripts/core/validators/heading_validator.py6.7 KB
  • scripts/core/validators/style_validator.py7.1 KB
  • scripts/core/validators/visual_validator.py5.0 KB
  • scripts/core/workspace_manager.py17.4 KB
  • scripts/enhanced_optimize.py29.0 KB
  • scripts/extract_headings_from_pdf.py11.0 KB
  • scripts/extract_headings.py9.7 KB
  • scripts/extract_paragraphs.py2.7 KB
  • scripts/generate_baseline.py16.7 KB
  • scripts/intelligent_adjust.py22.4 KB
  • scripts/match_paragraphs.py3.5 KB
  • scripts/optimize_heading_linebreaks.py13.0 KB
  • scripts/optimize.bat2.1 KB
  • scripts/optimize.py12.2 KB
  • scripts/optimize.sh2.9 KB
  • scripts/plan_package_regression.py9.6 KB
  • scripts/prepare_main.py9.4 KB
  • scripts/README.md3.5 KB
  • scripts/run_ai_optimizer.py6.5 KB
  • scripts/run_validators.py4.5 KB
  • scripts/setup_wizard.py9.6 KB
  • scripts/sync_config.py12.2 KB
  • scripts/validate.bat5.0 KB
  • scripts/validate.sh14.3 KB
  • workspace/NSFC_General/baseline/2026年最新word模板-1.面上项目-正文_analysis.json748 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

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 和上方流程所声明的范围;不将未验证的信息伪装成确定结论。

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

complete-example

FreeSummary

Fill existing LaTeX projects with sample sections, tables, and explanatory text based on chapter topics and available figures, code, and references. Preview or apply the content while checking formatting and protecting the template structure.

  • Adding sample chapters to a thesis template
  • Creating example text around existing figures and tables
  • Previewing sample content before applying it
huangwb8/ChineseResearchLaTeX3KUpdated Oct 18, 2026

nsfc-abstract

FreeSummary

Draft or refine Chinese abstracts for NSFC research funding applications and produce faithful English translations. Organize the scientific question, preliminary evidence, planned work, and significance, with character checks and bilingual title suggestions accompanied by reasons.

  • Drafting Chinese and English funding application abstracts
  • Translating a Chinese abstract faithfully into English
  • Shortening abstracts to meet character limits
huangwb8/ChineseResearchLaTeX3KUpdated Oct 18, 2026

nsfc-budget

FreeSummary

Create an NSFC research grant budget justification from proposal materials. Connect expenses to research tasks, explain calculations and necessity, check amount consistency, and deliver an editable LaTeX project together with budget.pdf.

  • Draft an NSFC grant budget justification
  • Explain expenses in relation to research tasks
  • Check budget totals and narrative consistency
huangwb8/ChineseResearchLaTeX3KUpdated Oct 18, 2026

根据 NSFC 标书正文内容,结合申请代码推荐库,为你给出 5 组申请代码1/2(主/次)推荐与理由;输出到 NSFC-CODE-vYYYYMMDDHHmm.md(只读,不修改标书)

The English summary is being prepared. Showing the original description.

huangwb8/ChineseResearchLaTeX3KUpdated Oct 18, 2026

Draft, restructure, or polish the section explaining why a research grant project is needed. Connect existing research gaps to scientific questions and hypotheses, preserve citations and LaTeX structure, and receive proposed text with separate review notes.

  • Drafting the rationale for a research grant proposal
  • Connecting research gaps to questions and hypotheses
  • Polishing prose while preserving LaTeX structure
huangwb8/ChineseResearchLaTeX3KUpdated Oct 18, 2026

Check an NSFC research grant application against overall and section length targets. Identify oversized or undersized parts, expand or shorten the text while preserving its meaning and reasoning, then measure it again to check alignment.

  • Checking section lengths against application targets
  • Shortening repetitive text while preserving the argument
  • Expanding underdeveloped sections and checking length again
huangwb8/ChineseResearchLaTeX3KUpdated Oct 18, 2026

See all skills by huangwb8

Report a problem with this skill