Agent skill · Scientific Agent Skills
/scanpy Run a single-cell RNA-seq analysis with tested Scanpy scripts
The scanpy skill bundles a chain of command-line scripts that take raw single-cell counts through QC, normalization, variable gene selection, dimensionality reduction, Leiden clustering, marker ranking, annotation and pseudobulk preparation, all reading and writing h5ad files. It targets Scanpy 1.12.4 and spells out where counts, normalized values and the raw slot live so downstream statistics use the right matrix.
Works with
- Claude Code, Codex, Gemini CLI, Antigravity, Cursor
- GitHub CLI
- Cursor
- Codex
- OpenClaw, NemoClaw, Pi, Hermes and other hosts
When to use it
- You have 10x output or an h5ad file and need a first clustered, annotated object.
- You want to compare clustering resolutions and inspect marker genes before labelling cell types.
- You need sample-level pseudobulk counts for condition comparisons with pydeseq2.
How it works
- 1Inspect the input
The agent summarizes the dataset and confirms it starts from true raw counts, using a counts layer when the main matrix is already normalized.
- 2Prefer the scripts
It runs the bundled pipeline or step scripts rather than writing Scanpy code from scratch.
- 3QC and preprocess
It sets QC thresholds from plots, optionally flags doublets, normalizes and keeps counts and a log-normalized raw snapshot.
- 4Cluster and rank markers
It builds PCA, neighbour graph and UMAP, clusters with Leiden at several resolutions and writes per-cluster marker CSVs.
- 5Annotate and aggregate
You review markers and supply a cluster-to-cell-type map, then it can aggregate counts by sample and cell type.
What it steers the agent away from
- Treating cluster marker p-values as rigorous differential expression between conditions
- Running pseudobulk on normalized values instead of counts
- Using the deprecated Louvain clustering by default
Install this skill
It installs with the Scientific Agent Skills pack.
Claude Code, Codex, Gemini CLI, Antigravity, Cursor (npx)The standards-based installer; confirm install paths in your host's docs.
npx skills add K-Dense-AI/scientific-agent-skillsGitHub CLI (gh skill)Needs GitHub CLI 2.90.0 or later; supports --agent and --pin for host targeting and version pinning.
gh skill install K-Dense-AI/scientific-agent-skills
gh skill install K-Dense-AI/scientific-agent-skills scanpyCursor (Agent Plugins)Run from a checkout of the repository, then reload the Cursor window.
mkdir -p ~/.cursor/plugins/local
ln -s "$(pwd)" ~/.cursor/plugins/local/scientific-agent-skillsCodex (Agent Plugins)Run inside a local checkout; the README asks you to confirm current flag names.
codex plugins install .OpenClaw, NemoClaw, Pi, Hermes and other hostsClone into the folder your host scans; Hermes can instead use hermes skills tap add.
git clone https://github.com/K-Dense-AI/scientific-agent-skills.git ~/.agents/skills/scientific-agent-skills # user-levelCommands come from the author’s README; check it for changes before you run them.
Questions
Can it read Seurat objects?
Not directly. The skill has the agent convert .rds files to .h5ad with R tooling first, following a bundled runbook.
Which Python version is required?
Python 3.12 or newer. The skill targets Scanpy release 1.12.4, and its tests ran on Python 3.13.
More guides from Scientific Agent Skills
/database-lookupPull facts from scientific databases in a form others can rerunQueries 80 scientific, clinical, patent and economic databases with bounded calls, count reconciliation and full provenance.Read the guide →/literature-reviewRun a reproducible literature review with checked citationsRuns systematic, scoping or narrative reviews across databases with recorded searches, PRISMA counts and DOI checks.Read the guide →/paper-lookupFind papers and full text without trusting silent API errorsSearches 18 scholarly APIs such as PubMed, arXiv, OpenAlex and Unpaywall for papers, citations and open-access full text.Read the guide →/scientific-writingDraft manuscripts where every claim traces to verified evidenceDrafts manuscripts only from verified evidence IDs and checks consistency, references, authorship and reporting guidelines locally.Read the guide →
Also in this pack
/astropyHandles astronomy units, sky coordinates, FITS files, time scales, WCS and cosmology calculations with Astropy.↗/biopythonParses FASTA, GenBank and PDB files, queries NCBI through Entrez, automates BLAST and builds phylogenetic trees with Biopython.↗/daskScales pandas and NumPy work past memory or across a cluster with Dask DataFrames, Arrays, Futures and schedulers.↗/networkxBuilds and analyses graphs with NetworkX: shortest paths, centrality, community detection, synthetic networks and graph I/O.↗/polarsWrites expression-based Polars code for ETL and analytics, including lazy queries, streaming and pandas migration.↗/pymcFits Bayesian models in PyMC with prior predictive checks, NUTS sampling, convergence diagnostics and LOO comparison.↗/rdkitParses SMILES and SDF, computes descriptors and fingerprints, and runs substructure, similarity and reaction work in RDKit.↗/scikit-learnBuilds classification, regression and clustering pipelines with preprocessing, tuning and evaluation on scikit-learn 1.9.↗
Summary by trendhub. The skill itself lives in K-Dense-AI/scientific-agent-skills/skills/scanpy by K-Dense (MIT); read the full, current text there.