Skip to main content
ClaudeWave
Skill2.3k repo starsupdated 23d ago

scientific-writing

This skill structures the creation of scientific manuscripts using IMRAD format with flowing prose paragraphs, comprehensive literature integration via research-lookup, and proper citations in APA/AMA/Vancouver styles. Use it when drafting or revising research papers for journal submission, applying reporting guidelines like CONSORT or PRISMA, formatting citations and references, creating figures and tables, and addressing peer review comments.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/K-Dense-AI/claude-scientific-writer /tmp/scientific-writing && cp -r /tmp/scientific-writing/skills/scientific-writing ~/.claude/skills/scientific-writing
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# Scientific Writing

## Purpose

Produce clear scientific prose without inventing evidence or concealing uncertainty.
Keep drafting, evidence verification, and submission approval as separate stages.

The accountable human authors control scientific decisions and final approval. AI is
not an author, and generated fluency is never evidence [SW-S01, SW-S03].

## Non-negotiable safety rules

### Confidentiality

Do not send unpublished manuscripts, peer-review or editorial material, sensitive or
restricted data, PHI or other personal data, proprietary content, or source documents
to an external service without:

1. explicit authorization from a person or body empowered to grant it; and
2. a documented review of journal, institutional, funder, consent, ethics, contractual,
   legal, and data-use policy.

When authorization or policy is unclear, keep processing local and use only the minimum
metadata needed. De-identification requires expert review; removing obvious names is
not sufficient. See `references/authorship_ai_confidentiality.md`.

### No fabrication

Never invent or complete:

- citations, references, DOI, PMID, PMCID, ISBN, URLs, or quotations;
- results, data values, denominators, sample sizes, units, effect estimates,
  uncertainty, statistical tests, or significance claims;
- methods, materials, protocol details, software versions, analysis choices, or
  deviations;
- registrations, approvals, consent, ethics statements, participant details, or dates;
- authors, author order, CRediT roles, acknowledgments, or permissions;
- funding, sponsor roles, conflicts, data or code availability, or AI disclosures.

Use an explicit missing, unverified, or not-applicable state. Do not substitute plausible
boilerplate.

### Evidence binding

Every factual or numeric manuscript claim must map to verified evidence IDs. A human
verifier must open the source, confirm the proposition and locator, verify bibliographic
metadata, and record who verified it and when.

Search snippets, generated summaries, memory, and another work's bibliography may aid
discovery but do not verify a claim. See `references/evidence_workflow.md`.

### Scientific fidelity

- Preserve uncertainty and alternative explanations.
- Distinguish confirmatory, exploratory, descriptive, and post hoc work.
- Keep methods and results consistent.
- Reconcile units, denominators, sample sizes, populations, time points, and labels.
- Report negative, null, adverse, unexpected, failed, and inconclusive findings when
  they belong to the study record.
- State concrete limitations and bound generalizability.
- Do not convert association into causation or non-significance into equivalence.

## Intake

Before drafting, obtain or mark unresolved:

- document type, study design, stage, audience, and target venue;
- current author instructions and policy access date;
- protocol, registration, analysis plan, amendments, and reporting guideline;
- manuscript or section scope;
- verified source manifest and claim registry;
- methods, results, tables, figures, and supplements;
- authorship, CRediT, declarations, and approval records;
- confidentiality classification and authorized processing boundary;
- data, code, materials, and repository constraints.

Do not ask for restricted source material if metadata or a local user-run audit is
sufficient.

## Workflow

### 1. Establish the local workspace

For a new draft, optionally generate fail-closed Markdown, JSON, and CSV scaffolds:

```bash
python3 scripts/scaffold_manuscript.py \
  --output-dir ./draft-workspace \
  --document-id local-draft \
  --study-design randomized_trial \
  --guideline consort-2025
```

The generator never overwrites files. Its output is explicitly not submission-ready and
contains placeholders that the linter rejects.

### 2. Select reporting guidance

Choose by actual design and article type, then open the current official statement,
checklist, explanation document, extensions, and target-journal instructions.

```bash
python3 scripts/select_reporting_guidelines.py select \
  --study-design randomized_trial
```

Current major routes researched on 2026-07-24 include CONSORT 2025, SPIRIT 2025,
PRISMA 2020, STROBE, STARD and STARD-AI, TRIPOD+AI, CARE, ARRIVE 2.0, SQUIRE 2.0,
and CHEERS 2022 [SW-S06–SW-S18].

The selector is non-scoring. It does not certify quality, compliance, completeness, or
acceptance. See `references/reporting_guidelines.md`.

### 3. Build the evidence record

Assign:

- `E` IDs to sources in `source_manifest.json`;
- `C` IDs to claims in `claims.csv`;
- `N`, `M`, `O`, and `R` IDs to numeric facts, methods, outcomes, and results in
  `consistency_manifest.json`.

Store a hash of claim text in CSV rather than raw claim text. During drafting, append:

```text
[claim:C001] [evidence:E001,E002]
```

Do not mark a source verified until an accountable human has opened it and confirmed
the exact support.

### 4. Create an evidence outline

Outline only from recorded evidence:

- objective or question;
- section purpose;
- claim IDs and evidence IDs;
- methods and result IDs;
- analysis intent and uncertainty;
- unresolved conflicts or missing information;
- applicable reporting topics.

Keep unsupported content in an unresolved-issues list, not manuscript prose.

### 5. Draft without adding facts

Transform the verified outline into venue-appropriate prose. Preserve all IDs during
drafting.

- Match title and abstract to the completed main text.
- Describe methods as performed.
- Present results in the declared order and analysis population.
- Separate result from interpretation unless the venue combines them.
- Compare with prior evidence only after verifying it.
- Keep conclusions within the observed design, population, and uncertainty.

Use IMRAD only when appropriate. Structured abstracts, lists, combined sections, and
alternative structures depend on study design and venue. See
`references/imrad_structure.md` and `references/writing_principles.md`.

###
citation-managementSkill

Comprehensive citation management for academic research. Search Google Scholar and PubMed for papers, extract accurate metadata, validate citations, and generate properly formatted BibTeX entries. This skill should be used when you need to find papers, verify citation information, convert DOIs to BibTeX, or ensure reference accuracy in scientific writing.

clinical-decision-supportSkill

Prepare and validate research-only clinical decision-support evaluation, evidence-profile, cohort, survival, biomarker/model, privacy, and governance artifacts. Use for aggregate or synthetic research documentation and traceability—not patient care or live clinical operation.

clinical-reportsSkill

Create safety-bounded draft structures and run local deterministic checks for clinical case, diagnostic, trial, safety, and aggregate research reports. Use only with synthetic, de-identified, or aggregate inputs and verified source-fact manifests; every output requires qualified review.

docxSkill

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.

pdfSkill

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.

pptxSkill

Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.

xlsxSkill

Create, edit, analyze, or convert Excel spreadsheets (.xlsx, .xlsm, .xltx) where the workbook file is the primary deliverable. Use for formulas, formatting, financial models, multi-sheet workbooks, and tabular cleanup exported to Excel. Also applies to .csv/.tsv when the user wants spreadsheet output. Do NOT use for Word documents, HTML reports, standalone Python scripts, database pipelines, or Google Sheets API work.

generate-imageSkill

Generate or edit images with AI models through the OpenRouter Image API (Gemini, FLUX, Seedream, Recraft, GPT-Image). Use for photos, illustrations, artwork, concept art, visual assets, logos, and image editing or compositing from reference images. For flowcharts, circuits, pathways, and other technical diagrams, use the scientific-schematics skill instead.