/scientific-writing
Generate publication-ready methods sections, figure legends, supplementary tables, and data availability statements from ENCODE analysis provenance. Implements the scientific documentation standards requiring complete metadata reporting. Use when the user needs to write methods,
$ npx -y skills add ammawla/encode-toolkit --skill scientific-writing --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/scientific-writing
Context preview
The summary Claude sees to decide when to auto-load this skill.
Generate publication-ready methods sections, figure legends, supplementary tables, and data availability statements from ENCODE analysis provenance. Implements the scientific documentation standards requiring complete metadata reporting. Use when the user needs to write methods,
SKILL.md
scientific-writing.SKILL.mdname: scientific-writing
description: "Generate publication-ready methods sections, figure legends, supplementary tables, and data availability statements from ENCODE analysis provenance. Implements the scientific documentation standards requiring complete metadata reporting. Use when the user needs to write methods, generate figure legends, create supplementary tables, draft data availability statements, compile tool citations, or auto-generate any publication text from their ENCODE analysis. Trigger on: methods section, figure legend, supplementary table, data availability, tool citations, publication writing, manuscript, write methods, methods draft, write up, write-up, paper writing, reproducible methods."
Scientific Writing from ENCODE Provenance
Generate publication-quality scientific writing from ENCODE analysis records. This skill integrates with `data-provenance` and `cite-encode` to auto-generate methods from logged pipeline runs. Every generated section follows rigorous scientific documentation standards -- complete reporting of all experimental and computational parameters with zero ambiguity.
When to Use
- User wants to write publication-ready methods sections, figure legends, or data availability statements
- User asks about "methods section", "figure legend", "scientific writing", or "manuscript preparation"
- User needs to auto-generate methods text from logged provenance/analysis steps
- User wants templates for supplementary tables, Key Resources Tables, or tool citation formatting
- Example queries: "write a methods section for my ChIP-seq analysis", "generate a figure legend for my heatmap", "format my data availability statement"
Overview
Most methods sections in genomics papers are incomplete. They omit software versions, skip reference file details, conflate technical and biological replicates, and use phrases like "default parameters" without stating what those defaults are. Reviewers catch these omissions, and readers cannot reproduce the analysis.
This skill solves the problem by generating methods text directly from the provenance chain. When every processing step has been logged (via `data-provenance`), the methods section writes itself. When metadata has been captured from ENCODE (via `track-experiments`), the experimental details are already recorded. This skill assembles these records into publication-ready prose, figure legends, supplementary tables, and data availability statements.
This standard is not aspirational -- it is the minimum bar for reproducible science.
Scientific Documentation Standards -- Required Metadata
Every methods section MUST report the following fields. Omitting any of these fields produces an incomplete methods section that reviewers will flag and readers cannot reproduce.
| Field | Example | Why Required | |---|---|---| | Library preparation | TruSeq ChIP | Affects fragment size distribution and GC bias | | Biological replicates | n=2 per condition | Statistical power and reproducibility | | Cells/nuclei per replicate | 50,000 cells | Input sufficiency for the assay | | Sequencing reads | 30M paired-end | Coverage depth determines sensitivity | | Read length | 2x150 bp | Alignment accuracy and mappability | | Paired/single-end | Paired-end | Fragment size estimation, structural variants | | Sequencer | NovaSeq 6000 | Quality profile, error model, binning | | Lab/batch | Snyder Lab, Stanford | Batch effect awareness | | Reference genome | GRCh38/hg38 | Coordinate system for all downstream analysis | | Gene annotation | GENCODE v44 | Gene definitions change between versions | | ENCODE accessions | ENCSR133RZO | Exact data provenance for reproducibility | | Blacklist version | ENCODE Blacklist v2 | Artifact exclusion affects all peak-based analyses |
How to Populate These Fields
# Track the experiment to capture metadata
encode_track_experiment(accession="ENCSR...", fetch_publications=True)
# Get full experiment details
encode_get_experiment(accession="ENCSR...")
# Get file-level metadata
encode_get_file_info(accession="ENCFF...")
# Get provenance for derived files
encode_get_provenance(file_path="/path/to/derived/file.bed")
Methods Section Templates
Each template below is a fill-in-the-blank paragraph that reads like a real methods section. Bracketed fields `[like this]` are populated from ENCODE metadata and provenance records. Every template follows these documentation standards.
ChIP-seq Methods
Chromatin immunoprecipitation followed by sequencing (ChIP-seq) data for
[target] in [biosample] were obtained from the ENCODE Project (ENCODE
Project Consortium 2020) under accession [ENCSR accession]. [Library
preparation method] libraries were prepared from [number] biological
replicates ([cells/nuclei] per replicate) and sequenced on an Illumina
[sequencer model] to generate [read count]M [paired-end/single-end]
reads of [read length] bp per replicate.
Raw reads were assessed with FastQC (v[version]; Andrews 2010) and
trimmed with Trim Galore (v[version]; Krueger 2015) to remove adapter
sequences and low-quality bases (Phred < 20). Trimmed reads were aligned
to the [organism] reference genome ([assembly]) using BWA-MEM (v[version];
Li 2013) with default parameters. Duplicate reads were marked and removed
using Picard MarkDuplicates (v[version]; Broad Institute). Reads with
mapping quality < 30 were excluded using samtools (v[version]; Danecek
et al. 2021). Reads mapping to ENCODE Blacklist v2 regions (Amemiya et al.
2019) were removed using bedtools intersect (v[version]; Quinlan & Hall
2010).
Peaks were called using MACS2 (v[version]; Zhang et al. 2008) with
parameters [--broad for broad marks / -q 0.05 for narrow marks]. For
narrow-peak targets, IDR analysis (Li et al. 2011) was performed on
replicate peak sets with a threshold of [0.05]. Signal tracks (fold
change over control) were generated using MACS2 bdgcmp and converted
to bigWig format using bedGraphToBigWig
Read more
name: scientific-writing description: "Generate publication-ready methods sections, figure legends, supplementary tables, and data availability statements from ENCODE analysis provenance. Implements the scientific documentation standards requiring complete metadata reporting. Use when the user needs to write methods, generate figure legends, create supplementary tables, draft data availability statements, compile tool citations, or auto-generate any publication text from their ENCODE analysis. Trigger on: methods section, figure legend, supplementary table, data availability, tool citations, publication writing, manuscript, write methods, methods draft, write up, write-up, paper writing, reproducible methods."
Scientific Writing from ENCODE Provenance
Generate publication-quality scientific writing from ENCODE analysis records. This skill integrates with `data-provenance` and `cite-encode` to auto-generate methods from logged pipeline runs. Every generated section follows rigorous scientific documentation standards -- complete reporting of all experimental and computational parameters with zero ambiguity.
When to Use
- User wants to write publication-ready methods sections, figure legends, or data availability statements
- User asks about "methods section", "figure legend", "scientific writing", or "manuscript preparation"
- User needs to auto-generate methods text from logged provenance/analysis steps
- User wants templates for supplementary tables, Key Resources Tables, or tool citation formatting
- Example queries: "write a methods section for my ChIP-seq analysis", "generate a figure legend for my heatmap", "format my data availability statement"
Overview
Most methods sections in genomics papers are incomplete. They omit software versions, skip reference file details, conflate technical and biological replicates, and use phrases like "default parameters" without stating what those defaults are. Reviewers catch these omissions, and readers cannot reproduce the analysis.
This skill solves the problem by generating methods text directly from the provenance chain. When every processing step has been logged (via `data-provenance`), the methods section writes itself. When metadata has been captured from ENCODE (via `track-experiments`), the experimental details are already recorded. This skill assembles these records into publication-ready prose, figure legends, supplementary tables, and data availability statements.
This standard is not aspirational -- it is the minimum bar for reproducible science.
Scientific Documentation Standards -- Required Metadata
Every methods section MUST report the following fields. Omitting any of these fields produces an incomplete methods section that reviewers will flag and readers cannot reproduce.
| Field | Example | Why Required | |---|---|---| | Library preparation | TruSeq ChIP | Affects fragment size distribution and GC bias | | Biological replicates | n=2 per condition | Statistical power and reproducibility | | Cells/nuclei per replicate | 50,000 cells | Input sufficiency for the assay | | Sequencing reads | 30M paired-end | Coverage depth determines sensitivity | | Read length | 2x150 bp | Alignment accuracy and mappability | | Paired/single-end | Paired-end | Fragment size estimation, structural variants | | Sequencer | NovaSeq 6000 | Quality profile, error model, binning | | Lab/batch | Snyder Lab, Stanford | Batch effect awareness | | Reference genome | GRCh38/hg38 | Coordinate system for all downstream analysis | | Gene annotation | GENCODE v44 | Gene definitions change between versions | | ENCODE accessions | ENCSR133RZO | Exact data provenance for reproducibility | | Blacklist version | ENCODE Blacklist v2 | Artifact exclusion affects all peak-based analyses |
How to Populate These Fields
# Track the experiment to capture metadata encode_track_experiment(accession="ENCSR...", fetch_publications=True) # Get full experiment details encode_get_experiment(accession="ENCSR...") # Get file-level metadata encode_get_file_info(accession="ENCFF...") # Get provenance for derived files encode_get_provenance(file_path="/path/to/derived/file.bed")
Methods Section Templates
Each template below is a fill-in-the-blank paragraph that reads like a real methods section. Bracketed fields `[like this]` are populated from ENCODE metadata and provenance records. Every template follows these documentation standards.
ChIP-seq Methods
Chromatin immunoprecipitation followed by sequencing (ChIP-seq) data for [target] in [biosample] were obtained from the ENCODE Project (ENCODE Project Consortium 2020) under accession [ENCSR accession]. [Library preparation method] libraries were prepared from [number] biological replicates ([cells/nuclei] per replicate) and sequenced on an Illumina [sequencer model] to generate [read count]M [paired-end/single-end] reads of [read length] bp per replicate. Raw reads were assessed with FastQC (v[version]; Andrews 2010) and trimmed with Trim Galore (v[version]; Krueger 2015) to remove adapter sequences and low-quality bases (Phred < 20). Trimmed reads were aligned to the [organism] reference genome ([assembly]) using BWA-MEM (v[version]; Li 2013) with default parameters. Duplicate reads were marked and removed using Picard MarkDuplicates (v[version]; Broad Institute). Reads with mapping quality < 30 were excluded using samtools (v[version]; Danecek et al. 2021). Reads mapping to ENCODE Blacklist v2 regions (Amemiya et al. 2019) were removed using bedtools intersect (v[version]; Quinlan & Hall 2010). Peaks were called using MACS2 (v[version]; Zhang et al. 2008) with parameters [--broad for broad marks / -q 0.05 for narrow marks]. For narrow-peak targets, IDR analysis (Li et al. 2011) was performed on replicate peak sets with a threshold of [0.05]. Signal tracks (fold change over control) were generated using MACS2 bdgcmp and converted to bigWig format using bedGraphToBigWig
Showing the first part of this file.
Search ENCODE, cross-reference 14 databases, run 7 analysis pipelines, and generate publication-ready methods — all from natural language in Claude Code.
Repo: ammawla/encode-toolkit
Other skills on encode-toolkit.
- /accessibility-aggregation
Build comprehensive chromatin accessibility maps by aggregating ATAC-seq and DNase-seq narrowPeak data across multiple ENCODE experiments, donors, and labs. Use when the user wants to answer "where is chromatin accessible in my tissue?" by combining peak calls into a union peak
Open skill - /batch-analysis
Guide for multi-experiment batch operations: QC screening, batch download, comparison, and report generation across many ENCODE experiments simultaneously. Use when users need to process 5+ experiments together, create experiment comparison tables, perform batch quality checks,
Open skill - /bioinformatics-installer
Install bioinformatics tools for ENCODE data analysis. Covers CLI tools (BWA, STAR, samtools, MACS2), R/Bioconductor packages (DESeq2, Seurat, ChIPseeker), Python packages (Scanpy, deeptools), and Nextflow pipeline infrastructure. Generates conda environments, R install scripts,
Open skill - /cellxgene-context
Guide for integrating CellxGene Census single-cell data with ENCODE bulk experiments. Use when users need cell-type-specific expression context for ENCODE regulatory data, want to deconvolve bulk ENCODE signals, or validate regulatory elements at single-cell resolution. Trigger
Open skill - /cite-encode
Generate proper ENCODE citations for publications, grants, and presentations. Use when the user needs to cite ENCODE data, create bibliography entries, write acknowledgment sections, or ensure compliance with ENCODE data use policy.
Open skill - /clinvar-annotation
Guide for annotating ENCODE regulatory variants with ClinVar clinical significance. Use when users need to check if variants in ENCODE peaks have clinical associations, find pathogenic variants in regulatory regions, or assess variant clinical impact. Trigger on: ClinVar,
Open skill

