data-extractor

data-extractor is a skill for Claude Code, Codex from beita6969/ScienceClaw. It costs 46 tokens per session (816 once invoked), scanned A, original, MIT.

A tool for turning scientific chart images into numerical data. It reads plot elements such as bars, points, axes, legends, and error bars, then can produce CSV or JSON data.

In plain words
What is it for?
Use it to digitize bar charts, scatter plots, forest plots, Kaplan-Meier survival curves, heatmaps, and other supported scientific figures.
Why use it?
It reduces the manual work of reading values from figures. This is useful when collecting results for a meta-analysis, a study that combines findings from multiple research papers, or a systematic review.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/beita6969/scienceclaw/data-extractor
Any agent
npx skills add beita6969/ScienceClaw --skill data-extractor
Clone the repo
git clone --depth 1 https://github.com/beita6969/ScienceClaw

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for data-extractor

README.md
[![agentmods](https://agentmods.dev/badge/skills/beita6969/scienceclaw/data-extractor.svg)](https://agentmods.dev/skills/beita6969/scienceclaw/data-extractor)
Your own site
<a href="https://agentmods.dev/skills/beita6969/scienceclaw/data-extractor"><img src="https://agentmods.dev/badge/skills/beita6969/scienceclaw/data-extractor.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 816 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00046 $0.00816
Opus 5 $0.00023 $0.00408
Sonnet 5 $0.00009 $0.00163
Haiku 4.5 $0.00005 $0.00082

Measured 5d ago against content hash 5625b7ea216b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

data-extractor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (api.py, data_extractor.py, tests/test_extractor.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/data-extractor/SKILL.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

📊 Data Extractor

You are the Data Extractor, a ClawBio skill for digitizing scientific figures. Your role is to extract numerical data from plot images for meta-analyses and systematic reviews.

When to Use This Skill

Route to this skill when the user:

  • Provides an image file (PNG, JPG, TIFF) containing a scientific figure
  • Asks to "extract data from a figure", "digitize a plot", "read values from a chart"
  • Mentions "meta-analysis data extraction" or "figure digitization"
  • Wants to convert a bar chart, scatter plot, or other figure to CSV/JSON

Capabilities

Supported Plot Types (26)

scatter, bar, line, box, violin, histogram, heatmap, forest, kaplan_meier, dot_strip, stacked_bar, funnel, roc, volcano, waterfall, bland_altman, paired, bubble, area, dose_response, manhattan, correlation_matrix, error_bar, table, other

Pipeline (4 phases)

  1. Panel Detection — Identify sub-panels in multi-panel figures (Claude vision)
  2. Pre-Analysis — Identify axes, scale (linear/log), legend entries, error bars (Claude tool calling)
  3. CV Calibration + Extraction — OpenCV detects markers/bars at pixel level, Claude extracts numerical data with calibration context
  4. Validation — Heuristic checks for axis range, series count, error bar polarity

Output Formats

  • CSV — One row per data point with series name, x/y values, error bars
  • JSON — Structured ExtractedData objects with full metadata
  • Web UI — Interactive table + SVG preview with editable cells

Usage

CLI

python data_extractor.py --image figure.png --output results/
python data_extractor.py --web --port 8765
python data_extractor.py --demo

API (importable)

from api import run
result = run(options={"image_path": "figure.png", "output_dir": "results/"})

Web UI

Launch with --web flag. Upload images, draw boxes around plots, extract and edit data interactively.

Input Formats

  • PNG, JPG, JPEG, TIFF image files
  • Screenshots from papers, posters, slides
  • Multi-panel composite figures (auto-detected and split)

Read the full file on GitHub · 100 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 100 lines · 46 tokens per session scan A 5625b7ea216b

Subscribe to this mod's changes

data-extractor is a skill published in the GitHub repository beita6969/ScienceClaw (892 stars, last pushed 2mo ago), licensed MIT. It adds 46 tokens to every session and 816 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

scanpy

Standard single-cell RNA-seq analysis pipeline. Use for QC, normalization, dimensionality reduction (PCA/UMAP/t-SNE), clustering, differential expression, and visualization. Best for exploratory scRNA-seq analysis with established workflows. For deep learning models use scvi-tools; for data format questions use…

synthetic-sciences/openscience · 68 tokens

structure-prediction

Protein structure prediction from sequence. ESMFold-based, single GPU, no MSA needed. Predicts 3D structures with pLDDT confidence scores for drug discovery targets.

synthetic-sciences/openscience · 42 tokens

biomcp

Search and retrieve biomedical data - genes, variants, clinical trials, diagnostic tests, articles, drugs, diseases, pathways, proteins, adverse events, pharmacogenomics, and phenotype-disease matching. Use for gene function, variant pathogenicity, trials, diagnostics, drug safety, pathway context, disease workups…

genomoncology/biomcp · 70 tokens

biomcp-research

Do biomedical literature and variant research with the BioMCP CLI, and file what you learn about the tool itself as issues in the biomcp repo.

genomoncology/biomcp · 36 tokens

biopython

Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use…

synthetic-sciences/openscience · 76 tokens

anndata

Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use cellxgene-census.

synthetic-sciences/openscience · 63 tokens