migrating-latex-templates

Migrate NSFC LaTeX proposals between template versions with validation.

2.6k|247|Updated Feb 12, 2024
One-click install
npx skills add https://github.com/huangwb8/ChineseResearchLaTeX --skill migrating-latex-templates
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: migrating-latex-templates
Source: https://github.com/huangwb8/ChineseResearchLaTeX/tree/main/skills/transfer_old_latex_to_new
Command: npx skills add https://github.com/huangwb8/ChineseResearchLaTeX --skill migrating-latex-templates

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires yaml, and includes scripts (resource) and references (resource) components.

What problem does it solve?

The NSFC LaTeX migration tool helps researchers upgrade old NSFC proposal templates to new ones without losing structure, content, or references. It analyzes the source project, infers mapping between old and new sections, and coordinates safe migration with backup and validation.

Core Features & Use Cases

  • AI-assisted mapping with deterministic fallback and user override
  • Automated migration planning, apply with runs isolation, and compile validation
  • Resource linking/copying and reference integrity checks
  • Use Case: A PI has NSFC 2025 template project and needs to migrate to 2026 template while preserving content and improving structure.

Quick Start

Use the migrating-latex-templates skill to analyze an NSFC old project and a new template, then run the included scripts to generate a plan and perform migration in a sandboxed runs directory.

Frequently Asked Questions about migrating-latex-templates

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate an NSFC LaTeX proposal to a new template version?

To migrate an NSFC LaTeX proposal, this skill analyzes the old project structure, infers section mappings to the new template, generates a migration plan, and applies changes in an isolated runs workspace with compile validation.

What is template structure mapping for LaTeX academic writing?

Structure mapping for LaTeX academic writing is the process of analyzing an old project's sections and inferring their corresponding placement in a newer template version, ensuring content and references are preserved during migration.

Do I need Python and a TeX distribution to automate LaTeX template migration?

Yes, you need Python 3.8 or higher and a TeX distribution installed to automate LaTeX template migration, as the skill runs scripts to generate plans, apply changes, and validate compilation results.

Can I override the AI-assisted mapping during NSFC template migration?

Yes, you can override AI-assisted mapping during NSFC template migration, as the skill supports user overrides and includes a deterministic fallback mechanism to ensure safe structure mapping if AI inference is unavailable.

How are references and resources handled when upgrading NSFC LaTeX templates?

When upgrading NSFC LaTeX templates, the migration tool performs resource linking and copying, while conducting reference integrity checks to ensure no content or citations are lost during the structure transition.

What happens if LaTeX template migration fails or produces errors?

If errors occur, the template migration is applied within a sandboxed runs directory to isolate failures, and the system performs compile validation while maintaining backups of the original project for safe recovery.