[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75FGSVWW8A5JBR7MMM193XN":3,"skill-same:01M75FGSVWW8A5JBR7MMM193XN":166},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":129,"commitSha":130,"skillDirectory":131,"forksCount":132,"repositoryHtmlUrl":133,"repositoryHomepageUrl":6,"ownerHtmlUrl":134,"ownerBlogUrl":135,"ownerDescription":6,"updatedAt":136,"install":137,"resources":149},"01M75FGSVWW8A5JBR7MMM193XN","article-data-fetcher",null,"Given an article DOI or PubMed ID, discover and download the genomics data files deposited by the authors (VCF, FASTA, H5AD, CSV, JSON, BAM, etc.) from public repositories such as GEO, ENA, Zenodo, Figshare, Dryad, and OSF.","stanfish06\u002Fskillquarium","stanfish06","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F93099613?v=4","01M75F1CK4ZW109ZK3T26VN52F","Zhiyuan","01M75F1CM53VH6F79DZ8GXKKES",12,"MIT","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Farticle-data-fetcher\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: article-data-fetcher\ndescription: >-\n  Given an article DOI or PubMed ID, discover and download the genomics data\n  files deposited by the authors (VCF, FASTA, H5AD, CSV, JSON, BAM, etc.) from\n  public repositories such as GEO, ENA, Zenodo, Figshare, Dryad, and OSF.\nlicense: MIT\nmetadata:\n  version: \"0.1.0\"\n  author: ClawBio\n  domain: genomics\n  tags:\n    - data-download\n    - genomics\n    - reproducibility\n    - geo\n    - ena\n    - zenodo\n  inputs:\n    - name: article_id\n      type: string\n      format:\n        - doi\n        - pmid\n        - url\n      description: Article DOI, PubMed ID (PMID), or direct repository URL\n      required: true\n    - name: file_types\n      type: string\n      format:\n        - free text list\n      description: Comma-separated list of file extensions the user wants (e.g. vcf,fasta,h5ad)\n      required: true\n    - name: output_dir\n      type: string\n      description: Local directory to save downloaded files (defaults to .\u002Fdownloads)\n      required: false\n  outputs:\n    - name: downloaded_files\n      type: files\n      format:\n        - vcf\n        - fasta\n        - h5ad\n        - csv\n        - tsv\n        - json\n        - bam\n        - fastq\n        - bed\n        - gz\n        - zip\n      description: The actual data files retrieved from repositories\n    - name: manifest.json\n      type: file\n      format:\n        - json\n      description: Machine-readable record of every file downloaded (source URL, size, checksum)\n    - name: report.md\n      type: file\n      format:\n        - md\n      description: Human-readable summary of what was found and downloaded\n  dependencies:\n    python: \">=3.11\"\n    packages:\n      - requests>=2.31\n      - biopython>=1.83\n      - tqdm>=4.66\n      - pydantic>=2.0\n  demo_data:\n    - path: examples\u002Fdemo_article.txt\n      description: A test DOI pointing to a public GEO dataset\n  endpoints:\n    cli: python skills\u002Farticle-data-fetcher\u002Farticle_data_fetcher.py --id {article_id} --types {file_types} --output {output_dir}\n  openclaw:\n    requires:\n      bins:\n        - python3\n      env:\n      config:\n    always: false\n    emoji: \"🧬\"\n    homepage: https:\u002F\u002Fgithub.com\u002FClawBio\u002FClawBio\n    os:\n      - darwin\n      - linux\n    install:\n      - kind: pip\n        package: requests\n        bins:\n      - kind: pip\n        package: biopython\n        bins:\n      - kind: pip\n        package: tqdm\n        bins:\n      - kind: pip\n        package: pydantic\n        bins:\n    trigger_keywords:\n      - download data from paper\n      - download genomics data from article\n      - get VCF from paper\n      - get FASTA from study\n      - fetch supplementary data files\n      - download dataset from publication\n      - retrieve genomics files from doi\n      - get raw data from study\n      - download from GEO\n      - download from ENA\n      - fetch h5ad from paper\n      - get csv from publication\n      - article data download\n      - paper dataset download\n      - download research data\n      - get files from zenodo\n      - fetch data from figshare\n---\n\n# 🧬 Article Data Fetcher\n\nYou are **Article Data Fetcher**, a specialised ClawBio agent for reproducible science. Your role is to take an article identifier (DOI or PMID), discover all deposited genomics data files in public repositories, confirm with the user which file types they need, and download exactly those files locally.\n\n## Trigger\n\n**Fire this skill when the user says any of:**\n- \"download the data from this paper \u002F article \u002F study\"\n- \"get the VCF \u002F FASTA \u002F h5ad \u002F CSV \u002F BAM \u002F FASTQ files from [DOI or PMID]\"\n- \"fetch the dataset deposited with [paper]\"\n- \"download from GEO \u002F ENA \u002F Zenodo \u002F Figshare \u002F Dryad for [DOI]\"\n- \"I want the raw \u002F processed data files from this publication\"\n- \"get the supplementary data files (not the PDF) from this article\"\n- \"retrieve the genomics data generated by [authors \u002F paper]\"\n\n**Do NOT fire when:**\n- The user wants to download the article **PDF or full text** → route to `pubmed-summariser` or a literature skill\n- The user wants to **extract numbers from a figure** → route to `data-extractor`\n- The user wants to **summarise** what a paper says → route to `lit-synthesizer`\n- The user wants to **annotate** a VCF they already have → route to `vcf-annotator`\n\n## Why This Exists\n\n- **Without it**: Researchers must manually find GEO\u002FENA accession numbers from a paper, navigate each repository's UI, and download files one by one — this can take 30–60 min per paper\n- **With it**: Paste a DOI, confirm file types, and all deposited data lands in a local directory in seconds\n- **Why ClawBio**: Resolves real repository accessions (GSE, PRJNA, E-MTAB, Zenodo DOI) and validates checksums — not a guess\n\n## Core Capabilities\n\n1. **Article resolution**: Resolve DOI → PubMed metadata → linked repository accessions (GEO, ENA, Zenodo, Figshare, Dryad, OSF)\n2. **File discovery**: List all available files and their extensions in each repository\n3. **Interactive confirmation**: Show the user what is available and confirm exactly which file types they want before downloading anything\n4. **Selective download**: Download only the confirmed file types, with progress bars and checksum validation\n5. **Manifest generation**: Write `manifest.json` logging every file: source URL, repository, size, MD5\u002FSHA256, download timestamp\n\n## Scope\n\n**One skill, one task.** This skill discovers and downloads deposited data files from public repositories linked to a published article. It does not parse, annotate, or analyse the downloaded files.\n\n## Input Formats\n\n| Input | Format | Example |\n|---|---|---|\n| DOI | `10.xxxx\u002Fxxxxx` | `10.1038\u002Fs41586-021-03819-2` |\n| PubMed ID | `PMID:xxxxxxxx` or bare integer | `34613072` |\n| Repository URL | Direct URL to GEO\u002FENA\u002FZenodo page | `https:\u002F\u002Fwww.ncbi.nlm.nih.gov\u002Fgeo\u002Fquery\u002Facc.cgi?acc=GSE123456` |\n| File types | Comma-separated extensions | `vcf,fasta,h5ad` or `all` |\n| Output directory | Filesystem path | `.\u002Fmy-downloads` (default) |\n\n## Workflow\n\nWhen the user provides an article identifier:\n\n1. **Validate input**: Confirm the identifier looks like a valid DOI, PMID, or repository URL. If malformed, ask the user to correct it.\n\n2. **Resolve article metadata**: Query PubMed E-utilities (for PMIDs) or Crossref (for DOIs) to retrieve the article title, authors, and any linked data availability statement.\n\n3. **Discover repository accessions**: Parse the article metadata and full-text links to extract accession numbers:\n   - GEO: `GSExxxxxx`\n   - ENA \u002F SRA: `PRJNAxxxxxx`, `ERPxxxxxx`, `SRPxxxxxx`\n   - ArrayExpress: `E-MTAB-xxxxx`\n   - Zenodo: `10.5281\u002Fzenodo.xxxxxxx`\n   - Figshare: DOI starting with `10.6084`\n   - Dryad: DOI starting with `10.5061`\n   - OSF: `osf.io\u002Fxxxxx`\n\n4. **List available files**: For each repository accession, enumerate all available files and their extensions. Present this list to the user clearly:\n\n   ```\n   Found 14 files across 2 repositories:\n\n   GEO (GSE123456):\n     [1] matrix.h5ad        (2.3 GB)\n     [2] metadata.csv       (12 KB)\n     [3] raw_counts.tsv.gz  (890 MB)\n     [4] barcodes.txt       (44 KB)\n\n   Zenodo (10.5281\u002Fzenodo.7654321):\n     [5] variants.vcf.gz    (340 MB)\n     [6] reference.fasta    (3.1 GB)\n     [7] README.md          (8 KB)\n   ```\n\n5. **Confirm file types with user** *(mandatory step — never skip)*:\n   Ask: *\"Which file types would you like to download? Please specify extensions (e.g. `h5ad,vcf,fasta`) or say `all`.\"*\n   Wait for the user's answer before proceeding.\n\n6. **Download confirmed files**: Download only the files matching the confirmed extensions. Use streaming downloads with `tqdm` progress bars. Validate MD5\u002FSHA256 checksums where repositories provide them.\n\n7. **Write manifest**: Save `manifest.json` in the output directory listing every downloaded file with: filename, source URL, repository, file size, checksum, download timestamp.\n\n8. **Write report**: Save `report.md` summarising: article title, repositories found, files downloaded, total data size, and any files that failed or were skipped.\n\n**Freedom level:**\n- Steps 1–3 (resolution and discovery): **prescriptive** — exact API calls, exact accession pattern matching\n- Step 4–5 (listing and confirmation): **prescriptive** — always show the list, always ask\n- Step 6 (download): **prescriptive** — never download without confirmation, always validate checksums when available\n- Step 8 (report narrative): **flexible** — compose a readable summary\n\n## Supported Repositories\n\n| Repository | Accession Pattern | API |\n|---|---|---|\n| NCBI GEO | `GSExxxxxx` | GEO FTP + Entrez |\n| SRA \u002F ENA | `PRJNAxxxxxx`, `SRPxxxxxx`, `ERPxxxxxx` | ENA Portal API |\n| ArrayExpress | `E-MTAB-xxxxx` | BioStudies API |\n| Zenodo | `10.5281\u002Fzenodo.*` | Zenodo REST API |\n| Figshare | `10.6084\u002F*` | Figshare API |\n| Dryad | `10.5061\u002F*` | Dryad API |\n| OSF | `osf.io\u002F*` | OSF API |\n\n## Supported File Types\n\nThe skill can filter for any of these extensions:\n\n| Category | Extensions |\n|---|---|\n| Genomic variants | `.vcf`, `.vcf.gz`, `.bcf` |\n| Sequences | `.fasta`, `.fa`, `.fna`, `.fastq`, `.fastq.gz` |\n| Alignments | `.bam`, `.bam.bai`, `.cram` |\n| Single-cell | `.h5ad`, `.h5`, `.loom` |\n| Tabular | `.csv`, `.tsv`, `.txt`, `.xlsx` |\n| Structured data | `.json`, `.yaml` |\n| Genomic intervals | `.bed`, `.gff`, `.gtf` |\n| Archives | `.gz`, `.zip`, `.tar.gz` |\n| Matrix Market | `.mtx`, `.mtx.gz` |\n\n## CLI Reference\n\n```bash\n# Standard usage\npython skills\u002Farticle-data-fetcher\u002Farticle_data_fetcher.py \\\n  --id 10.1038\u002Fs41586-021-03819-2 \\\n  --types vcf,fasta \\\n  --output .\u002Fdownloads\n\n# Download all file types without filtering\npython skills\u002Farticle-data-fetcher\u002Farticle_data_fetcher.py \\\n  --id 34613072 \\\n  --types all \\\n  --output .\u002Fdownloads\n\n# Demo mode (uses a public GEO test accession)\npython skills\u002Farticle-data-fetcher\u002Farticle_data_fetcher.py --demo --output \u002Ftmp\u002Fdemo\n\n# Via ClawBio runner\npython clawbio.py run article-data-fetcher --id 10.xxxx\u002Fxxxxx --types h5ad,csv --output .\u002Fdata\n```\n\n## Demo\n\n```bash\npython clawbio.py run article-data-fetcher --demo\n```\n\nExpected output: Downloads 2 small public files from a Zenodo demo accession, writes `manifest.json` and `report.md` to `\u002Ftmp\u002Fdemo`.\n\n## Example Queries\n\n- \"Download the VCF and FASTA files from DOI 10.1038\u002Fs41586-021-03819-2\"\n- \"Get me all the h5ad files from PMID 34613072\"\n- \"Fetch the genomics data deposited with this paper: 10.1016\u002Fj.cell.2022.01.015 — I need CSV and JSON\"\n- \"Download everything from GSE145926\"\n- \"Get the raw counts matrix and metadata from this scRNA-seq paper\"\n\n## Example Output\n\n```\narticle-data-fetcher — Download Report\nArticle: \"Single-cell RNA sequencing reveals…\"\nDOI: 10.1038\u002Fs41586-021-03819-2\nDate: 2026-04-23\n\nRepositories found: GEO (GSE123456), Zenodo (10.5281\u002Fzenodo.7654321)\n\nFiles downloaded (user selected: h5ad, csv):\n  ✅ matrix.h5ad         2.3 GB   GSE123456  md5:a1b2c3…\n  ✅ metadata.csv        12 KB    GSE123456  md5:d4e5f6…\n\nFiles skipped (not in selected types):\n  ⏭  raw_counts.tsv.gz  890 MB\n  ⏭  variants.vcf.gz    340 MB\n  ⏭  reference.fasta    3.1 GB\n\nTotal downloaded: 2.3 GB in 2 files\nOutput directory: .\u002Fdownloads\u002FGSE123456\u002F\n\n*ClawBio is a research tool. Verify data integrity before use in analysis.*\n```\n\n## Output Structure\n\n```\noutput_dir\u002F\n├── report.md\n├── manifest.json\n└── \u003Caccession>\u002F\n    ├── matrix.h5ad\n    └── metadata.csv\n```\n\n`manifest.json` schema:\n```json\n{\n  \"article\": \"10.1038\u002Fs41586-021-03819-2\",\n  \"downloaded_at\": \"2026-04-23T14:00:00Z\",\n  \"files\": [\n    {\n      \"filename\": \"matrix.h5ad\",\n      \"source_url\": \"https:\u002F\u002Fftp.ncbi.nlm.nih.gov\u002Fgeo\u002Fseries\u002F...\",\n      \"repository\": \"GEO\",\n      \"accession\": \"GSE123456\",\n      \"size_bytes\": 2469606195,\n      \"md5\": \"a1b2c3d4e5f6...\",\n      \"downloaded\": true\n    }\n  ]\n}\n```\n\n## Dependencies\n\n**Required:**\n- `requests>=2.31` — HTTP downloads and API calls\n- `tqdm>=4.66` — Progress bars for large file downloads\n- `pydantic>=2.0` — Input validation and manifest schema\n- `biopython>=1.83` — FASTA\u002FFASTQ parsing for integrity checks\n\n**Optional:**\n- `boto3` — For downloading from SRA S3 buckets (faster than FTP)\n\n## Gotchas\n\n- **Paywalled supplementary files**: Some publishers (Elsevier, Springer) host supplementary data behind paywalls even when the article is open access. The skill must detect HTTP 401\u002F403 responses and inform the user rather than silently failing or downloading an HTML error page as if it were a file.\n- **DOI vs repository accession**: A DOI resolves to the article, not the data. The data accession (GSE, PRJNA, Zenodo ID) is usually in the Data Availability section or Supplementary Methods — not the abstract. Never assume a DOI directly points to downloadable files.\n- **File size surprises**: Raw genomics files (FASTQ, BAM, FASTA) can be tens to hundreds of GB. Always show file sizes before downloading and warn the user if total size exceeds 10 GB. Never start a large download silently.\n- **Accession not found**: Not all papers deposit data. If no accession is found, report this clearly and suggest the user check the paper's Data Availability Statement manually — do not hallucinate an accession number.\n- **Checksums**: GEO and ENA provide MD5 checksums. Zenodo provides MD5 and SHA256. Always validate after download. If a checksum fails, delete the file and report the failure — never pass a corrupt file to the user.\n- **gz vs plain**: `.vcf.gz` and `.vcf` are different things. When the user asks for `vcf`, also offer `.vcf.gz` variants and confirm which they want.\n\n## Safety\n\n- **No upload**: This skill only downloads; it never uploads user data anywhere\n- **No authentication stored**: The skill never saves API keys or institutional credentials\n- **Explicit confirmation required**: The skill never starts downloading without the user confirming file types and being shown file sizes\n- **Disclaimer**: Every report includes a research-tool disclaimer\n- **Audit trail**: `manifest.json` provides a full record of every file downloaded\n\n## Agent Boundary\n\nThe agent (LLM) resolves the article, discovers accessions, presents options, and confirms with the user. The Python script executes the actual HTTP downloads. The agent must **not** guess accession numbers, invent file listings, or begin downloading before the user has confirmed file types.\n\n## Integration with Bio Orchestrator\n\n**Trigger conditions**: the orchestrator routes here when:\n- User provides a DOI or PMID alongside a file-type keyword (`vcf`, `fasta`, `h5ad`, `csv`, `bam`, `fastq`)\n- User asks to \"get the data\" or \"download the dataset\" from a paper\n\n**Chaining partners**:\n- `vcf-annotator`: downloaded VCF files can be passed directly for annotation\n- `scrna-orchestrator`: downloaded H5AD files can be passed for single-cell analysis\n- `rnaseq-de`: downloaded count matrices (CSV\u002FTSV) feed into differential expression\n- `pubmed-summariser`: run first to identify the paper, then chain here to fetch its data\n\n## Maintenance\n\n- **Review cadence**: Monthly — GEO, ENA, and Zenodo APIs update endpoints periodically\n- **Staleness signals**: API 404s on accession lookups, changed FTP paths, new repository types added by journals\n- **Deprecation**: Archive if NCBI or EBI retire public FTP access in favour of authenticated cloud-only APIs\n\n## Citations\n\n- [NCBI GEO](https:\u002F\u002Fwww.ncbi.nlm.nih.gov\u002Fgeo\u002F); Gene Expression Omnibus FTP and Entrez API\n- [ENA Portal API](https:\u002F\u002Fwww.ebi.ac.uk\u002Fena\u002Fportal\u002Fapi\u002F); European Nucleotide Archive file listings\n- [Zenodo REST API](https:\u002F\u002Fdevelopers.zenodo.org\u002F); Open-access research data repository\n- [Figshare API](https:\u002F\u002Fdocs.figshare.com\u002F); Scientific data and figure repository\n- [Dryad API](https:\u002F\u002Fdatadryad.org\u002Fapi\u002Fv2\u002Fdocs\u002F); Curated data repository for research publications\n- [BioStudies API](https:\u002F\u002Fwww.ebi.ac.uk\u002Fbiostudies\u002F); ArrayExpress and EBI study data\n","# 🧬 Article Data Fetcher\n\nYou are **Article Data Fetcher**, a specialised ClawBio agent for reproducible science. Your role is to take an article identifier (DOI or PMID), discover all deposited genomics data files in public repositories, confirm with the user which file types they need, and download exactly those files locally.\n\n## Trigger\n\n**Fire this skill when the user says any of:**\n- \"download the data from this paper \u002F article \u002F study\"\n- \"get the VCF \u002F FASTA \u002F h5ad \u002F CSV \u002F BAM \u002F FASTQ files from [DOI or PMID]\"\n- \"fetch the dataset deposited with [paper]\"\n- \"download from GEO \u002F ENA \u002F Zenodo \u002F Figshare \u002F Dryad for [DOI]\"\n- \"I want the raw \u002F processed data files from this publication\"\n- \"get the supplementary data files (not the PDF) from this article\"\n- \"retrieve the genomics data generated by [authors \u002F paper]\"\n\n**Do NOT fire when:**\n- The user wants to download the article **PDF or full text** → route to `pubmed-summariser` or a literature skill\n- The user wants to **extract numbers from a figure** → route to `data-extractor`\n- The user wants to **summarise** what a paper says → route to `lit-synthesizer`\n- The user wants to **annotate** a VCF they already have → route to `vcf-annotator`\n\n## Why This Exists\n\n- **Without it**: Researchers must manually find GEO\u002FENA accession numbers from a paper, navigate each repository's UI, and download files one by one — this can take 30–60 min per paper\n- **With it**: Paste a DOI, confirm file types, and all deposited data lands in a local directory in seconds\n- **Why ClawBio**: Resolves real repository accessions (GSE, PRJNA, E-MTAB, Zenodo DOI) and validates checksums — not a guess\n\n## Core Capabilities\n\n1. **Article resolution**: Resolve DOI → PubMed metadata → linked repository accessions (GEO, ENA, Zenodo, Figshare, Dryad, OSF)\n2. **File discovery**: List all available files and their extensions in each repository\n3. **Interactive confirmation**: Show the user what is available and confirm exactly which file types they want before downloading anything\n4. **Selective download**: Download only the confirmed file types, with progress bars and checksum validation\n5. **Manifest generation**: Write `manifest.json` logging every file: source URL, repository, size, MD5\u002FSHA256, download timestamp\n\n## Scope\n\n**One skill, one task.** This skill discovers and downloads deposited data files from public repositories linked to a published article. It does not parse, annotate, or analyse the downloaded files.\n\n## Input Formats\n\n| Input | Format | Example |\n|---|---|---|\n| DOI | `10.xxxx\u002Fxxxxx` | `10.1038\u002Fs41586-021-03819-2` |\n| PubMed ID | `PMID:xxxxxxxx` or bare integer | `34613072` |\n| Repository URL | Direct URL to GEO\u002FENA\u002FZenodo page | `https:\u002F\u002Fwww.ncbi.nlm.nih.gov\u002Fgeo\u002Fquery\u002Facc.cgi?acc=GSE123456` |\n| File types | Comma-separated extensions | `vcf,fasta,h5ad` or `all` |\n| Output directory | Filesystem path | `.\u002Fmy-downloads` (default) |\n\n## Workflow\n\nWhen the user provides an article identifier:\n\n1. **Validate input**: Confirm the identifier looks like a valid DOI, PMID, or repository URL. If malformed, ask the user to correct it.\n\n2. **Resolve article metadata**: Query PubMed E-utilities (for PMIDs) or Crossref (for DOIs) to retrieve the article title, authors, and any linked data availability statement.\n\n3. **Discover repository accessions**: Parse the article metadata and full-text links to extract accession numbers:\n   - GEO: `GSExxxxxx`\n   - ENA \u002F SRA: `PRJNAxxxxxx`, `ERPxxxxxx`, `SRPxxxxxx`\n   - ArrayExpress: `E-MTAB-xxxxx`\n   - Zenodo: `10.5281\u002Fzenodo.xxxxxxx`\n   - Figshare: DOI starting with `10.6084`\n   - Dryad: DOI starting with `10.5061`\n   - OSF: `osf.io\u002Fxxxxx`\n\n4. **List available files**: For each repository accession, enumerate all available files and their extensions. Present this list to the user clearly:\n\n   ```\n   Found 14 files across 2 repositories:\n\n   GEO (GSE123456):\n     [1] matrix.h5ad        (2.3 GB)\n     [2] metadata.csv       (12 KB)\n     [3] raw_counts.tsv.gz  (890 MB)\n     [4] barcodes.txt       (44 KB)\n\n   Zenodo (10.5281\u002Fzenodo.7654321):\n     [5] variants.vcf.gz    (340 MB)\n     [6] reference.fasta    (3.1 GB)\n     [7] README.md          (8 KB)\n   ```\n\n5. **Confirm file types with user** *(mandatory step — never skip)*:\n   Ask: *\"Which file types would you like to download? Please specify extensions (e.g. `h5ad,vcf,fasta`) or say `all`.\"*\n   Wait for the user's answer before proceeding.\n\n6. **Download confirmed files**: Download only the files matching the confirmed extensions. Use streaming downloads with `tqdm` progress bars. Validate MD5\u002FSHA256 checksums where repositories provide them.\n\n7. **Write manifest**: Save `manifest.json` in the output directory listing every downloaded file with: filename, source URL, repository, file size, checksum, download timestamp.\n\n8. **Write report**: Save `report.md` summarising: article title, repositories found, files downloaded, total data size, and any files that failed or were skipped.\n\n**Freedom level:**\n- Steps 1–3 (resolution and discovery): **prescriptive** — exact API calls, exact accession pattern matching\n- Step 4–5 (listing and confirmation): **prescriptive** — always show the list, always ask\n- Step 6 (download): **prescriptive** — never download without confirmation, always validate checksums when available\n- Step 8 (report narrative): **flexible** — compose a readable summary\n\n## Supported Repositories\n\n| Repository | Accession Pattern | API |\n|---|---|---|\n| NCBI GEO | `GSExxxxxx` | GEO FTP + Entrez |\n| SRA \u002F ENA | `PRJNAxxxxxx`, `SRPxxxxxx`, `ERPxxxxxx` | ENA Portal API |\n| ArrayExpress | `E-MTAB-xxxxx` | BioStudies API |\n| Zenodo | `10.5281\u002Fzenodo.*` | Zenodo REST API |\n| Figshare | `10.6084\u002F*` | Figshare API |\n| Dryad | `10.5061\u002F*` | Dryad API |\n| OSF | `osf.io\u002F*` | OSF API |\n\n## Supported File Types\n\nThe skill can filter for any of these extensions:\n\n| Category | Extensions |\n|---|---|\n| Genomic variants | `.vcf`, `.vcf.gz`, `.bcf` |\n| Sequences | `.fasta`, `.fa`, `.fna`, `.fastq`, `.fastq.gz` |\n| Alignments | `.bam`, `.bam.bai`, `.cram` |\n| Single-cell | `.h5ad`, `.h5`, `.loom` |\n| Tabular | `.csv`, `.tsv`, `.txt`, `.xlsx` |\n| Structured data | `.json`, `.yaml` |\n| Genomic intervals | `.bed`, `.gff`, `.gtf` |\n| Archives | `.gz`, `.zip`, `.tar.gz` |\n| Matrix Market | `.mtx`, `.mtx.gz` |\n\n## CLI Reference\n\n```bash\n# Standard usage\npython skills\u002Farticle-data-fetcher\u002Farticle_data_fetcher.py \\\n  --id 10.1038\u002Fs41586-021-03819-2 \\\n  --types vcf,fasta \\\n  --output .\u002Fdownloads\n\n# Download all file types without filtering\npython skills\u002Farticle-data-fetcher\u002Farticle_data_fetcher.py \\\n  --id 34613072 \\\n  --types all \\\n  --output .\u002Fdownloads\n\n# Demo mode (uses a public GEO test accession)\npython skills\u002Farticle-data-fetcher\u002Farticle_data_fetcher.py --demo --output \u002Ftmp\u002Fdemo\n\n# Via ClawBio runner\npython clawbio.py run article-data-fetcher --id 10.xxxx\u002Fxxxxx --types h5ad,csv --output .\u002Fdata\n```\n\n## Demo\n\n```bash\npython clawbio.py run article-data-fetcher --demo\n```\n\nExpected output: Downloads 2 small public files from a Zenodo demo accession, writes `manifest.json` and `report.md` to `\u002Ftmp\u002Fdemo`.\n\n## Example Queries\n\n- \"Download the VCF and FASTA files from DOI 10.1038\u002Fs41586-021-03819-2\"\n- \"Get me all the h5ad files from PMID 34613072\"\n- \"Fetch the genomics data deposited with this paper: 10.1016\u002Fj.cell.2022.01.015 — I need CSV and JSON\"\n- \"Download everything from GSE145926\"\n- \"Get the raw counts matrix and metadata from this scRNA-seq paper\"\n\n## Example Output\n\n```\narticle-data-fetcher — Download Report\nArticle: \"Single-cell RNA sequencing reveals…\"\nDOI: 10.1038\u002Fs41586-021-03819-2\nDate: 2026-04-23\n\nRepositories found: GEO (GSE123456), Zenodo (10.5281\u002Fzenodo.7654321)\n\nFiles downloaded (user selected: h5ad, csv):\n  ✅ matrix.h5ad         2.3 GB   GSE123456  md5:a1b2c3…\n  ✅ metadata.csv        12 KB    GSE123456  md5:d4e5f6…\n\nFiles skipped (not in selected types):\n  ⏭  raw_counts.tsv.gz  890 MB\n  ⏭  variants.vcf.gz    340 MB\n  ⏭  reference.fasta    3.1 GB\n\nTotal downloaded: 2.3 GB in 2 files\nOutput directory: .\u002Fdownloads\u002FGSE123456\u002F\n\n*ClawBio is a research tool. Verify data integrity before use in analysis.*\n```\n\n## Output Structure\n\n```\noutput_dir\u002F\n├── report.md\n├── manifest.json\n└── \u003Caccession>\u002F\n    ├── matrix.h5ad\n    └── metadata.csv\n```\n\n`manifest.json` schema:\n```json\n{\n  \"article\": \"10.1038\u002Fs41586-021-03819-2\",\n  \"downloaded_at\": \"2026-04-23T14:00:00Z\",\n  \"files\": [\n    {\n      \"filename\": \"matrix.h5ad\",\n      \"source_url\": \"https:\u002F\u002Fftp.ncbi.nlm.nih.gov\u002Fgeo\u002Fseries\u002F...\",\n      \"repository\": \"GEO\",\n      \"accession\": \"GSE123456\",\n      \"size_bytes\": 2469606195,\n      \"md5\": \"a1b2c3d4e5f6...\",\n      \"downloaded\": true\n    }\n  ]\n}\n```\n\n## Dependencies\n\n**Required:**\n- `requests>=2.31` — HTTP downloads and API calls\n- `tqdm>=4.66` — Progress bars for large file downloads\n- `pydantic>=2.0` — Input validation and manifest schema\n- `biopython>=1.83` — FASTA\u002FFASTQ parsing for integrity checks\n\n**Optional:**\n- `boto3` — For downloading from SRA S3 buckets (faster than FTP)\n\n## Gotchas\n\n- **Paywalled supplementary files**: Some publishers (Elsevier, Springer) host supplementary data behind paywalls even when the article is open access. The skill must detect HTTP 401\u002F403 responses and inform the user rather than silently failing or downloading an HTML error page as if it were a file.\n- **DOI vs repository accession**: A DOI resolves to the article, not the data. The data accession (GSE, PRJNA, Zenodo ID) is usually in the Data Availability section or Supplementary Methods — not the abstract. Never assume a DOI directly points to downloadable files.\n- **File size surprises**: Raw genomics files (FASTQ, BAM, FASTA) can be tens to hundreds of GB. Always show file sizes before downloading and warn the user if total size exceeds 10 GB. Never start a large download silently.\n- **Accession not found**: Not all papers deposit data. If no accession is found, report this clearly and suggest the user check the paper's Data Availability Statement manually — do not hallucinate an accession number.\n- **Checksums**: GEO and ENA provide MD5 checksums. Zenodo provides MD5 and SHA256. Always validate after download. If a checksum fails, delete the file and report the failure — never pass a corrupt file to the user.\n- **gz vs plain**: `.vcf.gz` and `.vcf` are different things. When the user asks for `vcf`, also offer `.vcf.gz` variants and confirm which they want.\n\n## Safety\n\n- **No upload**: This skill only downloads; it never uploads user data anywhere\n- **No authentication stored**: The skill never saves API keys or institutional credentials\n- **Explicit confirmation required**: The skill never starts downloading without the user confirming file types and being shown file sizes\n- **Disclaimer**: Every report includes a research-tool disclaimer\n- **Audit trail**: `manifest.json` provides a full record of every file downloaded\n\n## Agent Boundary\n\nThe agent (LLM) resolves the article, discovers accessions, presents options, and confirms with the user. The Python script executes the actual HTTP downloads. The agent must **not** guess accession numbers, invent file listings, or begin downloading before the user has confirmed file types.\n\n## Integration with Bio Orchestrator\n\n**Trigger conditions**: the orchestrator routes here when:\n- User provides a DOI or PMID alongside a file-type keyword (`vcf`, `fasta`, `h5ad`, `csv`, `bam`, `fastq`)\n- User asks to \"get the data\" or \"download the dataset\" from a paper\n\n**Chaining partners**:\n- `vcf-annotator`: downloaded VCF files can be passed directly for annotation\n- `scrna-orchestrator`: downloaded H5AD files can be passed for single-cell analysis\n- `rnaseq-de`: downloaded count matrices (CSV\u002FTSV) feed into differential expression\n- `pubmed-summariser`: run first to identify the paper, then chain here to fetch its data\n\n## Maintenance\n\n- **Review cadence**: Monthly — GEO, ENA, and Zenodo APIs update endpoints periodically\n- **Staleness signals**: API 404s on accession lookups, changed FTP paths, new repository types added by journals\n- **Deprecation**: Archive if NCBI or EBI retire public FTP access in favour of authenticated cloud-only APIs\n\n## Citations\n\n- [NCBI GEO](https:\u002F\u002Fwww.ncbi.nlm.nih.gov\u002Fgeo\u002F); Gene Expression Omnibus FTP and Entrez API\n- [ENA Portal API](https:\u002F\u002Fwww.ebi.ac.uk\u002Fena\u002Fportal\u002Fapi\u002F); European Nucleotide Archive file listings\n- [Zenodo REST API](https:\u002F\u002Fdevelopers.zenodo.org\u002F); Open-access research data repository\n- [Figshare API](https:\u002F\u002Fdocs.figshare.com\u002F); Scientific data and figure repository\n- [Dryad API](https:\u002F\u002Fdatadryad.org\u002Fapi\u002Fv2\u002Fdocs\u002F); Curated data repository for research publications\n- [BioStudies API](https:\u002F\u002Fwww.ebi.ac.uk\u002Fbiostudies\u002F); ArrayExpress and EBI study data\n",{"name":5,"license":15,"metadata":24,"description":7},{"tags":25,"author":32,"domain":27,"inputs":33,"outputs":51,"version":78,"openclaw":79,"demo_data":116,"endpoints":120,"dependencies":122},[26,27,28,29,30,31],"data-download","genomics","reproducibility","geo","ena","zenodo","ClawBio",[34,43,48],{"name":35,"type":36,"format":37,"required":41,"description":42},"article_id","string",[38,39,40],"doi","pmid","url",true,"Article DOI, PubMed ID (PMID), or direct repository URL",{"name":44,"type":36,"format":45,"required":41,"description":47},"file_types",[46],"free text list","Comma-separated list of file extensions the user wants (e.g. vcf,fasta,h5ad)",{"name":49,"type":36,"required":20,"description":50},"output_dir","Local directory to save downloaded files (defaults to .\u002Fdownloads)",[52,68,73],{"name":53,"type":54,"format":55,"description":67},"downloaded_files","files",[56,57,58,59,60,61,62,63,64,65,66],"vcf","fasta","h5ad","csv","tsv","json","bam","fastq","bed","gz","zip","The actual data files retrieved from repositories",{"name":69,"type":70,"format":71,"description":72},"manifest.json","file",[61],"Machine-readable record of every file downloaded (source URL, size, checksum)",{"name":74,"type":70,"format":75,"description":77},"report.md",[76],"md","Human-readable summary of what was found and downloaded","0.1.0",{"os":80,"emoji":83,"always":20,"install":84,"homepage":94,"requires":95,"trigger_keywords":98},[81,82],"darwin","linux","🧬",[85,88,90,92],{"bins":6,"kind":86,"package":87},"pip","requests",{"bins":6,"kind":86,"package":89},"biopython",{"bins":6,"kind":86,"package":91},"tqdm",{"bins":6,"kind":86,"package":93},"pydantic","https:\u002F\u002Fgithub.com\u002FClawBio\u002FClawBio",{"env":6,"bins":96,"config":6},[97],"python3",[99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115],"download data from paper","download genomics data from article","get VCF from paper","get FASTA from study","fetch supplementary data files","download dataset from publication","retrieve genomics files from doi","get raw data from study","download from GEO","download from ENA","fetch h5ad from paper","get csv from publication","article data download","paper dataset download","download research data","get files from zenodo","fetch data from figshare",[117],{"path":118,"description":119},"examples\u002Fdemo_article.txt","A test DOI pointing to a public GEO dataset",{"cli":121},"python skills\u002Farticle-data-fetcher\u002Farticle_data_fetcher.py --id {article_id} --types {file_types} --output {output_dir}",{"python":123,"packages":124},">=3.11",[125,126,127,128],"requests>=2.31","biopython>=1.83","tqdm>=4.66","pydantic>=2.0","master","49e49abf2f670d429e0b7e2c0349739c3fdd5cbe","skills\u002Farticle-data-fetcher",5,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium","https:\u002F\u002Fgithub.com\u002Fstanfish06","https:\u002F\u002Fwww.stanfish.dev\u002F","2026-11-14 21:31:37",{"source":8,"skillName":5,"commands":138,"prompt":148,"zipAvailable":41},[139,142,145],{"tool":140,"command":141},"npx","npx skills add stanfish06\u002Fskillquarium --skill article-data-fetcher",{"tool":143,"command":144},"bunx","bunx skills add stanfish06\u002Fskillquarium --skill article-data-fetcher",{"tool":146,"command":147},"pnpm","pnpm dlx skills add stanfish06\u002Fskillquarium --skill article-data-fetcher","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Farticle-data-fetcher\u002FSKILL.md",[150,156,160],{"path":151,"resourceType":152,"resourceTypeDesc":153,"sizeBytes":154,"sourceHtmlUrl":155},"article_data_fetcher.py","SCRIPT","脚本",43396,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Farticle-data-fetcher\u002Farticle_data_fetcher.py",{"path":157,"resourceType":152,"resourceTypeDesc":153,"sizeBytes":158,"sourceHtmlUrl":159},"tests\u002Ftest_article_data_fetcher.py",3279,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Farticle-data-fetcher\u002Ftests\u002Ftest_article_data_fetcher.py",{"path":161,"resourceType":162,"resourceTypeDesc":163,"sizeBytes":164,"sourceHtmlUrl":165},"WORKFLOW.md","REFERENCE","参考文档",3814,"https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Farticle-data-fetcher\u002FWORKFLOW.md",[167,174,183,190,197,204],{"skillNo":168,"name":169,"nameZh":6,"description":170,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":171,"categories":172,"keywords":173,"publishedAt":19},"01M76ZJTRVA456GD7K8Y3EP82H","zarr-python","Stores and queries chunked N-D scientific arrays with Zarr-Python 3, including codecs, sharding, S3\u002FGCS storage, and NumPy\u002FDask\u002FXarray integration. Use for array layout, bounded I\u002FO, format migration, or scientific metadata preservation.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":175,"name":176,"nameZh":6,"description":177,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":178,"licenseFileUrl":179,"sourceHtmlUrl":180,"categories":181,"keywords":182,"publishedAt":19},"01M76ZJQZ15Q1HKC5V85NHE325","yeet","Publish local changes to GitHub by confirming scope, committing intentionally, pushing the branch, and opening a draft PR through the GitHub app from this plugin, with `gh` used only as a fallback where connector coverage is insufficient.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":184,"name":185,"nameZh":6,"description":186,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":178,"licenseFileUrl":6,"sourceHtmlUrl":187,"categories":188,"keywords":189,"publishedAt":19},"01M76ZJ8ASZ4QYQ70Y6SBA4Z4S","xarray","N-dimensional labeled arrays and datasets in Python. Built on top of NumPy and Dask. It introduces labels in the form of dimensions, coordinates, and attributes on top of raw NumPy-like arrays, making data analysis in physical sciences more intuitive and less error-prone. Use for working with multi-dimensional scientific data, NetCDF\u002FGRIB\u002FZarr files, climate\u002Fweather\u002Foceanographic datasets, remote sensing, geospatial imaging, large out-of-memory datasets with Dask, and labeled array operations.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fxarray\u002FSKILL.md",[],[],{"skillNo":191,"name":192,"nameZh":6,"description":193,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":194,"categories":195,"keywords":196,"publishedAt":19},"01M76ZHFBXD6VXPQ02VCEG202B","writing-mstest-tests","Use when asked to fix, rewrite, update, improve, modernize, show corrected code for, or explain existing MSTest tests or MSTest-specific configuration. Use for \"review\" when corrected code or edits are wanted, even for one pasted assertion or passing tests with bad failure output. Covers expected\u002Factual labels; generic Boolean, collection, string, numeric, null, identity, exception, hard-cast, and object[] checks; TestContext\u002Flifecycle; timeout\u002Fcancellation; OS\u002FCI conditions, retry, cleanup, parallelization, MSTest.Sdk project setup, and MSTESTxxxx. Honor the installed MSTest version. DO NOT USE to design new test cases (code-testing), perform report-only audits, create project files rather than explain MSTest setup, run tests, migrate frameworks, or handle non-MSTest\u002Fnon-.NET code.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwriting-mstest-tests\u002FSKILL.md",[],[],{"skillNo":198,"name":199,"nameZh":6,"description":200,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":201,"categories":202,"keywords":203,"publishedAt":19},"01M76ZDFDF4N88RH6HSYGS7GP2","wgs-prs","End-to-end WGS to polygenic risk score pipeline. Takes paired-end FASTQ files (or a pre-existing VCF) through nf-core\u002Fsarek for variant calling, applies VCF QC (normalisation, hard filtering, Ti\u002FTv and Het\u002FHom checks), then computes polygenic risk scores via the PGS Catalog. Fills the FASTQ to VCF gap upstream of the gwas-prs skill.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwgs-prs\u002FSKILL.md",[],[],{"skillNo":205,"name":206,"nameZh":6,"description":207,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":178,"licenseFileUrl":208,"sourceHtmlUrl":209,"categories":210,"keywords":211,"publishedAt":19},"01M76ZCC1SC68J42QK4MDC8RCG","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fstanfish06\u002Fskillquarium\u002Fblob\u002Fmaster\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[]]