
migrating-latex-templates
当用户明确要求"迁移标书""升级模板""跨版本迁移""旧标书转新模板"时使用。智能迁移NSFC LaTeX标书到新版模板,基于五阶段工作流(分析→映射→规划→执行→验证),自动处理结构变化、内容重组、引用更新;支持AI驱动语义匹配与启发式回退,并提供 runs 输出隔离与一键迁移脚本。
- Installs
- 72
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/huangwb8/chineseresearchlatex --skill migrating-latex-templates- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads migrating-latex-templates automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
LaTeX 标书智能迁移器
核心入口:
python skills/transfer_old_latex_to_new/scripts/run.py --help一键迁移:
bash skills/transfer_old_latex_to_new/scripts/migrate.sh --old ... --new ...配置中心:config.yaml
参考文档:references/
拆分文档: references/quickstart.md / references/config_guide.md / references/api_reference.md / references/troubleshooting.md / references/faq.md / references/case_study_2025_to_2026.md
快速开始
# 一键分析(生成结构差异报告)
python skills/transfer_old_latex_to_new/scripts/run.py analyze \
--old /path/to/NSFC_2025 \
--new /path/to/NSFC_2026
# 一键应用(执行迁移,apply前自动快照)
python skills/transfer_old_latex_to_new/scripts/run.py apply \
--old /path/to/NSFC_2025 \
--new /path/to/NSFC_2026 \
--run-id <上一步输出的run_id>
# 一键编译(验证迁移结果)
python skills/transfer_old_latex_to_new/scripts/run.py compile \
--run-id <run_id> \
--new /path/to/NSFC_2026
# 一键恢复(回滚到apply前状态)
python skills/transfer_old_latex_to_new/scripts/run.py restore \
--run-id <run_id> \
--new /path/to/NSFC_2026
一键迁移(推荐)
bash skills/transfer_old_latex_to_new/scripts/migrate.sh \
--old /path/to/NSFC_2025 \
--new /path/to/NSFC_2026
runs 输出隔离(强烈建议:测试/批处理)
python skills/transfer_old_latex_to_new/scripts/run.py analyze \
--old /path/to/NSFC_2025 \
--new /path/to/NSFC_2026 \
--runs-root /path/to/runs
输出目录:默认 skills/transfer_old_latex_to_new/runs/<run_id>/;指定 --runs-root 则输出到该目录。
runs/<run_id>/
├── input_snapshot/ # 旧新项目输入快照
├── analysis/ # 结构分析JSON(sections_map_*.json, structure_diff.json)
├── plan/ # 迁移计划(migration_plan.json)
├── backup/ # Apply前新项目快照(用于restore)
├── logs/ # 执行日志与编译输出
│ ├── apply_result.json # 迁移执行结果
│ ├── compile_summary.json # 编译摘要
│ ├── compile_*_*.out.txt # 编译标准输出
│ ├── compile_*_*.err.txt # 编译标准错误
│ └── latex_aux/ # LaTeX 中间文件隔离目录
│ ├── main.aux # 辅助文件
│ ├── main.log # 编译日志
│ ├── main.bbl # BibTeX 输出
│ ├── main.blg # BibTeX 日志
│ ├── main.out # hyperref 输出
│ ├── main.toc # 目录文件
│ └── *.aux # 其他辅助文件
└── deliverables/ # 交付物(PDF、报告、指南)
中间文件隔离: 所有 LaTeX 编译中间文件(.aux/.log/.bbl等)自动保存在 logs/latex_aux/ 目录,避免在项目目录产生"垃圾"文件。最终 PDF 自动复制回项目根目录。
前置约束(铁律)
修改范围白名单
✅ 可修改:
extraTex/*.tex内容文件(排除@config.tex)- 新项目
references/*.bib(如需更新引用格式) - 本技能运行产物:
runs/<run_id>/(日志、分析、备份、交付物)
❌ 禁止修改:
main.tex模板结构文件extraTex/@config.tex配置文件.cls、.sty样式文件- 任何影响编译环境的系统文件
更完整的流程说明、配置与排障文档已拆分到 references/:
- references/quickstart.md
- references/config_guide.md
- references/api_reference.md
- references/troubleshooting.md
📋 版本与变更
当前版本: v1.4.0(与 config.yaml 同步)
变更记录: 见根级 CHANGELOG.md
优化计划: 质量评估与优化计划见 plans/v202601081355.md(仓库根级)
最后更新: 2026-01-08 维护者: Bensz Conan 许可证: MIT
FAQ
What does the migrating-latex-templates skill do?
当用户明确要求"迁移标书""升级模板""跨版本迁移""旧标书转新模板"时使用。智能迁移NSFC LaTeX标书到新版模板,基于五阶段工作流(分析→映射→规划→执行→验证),自动处理结构变化、内容重组、引用更新;支持AI驱动语义匹配与启发式回退,并提供 runs 输出隔离与一键迁移脚本。
How do I install migrating-latex-templates?
Run npx skills add https://github.com/huangwb8/chineseresearchlatex --skill migrating-latex-templates in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/migrating-latex-templates/ (personal) or .claude/skills/migrating-latex-templates/ (project).
Which AI agents can use migrating-latex-templates?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is migrating-latex-templates safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains migrating-latex-templates?
It is published by huangwb8 in huangwb8/chineseresearchlatex. It has 72 recorded installs.
More from huangwb8/chineseresearchlatex
systematic-literature-review
huangwb8/chineseresearchlatex
当用户明确要求"做系统综述/文献综述/related work/相关工作/文献调研"时使用。AI 自定检索词,多源检索→去重→AI 逐篇阅读并评分(1–10分语义相关性与子主题分组)→按高分优先比例选文→自动生成"综/述"字数预算→资深领域专家自由写作(固定摘要/引言/子主题/讨论/展望/结论),保留正文字数与参考文献数硬校验,强制导出 PDF 与 Word。支持多语言翻译与智能编译(en/zh/ja/de/fr/es)。
nsfc-justification-writer
huangwb8/chineseresearchlatex
当用户要求写作、重构、审查或润色 NSFC/科研基金申请书的立项依据时使用;不负责研究目标、技术路线或其他章节的正文写作。
nsfc-research-content-writer
huangwb8/chineseresearchlatex
Open the skill to read its SKILL.md instructions.
nsfc-research-foundation-writer
huangwb8/chineseresearchlatex
Open the skill to read its SKILL.md instructions.
nsfc-abstract
huangwb8/chineseresearchlatex
当用户明确要求"写/润色 NSFC 标书摘要""生成中文摘要和英文摘要""把中文摘要翻译成英文摘要"时使用。输出中文、英文两个版本(英文必须是中文的忠实翻译版),同时输出标题建议(1个推荐标题+5个候选标题及理由)。中文摘要默认≤400字符,英文摘要默认≤4000字符。输出方式:将结果写入工作目录下的 NSFC-ABSTRACTS.md。⚠️ 不适用:用户只想翻译一段与标书无关的通用文本(应直接翻译);用户只想写立项依据/研究内容/研究基础正文(应使用对应 nsfc 系列 skill)。
nsfc-reviewers
huangwb8/chineseresearchlatex
Open the skill to read its SKILL.md instructions.
Popular other skills
hyperframes-cli
heygen-com/hyperframes
The HyperFrames CLI by job - scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history - plus reading its JSON and recovering from build or render failures.
triage
mattpocock/skills
Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.
ask-matt
mattpocock/skills
Ask which skill or flow fits your situation. A router over the skills in this repo.
to-questionnaire
mattpocock/skills
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
loop-me
mattpocock/skills
Grill me about specs for the workflows I want to build, within this workspace.