Paper Writer logo

Paper Writer

Organization
ai4s-research
paper-writer

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.

Overview

Publisherai4s-research
Repositoryai4s-skills
Skill namepaper-writer
Stars
250
Forks
22
Bundled files
10
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 10 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by ai4s-research on GitHub. Read the source before you install it.

Installation

Install the Paper Writer AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ai4s-research/ai4s-skills/tree/main/skills/paper-writer
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ai4s-research/ai4s-skills.git /tmp/ai4s-skills
mkdir -p .claude/skills
cp -r /tmp/ai4s-skills/skills/paper-writer .claude/skills/paper-writer
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Paper Writer in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Paper Writer on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Paper Writer is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Paper Writer AI skill do?

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.

Why use Paper Writer on TypingMind?

Because you install it once and use it with any model. Paper Writer is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Paper Writer in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ai4s-research/ai4s-skills/tree/main/skills/paper-writer. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Paper Writer?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Paper Writer?

As many as you like. As long as a model supports skills, you can use Paper Writer with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Paper Writer AI skill free?

Yes. It is published on GitHub by ai4s-research under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