mcpbeat Sign in

Latex Scaffold Skill for Codex

| Scaffold a LaTeX project (`latex/main.tex`, optional bibliography wiring, structure) from an existing Markdown draft.

6k tokens
context cost
the whole folder, loaded on every use
3
files
ships runnable scripts
0
copies elsewhere
how many repositories repackaged it
496
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/WILLOSCAR/research-units-pipeline-skills --skill latex-scaffold

What comes with it

20 141 bytes besides the instruction
assets/layout_profiles.json
scripts/run.py

The instruction itself

14 sections, as written by the author

LaTeX Scaffold

Convert the approved Markdown draft into a minimal, buildable LaTeX project.

This is a deterministic conversion step; prose quality should already be addressed in output/DRAFT.md.

Inputs

  • output/DRAFT.md or output/TUTORIAL.md
  • optional: citations/ref.bib

Outputs

  • latex/main.tex (and any required LaTeX support files)

Layout policy

The machine-readable layout contract lives in assets/layout_profiles.json.

The default profile uses a 1in A4 margin, includes a table of contents, and may

split large tables. The bounded course_paper profile uses a documented 0.9in

A4 margin, omits the table of contents, keeps a compact table whole when

possible, and sets only the bibliography in \small. Body text remains 11pt.

This profile is intended to respect an explicit page range, not to manufacture

substantive completeness by shrinking the paper.

Workflow

  • Create latex/ directory if missing.
  • Create latex/main.tex with sections matching the outline.
  • Wire bibliography to citations/ref.bib when that file exists.

Quality checklist

  • [ ] latex/main.tex exists.
  • [ ] If citations/ref.bib exists, latex/main.tex references it.

Script

Quick Start

  • uv run python .codex/skills/latex-scaffold/scripts/run.py --help
  • uv run python .codex/skills/latex-scaffold/scripts/run.py --workspace <workspace>

All Options

  • See --help (inputs/outputs are taken from the unit runner when used via pipeline)

Examples

  • Build latex/main.tex from output/DRAFT.md or output/TUTORIAL.md:
  • uv run python .codex/skills/latex-scaffold/scripts/run.py --workspace <workspace>

Notes

  • The generated latex/main.tex includes a table of contents (tocdepth=2) for readability.
  • The course_paper profile omits that table of contents according to

assets/layout_profiles.json; other profiles include it by default.

  • Language default: the scaffold uses article (English-looking front matter). If the draft contains CJK characters, it switches to ctexart so the PDF renders correctly.
  • Conversion rules (high level):
  • Headings ##/###/####\section/\subsection/\subsubsection (strips leading numeric prefixes like 1.2).
  • Headings starting with Appendix / 附录 trigger \appendix once, then render as appendix sections.
  • Bold caption lines like Table 1. ... / Appendix Table A1. ... immediately before a Markdown table become a LaTeX table float with \caption{...} and a stable \label{tab:...}.
  • ## Abstractabstract environment.
  • [@Key] or [@Key1; @Key2]\citep{Key} / \citep{Key1,Key2}.
  • Inline markdown bold / *italic* / code \textbf{} / \emph{} / \texttt{}.

Troubleshooting

Issue: the generated latex/main.tex still contains Markdown markers

Fix:

  • Re-run latex-scaffold and ensure the input output/DRAFT.md is clean (no ##, no **, no [@...] syntax that isn""t handled).

Issue: citations are missing in LaTeX

Fix:

  • Ensure citations/ref.bib exists and the scaffold points bibliography to it; then compile with latex-compile-qa.

Other skills for the same job

different authors, same section of the catalogue
MCP Builder
by anthropics
vendor ×13

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

30k tokens scripts
Changelog Generator
by frostant
×9

Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.

774 tokens
Finishing A Development Branch
by ZhanlinCui
×7

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup

1k tokens
MCP Builder
by JayZeeDesign
×7

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

37k tokens scripts
Vercel React Native Skills
by vercel-labs
vendor ×6

React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.

39k tokens
Vercel React Best Practices
by ratacat
×5

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

34k tokens
Next Best Practices
by vercel-labs
vendor ×4

Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling

20k tokens
Using Git Worktrees
by ZhanlinCui
×4

Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification

1k tokens

How to use it

Copy the folder

Take willoscar/latex-scaffold from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.