paper-writing-section
lingzhi227/agent-research-skills
How to install paper-writing-section
npx skills add https://github.com/lingzhi227/agent-research-skills --skill paper-writing-sectionFull instructions (SKILL.md)
Source of truth, from lingzhi227/agent-research-skills.
name: paper-writing-section description: Write a specific section of an academic paper (Abstract, Introduction, Background, Related Work, Methods, Experiments, Results, Discussion/Conclusion) with section-specific guidance and two-pass refinement. Use when the user wants to write, draft, or improve a paper section. argument-hint: [section-name]
Paper Section Writer
Write a publication-quality section for an academic paper.
Input
$0— Section name:abstract,introduction,background,related-work,methods,experimental-setup,results,discussion,conclusion$1— (Optional) Path to context file (research plan, results, prior sections)
Workflow
Step 1: Gather Context
Read the paper's existing .tex files, experiment logs, result files, and any provided context. Understand: title, contributions, methodology, key results, figures, tables.
Step 2: Write the Section
Load section-specific tips from references/section-tips.md. Before every paragraph, include a brief plan as a LaTeX comment (% Plan: ...).
Step 3: Two-Pass Refinement
Apply both refinement passes from references/refinement-prompts.md:
- Pass 1: Fix errors (unenclosed math, broken refs, hallucinated numbers, duplicate labels)
- Pass 2: Remove redundancies, compress, ensure smooth transitions
References
- Section writing tips:
~/.claude/skills/paper-writing-section/references/section-tips.md - Refinement prompts and error checklist:
~/.claude/skills/paper-writing-section/references/refinement-prompts.md
Output
LaTeX fragment (no \documentclass, no preamble). All math enclosed in $...$ or \begin{equation}, all figures referenced with \ref{}, all cited works use \cite{}, no placeholder text.
Quality Checklist
- All math enclosed properly
- All
\ref{}and\cite{}valid - No TODO/TBD/FIXME markers
- Numbers match experimental logs exactly
- Writing style is objective — no hype words
- Section length appropriate for venue
Related Skills
- Upstream: data-analysis, figure-generation, table-generation, related-work-writing
- Downstream: latex-formatting, citation-management
- See also: paper-assembly
Related skills
More from lingzhi227/agent-research-skills and the wider catalog.
literature-review
Conduct comprehensive literature reviews using multi-perspective dialogue simulation. Generate diverse expert personas, conduct grounded Q&A conversations, and synthesize findings into structured knowledge. Use when starting a new research project or writing a survey section.
literature-search
Search academic literature using Semantic Scholar, arXiv, and OpenAlex APIs. Returns structured JSONL with title, authors, year, venue, abstract, citations, and BibTeX. Use when the user needs to find papers, check related work, or build a bibliography.
figure-generation
Generate publication-quality scientific figures using matplotlib/seaborn with a three-phase pipeline (query expansion, code generation with execution, VLM visual feedback). Handles bar charts, line plots, heatmaps, training curves, ablation plots, and more. Use when the user needs figures, plots, or visualizations for a paper.
citation-management
Manage BibTeX citations for LaTeX papers. Harvest missing citations from a draft using Semantic Scholar, validate cite keys against .bib files, deduplicate entries, and format bibliography. Use when working with references, BibTeX, or citations.
latex-formatting
Handle LaTeX formatting, templates, and styling for academic papers. Set up conference templates (ICML, ICLR, NeurIPS, AAAI, ACL), fix formatting issues, manage packages, and ensure venue-specific compliance. Use when the user needs to set up a paper template, fix LaTeX formatting, or prepare for submission.
data-analysis
Generate statistical analysis code with 4-round review. Select appropriate statistical tests, interpret results, and produce analysis reports with p-values, effect sizes, and confidence intervals. Use when analyzing experimental data for a paper.