paper-draft
Skill1.7k starsChanged 2 months agoMITView on GitHub
Draft a LaTeX paper from PAPER_PLAN — write each section from wiki sources + generate figures/tables + BibTeX verification + de-AI polish
2 other projects use a version of this, 1 of them edited.
Trending
Quiet since June.thin dataabout the whole repository
Most recently taken up by
- cabbage2000-lab/paper-tutor-skillstheir own version, first seen Jul 28, 2026
- Lambenthan/empiricalwikiedited, first seen Jun 12, 2026
Who's talking about skyllwt/AutoSci
- AI4Scientist/awesome-autoresearch“Update OmegaWiki → AutoSci (repository renamed)”GitHub · May 28, 2026 · 1 reactions
- manhhailua/lorekeep“feat: autonomous knowledge agent (Karpathy LLM Wiki operations)”GitHub · Jun 20, 2026
- webfuse-com/awesome-autoresearch“Update OmegaWiki → AutoSci (repository renamed)”GitHub · May 28, 2026
- jqueryscript/awesome-claude-code“Add AutoSci to Agent Skills”GitHub · May 7, 2026
- ai4s-research/awesome-ai-for-science“Add AutoSci to Autonomous Research Systems”GitHub · May 7, 2026
The biggest 5 of 5 mentions linking to the repository that our crawl found. Each line is their own headline.
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- Lambenthan/empiricalwiki★ 9131% same
Wrote their own version · 1
- cabbage2000-lab/paper-tutor-skills★ 36same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository30 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- runtime/CLAUDE.mdCLAUDE.md
- askSkill
- checkSkill
- daily-arxivSkill
- discoverSkill
- editSkill
- exp-designSkill
- exp-evalSkill
- exp-pilot-evalSkill
- exp-pilot-runSkill
- exp-runSkill
- exp-statusSkill
- hiera-experimentSkill
- ideateSkill
- ingestSkill
- initSkill
- noveltySkill
- paper-compileSkill
- paper-planSkill
- posterSkill
- prefillSkill
- rebuttalSkill
- refineSkill
- researchSkill
- resetSkill
- reviewSkill
- setupSkill
- surveySkill
- visualizeSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. About 0 are common, 16 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈16
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 65
Read PAPER_PLAN.md; extract venue, title, section list
- Very specific: line 66
If paper/ directory already exists:
- Distinctive: line 80
If no template: use generic article class.
- Distinctive: line 115
Use TikZ or pgfplots to generate native LaTeX figures
- Distinctive: line 116
If too complex: generate a matplotlib Python script → output PDF
- Distinctive: line 133
Use booktabs style (toprule, midrule, bottomrule)
- Distinctive: line 149
Read the relevant portions of all related wiki pages:
- Distinctive: line 159
Write according to the paragraph plan for that section
- Very specific: line 162
Use symbols defined in math_commands.tex
- Distinctive: line 172
Remove filler sentences (sentences that add no information)
- Distinctive: line 173
Ensure active voice predominates
- Very specific: line 178
If --review is enabled, for each section:
- Distinctive: line 220
After all sections are complete:
- Very specific: line 250
all files referenced by \input{sections/X} exist
- Distinctive: line 284
Each section draws from wiki: do not generate content from nothing.
- Distinctive: line 288
Anonymous submission: do not write author names, institutions, or acknowledgements (per venue anonymity requirements)
- Distinctive: line 290
Notation consistency: all sections use unified symbols from math_commands.tex
- Distinctive: line 291
Back up existing paper/ before overwriting: do not overwrite directly.
- Distinctive: line 293
Tables use booktabs: no vertical lines or full grid
- Distinctive: line 301
All BibTeX fetches failed: use [UNCONFIRMED] placeholders.
- Distinctive: line 303
Venue template not found: use generic article class.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/paper-draft
Draft a complete LaTeX paper from the PAPER_PLAN.md generated by /paper-plan. Write section by section: each section draws material from wiki ideas/methods/experiments/papers/concepts, generates LaTeX + figures + tables. BibTeX is fetched from DBLP/CrossRef (following citation-verification). Apply de-AI polish after completion (following academic-writing). Optional per-section Review LLM review. Output a compilable paper/ directory.
Inputs
plan: path to PAPER_PLAN.md (e.g.wiki/outputs/paper-plan-sparse-lora-2026-04-08.md)--review(optional): enable per-section Review LLM review--sections(optional): write only specified sections (e.g.--sections 3,4writes only Method + Experiments); used for incremental writing
Outputs
paper/directory (under the wiki project root):paper/main.tex— master file (includes each section)paper/sections/introduction.texpaper/sections/related_work.texpaper/sections/method.texpaper/sections/experiments.texpaper/sections/conclusion.texpaper/sections/appendix.tex(if applicable)paper/figures/— generated figures (PDF/PNG)paper/tables/— standalone table files (optional)paper/math_commands.tex— shared math symbol definitionspaper/references.bib— verified BibTeX entries
wiki/log.md— appended log entry
Wiki Interaction
Reads
wiki/outputs/paper-plan-*.md— PAPER_PLAN (section outline, evidence map, figure plan, citation plan)wiki/ideas/*.md— Hypothesis, Novelty argument, Approach sketch, Motivation, Risks, Lessons learnedwiki/methods/*.md— Mechanism, Procedure, Assumptions, Tradeoff profile (supports Method writing)wiki/experiments/*.md— Results, Analysis, key_result, metrics datawiki/papers/*.md— Method, Results, Related (as citation content and baseline reference)wiki/concepts/*.md— Definition, Intuition, Variants, Comparison (supports Method writing)wiki/topics/*.md— Overview, Timeline, SOTA tracker, Open problems (supports Introduction context)wiki/people/*.md— author names and institutions (citation formatting)wiki/graph/edges.jsonl— relationship graph (build argumentative logic chain)wiki/graph/open_questions.md— known limitations (write Limitations and Future Work).claude/skills/shared-references/academic-writing.md— writing standards.claude/skills/shared-references/citation-verification.md— citation discipline
Writes
paper/directory (all files)wiki/log.md— appended operation log
Graph edges created
- None (paper-plan already created derived_from edges)
Workflow
Precondition: confirm the working directory is the wiki project root (the directory containing wiki/, raw/, tools/).
Step 1: Initialize Paper Directory
- Read PAPER_PLAN.md; extract venue, title, section list
- If
paper/directory already exists:- Back up as
paper.bak-{timestamp}/ - Prompt user to confirm overwrite
- Back up as
- Create directory structure:
paper/ ├── main.tex ├── math_commands.tex ├── references.bib ├── sections/ └── figures/ - Copy venue template from
templates/if it exists:templates/{venue}.styortemplates/{venue}/- If no template: use generic article class; note in main.tex that the official template must be substituted
- Generate
math_commands.tex:- Collect notation from wiki/methods/ (
## Mechanism,## Procedure) and wiki/concepts/ (## Definition,## Intuition) - Unify symbol definitions (vectors, matrices, sets, common operators)
- Collect notation from wiki/methods/ (
- Generate
main.texskeleton:\documentclass{article} % replace with venue template \input{math_commands} % packages \usepackage{booktabs,graphicx,amsmath,hyperref} \title{<title>} \author{} % leave empty for anonymous submission \begin{document} \maketitle \begin{abstract} % generated in Step 3 \end{abstract} \input{sections/introduction} \input{sections/related_work} \input{sections/method} \input{sections/experiments} \input{sections/conclusion} \bibliography{references} \bibliographystyle{plain} % replace with venue-required style % \input{sections/appendix} % uncomment if needed \end{document}
Step 2: Generate Figures and Tables
For each entry in the Figure Plan from PAPER_PLAN:
- Diagram type (architecture diagrams, etc.):
- Use TikZ or pgfplots to generate native LaTeX figures
- If too complex: generate a matplotlib Python script → output PDF
- Save to
paper/figures/{figure-name}.pdf
- Plot type (experimental result charts):
- Extract data from
wiki/experiments/{slug}.md - Generate matplotlib script (following figure design standards in academic-writing):
- Colorblind-safe palette
- Font size >= 8pt
- Error bars / confidence bands
- Clear legend
- Execute script to generate PDF:
python3 paper/figures/plot_{name}.py - Save to
paper/figures/{figure-name}.pdf
- Extract data from
- Table type:
- Use booktabs style (toprule, midrule, bottomrule)
- Best result bold, second-best underline
- Embed directly in section .tex file (small tables) or standalone
paper/tables/{name}.tex(large tables)
Step 3: Write Sections
For each section (in the outline order from PAPER_PLAN); if --sections is specified, write only those sections:
3a. Collect Material
From the section definition in PAPER_PLAN, extract:
- the ideas this section supports
- the list of corresponding wiki pages
- planned figures/tables
- citation list
Read the relevant portions of all related wiki pages:
- Introduction → wiki/ideas/{idea}.md (Hypothesis, Motivation, Novelty argument) + wiki/topics/{topic}.md#Overview
- Related Work → wiki/papers/.md#Related + wiki/concepts/.md#Comparison
- Method → wiki/methods/{method}.md (## Mechanism + ## Procedure) + wiki/concepts/{concept}.md (## Definition + ## Intuition)
- Experiments → wiki/experiments/.md#Results + wiki/experiments/.md#Analysis
- Conclusion → wiki/ideas/.md#Lessons_learned + wiki/concepts/.md#Open_problems + wiki/topics/*.md#Open_problems + wiki/graph/open_questions.md
3b. Write LaTeX
Following shared-references/academic-writing.md:
- Write according to the paragraph plan for that section
- Insert
\cite{key}citations (keys mapped from citation plan) - Insert
\ref{fig:name}/\ref{tab:name}references to figures/tables - Use symbols defined in
math_commands.tex - Begin each paragraph with a topic sentence
- Experiments section: idea-first structure ("Our hypothesis is X. To verify, we...")
3c. De-AI Polish
Apply de-AI polish to each written section (per academic-writing.md):
- Scan and replace AI-signature vocabulary (delve, leverage, utilize, comprehensive...)
- Remove excessive hedging
- Vary sentence openings (avoid consecutive identical sentence structures)
- Remove filler sentences (sentences that add no information)
- Ensure active voice predominates
- Check notation consistency
3d. Optional Review LLM Review (--review)
If --review is enabled, for each section:
mcp__llm-review__chat:
system: "You are a senior ML researcher reviewing one section of a paper draft.
Focus on: clarity, logical flow, idea-experiment alignment, notation consistency.
Point out any remaining AI-sounding language patterns.
Suggest specific rewrites for unclear passages."
message: |
## Section: {section name}
{LaTeX content}
## Ideas this section should support
{ideas from the plan's idea list}
## Review this section for:
1. Does it clearly support its target ideas?
2. Is the writing clear and precise?
3. Any AI-generated language patterns remaining?
4. Is the notation consistent with other sections?
5. Missing content that reviewers will expect?Revise the section based on Review LLM feedback (inline edits; do not rewrite the entire section).
Step 4: Build Bibliography
Following shared-references/citation-verification.md:
- Collect all
\cite{key}citations used across sections - For each citation, retrieve BibTeX from the PAPER_PLAN's citation plan:
- Verified: write directly to
references.bib - [UNCONFIRMED]: write to the bottom of
references.bibwith a% [UNCONFIRMED]comment
- Verified: write directly to
- Exclude unused entries (do not use
\nocite{*}) - Validate BibTeX format correctness (each entry has title, author, year)
- Output bibliography statistics:
references.bib: {N} entries, {M} verified, {K} [UNCONFIRMED]
Step 5: Full-Paper Cross-Review
After all sections are complete:
mcp__llm-review__chat:
system: "You are a senior ML researcher performing a final review of a complete paper draft.
Focus on: cross-section coherence, idea-experiment thread (do the experiments back the central ideas?),
narrative flow, notation consistency across sections, figure/table referencing.
This is NOT a line-by-line review — focus on structural and argumentative issues."
message: |
## Full Paper Draft
{concatenated LaTeX of all sections}
## Evidence Map
{from PAPER_PLAN}
## Review Focus
1. Does the paper tell a coherent story from Introduction to Conclusion?
2. Are all ideas from the plan adequately supported in the text?
3. Is there notation inconsistency between sections?
4. Are all figures/tables referenced and discussed?
5. Any redundancy between sections?
6. Overall readiness for submission (1-10)?Make final adjustments based on Review LLM feedback.
Step 6: Finalize Output
- Confirm all files are written to the
paper/directory - Verify basic integrity:
- all files referenced by
\input{sections/X}exist - all files referenced by
\includegraphics{figures/X}exist - all
\cite{key}keys have a corresponding entry in references.bib - all
\ref{label}have a corresponding\label{label}
- all files referenced by
- Append log:
python3 tools/research_wiki.py log wiki/ \ "paper-draft | drafted {venue} paper '{title}' | {N} sections, {M} figures, {K} citations ({V} verified)" - Print to terminal:
# Paper Write Complete ## Files - paper/main.tex (master file) - paper/sections/ ({N} section files) - paper/figures/ ({M} figure files) - paper/references.bib ({K} entries, {V_count} [UNCONFIRMED]) - paper/math_commands.tex ## Status - Sections written: {list} - De-AI polish: applied - Review LLM review: {yes/no, if yes: overall score} - [UNCONFIRMED] citations: {count} (resolve before /paper-compile) ## Next Steps - Run `/paper-compile paper/` to compile and verify - Resolve [UNCONFIRMED] citations manually - Run `/refine paper/main.tex --focus writing` for further polish
Constraints
- Each section draws from wiki: do not generate content from nothing; every technical statement must trace back to a wiki page
- BibTeX follows citation-verification.md: fetch from DBLP/CrossRef/S2; do not generate from LLM memory
- De-AI polish is mandatory: each section must receive a polish pass after writing; cannot be skipped
- Figures follow academic-writing.md: colorblind-safe, font size >= 8pt, vector format preferred
- Anonymous submission: do not write author names, institutions, or acknowledgements (per venue anonymity requirements)
- \nocite{*} is forbidden: only cite entries actually used
- Notation consistency: all sections use unified symbols from math_commands.tex
- Back up existing paper/ before overwriting: do not overwrite directly; back up first
- Wikilink → \cite conversion: [[slug]] references in PAPER_PLAN are converted to \cite{key} in LaTeX
- Tables use booktabs: no vertical lines or full grid
Error Handling
- PAPER_PLAN not found: error; suggest running /paper-plan first
- PAPER_PLAN format incomplete: list missing sections; suggest re-running /paper-plan
- Wiki page not found (idea/experiment/method/paper referenced in plan does not exist): warn and skip that reference; annotate as missing
- Figure generation failed (matplotlib error): output placeholder
% TODO: generate figure {name}; continue with other sections - All BibTeX fetches failed: use [UNCONFIRMED] placeholders; report the count requiring manual handling in the terminal
- Review LLM unavailable (--review mode): skip section review and cross-review; annotate as "unreviewed"
- Venue template not found: use generic article class; note in main.tex
- Section too long (exceeds plan page budget): warn; suggest moving to appendix or compressing
Dependencies
Tools(via Bash)
python3 tools/research_wiki.py log wiki/ "<message>"— append logpython3 tools/fetch_s2.py search "<title>"— BibTeX fallback (S2 search)python3— execute matplotlib figure scripts
MCP Servers
mcp__llm-review__chat— per-section review (optional, --review) + full-paper cross-review (Step 5)
Claude Code Native
Read— read wiki pages and PAPER_PLANGlob— find wiki pagesWrite— write files to paper/ directoryBash— execute figure scripts, create directoriesWebFetch— DBLP / CrossRef BibTeX fetch
Shared References
.claude/skills/shared-references/academic-writing.md— writing standards + de-AI polish rules + figure design.claude/skills/shared-references/citation-verification.md— BibTeX fetch workflow + [UNCONFIRMED] protocol
Called by
/researchStage 5 (paper writing stage)- Manual user invocation
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

