scanpy

scanpy is a skill for Claude Code from CHENyiru3/AI-Skills-Collections. It costs 41 tokens per session (742 once invoked), scanned A, a copy of scanpy, MIT.

A Python toolkit and workflow for analysing single-cell RNA sequencing data, which measures gene activity in individual cells. It covers quality checks, data scaling, grouping similar cells, finding genes that distinguish groups, and making plots.

In plain words
What is it for?
Use it to analyse 10X, H5AD, or CSV data, create PCA, UMAP, or t-SNE plots, identify marker genes, label cell types, and study cell trajectories.
Why use it?
It provides an established process for turning large single-cell datasets into interpretable cell groups and visual results. This avoids assembling each analysis step from unrelated tools.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the compbio plugin — 38 skills shipped together

Good fit Use it to analyse 10X, H5AD, or CSV data, create PCA, UMAP, or t-SNE plots, identify marker genes, label cell types, and study cell trajectories.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chenyiru3/ai-skills-collections/scanpy
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.

Any agent
npx skills add CHENyiru3/AI-Skills-Collections --skill scanpy
Clone the repo
git clone --depth 1 https://github.com/CHENyiru3/AI-Skills-Collections

Made for: Claude Code.

Or install compbio, the plugin that ships this one along with the rest of its 38 skills.

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 scanpy

README.md
[![agentmods](https://agentmods.dev/badge/skills/chenyiru3/ai-skills-collections/scanpy/github.svg)](https://agentmods.dev/skills/chenyiru3/ai-skills-collections/scanpy)
Your own site
<a href="https://agentmods.dev/skills/chenyiru3/ai-skills-collections/scanpy"><img src="https://agentmods.dev/badge/skills/chenyiru3/ai-skills-collections/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.

agentmods 80×15 button for scanpy

Your own site · 80×15
<a href="https://agentmods.dev/skills/chenyiru3/ai-skills-collections/scanpy"><img src="https://agentmods.dev/badge/skills/chenyiru3/ai-skills-collections/scanpy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 742 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 95% copy Near-identical to another mod 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.1 $0.00041 $0.00742
Opus 5.5 $0.00016 $0.00297
Sonnet 5.5 $0.00008 $0.00148
Haiku 4.5 $0.00004 $0.00074

Measured 19d ago against content hash f6d02b955576, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 19d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (assets/analysis_template.py, scripts/qc_analysis.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.

Origin

This is a copy

95% identical to scanpy — 395 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills-market/compbio/single-cell/analysis/scanpy/SKILL.md · 45 lines

How it starts

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

Scanpy single-cell analysis

Inspect Scanpy/AnnData versions, assay, organism/reference, feature IDs, samples/donors, matrix provenance, and the requested biological comparison. Preserve counts and sample identity before preprocessing.

Expression and preprocessing contract

  • Determine whether X, layers, and raw contain integer counts, normalized values, log expression, scaled values, or corrected data. adata.raw is a snapshot of the selected X/features, not automatically raw counts. Preserve counts in an explicitly named layer before normalization when available.
  • Assess per-sample QC distributions, mitochondrial annotation, doublets/background, and cell/gene coverage before thresholds. MT- is not a universal organism/identifier rule.
  • Match HVG flavor to its required input: some expect log-normalized expression, others counts. Make batch-aware selection and retained feature space explicit.
  • Normalize/log/scale only as required by the chosen workflow. Regression and scaling can remove biology or densify large matrices; do not apply them universally.

Graphs, clusters, and annotation

  1. Build PCA or the intended representation, select supported components, then build the named neighbor graph. UMAP visualizes that graph; it is not evidence of integration or cluster validity by itself.
  2. Run clustering before plotting its key. Assess sample composition, marker consistency, depth effects, and stability at a justified resolution rather than choosing the most visually separated UMAP.
  3. Rank markers using the intended expression layer and test. Keep effect sizes, detection rates, multiple testing, and cluster-selection bias visible.
  4. Annotate from multiple positive/negative markers and relevant references, retaining ambiguous/unknown labels. Cluster numbers have no fixed PBMC cell-type meaning.
  5. For trajectory work, build required graph/diffusion representations and justify a real root from evidence. Pseudotime does not establish a causal lineage.

Read the full file on GitHub · 45 lines

Files

What ships with it

5 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. 19d ago Changed · -342 lines · -27 tokens per session f6d02b955576
  2. 1mo ago First seen · 387 lines · 68 tokens per session scan A b1c27c23fab2

Subscribe to this mod's changes

scanpy is a skill published in the GitHub repository CHENyiru3/AI-Skills-Collections (3 stars, last pushed 7d ago), licensed MIT. It adds 41 tokens to every session and 742 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 95% identical to scanpy, differing in 395 lines, and is treated as a copy.

Related

scanpy compared with skills from other repositories

scanpy next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scanpyCHENyiru3/AI-Skills-CollectionsSkill37d agoMITA41Claude Code
instrument-data-to-allotropeanthropics/knowledge-work-pluginsSkill37k4d agoApache-2.0A123Claude Code
matlabK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA44Claude Code
exploratory-data-analysisK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA83Claude Code
phylogeneticsK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA71Claude Code, Codex
research-engineerdavila7/claude-code-templatesSkill34ktodayMITA43Claude Code, Codex
mapping-to-snomedmaziyarpanahi/openmedSkill5.9ktodayApache-2.0A205Claude Code