scvi-tools

scvi-tools is a skill for Claude Code, Codex from UnicomAI/wanwu. It costs 100 tokens per session (2,575 once invoked), scanned A, a copy of scvi-tools, Apache-2.0.

A guide to scvi-tools, a Python library for analysing single-cell RNA sequencing data. It uses statistical models to compare batches of cells, find cell groups, and transfer cell-type labels from one dataset to another.

In plain words
What is it for?
Use it to create corrected cell embeddings for clustering, transfer annotations from a labelled reference dataset, and perform Bayesian differential-expression analysis. It also covers preparing AnnData files for saving.
Why use it?
Single-cell datasets often differ because they were produced in separate batches, making biological differences hard to distinguish from technical ones. The guide helps apply scVI and scANVI while preserving data in the formats used by Scanpy and AnnData.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

About the project

Wanwu is an enterprise platform for building AI agents, workflows, retrieval-augmented applications, and managing models in multi-tenant environments. It is designed for developers and enterprise teams delivering AI applications and integrations. The catalogue entries provide skills and agents for using the platform.

UnicomAI/wanwu · 2,456 stars · on GitHub

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/unicomai/wanwu/scvi-tools
Any agent
npx skills add UnicomAI/wanwu --skill scvi-tools
Clone the repo
git clone --depth 1 https://github.com/UnicomAI/wanwu

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 scvi-tools

README.md
[![agentmods](https://agentmods.dev/badge/skills/unicomai/wanwu/scvi-tools.svg)](https://agentmods.dev/skills/unicomai/wanwu/scvi-tools)
Your own site
<a href="https://agentmods.dev/skills/unicomai/wanwu/scvi-tools"><img src="https://agentmods.dev/badge/skills/unicomai/wanwu/scvi-tools.svg" alt="Measured on agentmods" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,575 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% 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.00100 $0.02575
Opus 5 $0.00050 $0.01288
Sonnet 5 $0.00020 $0.00515
Haiku 4.5 $0.00010 $0.00258

Measured 6d ago against content hash b782f4fb1ceb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

scvi-tools 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.

The scan reads SKILL.md. This mod also ships 1 executable file (kernel.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

100% identical to scvi-tools — 44 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.

configs/microservice/bff-service/configs/agent-skills/claude-science/scvi-tools/SKILL.md · 188 lines

How it starts

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

scvi-tools — scVI / scANVI

scvi-tools (Gayoso et al. 2022, github.com/scverse/scvi-tools, BSD-3-Clause) wraps a family of deep generative models for single-cell omics. The scRNA-seq core is scVI (unsupervised batch-corrected latent embedding) and scANVI (scVI + a classifier head for semi-supervised cell-type label transfer). Both expect raw integer UMI counts and emit a low-dimensional X_scVI / X_scANVI that drops into the scanpy neighbors → leiden → umap pipeline.

Setup (any agent, no API key)

This is a pure skillkernel.py is deterministic Python and you (the base model) do all the reasoning. There is no host runtime and no LLM API. The only helper here is h5ad_safe_obs, which coerces an obs/var frame so anndata.write_h5ad() succeeds. Load it once per session in a Python cell:

exec(open("scvi-tools/kernel.py").read())   # path to this skill's kernel.py

Nothing auto-loads it outside Claude Science. Then call h5ad_safe_obs(...) directly. If it raises NameError, you haven't exec'd kernel.py.

Dependencies: pip install scvi-tools scanpy anndata. Training needs a CUDA-capable GPU — see Remote compute to fall out to a rented GPU when you don't have one locally.

How to run

scVI — batch-corrected latent space

import scanpy as sc
import scvi

adata = sc.read_h5ad("dataset.h5ad")
adata.layers["counts"] = adata.X.copy()          # preserve raw BEFORE any normalize/log1p
sc.pp.normalize_total(adata); sc.pp.log1p(adata) # optional, for HVG / plotting only
sc.pp.highly_variable_genes(adata, n_top_genes=2000, batch_key="batch", subset=True)

scvi.model.SCVI.setup_anndata(adata, layer="counts", batch_key="batch")
model = scvi.model.SCVI(adata, n_latent=30)
model.train(max_epochs=200, early_stopping=True, accelerator="gpu", devices=1)

adata.obsm["X_scVI"] = model.get_latent_representation()
adata.layers["scvi_normalized"] = model.get_normalized_expression(library_size=1e4)

Read the full file on GitHub · 188 lines

Files

What ships with it

2 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. 6d ago First seen · 188 lines · 100 tokens per session scan A b782f4fb1ceb

Subscribe to this mod's changes

scvi-tools is a skill published in the GitHub repository UnicomAI/wanwu (2,456 stars, last pushed yesterday), licensed Apache-2.0. It adds 100 tokens to every session and 2,575 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to scvi-tools, differing in 44 lines, and is treated as a copy.

Related

Other skills, from other repositories

molecular-rag

Retrieve structurally similar compounds with known properties from ChEMBL/ZINC to ground predictions and inform optimization. Based on MolRAG (Xian 2025, ACL).

synthetic-sciences/openscience · 40 tokens

sciverse-paper-search

Use this skill for scientific literature search, evidence retrieval, paper metadata screening, and cited research synthesis with Sciverse. This LazyLLM-adapted version supports SciverseSearch search, metasearch, metacatalog, and getcontent only; it does not assume full Sciverse MCP resource or attachment APIs are…

LazyAGI/LazyMind · 68 tokens

paper-search

Primary skill for searching, retrieving, and reading academic papers from arXiv.

LazyAGI/LazyMind · 19 tokens

dify

Use when building LLM applications with visual workflow — RAG knowledge bases, AI agents, chatbots with drag-and-drop orchestration. Dify: open-source LLM app platform supporting 30+ models (OpenAI, Claude, DeepSeek, Ollama, Qwen, GLM) with Docker deployment.

znlgis/opengis-skills · 66 tokens

Web2Skill

Convert one public website URL or an explicit batch of public URLs into a reusable skill zip backed by rendered HTML snapshots and a bounded JSONL retrieval index. Use to discover a documentation directory from one URL, crawl a supplied URL set sequentially, generate a source profile, or package indexed web content as…

zhimaAi/chatwiki · 67 tokens

Book2Skill

Convert one or more TXT, Markdown, DOCX, or PDF documents into a reusable skill zip backed by normalized Markdown, extracted images, and a grounded JSONL knowledge index. Invoke this skill before inspecting task files, then execute its workflow directly without listing directories.

zhimaAi/chatwiki · 56 tokens