make-latex-model
This skill is used when users explicitly request "LaTeX template optimization", "style parameter alignment", "pixel-level comparison", "make-latex-model" or the old notation "make_latex_model", or when they want to turn a project in ChineseResearchLaTeX into a high-quality template. It supports four product lines: NSFC / paper / thesis / cv; first determine whether to modify the project layer or the public package based on the actual hierarchy of packages/ and projects/, then use the official build entry of each product line for acceptance. If modification to the public packages under packages/ is necessary, a regression plan for affected templates must be generated first and relevant regression completed; the NSFC special tool is only used on demand when it clearly falls into the NSFC parameter alignment scenario.
NPX Install
npx skill4agent add huangwb8/chineseresearchlatex make-latex-modelTags
Translated version includes tags in frontmatterSKILL.md Content (Chinese)
View Translation Comparison →ChineseResearchLaTeX Template Implementation and High-Fidelity Aligner
Collaboration Agreement with bensz-collect-bugs
- When bugs caused by the design flaws of this skill occur in the user's environment, prioritize using to record them in
bensz-collect-bugsaccording to specifications. It is strictly forbidden to directly modify the source code of the skill already installed in the user's local Claude Code / Codex.~/.bensz-skills/bugs/ - If the AI can still complete the user's task through a workaround, record the bug first, then continue to complete the current task.
- When the user explicitly requests actions such as "report bensz skills bugs" for public submission, call the local and
gh, and only upload new bugs tobensz-collect-bugs; do not pull / clone the entire bug repository.huangwb8/bensz-bugs
What to Read First
- Product line standards:
docs/for-developers/*-template-standard.md - Workflow of this skill:
docs/WORKFLOW.md - Product line identification:
references/PRODUCT_LINE_RULES.md - Script responsibilities:
references/SCRIPT_SCOPE.md - Tool descriptions:
scripts/README.md - Baseline preparation:
docs/BASELINE_GUIDE.md
Positioning
- Enable the target project in to be implemented as a high-quality template according to the current real architecture.
ChineseResearchLaTeX - First determine whether to modify or
projects/*.packages/bensz-* - If modification to the public package is necessary, create a regression plan first, then run the official verification of the affected templates.
- Acceptance always takes the official build entry of each product line as the standard.
Applicable Tasks
- Align a project with the official PDF, PDF exported from Word or existing baseline
- Determine whether the problem belongs to project-level differences or shared styles/shared scripts
- Perform pixel-level PDF comparison, title alignment, parameter extraction
- Add or refactor NSFC / paper / thesis / cv templates
Workflow
1. Determine Acceptance Criteria
- Does the user want it "to look like a certain PDF/Word"?
- Or "to make a good template according to the current warehouse standards"?
- Or "to add a set of template capabilities"?
2. Determine Modification Layer
- : Sample content, thin encapsulation, project resources, local differences
projects/* - : Shared styles, shared fonts, profile, unified build logic
packages/bensz-*
3. Minimal Scope Implementation
- Only modify files directly related to the current task
- Unless explicitly requested by the user, do not modify the semantic content of the main text by default
4. Package Layer Security Access Control
packages/- First prove that the project-level solution is insufficient
- Run
python3 skills/make-latex-model/scripts/plan_package_regression.py <packages/bensz-*> - Prioritize converging changes to the narrowest template-specific
profile/style/template - After modification, first verify the target project, then regress all existing projects directly covered by this public package
5. Official Entry Verification
- NSFC:
nsfc_project_tool.py - Paper:
paper_project_tool.py - Thesis:
thesis_project_tool.py - CV:
cv_project_tool.py
Auxiliary Scripts
analyze_pdf.pycompare_headings.pycompare_pdf_pixels.pyoptimize_heading_linebreaks.pyplan_package_regression.py
Boundaries
- Adjust project-level layout parameters, title systems, entry assembly
- Precipitate shared implementations into
packages/bensz-* - Modify profile, style, wrapper, official compare acceptance chain
- Copy shared implementations back to individual projects
- Bypass the official build entry and only run bare
xelatex - Destroy the real hierarchy of the warehouse for pixel alignment
- Rewrite the semantic content of the user's main text by default
Acceptance Standards
- Changes fall into the correct layer
- Pass the official entry of the corresponding product line
- Warnings need to indicate whether they are existing or newly added
- If public packages are modified, it must be stated which templates have been regressed
- If the user provides a baseline, complete the necessary comparison
- defaults to supporting both PDF and DOCX;
paperdefaults to supporting both Chinese and English;cvdefaults to ensuring consistency between profile/style and project entrythesis