paper-writing
What it does
This Codex overlay runs the paper writing pipeline, with Gemini reviewing the plan, figures, writing, and improvement loop. It is for Codex users who want a reviewed PDF built from a research report.
When to use it
- βWhen you have a research report and want a reviewed paper PDF produced with Gemini review.
- βWhen you want plan, figure, writing, and compile steps chained together.
- βWhen you want each review stage handled by Gemini.
Skill link
https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/skills-codex-gemini-review/paper-writing/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βI want my research report turned into a reviewed paper PDF, with Gemini checking the plan, figures, and writing.β
5 new skills a week. 1 minute to read.
How it works
The agent plans the paper, makes the figures, writes the LaTeX, compiles it, and runs a two-round improvement loop. Gemini reviews at each stage through the local bridge.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Override for Codex users who want Gemini, not a second Codex agent, to act as the reviewer. Install this package after
skills/skills-codex/*.
Workflow 3: Paper Writing Pipeline
Gemini overlay assurance:
review_independence: cross-familyandacceptance_status: accepted.
Orchestrate a complete paper writing workflow for: $ARGUMENTS
Overview
This skill chains five sub-skills into a single automated pipeline:
/paper-plan β /paper-figure β /paper-write β /paper-compile β /auto-paper-improvement-loop
(outline) (plots) (LaTeX) (build PDF) (review & polish Γ2)
Each phase builds on the previous one's output. The final deliverable is a polished, reviewed paper/ directory with LaTeX source and compiled PDF.
Constants
- VENUE =
ICLRβ Target venue. Options:ICLR,NeurIPS,ICML. Affects style file, page limit, citation format. - MAX_IMPROVEMENT_ROUNDS = 2 β Number of reviewβfixβrecompile rounds in the improvement loop.
- REVIEWER_MODEL =
gemini-reviewβ Gemini reviewer invoked through the localgemini-reviewMCP bridge for plan review, figure review, writing review, and the improvement loop. - AUTO_PROCEED = true β Auto-continue between phases. Set
falseto pause and wait for user approval after each phase. - HUMAN_CHECKPOINT = false β When
true, the improvement loop (Phase 5) pauses after each round's review to let you see the score and provide custom modification instructions. Whenfalse(default), the loop runs fully autonomously. Passed through to/auto-paper-improvement-loop.
Override inline:
/paper-writing "NARRATIVE_REPORT.md" β venue: NeurIPS, human checkpoint: true
Inputs
This pipeline accepts one of:
NARRATIVE_REPORT.md(best) β structured research narrative with claims, experiments, results, figures- Research direction + experiment results β the skill will help draft the narrative first
- Existing
PAPER_PLAN.mdβ skip Phase 1, start from Phase 2
The more detailed the input (especially figure descriptions and quantitative results), the better the output.
Pipeline
Phase 1: Paper Plan
Invoke /paper-plan to create the structural outline:
/paper-plan "$ARGUMENTS"
What this does:
- Parse NARRATIVE_REPORT.md for claims, evidence, and figure descriptions
- Build a Claims-Evidence Matrix β every claim maps to evidence, every experiment supports a claim
- Design section structure (5-8 sections depending on paper type)
- Plan figure/table placement with data sources
- Scaffold citation structure
- Gemini reviews the plan for completeness via the
/paper-planoverlay
Output: PAPER_PLAN.md with section plan, figure plan, citation scaffolding.
Checkpoint: Present the plan summary to the user.
π Paper plan complete:
- Title: [proposed title]
- Sections: [N] ([list])
- Figures: [N] auto-generated + [M] manual
- Target: [VENUE], [PAGE_LIMIT] pages
Shall I proceed with figure generation?
- User approves (or AUTO_PROCEED=true) β proceed to Phase 2.
- User requests changes β adjust plan and re-present.
Phase 2: Figure Generation
Invoke /paper-figure to generate data-driven plots and tables:
/paper-figure "PAPER_PLAN.md"
What this does:
- Read figure plan from PAPER_PLAN.md
- Generate matplotlib/seaborn plots from JSON/CSV data
- Generate LaTeX comparison tables
- Create
figures/latex_includes.texfor easy insertion - Gemini reviews figure quality and captions via the
/paper-figureoverlay
Output: figures/ directory with PDFs, generation scripts, and LaTeX snippets.
Phase 2b: AI Illustration Generation (when illustration: true)
Skip this step entirely if illustration is not set or is false.
If the paper plan includes architecture diagrams, pipeline figures, or method illustrations, invoke /paper-illustration:
/paper-illustration "[method description from PAPER_PLAN.md or NARRATIVE_REPORT.md]"
What this does:
- Codex plans the layout β Gemini optimizes β Nano Banana Pro renders β Codex reviews (score β₯ 9)
- Output:
figures/ai_generated/*.pngβ publication-quality method diagrams - Requires
GEMINI_API_KEYenvironment variable
Without
illustration: true: Architecture diagrams must still be created manually (draw.io, Figma, TikZ) and placed infigures/before proceeding β same as before.
Checkpoint: List generated vs manual figures.
π Figur
FAQ
Which venues does it target by default?
ICLR is the default, and the skill also lists NeurIPS and ICML as options.
Can I pause between phases?
Yes. Setting the auto-proceed option to false makes it wait for your approval after each phase.
What do I need first?
Install the base Codex skills, then this overlay, and register the gemini-review bridge.
Details
Original description by the author
Workflow 3: Full paper writing pipeline. Orchestrates paper-plan \u2192 paper-figure \u2192 paper-write \u2192 paper-compile \u2192 auto-paper-improvement-loop to go from a narrative report to a polished, submission-ready PDF. Use when user says \\\"\u5199\u8bba\u6587\u5168\u6d41\u7a0b\\\", \\\"write paper pipeline\\\", \\\"\u4ece\u62a5\u544a\u5230PDF\\\", \\\"paper writing\\\", or wants the complete paper generation workflow.
Popularity
- GitHub stars
- 18k
- Ranking position
- #10599
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
ablation-planner
18kHelps your agent plan ablation studies for a paper, choosing the tests reviewers are likely to ask for once the main results look good.
alphaxiv
18kLets your agent quickly read one research paper using AlphaXiv summaries, with full text or LaTeX source as backup, from an arXiv link or ID.
analyze-results
18kHelps your agent analyze machine learning experiment results, compare runs against a baseline, and turn the numbers into clear findings and next steps.
arxiv
18kLets your agent search arXiv for academic papers, read their details, and save PDFs to your library for a research topic.
Similar skills
obsidian-vault-maintainer
394kHelps your agent keep an Obsidian-friendly memory vault tidy, with working wiki links, consistent properties, and safe generated sections.
wiki-maintainer
394kHelps your agent maintain an OpenClaw memory wiki with repeatable pages, safe managed blocks, and checks for contradictions or gaps.
obsidian
394kLets your agent read, search, create, and edit Obsidian notes, tasks, links, and properties using the official Obsidian command line.