# paper-writing-section

A skill that drafts or reworks a single section of an academic paper, from abstract to conclusion. Useful when the research is done but the prose is not.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1800 installs · ★ 433
- Author: lingzhi227
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/lingzhi227/agent-research-skills/tree/HEAD/skills/paper-writing-section/SKILL.md
- Updated: 2026-02-27
- HTML: https://affpapa.org/en/nevibecode/skills/paper-writing-section

## What it does

The skill handles one section at a time. You pass the section name as an argument: `abstract`, `introduction`, `background`, `related-work`, `methods`, `experimental-setup`, `results`, `discussion` or `conclusion`. An optional second argument points to a context file with the research plan, results or earlier sections.

Three steps. First the agent reads the existing `.tex` files, experiment logs and result files to pick up the title, contributions, methodology and key numbers. Then it writes the section, pulling section-specific tips from `references/section-tips.md` and leaving a short plan as a LaTeX comment above each paragraph. Finally it runs both passes from `references/refinement-prompts.md`: the first fixes unenclosed math, broken refs and hallucinated numbers, the second cuts redundancy and smooths transitions.

Output is a LaTeX fragment with no `\documentclass` and no preamble. Math sits in `$...$` or `\begin{equation}`, figures are referenced with `\ref{}`, citations with `\cite{}`. Numbers in the text are supposed to match the experiment logs exactly, so thin logs mean manual checking. The skill sits in a chain: `data-analysis`, `figure-generation` and `table-generation` feed it, while `latex-formatting` and `citation-management` take over afterwards.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add lingzhi227/agent-research-skills --skill paper-writing-section -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/paper-writing-section/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/paper-writing-section/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add lingzhi227/agent-research-skills --skill paper-writing-section -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/paper-writing-section/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add lingzhi227/agent-research-skills --skill paper-writing-section -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/paper-writing-section/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install lingzhi227/agent-research-skills paper-writing-section
```

2. **Manually: put the files in place**
- File: `.github/skills/paper-writing-section/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add lingzhi227/agent-research-skills --skill paper-writing-section -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/lingzhi227/agent-research-skills --path skills/paper-writing-section
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/paper-writing-section/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add lingzhi227/agent-research-skills --skill paper-writing-section -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/lingzhi227/agent-research-skills/tree/HEAD/skills/paper-writing-section/SKILL.md

## When to use it
- draft a Methods section from an existing research plan
- write an Introduction with working citation keys
- rewrite Results so the numbers match the experiment logs
- strip repetition from a bloated Discussion
- finish a Conclusion with no TODO markers left

## Example prompts
- write the methods section, context is in `plan.md`
- rewrite the introduction, keep the citations as they are
- compress the discussion and drop the repetition

## Similar
- [paper-writing](https://affpapa.org/en/nevibecode/skills/evoscientist-paper-writing.md) — skill · 504 installs
- [latex-paper-en](https://affpapa.org/en/nevibecode/skills/latex-paper-en.md) — skill · 5900 installs
- [research-writing-skill](https://affpapa.org/en/nevibecode/skills/research-writing-skill.md) — skill · 878 installs
- [writing-systems-papers](https://affpapa.org/en/nevibecode/skills/writing-systems-papers.md) — skill · 447 installs
- [academic-paper-writer](https://affpapa.org/en/nevibecode/skills/academic-paper-writer.md) — skill · 519 installs
- [ml-paper-writing](https://affpapa.org/en/nevibecode/skills/ml-paper-writing.md) — skill · 2300 installs

From the same set: [lingzhi227/agent-research-skills](https://affpapa.org/en/nevibecode/by/lingzhi227/agent-research-skills.md) — 30 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
