Skip to content
Skillpedia
Writing18k Β· #10599

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.md

Copy 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

Use this skill to help me: https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/skills-codex-gemini-review/paper-writing/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

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-family and acceptance_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 local gemini-review MCP bridge for plan review, figure review, writing review, and the improvement loop.
  • AUTO_PROCEED = true β€” Auto-continue between phases. Set false to 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. When false (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:

  1. NARRATIVE_REPORT.md (best) β€” structured research narrative with claims, experiments, results, figures
  2. Research direction + experiment results β€” the skill will help draft the narrative first
  3. 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-plan overlay

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.tex for easy insertion
  • Gemini reviews figure quality and captions via the /paper-figure overlay

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_KEY environment variable

Without illustration: true: Architecture diagrams must still be created manually (draw.io, Figma, TikZ) and placed in figures/ 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.

repo: wanshuiyin/Auto-claude-code-research-in-sleep

Popularity

GitHub stars
18k
Ranking position
#10599
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills