Build or rewrite a Chinese LaTeX resume from structured markdown or converted Word content using the bundled one-page template. Use this when the user wants to generate, rewrite, anonymize, validate, or compile a resume under resume_cn_public_template, especially from markdown drafts, resume notes, or Word-to-markdown input.
Use this skill when the task is to turn structured resume content into bundled LaTeX template assets, copy them beside the user's input file when needed, then validate encoding, dependencies, and compile output.
Read the input source.
If the input is markdown, follow references/md_schema.md.
If the input comes from Word, first normalize it using references/word_strategy.md.
Validate environment.
Run scripts/check_env.ps1.
If xelatex is missing, use the install path already defined there.
Normalize encoding before edits.
Run scripts/normalize_encoding.py on all edited .md, .tex, .cls, and .ps1 files.
Map source fields into the LaTeX template.
Prefer scripts/render_resume.py.
Render to main.tex in the active output directory.
Keep layout controls in the copied resume.cls.
Do not introduce ad hoc spacing in main.tex unless template-level control is impossible.
Compile serially.
Run scripts/compile_resume.ps1.
Never run multiple xelatex processes against the same output in parallel.
Generate layout tasks.
After compile, run ../resume_layout_optimizer_skill/scripts/analyze_layout.py.
This will write layout_tasks.json in the same output directory.
Use the layout skill directly when the user only wants single-page control, line-count-aware wording compression, spacing tuning, or layout diagnosis.
Let the agent patch flagged bullets.
Read layout_tasks.json and edit only the targeted bullets in main.tex.
Verify output.
Run ../resume_layout_optimizer_skill/scripts/recheck_layout.ps1.
If the resume overflows, use the refreshed task file to continue local wording compression before changing global layout.
Word -> Markdown -> TeX over direct Word -> TeX.references/md_schema.mdreferences/word_strategy.md../input_templates/resume_input_template.mdassets/template/scripts/check_env.ps1scripts/normalize_encoding.pyscripts/create_word_template.pyscripts/word_to_markdown.pyscripts/render_resume.pyscripts/build_from_md.ps1scripts/build_from_word.ps1scripts/compile_resume.ps1../resume_layout_optimizer_skill/scripts/analyze_layout.py../resume_layout_optimizer_skill/scripts/recheck_layout.ps1../resume_layout_optimizer_skill/scripts/optimize_layout.pyassets/template/.main.texresume.clsmain.pdflayout_diagnosis.jsonlayout_tasks.json