Agent skill

Paper Writer

by ai4s-research in ai4s-research/ai4s-skills

A skill your agent uses when the user wants a complete, publication-grade research paper on a specific topic — produces 200+ real citations, 4–8 publication-grade figures, and 7 sections of…

MITAuto-check passedResearch & Science

Install Paper Writer

skills CLI
$ npx skills add ai4s-research/ai4s-skills --skill paper-writer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ai4s-research/ai4s-skills paper-writer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ai4s-research/ai4s-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/paper-writer .claude/skills/paper-writer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
paper-writer
GitHub stars
237
Used in
1 other repo
Token cost
~2.4k tokens
SKILL.md length
1,084 words
Files
13 (incl. references)
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when the user wants a complete, publication-grade research paper on a specific topic — produces 200+ real citations, 4–8 publication-grade figures, and 7 sections of…

  • Works in 4 steps: Understand requirements → Set up the run directory → Build the paper (REQUIRED — this is the… → …
  • The user wants a complete
  • SKILL.md covers Overview, When to Use, When NOT to Use and Workflow, plus 2 more sections
  • Runs Python and Shell scripts from its folder; calls python3

What it does

Paper Writer is an agent skill from ai4s-research/ai4s-skills. Use when the user wants a complete, publication-grade research paper on a specific topic — produces 200+ real citations, 4–8 publication-grade figures, and 7 sections of substantive prose compiled to PDF in one pass. No skeleton stage.

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 17 other files, including reference files (for example `references/00-incremental-execution.md`, `references/01-bibliography-expansion.md` and `references/02-figures-publication-grade.md`).

It sits in Research & Science, covering Citation management and Scientific writing. The repository describes itself as: Open-source agent skills for AI for Science: topic exploration, literature survey, experiments, paper writing, and integrity audit — driven by any coding agent. The licence is MIT.

When your agent uses it

  • The user wants a complete
  • Publication-grade research paper on a specific topic — produces 200+ real citations
  • 4–8 publication-grade figures
  • 7 sections of substantive prose compiled to PDF in one pass

Example prompts

  • “/paper-writer”

Requirements

  • Python 3
  • A Bash shell

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Understand requirements
  2. Set up the run directory
  3. Build the paper (REQUIRED — this is the whole job)
  4. Deliver

What it can do on your machine

Read from SKILL.md and the folder at commit 744ab20. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python and Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Paper Writer loads about 2.4k tokens when it runs, and up to ~25k if it reads all its reference files. Until then it costs about 62 tokens; SKILL.md has 1,084 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~62
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~25k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ai4s-research/ai4s-skills at commit 744ab20, republished under its MIT licence (© ai4s-research). 1,084 words, ~2,352 tokens.

Download SKILL.mdSave it as .claude/skills/paper-writer/SKILL.md (or your agent's skills folder). This skill also uses 12 other files; get the full folder from GitHub.
name
paper-writer
description
Use when the user wants a complete, publication-grade research paper on a specific topic — produces 200+ real citations, 4–8 publication-grade figures, and 7 sections of substantive prose compiled to PDF in one pass. No skeleton stage.

Paper Writer

Overview

End-to-end research paper builder. Single stage, full quality from the start — there is no skeleton phase to enrich later. The agent (Claude Code / Cursor / Aider / Codex / …) does the writing using its own tools (WebFetch, WebSearch, Write, Bash). This skill has no Python runtime; it is purely a procedure + reference playbooks + a LaTeX template.

The substantive work is decomposed into reference playbooks under references/:

ReferenceTopic
references/00-incremental-execution.mdhow to actually do this without losing work: batch sizes, persistence, resume — read first
references/01-bibliography-expansion.mdgrow bibliography.bib to 200+ real entries via WebFetch/WebSearch
references/02-figures-publication-grade.mdTikZ / matplotlib / seaborn / multi-panel figure recipes
references/03-section-playbook.mdper-section structure, length, citation density
references/04-layout-discipline.mdtables, figures, floats, cross-refs, author + disclosure footnote
references/05-quality-gate.mdself-check before delivery (G1–G8 hard, S1–S4 soft)
references/06-experiment-provenance.mdhonest provenance for every number (measured / simulated / illustrative)

Read the relevant reference before writing, not after.

The full pass does not fit in a single turn. The bibliography is built across ~20+ small WebFetch/WebSearch batches; sections are drafted one per turn; figures are generated one at a time. Read references/00-incremental-execution.md before starting — it is the only execution mode that actually completes without losing work.

When to Use

  • User asks to "write a paper" on a specific topic.
  • User wants Abstract + Introduction + Related Work + Method + Experiment + Results + Conclusion.
  • User has experiment results (a results.json) and wants them formatted into a paper.

When NOT to Use

  • User wants only a literature survey → the literature-survey skill.
  • User wants only the experiment package → the experiment-suite skill.
  • User wants only direction/topic exploration → the research-explorer skill.
  • User wants the full multi-skill pipeline → the ai4s-agent skill (which invokes this skill as one stage).

Workflow

Step 1 — Understand requirements

Confirm with the user:

  • Topic — specific enough to motivate a title; if too broad, narrow it before proceeding.
  • Experiment provenance — measured (user supplied a results.json produced by the experiment-suite skill or compatible) or simulated. Default is simulated; in that case the disclosure footnote must flag it (see references/06-experiment-provenance.md).
  • Language — default Chinese in conversation; the paper itself is English unless the user requests otherwise.

Always tell the user that human review by a domain expert is recommended before any scientific publication or production use.

Step 2 — Set up the run directory

Create a timestamped working directory and copy the template. Runs never overwrite each other.

bash
TOPIC="<topic>"
SLUG=$(python3 -c "import re,hashlib,sys; t=sys.argv[1]; n=re.sub(r'[\\s_]+','-',re.sub(r'[^\\w\\s-]','',t.lower().strip())).strip('-')[:40].rstrip('-'); h=hashlib.sha1(t.encode()).hexdigest()[:8]; print(f'{n}-{h}')" "$TOPIC")
TS=$(date +%Y-%m-%d_%H%M%S)
RUN=output/paper-writer/$SLUG/$TS/paper

mkdir -p "$RUN/sections" "$RUN/figures"
cp -r templates/paper/. "$RUN/"
ln -sfn "$TS" "output/paper-writer/$SLUG/latest"

In commands below $RUN = output/paper-writer/<slug>/latest/paper.

The template provides only main.tex (title placeholder), an empty sections/ skeleton, an empty figures/, and compile.sh. Everything substantive is produced in Step 3 below.

Step 3 — Build the paper (REQUIRED — this is the whole job)

Open references/00-incremental-execution.md first. Then carry out the five tracks below across many turns, persisting state to $RUN/ after every batch.

3.1 Bibliography — 200+ real entries

Open: references/01-bibliography-expansion.md.

First choose and record the temporal profile from that reference. AI4S and similarly fast-moving fields default to at least 60% of references from the current calendar year and previous two years; an explicitly recent window uses the stricter recency-led profile. Then plan 15–25 query angles. For each angle: WebSearch → pick candidates → WebFetch each candidate's abstract / arXiv API URL → extract canonical title/authors/year/venue/url → append a BibTeX entry to $RUN/bibliography.bib. Every entry must originate from a URL fetched in this session. Memory entries are forbidden.

Hard stop: do not draft prose until the bibliography has ≥ 200 entries, contains no unknown keys, and passes check_bibliography_freshness.py for the recorded profile.

3.2 Figures — 4–8 publication-grade

Open: references/02-figures-publication-grade.md.

Decide what the paper needs based on its claims and evidence:

  • Architecture / pipeline diagram only when the paper introduces or compares a real method whose mechanism needs explanation.
  • Quantitative comparison plots when measured or explicitly simulated results support them.
  • Heatmap / multi-panel ablation only when the data justifies it.

Generate each figure into $RUN/figures/. Save the matplotlib / TikZ source alongside the PDF so each figure is reproducible. If the experiment-suite produced a figures/manifest.json, reuse those figures by symlink or copy — don't redraw what's already produced.

Show full SKILL.md (445 more words)Show less
3.3 Sections — 7 substantive .tex files

Open: references/03-section-playbook.md.

Draft each section per its playbook (length, structure, citation density, equation requirements, anti-patterns). Cite real entries from the bib built in 3.1.

Order: introduction → related_work → method → experiment → results → conclusion → abstract last (you only know the paper's shape after writing the rest).

3.4 Layout discipline

Open: references/04-layout-discipline.md.

  • Put each figure or table in the section whose prose first introduces or interprets it, immediately after that paragraph in the source. Do not collect artifacts in a fixed section or force one float placement across the paper.
  • Wrap tables and figures in standard LaTeX floats with standalone captions; choose [htbp], [tbp], or [p] from the artifact's size and narrative role.
  • Use ~\cite{} and ~\ref{} (non-breaking space).
  • Let LaTeX assign citation, figure, table, equation, section, and algorithm numbers from 1 in first-appearance order. Never type display numbers manually.
  • Set \author{AI4S Agent} and attach a \thanks footnote that always recommends human review, and additionally flags simulated numerics when applicable.
3.5 Compile + quality gate
bash
cd "$RUN"
pdflatex -interaction=nonstopmode main.tex
bibtex main
pdflatex -interaction=nonstopmode main.tex
pdflatex -interaction=nonstopmode main.tex

Open: references/05-quality-gate.md.

Run all G1–G8 hard gates and S1–S4 soft gates. If a hard gate fails, fix and re-run; do not ship a paper that fails G1–G4. If you cannot honestly clear a gate (e.g., bibliography stalled at 156 entries because the topic is niche), say so explicitly instead of padding.

Step 4 — Deliver

Report to the user:

  1. output/paper-writer/<slug>/latest/paper/main.pdf — final PDF.
  2. output/paper-writer/<slug>/latest/paper/ — complete LaTeX project (reproducible).
  3. Stats per the report format in references/05-quality-gate.md (pages, bib size, total \cite{}, figure count, table count, provenance, compile warnings).

Cross-skill data flow (path convention)

If a sibling skill has already run for the same topic, reuse its outputs by path:

  • output/literature-survey/<slug>/latest/bibliography.bib → seed $RUN/bibliography.bib (still bring it up to 200+ in 3.1 with WebFetch).
  • output/experiment-suite/<slug>/latest/results.json → the source of the numbers cited in 3.3 / 3.5; its simulated flag controls the disclosure clause in 3.4.
  • output/experiment-suite/<slug>/latest/figures/*.pdf (+ manifest.json) → reuse in 3.2 rather than redrawing.

The slug formula in Step 2 is the contract; all four skills compute the same slug for the same topic.

Important rules

  • No LLM SDK in this skill. No import anthropic / import openai. The agent runs the procedure; the skill is just SKILL.md + references + template.
  • No fabricated citations. Every BibTeX entry must trace back to a URL fetched this session. Real or weaker claim — never fake reference.
  • Simulated numbers stay visibly labelled. Title \thanks + abstract disclosure paragraph + per-caption disclosure. Do not let the simulated label disappear during drafting.
  • Honest stop > padding. If the topic is too niche for 200+ real citations, say so to the user instead of inventing entries.
  • Real-paper scope is 8–14 pages with 200+ references. For workshop / blog format, adjust scope explicitly with the user up front.

© ai4s-research, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 12 other files (references) in skills/paper-writer of ai4s-research/ai4s-skills.

  • SKILL.md
  • references/00-incremental-execution.md
  • references/01-bibliography-expansion.md
  • references/02-figures-publication-grade.md
  • references/03-section-playbook.md
  • references/04-layout-discipline.md
  • references/05-quality-gate.md
  • references/06-experiment-provenance.md
  • templates/paper/check_bibliography_freshness.py
  • templates/paper/compile.sh
  • templates/paper/figures/.gitkeep
  • templates/paper/main.tex
  • templates/paper/sections/.gitkeep

Open the folder on GitHubat commit 744ab20

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in ai4s-research/ai4s-skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Paper Writer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Paper Writer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Paper Writer this skillai4s-research/ai4s-skills2371 repos~2.4kAutomated safety check: PassMIT
Citation Verification GuideGalaxy-Dawn/claude-scholar5.7k2 repos~1.9kAutomated safety check: PassMIT
Citation ManagementK-Dense-AI/claude-scientific-writer2.4k2 repos~3.9kAutomated safety check: NotesMIT
Academic Paper Writing PipelineImbad0202/academic-research-skills51k—~16kAutomated safety check: PassCustom licence
Academic HumanizerAIScientists-Dev/academic-humanizer1.9k1 repos~4.2kAutomated safety check: PassMIT
Academic Research Suite for CodexImbad0202/academic-research-skills-codex12k—~12kAutomated safety check: PassCustom licence

Similar skills

  • Citation Verification Guide

    Galaxy-Dawn/claude-scholar

    Reference guidance for checking every citation in academic writing against canonical sources such as DOI, arXiv, CrossRef and Semantic Scholar, to catch fake or wrong references.

    5.7k GitHub starsUsed in 2 repos~1.9k tokens
    Research & ScienceAuto-check passed
  • Citation Management

    K-Dense-AI/claude-scientific-writer

    Finds papers in OpenAlex, PubMed and Google Scholar, turns DOIs, PMIDs and arXiv IDs into clean BibTeX, and validates citations for a manuscript or thesis.

    2.4k GitHub starsUsed in 2 repos~3.9k tokens
    Research & ScienceAuto-check: notes
  • Academic Paper Writing Pipeline

    Imbad0202/academic-research-skills

    Runs a 12-agent pipeline that plans, drafts, cites, reviews and formats academic papers, with modes for revision, rebuttals, abstracts and citation checks.

    51k GitHub stars~16k tokensUpdated yesterday
    Research & ScienceAuto-check passed
  • Academic Humanizer

    AIScientists-Dev/academic-humanizer

    Improve the clarity and voice of AI-assisted academic writing (papers, theses, rebuttals) and funding proposals (NSF Project Summary/Description, NIH Specific Aims): preserve scholarly conventions…

    1.9k GitHub starsUsed in 1 repo~4.2k tokens
    Research & ScienceAuto-check passed
  • Academic Research Suite for Codex

    Imbad0202/academic-research-skills-codex

    A router skill that sends academic work such as literature reviews, drafting, citation checks, peer review and revision to the right workflow in the ARS suite.

    12k GitHub stars~12k tokensUpdated 7 days ago
    Research & ScienceAuto-check passed
  • Autonomous Research

    federicodeponte/opendraft

    An 18-agent pipeline that turns one topic line into a drafted research paper, literature review, or thesis chapter.

    507 GitHub stars~8.2k tokensUpdated 9 days ago
    Research & ScienceAuto-check passed

More from ai4s-research/ai4s-skills

  • Experiment Suite

    ai4s-research/ai4s-skills

    A skill your agent uses when the user has a research question and needs a complete experiment package — design document, runnable code, results (measured or simulated with honest provenance)…

    237 GitHub starsUsed in 2 repos~2.5k tokens
    Auto-check passed
  • Literature Survey

    ai4s-research/ai4s-skills

    A skill your agent uses when the user wants a comprehensive literature survey on a specific research topic.

    237 GitHub starsUsed in 2 repos~2k tokens
    Auto-check passed
  • Integrity Auditor

    ai4s-research/ai4s-skills

    A skill your agent uses when the user wants a paper audited for integrity issues — image misuse, numerical anomalies, logical gaps — and needs a reviewable evidence report.

    237 GitHub starsUsed in 1 repo~5k tokens
    Auto-check passed
  • Research Explorer

    ai4s-research/ai4s-skills

    A skill your agent uses when the user has a vague research direction and wants to explore feasible specific topics.

    237 GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check passed
  • Ai4s Agent

    ai4s-research/ai4s-skills

    A skill your agent uses when the user wants an end-to-end AI4S research pipeline — broad direction or specific topic in, full research package out (exploration + literature survey + experiment +…

    237 GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed
  • Mindmap Render

    ai4s-research/ai4s-skills

    Generate beautiful, high-resolution mindmaps from Markdown unordered lists.

    237 GitHub starsUsed in 1 repo~3.1k tokens
    Auto-check passed

Questions about Paper Writer

What does Paper Writer do?

A skill your agent uses when the user wants a complete, publication-grade research paper on a specific topic — produces 200+ real citations, 4–8 publication-grade figures, and 7 sections of…. Paper Writer is an agent skill from ai4s-research/ai4s-skills. Use when the user wants a complete, publication-grade research paper on a specific topic — produces 200+ real citations, 4–8 publication-grade figures, and 7 sections of substantive prose compiled to PDF in one pass.

When should I use Paper Writer?

Paper Writer fits situations like: the user wants a complete; publication-grade research paper on a specific topic — produces 200+ real citations; 4–8 publication-grade figures; 7 sections of substantive prose compiled to PDF in one pass.

How do I install Paper Writer in Claude Code?

Run `npx skills add ai4s-research/ai4s-skills --skill paper-writer -a claude-code`. Or copy the skill folder (skills/paper-writer in ai4s-research/ai4s-skills) into .claude/skills/paper-writer in your project. Claude Code loads it when a task matches its description.

How do I install Paper Writer in Codex?

Run `npx skills add ai4s-research/ai4s-skills --skill paper-writer -a codex`. Or copy the skill folder (skills/paper-writer in ai4s-research/ai4s-skills) into .agents/skills/paper-writer in your project. Codex loads it when a task matches its description.

Can I use Paper Writer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ai4s-research/ai4s-skills --skill paper-writer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/paper-writer, .gemini/skills/paper-writer, .github/skills/paper-writer and .opencode/skills/paper-writer in your project.

What does Paper Writer need to run?

Going by SKILL.md and its folder, Paper Writer needs Python and a shell for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3; A Bash shell.

Does Paper Writer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Paper Writer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Paper Writer use?

Paper Writer is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Paper Writer use?

About 2.4k tokens (SKILL.md is roughly 9.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 22k tokens, read only when the agent opens those files.

What are the alternatives to Paper Writer?

Skills that share tags, products or a category with Paper Writer: Citation Verification Guide (Galaxy-Dawn/claude-scholar, 5.7k stars), Citation Management (K-Dense-AI/claude-scientific-writer, 2.4k stars), Academic Paper Writing Pipeline (Imbad0202/academic-research-skills, 51k stars) and Academic Humanizer (AIScientists-Dev/academic-humanizer, 1.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Paper Writer?

ai4s-research (a GitHub organization) maintains it in ai4s-research/ai4s-skills, which has 237 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on July 28, 2026.

Source: ai4s-research/ai4s-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.