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 ualberta-rcg/drac-agent-skills --skill scanpygit clone --depth 1 https://github.com/ualberta-rcg/drac-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/ualberta-rcg/drac-agent-skills/scanpy)<a href="https://agentmods.dev/skills/ualberta-rcg/drac-agent-skills/scanpy"><img src="https://agentmods.dev/badge/skills/ualberta-rcg/drac-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/ualberta-rcg/drac-agent-skills/scanpy"><img src="https://agentmods.dev/badge/skills/ualberta-rcg/drac-agent-skills/scanpy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00073 | $0.01389 |
| Opus 5.5 | $0.00029 | $0.00556 |
| Sonnet 5.5 | $0.00015 | $0.00278 |
| Haiku 4.5 | $0.00007 | $0.00139 |
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 6d 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 — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Scanpy: Single-Cell RNA-seq Analysis (AnnData)
Target Scanpy 1.12+ (sc.tl.louvain and per-plot save= are deprecated — use sc.tl.leiden(..., flavor="igraph", n_iterations=2) and sc.settings.figdir / sc.settings.autosave).
Non-Negotiable AnnData Representation Rules
- Preserve raw integer UMI counts before normalizing: Save
adata.layers["counts"] = adata.X.copy()beforesc.pp.normalize_totalandsc.pp.log1p. Never guess count provenance from integer-looking floats. - Distinguish
layers["counts"]from.raw: Snapshotadata.raw = adata.copy()afterlog1p(and before subsetting to HVGs) sorank_genes_groupsand marker dotplots have full-transcriptome log-normalized expression, whilelayers["counts"]retains raw counts for pseudobulk DE (pydeseq2) orscvi-tools. - Never treat cluster
rank_genes_groupsp-values as condition DE: Clustering and testing on the same cells inflates false positives; for multi-sample condition comparisons, aggregate raw counts per(sample, cell_type)biological replicate into pseudobulk matrices and test withPyDESeq2/edgeR.
Standard End-to-End Scanpy Workflow
import scanpy as sc
sc.settings.figdir = "/scratch/$USER/sc_figures"
sc.settings.autosave = True
# 1. Load & preserve raw counts
adata = sc.read_10x_h5("/scratch/$USER/filtered_feature_bc_matrix.h5")
adata.var_names_make_unique()
adata.layers["counts"] = adata.X.copy()
# 2. Quality control (inspect violin/scatter distributions before choosing cutoffs!)
adata.var["mt"] = adata.var_names.str.startswith(("MT-", "mt-"))
sc.pp.calculate_qc_metrics(adata, qc_vars=["mt"], inplace=True)
adata = adata[
(adata.obs["n_genes_by_counts"] >= 200)
& (adata.obs["pct_counts_mt"] < 15.0),
:,
].copy()
sc.pp.filter_genes(adata, min_cells=3)
sc.pp.scrublet(adata, batch_key="sample") # Optional doublet scoring on raw counts
# 3. Normalize, log1p, snapshot full-gene .raw, then select HVGs
sc.pp.normalize_total(adata, target_sum=1e4)
sc.pp.log1p(adata)
adata.raw = adata.copy() # Full-gene log1p expression for marker visualization
sc.pp.highly_variable_genes(adata, n_top_genes=2000, batch_key="sample")
adata_hvg = adata[:, adata.var["highly_variable"]].copy()
# 4. PCA, neighbor graph, UMAP & Leiden clustering (igraph backend)
sc.tl.pca(adata_hvg, n_comps=40)
sc.pp.neighbors(adata_hvg, n_neighbors=15, n_pcs=30)
sc.tl.umap(adata_hvg)
for res in (0.4, 0.6, 1.0):
sc.tl.leiden(adata_hvg, resolution=res, key_added=f"leiden_{res}", flavor="igraph", n_iterations=2)
# 5. Exploratory marker ranking (against full-gene log1p .raw)
sc.tl.rank_genes_groups(adata_hvg, groupby="leiden_0.6", method="wilcoxon", use_raw=True)
markers = sc.get.rank_genes_groups_df(adata_hvg, group=None)
adata_hvg.write_h5ad("/scratch/$USER/processed.h5ad", compression="gzip")
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.
- 6d ago First seen · 80 lines · 73 tokens per session scan A 2703adb990b4
scanpy is a skill published in the GitHub repository ualberta-rcg/drac-agent-skills (2 stars, last pushed 7d ago), licensed MIT. It adds 73 tokens to every session and 1,389 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-11-25.
scanpy compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| scanpyualberta-rcg/drac-agent-skills | Skill | 2 | 7d ago | MIT | A | 73 | Claude Code |
| jupyter-notebookNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 18 | Claude Code, Codex |
| matlabK-Dense-AI/scientific-agent-skills | Skill | 59k | yesterday | MIT | A | 44 | Claude Code |
| pennylaneK-Dense-AI/scientific-agent-skills | Skill | 59k | yesterday | MIT | A | 74 | Claude Code |
| cuequivariance-torchNVIDIA/skills | Skill | 4.2k | today | Apache-2.0 | A | 37 | Claude Code, Codex |
| cuequivariance-jaxNVIDIA/skills | Skill | 4.2k | today | Apache-2.0 | A | 38 | Claude Code, Codex |
| cuopt-numerical-optimization-apiNVIDIA/skills | Skill | 4.2k | today | Apache-2.0 | A | 51 | Claude Code, Codex |