transfer-old-latex-to-new

transfer-old-latex-to-new is a skill for Claude Code, Codex from huangwb8/ChineseResearchLaTeX. It costs 161 tokens per session (2,304 once invoked), scanned A, original, MIT.

A content-migration tool for moving text, references, and other written material into an existing ChineseResearchLaTeX document template. It works within the template’s allowed content files and does not change the template’s shared code or layout.

In plain words
What is it for?
It helps place existing document text and bibliography entries into suitable projects for research grants, scientific papers, theses, and résumés. If the template has no suitable place for the content, it reports that template development is needed.
Why use it?
It avoids manually reorganising an old paper, grant proposal, thesis, résumé, or mixed Word, PDF, Markdown, and LaTeX files. It also prevents content changes from accidentally altering the template itself.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps place existing document text and bibliography entries into suitable projects for research grants, scientific papers, theses, and résumés. If the template has no suitable place for the content, it reports that template development is needed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/huangwb8/chineseresearchlatex/transfer-old-latex-to-new
About the project

ChineseResearchLaTeX is a collection of LaTeX templates and an AI-assisted workflow for preparing Chinese research documents such as grant proposals, papers, theses, and academic CVs. Researchers use it to plan, format, review, compile, and revise these documents with human oversight. The catalogue skills and instructions support its agent-based research-writing workflow.

huangwb8/ChineseResearchLaTeX · 2,726 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add huangwb8/ChineseResearchLaTeX --skill transfer-old-latex-to-new
Clone the repo
git clone --depth 1 https://github.com/huangwb8/ChineseResearchLaTeX

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for transfer-old-latex-to-new

README.md
[![agentmods](https://agentmods.dev/badge/skills/huangwb8/chineseresearchlatex/transfer-old-latex-to-new/github.svg)](https://agentmods.dev/skills/huangwb8/chineseresearchlatex/transfer-old-latex-to-new)
Your own site
<a href="https://agentmods.dev/skills/huangwb8/chineseresearchlatex/transfer-old-latex-to-new"><img src="https://agentmods.dev/badge/skills/huangwb8/chineseresearchlatex/transfer-old-latex-to-new/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for transfer-old-latex-to-new

Your own site · 80×15
<a href="https://agentmods.dev/skills/huangwb8/chineseresearchlatex/transfer-old-latex-to-new"><img src="https://agentmods.dev/badge/skills/huangwb8/chineseresearchlatex/transfer-old-latex-to-new.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 161 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,304 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00161 $0.02304
Opus 5 $0.00081 $0.01152
Sonnet 5 $0.00032 $0.00461
Haiku 4.5 $0.00016 $0.00230

Measured 4d ago against content hash 47e7fb28be34, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

transfer-old-latex-to-new scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

The scan reads SKILL.md. This mod also ships 28 executable files (scripts/core/__init__.py, scripts/core/ai_integration.py, scripts/core/cache_manager.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/transfer-old-latex-to-new/SKILL.md · 162 lines

How it starts

The opening of the file, as written. The whole thing — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ChineseResearchLaTeX 内容迁移技能

输入原则

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

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

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

输出原则

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

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

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

Legacy CLI 的定位

scripts/run.pyscripts/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

Read the full file on GitHub · 162 lines

Files

What ships with it

45 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed · +1 lines 47e7fb28be34
  2. 13d ago First seen · 161 lines · 161 tokens per session scan A 554c963a1a7a

Subscribe to this mod's changes

transfer-old-latex-to-new is a skill published in the GitHub repository huangwb8/ChineseResearchLaTeX (2,726 stars, last pushed yesterday), licensed MIT. It adds 161 tokens to every session and 2,304 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

nature-data

Prepare, audit, or revise Nature-ready Data Availability statements, data repository plans, dataset citations, and FAIR metadata checklists for manuscripts. Use when the user asks about Nature data availability, research data sharing, repository selection, accession numbers, restricted or sensitive data, source data…

Galaxy-Dawn/claude-scholar · 90 tokens

publication-chart-skill

This skill should be used when the user asks for a publication-quality scientific figure or table, wants help choosing the right chart for results, needs a paper-ready pubfig or pubtab workflow, wants a figure + companion table for a results section, wants an Excel sheet turned into publication-ready LaTeX, or wants…

Galaxy-Dawn/claude-scholar · 77 tokens

obsidian-source-ingestion

Use this skill to ingest external materials into the current project-scoped Obsidian KB as source notes under Sources/Papers, Sources/Web, Sources/Docs, Sources/Data, Sources/Interviews, or Sources/Notes.

Galaxy-Dawn/claude-scholar · 51 tokens

visual-html-renderer

A shared workflow for turning requested content into a final HTML document that can be checked and previewed in a browser. It chooses a document structure, renders it, validates the result, and returns a temporary preview link.

u-ichi/reviewable-html-workbench · 268 tokens

plain-report

Use this tool only when the user explicitly asks to create a plain report.

text2future/flowix · 0 tokens

latex-conference-template-organizer

Organize messy conference LaTeX template .zip files into clean Overleaf-ready structure. Use when the user asks to "organize LaTeX template", "clean up .zip template", or "prepare Overleaf submission template".

Galaxy-Dawn/claude-scholar · 54 tokens