paper-writing
Skill by wanshuiyin
Runs a full paper writing pipeline that turns a narrative research report into a compiled, reviewed LaTeX PDF. It targets researchers preparing ICLR, NeurIPS or ICML submissions.
Install paper-writing
Built from the published package, never by AI.
git clone --depth 1 https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep /tmp/Auto-claude-code-research-in-sleep && mkdir -p ~/.claude/skills && cp -r /tmp/Auto-claude-code-research-in-sleep/skills/skills-codex-gemini-review/paper-writing ~/.claude/skills/paper-writingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep /tmp/Auto-claude-code-research-in-sleep && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Auto-claude-code-research-in-sleep/skills/skills-codex-gemini-review/paper-writing ~/.gemini/antigravity-cli/skills/paper-writingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill chains five sub-skills into one pipeline: paper-plan, paper-figure, paper-write, paper-compile and auto-paper-improvement-loop. It accepts a NARRATIVE_REPORT.md, a research direction with results, or an existing PAPER_PLAN.md. The output is a paper/ directory with LaTeX source and a compiled PDF.
Each phase ends with a checkpoint that can pause for approval when AUTO_PROCEED is false. The improvement loop runs two review and fix rounds, with Gemini reviewing and Codex applying fixes. It is written as an overlay for Codex users who want Gemini as the reviewer, and is meant for researchers preparing a submission. Paper content is always written in English.
Written from the project's SKILL.md and checked against it.
What it can do
- Paper planBuilds a claims-evidence matrix and section outline from the narrative report.
- Figure generationCreates matplotlib or seaborn plots and LaTeX tables from JSON or CSV data.
- LaTeX writingWrites section-by-section LaTeX, builds references.bib and runs a de-AI polish.
- CompilationRuns latexmk with up to 3 attempts and checks undefined references and page count.
- Improvement loopRuns two review rounds with Gemini and applies fixes with Codex.
- Final reportSummarizes scores by round and lists the deliverables and remaining issues.
What you need
- Codex skill pack (skills/skills-codex) installed before this overlay
- gemini-review MCP bridge for reviewer calls
- LaTeX toolchain with latexmk and pdftotext
- GEMINI_API_KEY for optional AI illustration
Try asking
- Run the paper writing pipeline on NARRATIVE_REPORT.md for ICLR
- Turn my narrative report into a submission-ready PDF
- Run the paper writing pipeline with NeurIPS as the venue
Good to know
- AI illustration is only used when illustration is set to true and needs GEMINI_API_KEY.
- The improvement loop runs 2 rounds by default.
- Integrity forensics is opt-in and runs only its deterministic slice under Codex.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/skills-codex-gemini-review/paper-writing/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md13 KB
Alternatives to paper-writing
All alternatives →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
paper-writing: common questions
Which venues does paper-writing support?
The VENUE constant accepts ICLR, NeurIPS or ICML. The venue affects the style file, page limit and citation format.
Can I pause between phases?
Yes. Set AUTO_PROCEED to false and the pipeline waits for your approval after each phase.
What files does it produce?
It produces a paper/ directory with main.tex, sections, references.bib and main.pdf, plus PDFs for each improvement round and PAPER_IMPROVEMENT_LOG.md.
How do I install paper-writing?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is paper-writing free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is paper-writing safe to use?
It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to paper-writing?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
