用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/flonat/claude-research --skill latex-scaffold命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Use when you need to audit a research project against the init-project-research template.
Use when you need to validate a paper's bibliography — cross-references \cite{} keys against .bib files or embedded \bibitem entries, finds missing/unused/typo'd keys, and checks every key against the Paperpile library via the local resolver. Deep verification mode spawns parallel agents for DOI/metadata validation at scale. Fix mode rekeys drifted keys to canonical and stages missing entries for Paperpile.
Use when you need to bootstrap a full research project with directory scaffold and Overleaf symlink.
基于 SOC 职业分类
正在显示 SKILL.md
| name | latex-scaffold |
| description | Use when you need to convert a Markdown draft into a buildable LaTeX project. |
| argument-hint | [path/to/draft.md] |
| allowed-tools | Read, Write, Edit, Bash(latexmk*), Bash(mkdir*), Bash(ls*), Glob, Grep |
Convert an approved Markdown draft into a minimal, compilable LaTeX project. This is a deterministic format conversion — prose quality should already be addressed in the source draft.
.md) — the draft to convert.bib file (optional) — if the draft contains citations.tex file ready to compile with /latex.latexmkrc if one doesn't already exist (see /latex for config details — must include $out_dir = 'out' and the END {} block to copy the PDF back)Read the Markdown file and inventory:
\section / \subsection depth)[@Key] or [@Key1; @Key2] patterns)$...$ inline, $$...$$ display))Apply these conversion rules:
| Markdown | LaTeX |
|---|---|
# Title (first H1) | \title{...} |
## Section | \section{...} |
### Subsection | \subsection{...} |
#### Subsubsection | \subsubsection{...} |
## Abstract | \begin{abstract}...\end{abstract} |
Headings starting with Appendix | \appendix once, then \section{...} |
**bold** | \textbf{...} |
*italic* | \emph{...} |
`code` | \texttt{...} |
[@Key] | \citep{Key} |
[@Key1; @Key2] | \citep{Key1,Key2} |
@Key (inline) | \citet{Key} |
$...$ / $$...$$ | Pass through unchanged |
- item | \begin{itemize}\item ...\end{itemize} |
1. item | \begin{enumerate}\item ...\end{enumerate} |
> quote | \begin{quote}...\end{quote} |
 | \begin{figure}[htbp]\includegraphics{path}\caption{caption}\end{figure} |
| Pipe tables | \begin{table}[htbp]\begin{tabular}{...}...\end{tabular}\end{table} |
| Fenced code blocks | \begin{verbatim}...\end{verbatim} |
--- (horizontal rule) |
\documentclass[a4paper,11pt]{article}
\usepackage[a4paper,margin=1in]{geometry}
\usepackage{hyperref}
\hypersetup{colorlinks=true,linkcolor=blue,citecolor=blue,urlcolor=blue}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{graphicx}
\usepackage{amsmath,amssymb}
\usepackage{enumitem}
\usepackage[backend=biber,style=authoryear,natbib=true]{biblatex}
\addbibresource{references.bib}
\title{...}
\author{...}
\date{\today}
\begin{document}
\maketitle
% content here
\printbibliography
\end{document}
Adjust the preamble based on what the draft actually uses (e.g., skip graphicx if no figures). The natbib=true option provides \citet/\citep compatibility. If the project already uses natbib (e.g., with a journal .bst file), keep natbib — but for new scaffolds, biblatex is the default.
After conversion, scan the .tex file for any remaining Markdown syntax:
## heading markers** bold markers[@ citation markers| table syntax![ image markersThese indicate incomplete conversion — fix them.
.bib file exists in the project, point \addbibresource{} to itreferences.bib, use that.bib exists but citations are present, create placeholder comments: % TODO: create .bib with keys: Key1, Key2, ...\printbibliography is at the end of the document (not \bibliography{})Run /latex to compile. Verify:
.tex output.1.2 Methods, let LaTeX handle the numbering (just use \subsection{Methods})./latex for compilation — never bare pdflatex or latexmk without out/ directory.**Table 1. Description** immediately before a pipe table should become \caption{Description} inside a table float.| Skill | When to use alongside |
|---|---|
/latex | Compile the scaffolded .tex file |
/latex | For manual compilation config and .latexmkrc setup |
/bib-validate | After scaffolding to verify all citation keys resolve |
/proofread | After scaffolding for grammar and consistency check |
/latex-template | After scaffolding to verify preamble aligns with the working paper template |
\cite{key}, verify with paperpile get-item key and paperpile export-bib key.refpile semantic search → Paperpile verify.\CiteTodo{slug}{title/author/year/DOI hint} — never a guessed key..bib; only the orchestrator regenerates it from Paperpile exports..paperpile-import/ for manual Paperpile import; don't cite until Paperpile mints the key.scripts/bib/citation_lint.py before commit; zero placeholders, zero non-Paperpile keys, zero hand-authored metadata.See rules/paperpile-citations.md for the full workflow.
\bigskip\hrule\bigskip or omit |