Scientific Agent Skills is a collection of reusable procedures that give AI agents capabilities for scientific research across areas such as biology, chemistry, medicine, and drug discovery. It is used by researchers and by people building AI scientist workflows with compatible coding agents. The catalogue contains many of the project's skills and supporting instructions.
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.
npx skills add K-Dense-AI/scientific-agent-skills --skill scanpygit clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skillsWrote 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.
[](https://agentmods.dev/skills/k-dense-ai/scientific-agent-skills/scanpy)<a href="https://agentmods.dev/skills/k-dense-ai/scientific-agent-skills/scanpy"><img src="https://agentmods.dev/badge/skills/k-dense-ai/scientific-agent-skills/scanpy/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/k-dense-ai/scientific-agent-skills/scanpy"><img src="https://agentmods.dev/badge/skills/k-dense-ai/scientific-agent-skills/scanpy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Socket pass
- Snyk warn
- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00085 | $0.05054 |
| Opus 5.5 | $0.00034 | $0.02022 |
| Sonnet 5.5 | $0.00017 | $0.01011 |
| Haiku 4.5 | $0.00009 | $0.00505 |
Grade A, and why
scanpy 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 1mo ago.
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.
How it starts
The opening of the file, as written. The whole thing — 361 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Scanpy: Single-Cell Analysis
Overview
Scanpy is a scalable Python toolkit for analyzing single-cell RNA-seq data, built on AnnData. Apply this skill for complete single-cell workflows including quality control, normalization, dimensionality reduction, clustering, marker gene identification, visualization, and trajectory analysis. Targets Scanpy 1.12.4 (released 2026-08-27), reviewed 2026-10-01. Native synthetic tests establish data/API contracts, not biological validity.
Installation
Requires Python 3.12+ (scanpy 1.12 dropped Python ≤3.11) and anndata ≥0.10.
uv pip install "scanpy[leiden]"
The [leiden] extra installs igraph and leidenalg; the scripts explicitly select flavor="igraph". For reproducible environments, pin a version: uv pip install "scanpy[leiden]==1.12.4".
For large or out-of-core datasets, many functions support Dask arrays (experimental):
uv pip install "scanpy[leiden]" dask
See the Using dask with Scanpy tutorial. For GPU-accelerated scanpy-like operations, use rapids-singlecell as a separate package.
If the input is an R-native single-cell object (.rds, .RData, Seurat, or SingleCellExperiment), first convert it to .h5ad with R tooling, then load it with Scanpy. Read references/r_interop.md for agent-run installation and conversion instructions across macOS, Linux, and Windows.
For AnnData structure and I/O details, use the anndata skill. For probabilistic models and batch correction, use scvi-tools.
Representation and inference contracts
- Input to QC/preprocessing must be identified raw counts. The scripts reject negative,
fractional, nonfinite or zero-total cells. Use
--counts-layer countswhen X is already normalized; never infer provenance from integer-looking values alone. layers["counts"]remains unnormalized;.rawis an independent full-gene log-normalized snapshot. Gene subsetting also subsets every layer, but does not subset.rawgenes. Retain a full-gene object for pseudobulk; the full pipeline does so.seurat/cell_rangerHVGs use log-normalized values;seurat_v3andseurat_v3_paperuse counts and requirescanpy[skmisc]. Scaling/regression are optional, may densify sparse data, and can remove biology along with covariates.- Marker ranking defaults to
.rawwhen present;--no-use-rawselects X and--layerselects an explicit log-normalized layer.--groups/--referencecontrol contrasts. Wilcoxon/t-test adjusted p-values use BH within each comparison; logreg returns ranking scores without p-values. Clusters chosen from the same data yield exploratory markers. - Condition DE requires raw-count sums per sample and cell type, independent biological replicates, aligned condition/donor metadata and a full-rank design. Analyze each cell type separately; repeated donor samples require a suitable paired design. Aggregation cannot fix confounding, missing replication, doublets or incorrect annotations.
- Harmony (
harmonypy) changes PCA coordinates; BBKNN (bbknn) changes the graph; ComBat changes X. Keep original expression/counts for DE, and assess biological conservation and batch mixing together. Requested integration/doublet failures stop. - The toolkit loads files into memory. For backed data, explicitly call
.to_memory()on a chosen subset and close the file; backed mode is not a general out-of-core pipeline. Copy views before mutation. Dask support varies by function/array layout. .rdsneeds an explicit R conversion stage. Cluster IDs do not determine cell types: all mappings/signature assets are illustrative human marker examples, requiring review.
What ships with it
25 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.
- assets/analysis_template.py 10.0 KB runs code
- assets/celltype_mapping.json 184 B
- assets/gene_signatures.json 355 B
- assets/pipeline_config.json 380 B
- references/analysis_workflow.md 7.6 KB
- references/api_reference.md 9.1 KB
- references/plotting_guide.md 10 KB
- references/r_interop.md 12 KB
- references/standard_workflow.md 7.0 KB
- references/upstream-review.md 8.3 KB
- scripts/_common.py 10.0 KB runs code
- scripts/annotate.py 3.7 KB runs code
- scripts/batch_correct.py 3.1 KB runs code
- scripts/cluster.py 2.5 KB runs code
- scripts/convert.py 1.5 KB runs code
- scripts/find_markers.py 4.3 KB runs code
- scripts/inspect_data.py 3.1 KB runs code
- scripts/plot.py 3.6 KB runs code
- scripts/preprocess.py 3.5 KB runs code
- scripts/pseudobulk.py 4.6 KB runs code
- scripts/qc_analysis.py 5.1 KB runs code
- scripts/reduce_dimensions.py 2.8 KB runs code
- scripts/run_pipeline.py 9.4 KB runs code
- scripts/score_genes.py 3.9 KB runs code
- scripts/subset.py 2.6 KB runs code
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.
- 1mo ago Changed · +40 lines · -8 tokens per session 4a59f87933a1
- 2mo ago Changed 5625c382fa0d
- 2mo ago First seen · 321 lines · 93 tokens per session scan A aad13ea7d74d
scanpy is a skill published in the GitHub repository K-Dense-AI/scientific-agent-skills (58,946 stars, last pushed 7d ago), licensed MIT. It adds 85 tokens to every session and 5,054 once invoked, about $0.0003 per session on Opus 5.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-09-03.
scanpy compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| scanpyK-Dense-AI/scientific-agent-skills | Skill | 59k | 7d ago | MIT | A | 85 | Claude Code, Codex |
| discovery-toolboxdekan-aleksandr/biodiscovery-skills | Skill | 11 | 3mo ago | MIT | A | 122 | Claude Code |
| discovery-directordekan-aleksandr/biodiscovery-skills | Skill | 11 | 3mo ago | MIT | A | 114 | Claude Code |
| notebooksfmschulz/omics-skills | Skill | 11 | yesterday | MIT | A | 29 | Claude Code |
| bio-annotationfmschulz/omics-skills | Skill | 11 | yesterday | MIT | A | 38 | Claude Code, Codex |
| bio-viromicsfmschulz/omics-skills | Skill | 11 | yesterday | MIT | A | 79 | Claude Code, Codex |
| polars-dovmedfmschulz/omics-skills | Skill | 11 | yesterday | MIT | A | 57 | Claude Code, Codex |