Agent skill

Transfer Old Latex To New

by huangwb8 in huangwb8/ChineseResearchLaTeX

当用户明确要求“迁移 LaTeX 模板”“把旧项目接入 ChineseResearchLaTeX”“把旧标书/论文/毕业论文/简历套进当前模板”“把 Word/PDF/Markdown/零散 tex 整理进现有项目”,或直接提到 transfer-old-latex-to-new 时使用。旧别名 migrating-latex-templates 可兼容理解。该 skill…

MITAuto-check passedDocuments & Office

Install Transfer Old Latex To New

skills CLI
$ npx skills add huangwb8/ChineseResearchLaTeX --skill transfer-old-latex-to-new -a claude-code

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

GitHub CLI
$ gh skill install huangwb8/ChineseResearchLaTeX transfer-old-latex-to-new --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/transfer-old-latex-to-new .claude/skills/transfer-old-latex-to-new && 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
transfer-old-latex-to-new
GitHub stars
2.9k
Token cost
~1.1k tokens
SKILL.md length
226 words
Files
46 (incl. scripts, references)
Skills in repo
27
Repo updated
First seen
Licence
MIT

At a glance

当用户明确要求“迁移 LaTeX 模板”“把旧项目接入 ChineseResearchLaTeX”“把旧标书/论文/毕业论文/简历套进当前模板”“把 Word/PDF/Markdown/零散 tex 整理进现有项目”,或直接提到 transfer-old-latex-to-new 时使用。旧别名 migrating-latex-templates 可兼容理解。该 skill…

  • Tasks that involve LaTeX
  • SKILL.md covers 流程 and 约束
  • Calls python

What it does

Transfer Old Latex To New is an agent skill from huangwb8/ChineseResearchLaTeX. 当用户明确要求“迁移 LaTeX 模板”“把旧项目接入 ChineseResearchLaTeX”“把旧标书/论文/毕业论文/简历套进当前模板”“把 Word/PDF/Markdown/零散 tex 整理进现有项目”,或直接提到 transfer-old-latex-to-new 时使用。旧别名 migrating-latex-templates 可兼容理解。该 skill 只负责把正文内容迁移到当前仓库现有模板的内容层;绝不能修改 packages/ 内公共包源码、也绝不能修改 projects/ 内模板样式或入口骨架,只能写入目标项目允许承载正文的内容文件。

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

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

When your agent uses it

  • Tasks that involve LaTeX

Example prompts

  • “迁移 LaTeX 模板”
  • “把旧项目接入 ChineseResearchLaTeX”
  • “把旧标书/论文/毕业论文/简历套进当前模板”
  • “/transfer-old-latex-to-new”

Requirements

  • Python 3

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 2 files in scripts/, which the agent can run.

    Shell commands in SKILL.md call:

    • python

    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

Transfer Old Latex To New loads about 1.1k tokens when it runs, and up to ~7.2k if it reads all its reference files. Until then it costs about 80 tokens; SKILL.md has 226 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~80
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~7.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). 226 words, ~1,105 tokens.

