Best for
- Use when user says \"写论文全流程\", \"write paper pipeline\", \"从报告到PDF\", \"paper writing\", or wants the complete paper generation workflow.
wanshuiyin/Auto-claude-code-research-in-sleep/skills/skills-codex-gemini-review/paper-writing/SKILL.md
Use it for operations and research tasks; the detail page covers purpose, installation, and practical steps.
Decision brief
Gemini overlay assurance: reviewindependence: cross-family and acceptancestatus: accepted.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Declared | Source record | Install path and trigger |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep --skill "skills/skills-codex-gemini-review/paper-writing"Inspect the Agent Skill "paper-writing" from https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/a5fcc6970f08d45f6a2100abef4d5d234a1cef25/skills/skills-codex-gemini-review/paper-writing/SKILL.md at commit a5fcc6970f08d45f6a2100abef4d5d234a1cef25. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Invoke /paper-plan to create the structural outline:
Invoke /paper-figure to generate data-driven plots and tables:
Skip this step entirely if illustration is not set or is false.
Invoke /paper-write to generate section-by-section LaTeX:
Invoke /paper-compile to build the PDF:
Permission review
The documentation asks the agent to create, modify, or delete local files.
- **[Output Versioning Protocol](../../shared-references/output-versioning.md)** — write timestamped file first, then copy to fixed nameThe documentation asks the agent to create, modify, or delete local files.
**Large file handling**: If the Write tool fails due to file size, immediately retry using Bash (`cat << 'EOF' > file`) to write in chunks. Do NOT ask the user for permission — just do it silently.Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 89/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 14,225 | Source | Repository attention, not individual Skill quality |
| Compatibility | 1 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Override for Codex users who want Gemini, not a second Codex agent, to act as the reviewer. Install this package after
skills/skills-codex/*.
Gemini overlay assurance:
review_independence: cross-familyandacceptance_status: accepted.
Orchestrate a complete paper writing workflow for: $ARGUMENTS
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.
ICLR — Target venue. Options: ICLR, NeurIPS, ICML. Affects style file, page limit, citation format.gemini-review — Gemini reviewer invoked through the local gemini-review MCP bridge for plan review, figure review, writing review, and the improvement loop.false to pause and wait for user approval after each phase.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
This pipeline accepts one of:
NARRATIVE_REPORT.md (best) — structured research narrative with claims, experiments, results, figuresPAPER_PLAN.md — skip Phase 1, start from Phase 2The more detailed the input (especially figure descriptions and quantitative results), the better the output.
Invoke /paper-plan to create the structural outline:
/paper-plan "$ARGUMENTS"
What this does:
/paper-plan overlayOutput: 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?
Invoke /paper-figure to generate data-driven plots and tables:
/paper-figure "PAPER_PLAN.md"
What this does:
figures/latex_includes.tex for easy insertion/paper-figure overlayOutput: figures/ directory with PDFs, generation scripts, and LaTeX snippets.
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:
figures/ai_generated/*.png — publication-quality method diagramsGEMINI_API_KEY environment variableWithout
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.
📊 Figures complete:
- Data plots (auto): [list]
- AI illustrations (auto): [list, if illustration: true]
- Manual (need your input): [list]
- LaTeX snippets: figures/latex_includes.tex
[If manual figures needed]: Please add them to figures/ before I proceed.
[If all auto]: Shall I proceed with LaTeX writing?
Invoke /paper-write to generate section-by-section LaTeX:
/paper-write "PAPER_PLAN.md"
What this does:
figures/latex_includes.texreferences.bib from citation scaffolding/paper-write overlayOutput: paper/ directory with main.tex, sections/*.tex, references.bib, math_commands.tex.
Checkpoint: Report section completion.
✍️ LaTeX writing complete:
- Sections: [N] written ([list])
- Citations: [N] unique keys in references.bib
- Stale files cleaned: [list, if any]
Shall I proceed with compilation?
Invoke /paper-compile to build the PDF:
/paper-compile "paper/"
What this does:
latexmk -pdf with automatic multi-pass compilationpdftotextOutput: paper/main.pdf
Checkpoint: Report compilation results.
🔨 Compilation complete:
- Status: SUCCESS
- Pages: [X] (main body) + [Y] (references) + [Z] (appendix)
- Within page limit: YES/NO
- Undefined references: 0
- Undefined citations: 0
Shall I proceed with the improvement loop?
Invoke /auto-paper-improvement-loop to polish the paper:
/auto-paper-improvement-loop "paper/"
What this does (2 rounds):
Round 1: Gemini reviews the full paper → identifies CRITICAL/MAJOR/MINOR issues → Codex implements fixes → recompile → save main_round1.pdf
Round 2: Gemini re-reviews with conversation context → identifies remaining issues → Codex implements fixes → recompile → save main_round2.pdf
Typical improvements:
Output: Three PDFs for comparison + PAPER_IMPROVEMENT_LOG.md.
Format check (included in improvement loop Step 8): After final recompilation, auto-detect and fix overfull hboxes (content exceeding margins), verify page count vs venue limit, and ensure compact formatting. Any overfull > 10pt is fixed before generating the final PDF.
Same contract as the base Codex pack (skills-codex/paper-writing Phase 5.9,
which this overlay does not change): the executor here is Codex, so only
upstream's deterministic-only slice of /integrity-forensics is runnable
(numeric core + rules-only adjudicator — it can flag, it can never say
CLEAN), OFF unless the CURRENT $ARGUMENTS contains — self_forensics: true. If opted in: run the launcher on paper/ (absolute path), then before
the Final Report require python3 "$GATE_HELPER" fresh --paper-dir paper/ --anti-ar-commit "$ANTI_AR_COMMIT" exit 0 — an opted-in run without a fresh gate is incomplete, not
skippable; gate BLOCK refuses the Final Report.
# Paper Writing Pipeline Report
**Input**: [NARRATIVE_REPORT.md or topic]
**Venue**: [ICLR/NeurIPS/ICML]
**Forensics**: [NO_NEW_BLOCKER | WARN: <n> open obligations (listed below) | BLOCK | n/a (opt-in, not requested)]
**Date**: [today]
## Pipeline Summary
| Phase | Status | Output |
|-------|--------|--------|
| 1. Paper Plan | ✅ | PAPER_PLAN.md |
| 2. Figures | ✅ | figures/ ([N] auto + [M] manual) |
| 3. LaTeX Writing | ✅ | paper/sections/*.tex ([N] sections, [M] citations) |
| 4. Compilation | ✅ | paper/main.pdf ([X] pages) |
| 5. Improvement | ✅ | [score0]/10 → [score2]/10 |
## Improvement Scores
| Round | Score | Key Changes |
|-------|-------|-------------|
| Round 0 | X/10 | Baseline |
| Round 1 | Y/10 | [summary] |
| Round 2 | Z/10 | [summary] |
## Deliverables
- paper/main.pdf — Final polished paper
- paper/main_round0_original.pdf — Before improvement
- paper/main_round1.pdf — After round 1
- paper/main_round2.pdf — After round 2
- paper/PAPER_IMPROVEMENT_LOG.md — Full review log
## Remaining Issues (if any)
- [items from final review that weren't addressed]
## Next Steps
- [ ] Visual inspection of PDF
- [ ] Add any missing manual figures
- [ ] Submit to [venue] via OpenReview / CMT / HotCRP
Follow these shared protocols for all output files:
- Output Versioning Protocol — write timestamped file first, then copy to fixed name
- Output Manifest Protocol — log every output to MANIFEST.md
- Output Language Protocol — respect the project's language setting
- Note: paper content is always written in English regardless of project language setting.
Large file handling: If the Write tool fails due to file size, immediately retry using Bash (cat << 'EOF' > file) to write in chunks. Do NOT ask the user for permission — just do it silently.
Don't skip phases. Each phase builds on the previous one — skipping leads to errors.
Checkpoint between phases when AUTO_PROCEED=false. Present results and wait for approval.
Manual figures first. If the paper needs architecture diagrams or qualitative results, the user must provide them before Phase 3.
Compilation must succeed before entering the improvement loop. Fix all errors first.
Preserve all PDFs. The user needs round0/round1/round2 for comparison.
Document everything. The pipeline report should be self-contained.
Respect page limits. If the paper exceeds the venue limit, suggest specific cuts before the improvement loop.
/idea-discovery "direction" ← Workflow 1: find ideas
implement ← write code
/run-experiment ← deploy experiments
/auto-review-loop "paper topic" ← Workflow 2: iterate research
/paper-writing "NARRATIVE_REPORT.md" ← Workflow 3: you are here
submit! 🎉
Or use /research-pipeline for the Workflow 1+2 end-to-end flow,
then /paper-writing for the final writing step.
| Phase | Duration | Can sleep? |
|---|---|---|
| 1. Paper Plan | 5-10 min | No |
| 2. Figures | 5-15 min | No |
| 3. LaTeX Writing | 15-30 min | Yes ✅ |
| 4. Compilation | 2-5 min | No |
| 5. Improvement | 15-30 min | Yes ✅ |
Total: ~45-90 min for a full paper from narrative report to polished PDF.
Alternatives
wanshuiyin/Auto-claude-code-research-in-sleep
Use it for operations and research tasks; the detail page covers purpose, installation, and practical steps.
wanshuiyin/Auto-claude-code-research-in-sleep
Use it for operations and research tasks; the detail page covers purpose, installation, and practical steps.
PramodDutta/qaskills
Gate RAG pipelines in CI with versioned golden eval sets, per-metric thresholds, baseline drift detection, and a build that fails when retrieval or answer quality regresses.
PramodDutta/qaskills
Optimize CI test pipelines through intelligent test splitting, parallelization, caching strategies, and selective test execution based on code changes.