ワンクリックで
write-paper
Write LaTeX paper sections based on outline.md using citations from main.bib
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Write LaTeX paper sections based on outline.md using citations from main.bib
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use when the user wants to convert a project's `paper/` directory into a git submodule pointing at a separate paper repo (typically for Overleaf linking). Handles removing any existing tracked `paper/` content, adding the submodule, writing a standardized README inside the submodule, and updating the parent repo's README.
Clean up PDF filenames by removing spaces, em dashes, and special characters
Create BibTeX entries from PDF papers and add to main.bib
Create a new Python script following project best practices. $ARGUMENTS
Create markdown summaries for PDF papers (creates BibTeX first if needed)
Clean README.md files in the entire repository or specified directories. $ARGUMENTS
| name | write-paper |
| description | Write LaTeX paper sections based on outline.md using citations from main.bib |
Iteratively transform outline into LaTeX. Each section is drafted, reviewed, and saved before proceeding.
$ARGUMENTS
@paper/main.bib @paper/outline.md @.claude/reference/venue-info.md @.claude/reference/writing-style.md @.claude/reference/latex-rules.md @.claude/reference/latex-template.md
outline.md: If missing, error "No outline found. Run /develop-outline first." and stop.
main.bib: If missing, warn "No bibliography. Using (CITATION NEEDED) markers." If exists, load keys and report count.
Extract from paper/outline.md:
## lines)**Core claim:**)AuthorYearKey - ...)If $ARGUMENTS empty or "all": Process all sections.
If section name: Fuzzy match against titles (case-insensitive, partial matches, keywords). If no match, list available sections and stop.
If exists: Read and preserve preamble, title, authors, abstract, back matter. Identify insertion points.
If missing: Create from @.claude/reference/latex-template.md. Inform user.
Classify the current section:
literature sections:AuthorYearKey entries) from the outline sectionlit_review/paper_summaries/**/{Key}.md; if found, load for context; if not, use BibTeX metadata onlymain.tex (loaded in Step 4) contains previously written sections — reference this already-written content when discussing results; do NOT load artifact filesartifact sections:[artifact: path - description] entries from the outline sectionAskUserQuestion:
"The [Section Name] section has no artifact pointers in the outline. To write this section accurately, I need your actual results or methods details. Please:
- Provide file paths to relevant reports, scripts, or data files (e.g.,
results/reports/stats.txt,code/analysis/model.py)- Paste relevant content directly into the chat
- Type 'write anyway' to proceed with outline guidance only (accuracy not guaranteed)"
% NOTE: written without artifact context — verify accuracy at the section startother sections:For each section:
Write section header with label:
\section*{Section Title}
\label{sec:concise_name}
Generate prose following @.claude/reference/venue-info.md (structure, tone, and PNAS section guidance), @.claude/reference/writing-style.md (sentence-level CSS style), and @.claude/reference/latex-rules.md (citation mechanics and LaTeX formatting) for:
Present draft with citations list. Ask: "Does this look good? Any changes before I save?"
Revise based on feedback until approved.
Insert/update in paper/main.tex:
\section*{Title} and next section% KEEP: marked contentConfirm save, proceed to next section.
Sections written: {count} - {list}
Citations used: {count} - {keys with counts}
Warnings: (CITATION NEEDED) count, sections without citations
Output: paper/main.tex
Next: compile command, review markers, /write-paper [section] to revise
/write-paper [section].cd paper && pdflatex main.tex && bibtex main && pdflatex main.tex && pdflatex main.tex