Download SKILL.mdSave it as .claude/skills/transfer-old-latex-to-new/SKILL.md (or your agent's skills folder). This skill also uses 45 other files; get the full folder from GitHub.
name
transfer-old-latex-to-new
description
当用户明确要求“迁移 LaTeX 模板”“把旧项目接入 ChineseResearchLaTeX”“把旧标书/论文/毕业论文/简历套进当前模板”“把 Word/PDF/Markdown/零散 tex 整理进现有项目”,或直接提到 `transfer-old-latex-to-new` 时使用。旧别名 `migrating-latex-templates` 可兼容理解。该 skill 只负责把正文内容迁移到当前仓库现有模板的内容层;绝不能修改 `packages/` 内公共包源码、也绝不能修改 `projects/` 内模板样式或入口骨架,只能写入目标项目允许承载正文的内容文件。
metadata.author
Bensz Conan

ChineseResearchLaTeX 内容迁移技能

输入原则

不要要求用户先整理成固定输入协议。默认接受并消化任意合理输入,例如:

  • 一个完整旧项目目录
  • 若干 .tex / .bib / .docx / .md / .txt
  • PDF、截图、图片
  • 一份已有模板项目路径,加上一些迁移目标说明
  • 多种输入混合出现

如果材料不完整,不要先追问“标准输入”;先判断目标产品线、合适承载项目、哪些内容能直接落入 extraTex/*.tex 或 references/*.bib,以及哪些诉求已经超出内容迁移边界。只有缺失信息会导致把正文放错位置时,才请求补充。

输出原则

不要把输出理解成“任意重构仓库”。本 skill 的有效输出通常只有:

  • 把正文迁移到目标项目的 extraTex/*.tex
  • 把参考文献迁移到目标项目的 references/*.bib
  • 生成必要的迁移说明、风险提示、未落位清单
  • 在构建成功后给出验证结果

以下动作都超出本 skill 的边界:模板源码改动、样式修复、wrapper / main.tex / template.json / README 的结构重写,以及公共包抽取或包级能力沉淀。默认把用户原始材料视为只读,目标模板视为只读骨架;样式差异只报告,不偷改。

Legacy CLI 的定位

scripts/run.py、scripts/migrate.sh 仍然保留,但只作为经典 old/new 目录迁移的后备入口。即使使用 legacy CLI,也必须继续遵守本文件的硬性边界:旧项目可以读,新项目只能写内容层,不能借 CLI 绕过模板保护。

不适用场景

以下场景不要继续使用本 skill 直接落地:

  • 用户要“做一个新模板”
  • 用户要“把旧样式 1:1 复刻到当前仓库”
  • 用户要改 packages/bensz-*、projects/* 里的模板入口或样式文件
  • 用户要新增模板承载位点、封面结构、目录结构、profile、class、style

这些都应转交模板开发链路。

流程

输入

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

执行步骤

这个 skill 仍然要识别目标产品线,但目的只是选对承载项目,而不是判断“该不该改 packages/”。

  • NSFC:选择合适的 projects/NSFC_*
  • SCI 论文:选择 projects/paper-sci-01/
  • 毕业论文:选择最接近的 projects/thesis-*
  • 简历:选择 projects/cv-01/

然后把旧材料中的正文内容映射到这些现成项目的内容文件里;默认优先选择最接近的现有项目,而不是新建或重组模板结构。

识别目标产品线与承载项目

先回答三个问题:用户最终要落到哪条产品线、当前仓库哪个现有项目最适合作为承载容器、这次任务是“内容迁移”还是已经变成“模板开发”。如果已经变成模板开发,立即转交,不要继续伪装成内容迁移任务。

清点可迁移内容

从输入中提炼可直接复用的正文段落、BibTeX、需要人工确认的缺口,以及会触发模板改动需求的超界诉求。

做内容层映射

只在内容层做映射:

  • 旧正文 → extraTex/*.tex
  • 旧参考文献 → references/*.bib

不要把“映射”理解成:

  • 改章节命令
  • 改模板标题样式
  • 改目录/封面/页眉页脚
  • 改公共包接口
执行迁移

执行时只允许覆盖目标内容文件、新建目标内容文件(若模板已有对应承载位点)、以及写入或补齐 .bib。

如果某项需求必须改模板骨架才能完成,不要继续自动修改;应明确标出受阻位置和原因,并建议改用 make-latex-model。

官方入口验证

迁移完成后,尽量用对应产品线的官方入口验证:

  • NSFC:python packages/bensz-nsfc/scripts/nsfc_project_tool.py build --project-dir <项目路径>
  • SCI:python packages/bensz-paper/scripts/paper_project_tool.py build --project-dir <项目路径>
  • Thesis:python packages/bensz-thesis/scripts/thesis_project_tool.py build --project-dir <项目路径>
  • CV:python packages/bensz-cv/scripts/cv_project_tool.py build --project-dir <项目路径> --variant all

如果构建失败且原因来自模板骨架缺口,不要私自修模板;应如实报告。

优先阅读本文件。需要 legacy CLI 细节时,再查看:

  • scripts/README.md
  • references/quickstart.md
  • references/config_guide.md
  • references/api_reference.md

确认边界时,始终优先遵循:

  • 只迁移内容,不改模板骨架
  • 样式差异只报告,不偷改
输出

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

输出管理

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

这个 skill 只做一件事:把旧材料里的正文、参考文献等内容,迁移到 当前仓库已有模板项目 的内容层。

它不是模板开发 skill,也不是公共包重构 skill。凡是要改模板源码、样式、packages/bensz-*、projects/* 内骨架文件、main.tex、@config.tex、.cls、.sty、profile、style 或构建脚本的任务,都应转给 make-latex-model 或对应产品线的模板开发流程。

校验

完成后执行 Skill 已有的静态检查、脚本验证或人工复核,并记录通过标准。

失败与恢复

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

约束

处理任务时必须始终遵守:

  • 绝不能修改 packages/ 下任何公共包源码、模板实现、profile、style、脚本或共享资源
  • 绝不能修改 projects/ 下任何模板样式、入口骨架、wrapper、main.tex、extraTex/@config.tex、.cls、.sty、Lua/Python 构建脚本
  • 只能把内容放到目标项目已有的内容层位置
  • 如果现有模板没有合适承载位点,不能为了容纳内容去改模板;应明确报告“模板位点不足,需要模板开发 skill 介入”

当前仓库里默认可写的内容层只有 extraTex/**/*.tex(排除 extraTex/@config.tex)和 references/**/*.bib。

除非未来该 skill 的配置白名单明确放开,否则其它路径一律视为只读。

公共硬约束
  • 任务需要落盘时,使用唯一的 ./.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 45 other files (scripts, references) in skills/transfer-old-latex-to-new of huangwb8/ChineseResearchLaTeX.

  • SKILL.md
  • CHANGELOG.md
  • README.md
  • config.yaml
  • references/api_reference.md
  • references/case_study_2025_to_2026.md
  • references/compliance_check.md
  • references/config_guide.md
  • references/faq.md
  • references/implementation_status.md
  • references/migration_patterns.md
  • references/optimization_summary.md
  • references/quickstart.md
  • references/structure_mapping_guide.md
  • references/troubleshooting.md
  • references/version_differences_2025_2026.md
  • scripts/README.md
  • scripts/core/README.md
  • … and 28 more

Open the folder on GitHubat commit b8b4142

Compare with similar skills

Transfer Old Latex To New 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.

Transfer Old Latex To New compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Transfer Old Latex To New this skillhuangwb8/ChineseResearchLaTeX2.9k—~1.1kAutomated safety check: PassMIT
Mathmodel SkillhandsomeZR-netizen/mathmodel-skill292—~2.5kAutomated safety check: PassMIT
Literature Surveyai4s-research/ai4s-skills2372 repos~2kAutomated safety check: PassMIT
My Mathmodel Agentchengyike20110519-create/MathModelRun128—~2.3kAutomated safety check: PassMIT
MineruNebutra/MinerU-Skill123—~504Automated safety check: PassMIT
Cumcm Live Workflowhaoxilin/cumcm-live-workflow-skill181—~3.6kAutomated safety check: PassMIT

Similar skills

  • Mathmodel Skill

    handsomeZR-netizen/mathmodel-skill

    CUMCM 国赛、MCM/ICM 美赛与电工杯数学建模竞赛的端到端协作工作流。Use when a user explicitly works on one of these modeling contests or asks to run/review a modeling-competition paper from problem selection through modeling…

    292 GitHub stars~2.5k tokensUpdated 15 days ago
    Documents & OfficeAuto-check passed
  • Literature Survey

    ai4s-research/ai4s-skills

    A skill your agent uses when the user wants a comprehensive literature survey on a specific research topic.

    237 GitHub starsUsed in 2 repos~2k tokens
    Documents & OfficeAuto-check passed
  • My Mathmodel Agent

    chengyike20110519-create/MathModelRun

    Evidence-driven mathematical modeling contest workflow for CUMCM, MCM/ICM, HiMCM, Huawei Cup, and similar events.

    128 GitHub stars~2.3k tokensUpdated 5 days ago
    Documents & OfficeAuto-check passed
  • Mineru

    Nebutra/MinerU-Skill

    An AI-Native skill for parsing PDF / Office / image files into Markdown with MinerU — a fast, zero-config document parser for AI agents.

    123 GitHub stars~504 tokensUpdated 17 days ago
    Documents & OfficeAuto-check passed
  • Cumcm Live Workflow

    haoxilin/cumcm-live-workflow-skill

    CUMCM(全国大学生数学建模竞赛)真题全流程实战手册。用于完整打一场数模竞赛(环境准备→读题自查→建模出图→LaTeX论文→交叉审阅→填表→AI自查表终审→清理打包),内含题意理解红线、数值严谨性守则、去AIGC特征清单、写作规范、LaTeX编号与图表规范、2026…

    181 GitHub stars~3.6k tokensUpdated 1 mo ago
    Documents & OfficeAuto-check passed
  • My Mathmodel Agent

    chengyike20110519-create/MathModelRun

    Evidence-driven mathematical modeling contest workflow for Claude Code: decompose a problem, select baseline/primary/fallback model routes, validate PoCs, run reproducible Python/AMPL experiments…

    128 GitHub stars~923 tokensUpdated 5 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 7 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 7 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 Transfer Old Latex To New

What does Transfer Old Latex To New do?

当用户明确要求“迁移 LaTeX 模板”“把旧项目接入 ChineseResearchLaTeX”“把旧标书/论文/毕业论文/简历套进当前模板”“把 Word/PDF/Markdown/零散 tex 整理进现有项目”,或直接提到 transfer-old-latex-to-new 时使用。旧别名 migrating-latex-templates 可兼容理解。该 skill…. Transfer Old Latex To New is an agent skill from huangwb8/ChineseResearchLaTeX.

When should I use Transfer Old Latex To New?

Transfer Old Latex To New fits situations like: tasks that involve LaTeX.

How do I install Transfer Old Latex To New in Claude Code?

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

How do I install Transfer Old Latex To New in Codex?

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

Can I use Transfer Old Latex To New 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 transfer-old-latex-to-new -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/transfer-old-latex-to-new, .gemini/skills/transfer-old-latex-to-new, .github/skills/transfer-old-latex-to-new and .opencode/skills/transfer-old-latex-to-new in your project.

What does Transfer Old Latex To New need to run?

Going by SKILL.md and its folder, Transfer Old Latex To New needs the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Transfer Old Latex To New 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 Transfer Old Latex To New 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 Transfer Old Latex To New use?

Transfer Old Latex To New 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 Transfer Old Latex To New use?

About 1.1k tokens (SKILL.md is roughly 4.4k 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 6.1k tokens, read only when the agent opens those files.

What are the alternatives to Transfer Old Latex To New?

Skills that share tags, products or a category with Transfer Old Latex To New: Mathmodel Skill (handsomeZR-netizen/mathmodel-skill, 292 stars), Literature Survey (ai4s-research/ai4s-skills, 237 stars), My Mathmodel Agent (chengyike20110519-create/MathModelRun, 128 stars) and Mineru (Nebutra/MinerU-Skill, 123 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Transfer Old Latex To New?

huangwb8 (a GitHub user) maintains it in huangwb8/ChineseResearchLaTeX, which has 2,880 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.