/social-science-research:write-paper [paper title, research question, or 'from spec']from Social Science Research
Drafts full academic papers from analysis outputs, project specs, and literature reviews. Provide a title or research question to start.
Ships in Social Science Research. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Draft an academic manuscript from existing analysis outputs. Follows propose-first — the outline is always shown for approval before writing begins.
Input: $ARGUMENTS — a paper title, research question, or from spec to read from quality_reports/specs/.
Read project context:
CLAUDE.md — project name, author, institutionreferences/domain-profile.md — field (used to calibrate outline conventions in Step 3)quality_reports/specs/ — research question and identification strategyquality_reports/lit_review_*.md — related literature (if it exists)quality_reports/research_ideation_*.md — hypotheses (if it exists)If no spec exists, ask the user for the core research question before proceeding.
Glob for available outputs:
output/tables/**/*.tex — regression tablesoutput/tables/**/*.html — HTML table versionsoutput/figures/**/*.pdf, output/figures/**/*.png — figuresoutput/**/*.rds, output/**/*.pkl, output/**/*.parquet — saved objectsList what exists. Note any gaps (e.g., "no summary statistics table found").
Draft a paper outline using this standard structure:
1. Abstract
2. Introduction
3. Background
4. Data & Methods
5. Results
6. Discussion
7. Appendix
References
The structure is flexible. Default to the hardcoded outline above unless (a) the user requests a different structure, or (b) the field in references/domain-profile.md has strong conventions that warrant deviation (e.g., merging Background into Introduction, splitting Data & Methods into separate Data and Empirical Strategy sections, or reordering sections). If you deviate from the default, state explicitly why and confirm with the user before writing.
Adapt the writing style — not the structure, by default — to the field from references/domain-profile.md. A political science paper reads differently than an econometrics paper even with the same section headings: econ prose leads with identification and is terse about theory; poli sci prose leads with theoretical framing and treats measurement validity as a first-class concern; sociology leans on theoretical framework prose. Mirror the conventions of the field's top journals when drafting each section.
Present the outline with a one-sentence description of each section's content, linking specific output files to each section (e.g., "Table 2 → Section 5, Results"). Do NOT start writing until the user approves the outline or requests changes.
Write in this order (minimizes backtracking):
output/tables/summary_stats.tex if it exists), then the identification or estimation approach from the research spec.\input{} or \includegraphics{} — do NOT copy table content inline.Save to manuscripts/[project-name]-draft.tex (or .qmd if the user prefers Quarto).
Create manuscripts/ directory if it does not exist.
Use \input{} for tables and \includegraphics{} for figures — reference the actual files in output/, do not embed content directly.
Before handing off to review skills, run a quick structural check on the draft to catch drafting-artifact errors that full substance review doesn't focus on. This is not a substance review — /review-paper handles that. This catches broken references and left-behind placeholders that would embarrass the author if the draft went out as-is.
Do this inline (no agent dispatch). Read the saved draft and check:
Table references resolve. For every \input{...} command in the draft, confirm the referenced file exists in output/. Grep the draft for \input\{; for each hit, Glob the referenced path. List any misses.
Figure references resolve. For every \includegraphics{...} command, confirm the referenced file exists in output/figures/. Same approach: grep, then glob.
No placeholders left behind. Grep the draft for TODO, FIXME, XXX, [placeholder], [TK], ???, and square-bracketed all-caps tokens like [PLACEHOLDER]. List every hit with its line number.
Required sections present. Confirm the draft contains an abstract, an introduction, and a conclusion (by section heading or equivalent markup). Flag any missing.
No fabricated numbers. Grep the draft for numeric patterns in prose (e.g., \d+\.\d+%, \$\d+, p\s*<\s*0\.\d+). For each, note whether a corresponding output file was referenced nearby. This is a heuristic — flag likely orphans for the user to verify, not definitive.
Present the results as a short checklist:
## Structural Smoke Test Results
[OK] Table references: 8/8 resolve
[FAIL] Figure references: 3/4 resolve — missing output/figures/heterogeneity.pdf
[OK] No placeholders found
[OK] Required sections present (abstract, introduction, conclusion)
[WARN] 4 numeric claims in prose may lack nearby output references — see list below
Do not run a substance review here. If any structural issues are flagged, offer to fix them before handoff. Bibliography checking is deferred to /validate-bib; claim-to-output traceability is deferred to /quality-gate; substance review is deferred to /review-paper.
Inform the user:
/review-paper — for a full top-journal-style review of the manuscript/validate-bib — to check all citations are in the bibliography/quality-gate — to verify every claim in the paper is backed by an output fileoutput/; the paper references them by path.output/, flag it rather than guessing./review-paper's job.What SKILL.md sets; muted values are Claude Code's defaults
write paper, draft manuscript, write up results, start the paper, turn results into paper, write introduction, draft empirics section, I have results now write the paper, help write this up, write abstract
Three short reads, in order
13 skills in this plugin
/data-analysisEnd-to-end data analysis in R or Python — exploration through regression to publication-ready tables and figures. Use when running empirical analysis, writing analysis code, or producing output from data./data-finderFind and assess datasets for a research question. Explorer agents search data source categories; Explorer-Critic stress-tests candidates and produces ranked list with feasibility grades. Use when identifying or evaluating data sources, not searching papers or running analysis./lit-reviewStructured literature review via parallel Librarian agents. Searches top journals, working paper repos (NBER, SSRN, IZA); traces citation chains from key papers. Use when surveying existing research on a topic, not finding datasets or writing a paper./new-projectStart a new research project. Structured interview formalizes the idea; generates research questions with identification strategies and a project spec. Use when developing or documenting a new research idea, not searching literature or data./proofreadProofread papers and manuscripts. Checks grammar, typos, layout, consistency, writing quality. Produces report without editing files. Use when finding surface-level errors, not substantive academic critique./quality-gateVerify every quantitative claim in the paper traces to an analysis output file, and no important output was omitted. Use when checking the paper matches the analysis before submission.npx claudepluginhub felpix-studios/social-science-research --plugin social-science-researchOther plugins' skills for the same job