MCPInstall

paper-spine-latex

Handles LaTeX project assembly, figure placement, citations, labels, and compile-safe cleanup. (internal /paperspine step)

Installs
361
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/wubing2023/paperspine --skill paper-spine-latex
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads paper-spine-latex automatically when relevant.

  3. 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.

PaperSpine LaTeX

Use this skill for LaTeX assembly, template integration, figure placement, citations, labels, and compile-safety checks. Do not change manuscript logic unless rewrite/build outputs require it.

Required Inputs

  • revised manuscript or built manuscript
  • target template if any
  • figures, tables, bibliography, and source files
  • paper_rewriting_output/figure_asset_map.md when building from materials

Required Outputs

  • updated LaTeX project; for from-materials builds, use paper_rewriting_output/final_paper/main.tex
  • compiled PDF when a TeX engine is available; for from-materials builds, use paper_rewriting_output/final_paper/paper.pdf
  • paper_rewriting_output/latex_report.md
  • paper_rewriting_output/final_artifact_manifest.md when producing final deliverables
  • optional paper_rewriting_output/final_paper/paper.docx plus paper_rewriting_output/word_report.md

Rules

  • The project path may contain spaces or non-ASCII characters (e.g. exp_lab_en - 副本). Quote every path passed to pandoc/copy commands and avoid unquoted shell globs; they break silently on such directories. On Windows prefer PowerShell for file operations.
  • Keep content work separate from LaTeX scaffolding.
  • Preserve citation keys and labels unless there is a verified reason to rename.
  • Copy approved images into figures/ and use stable labels.
  • Run scripts/latex_guard.py when available.
  • Record unresolved compile or asset issues in latex_report.md.
  • Do not treat Markdown as the final manuscript when the workflow is build_from_materials.
  • For Chinese output, prefer XeLaTeX and a CJK-capable template. For English output, follow the target template or use a conservative article template.
  • If no TeX engine is available, keep the .tex and record that compilation was skipped in latex_report.md.
  • If compilation fails despite an available engine, keep the .tex, write the first fatal error to latex_report.md, and do not claim the artifact check passes.
  • If generating Word output, use pandoc from the final_paper/ directory. When the manuscript uses BibTeX citations, resolve them with citeproc so \cite commands render as formatted references instead of leaking raw LaTeX:
    cd final_paper
    pandoc main.tex -o paper.docx --from latex --to docx \
      --resource-path=. --extract-media=./media \
      --number-sections --citeproc --bibliography=references.bib
    
    • --citeproc --bibliography=references.bib renders \cite{...} and the reference list; omit only when the manuscript has no citations
    • --number-sections keeps headings numbered like the LaTeX source
    • --resource-path=. resolves \includegraphics{figures/...} paths
    • --extract-media=./media embeds images into the docx
    • For house styles (fonts, heading styles, margins), add --reference-doc=reference.docx built from the target template
    • \ref/\autoref cross-references need the pandoc-crossref filter (--filter pandoc-crossref); without it they may render as [?]
    • Without these flags, pandoc silently drops images or citations, or produces a blank docx
    • Run from final_paper/ so relative paths in .tex resolve correctly
    • Do NOT use intermediate plain-text steps that strip encoding
  • Run scripts/word_guard.py final_paper/paper.docx --markdown --output paper_rewriting_output/word_report.md and fix failures before presenting the Word file as usable. If word_guard reports 0 paragraphs, check that images are in supported formats (PNG/JPG) and the figures/ directory exists.
  • To keep Word output faithful, prevent these common pandoc errors:
    • Flatten \input/\include first (e.g. latexpand main.tex > flat.tex), then convert the flattened file; pandoc does not pull sub-files in reliably.
    • Expand or remove custom \newcommand/\def macros; pandoc drops macros it cannot resolve, silently losing their content.
    • Keep tables simple (tabular/booktabs); tabularx, multirow, and nested tables often misalign in docx, so open and verify each table.
    • Citeproc renders author-date by default, so a numeric LaTeX style (plain, unsrt, ieeetr) renders differently in Word. To keep numbered [1] citations, pass a numeric CSL, e.g. --csl=ieee.csl or --csl=vancouver.csl.
    • For Chinese, build --reference-doc=reference.docx with a CJK font (e.g. SimSun or Noto Serif CJK) or characters render as boxes.
    • After conversion, open the docx and confirm headings, equations, figures, tables, and references all rendered.

Read references/latex-source-control.md before structural LaTeX edits.

FAQ

What does the paper-spine-latex skill do?

Handles LaTeX project assembly, figure placement, citations, labels, and compile-safe cleanup. (internal /paperspine step)

How do I install paper-spine-latex?

Run npx skills add https://github.com/wubing2023/paperspine --skill paper-spine-latex 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/paper-spine-latex/ (personal) or .claude/skills/paper-spine-latex/ (project).

Which AI agents can use paper-spine-latex?

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 paper-spine-latex 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 paper-spine-latex?

It is published by wubing2023 in wubing2023/paperspine. It has 361 recorded installs.

More from wubing2023/paperspine

View all →

paper-spine

wubing2023/paperspine

Research, write, review and deliver evidence-bound papers in one task, with user choices, real files, editable outputs and same-task revision.

Education & Science1.2K installs

paper-spine-audit

wubing2023/paperspine

Open the skill to read its SKILL.md instructions.

Security355 installs

paper-spine-rewrite

wubing2023/paperspine

Rewrites an existing manuscript from confirmed motivation, research, paragraph-level rationale, and evidence. (internal /paperspine step)

paper-spine-build

wubing2023/paperspine

Open the skill to read its SKILL.md instructions.

paper-spine-research

wubing2023/paperspine

Researches target requirements, downloads reference materials, learns strong examples, and prepares motivation options. (internal /paperspine step)

paper-spine-humanize

wubing2023/paperspine

Open the skill to read its SKILL.md instructions.

Popular education & science skills

View category →

teach

mattpocock/skills

Teach the user a new skill or concept, within this workspace.

Education & Science874K installs

scaffold-exercises

mattpocock/skills

Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.

Education & Science488.2K installs

paper-context-resolver

lllllllama/rigorpilot-skills

Rigor Paper Context helper for README-first deep learning repo reproduction. Use only when the README and repository files leave a narrow reproduction-critical gap and the task is to resolve a specific paper detail such as dataset split, preprocessing, evaluation protocol, checkpoint mapping, or runtime assumption from primary paper sources while recording conflicts. Do not use for general paper summary, repo scanning, environment setup, command execution, title-only paper lookup, or replacing README guidance by default.

Education & Science478.3K installs

caveman-learn

juliusbrussee/caveman

Act on a Caveman learn report - review the ranked token sinks, apply cost-lowering fixes with per-edit consent, and report what those fixes returned. Use when asked to lower an agent's token cost, what caveman has saved, to trim a heavy CLAUDE.md, or to offload re-pasted context into cavemem.

Education & Science107.9K installs

gsap-plugins

greensock/gsap-skills

Official GSAP skill for GSAP plugins — registration, ScrollToPlugin, ScrollSmoother, Flip, Draggable, Inertia, Observer, SplitText, ScrambleText, SVG and physics plugins, CustomEase, EasePack, CustomWiggle, CustomBounce, GSDevTools. Use when the user asks about a GSAP plugin, scroll-to, flip animations, draggable, SVG drawing, or plugin registration.

Education & Science67.9K installs

teach-impeccable

pbakaus/impeccable

DEPRECATED: Use /impeccable teach instead. This command has been folded into the impeccable skill.