spatial-velocity

spatial-velocity is a skill for Claude Code, Codex from ShangBioLab/SpatialClaw. It costs 17 tokens per session (1,317 once invoked), scanned A, original, Apache-2.0.

A tool for estimating RNA velocity—the likely direction and speed of cell-state change—from spliced and unspliced RNA in spatial transcriptomics data, which records gene activity together with tissue location.

In plain words
What is it for?
Use it to estimate cell dynamics, calculate latent time, draw velocity arrows on tissue maps or UMAP plots, and identify genes driving those dynamics.
Why use it?
It reduces the manual setup needed to prepare RNA layers, run velocity models, and connect results to tissue coordinates.

Skill for Claude CodeCodex

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/shangbiolab/spatialclaw/spatial-velocity
Any agent
npx skills add ShangBioLab/SpatialClaw --skill spatial-velocity
Clone the repo
git clone --depth 1 https://github.com/ShangBioLab/SpatialClaw

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 spatial-velocity

README.md
[![agentmods](https://agentmods.dev/badge/skills/shangbiolab/spatialclaw/spatial-velocity.svg)](https://agentmods.dev/skills/shangbiolab/spatialclaw/spatial-velocity)
Your own site
<a href="https://agentmods.dev/skills/shangbiolab/spatialclaw/spatial-velocity"><img src="https://agentmods.dev/badge/skills/shangbiolab/spatialclaw/spatial-velocity.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,317 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found 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 $0.00017 $0.01317
Opus 5 $0.00009 $0.00659
Sonnet 5 $0.00003 $0.00263
Haiku 4.5 $0.00002 $0.00132

Measured 5d ago against content hash 1e6462774f2f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

spatial-velocity 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 5d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (spatial_velocity.py, tests/test_spatial_velocity.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.

skills/spatial/spatial-velocity/SKILL.md · 159 lines

How it starts

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

🏎️ Spatial Velocity

You are Spatial Velocity, a specialised SPATIALCLAW agent for RNA velocity analysis in spatial transcriptomics data. Your role is to infer cellular dynamics and directional movement from spliced/unspliced RNA ratios.

Why This Exists

  • Without it: Users must configure scVelo pipelines manually, handling sparse spliced/unspliced matrices
  • With it: Automated velocity estimation with spatial stream overlays in minutes
  • Why SPATIALCLAW: Integrates velocity vectors with spatial coordinates for tissue-level dynamics

Workflow

  1. Calculate: Prepare spliced and unspliced modalities.
  2. Execute: Run steady-state or dynamical velocity models.
  3. Assess: Perform latent time resolution estimations.
  4. Generate: Overlay velocity vectors onto spatial mapping or UMAP.
  5. Report: Tabulate top driving genes defining dynamic systems.

Core Capabilities

  1. scVelo stochastic: Fast, robust velocity estimation (default)
  2. scVelo deterministic: Steady-state approximation of RNA kinetics
  3. scVelo dynamical: Full kinetic model with latent time (most accurate, slowest)
  4. VELOVI: Variational inference RNA velocity (requires scvi-tools)
  5. Velocity stream plots: Overlay velocity arrows on spatial coordinates and UMAP

Requires: pip install scvelo

Input Formats

Format Extension Required Fields Notes
AnnData with velocity layers .h5ad layers["spliced"], layers["unspliced"] Produced by velocyto or STARsolo

CLI Reference

# Stochastic model (default)
python skills/spatial/spatial-velocity/spatial_velocity.py \
  --input <data.h5ad> --output <report_dir>

# Deterministic model
python skills/spatial/spatial-velocity/spatial_velocity.py \
  --input <data.h5ad> --method deterministic --output <dir>

# Dynamical model (full kinetics)
python skills/spatial/spatial-velocity/spatial_velocity.py \
  --input <data.h5ad> --method dynamical --output <dir>

# VELOVI (variational inference)
python skills/spatial/spatial-velocity/spatial_velocity.py \
  --input <data.h5ad> --method velovi --output <dir>

# Demo mode
python skills/spatial/spatial-velocity/spatial_velocity.py --demo --output /tmp/velo_demo

# Via SPATIALCLAW runner
python spatialclaw.py run spatial-velocity --input <file> --output <dir>
python spatialclaw.py run spatial-velocity --demo

Read the full file on GitHub · 159 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. 5d ago First seen · 159 lines · 17 tokens per session scan A 1e6462774f2f

Subscribe to this mod's changes

spatial-velocity is a skill published in the GitHub repository ShangBioLab/SpatialClaw (11 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 17 tokens to every session and 1,317 once invoked, about $0.0001 per session on Opus 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-08-30.

Related

Other skills, from other repositories

spatial-velocity

Load when estimating RNA velocity on a spatial AnnData with layers["spliced"] + layers["unspliced"] via scVelo (stochastic / deterministic / dynamical) or veloVI (deep generative). Skip when input lacks the spliced/unspliced layers (must be quantified upstream by velocyto / kb-python / STARsolo); non-spatial scRNA…

TianGzlab/OmicsClaw · 91 tokens

sc-velocity

Load when computing RNA velocity vectors on a scRNA AnnData with spliced / unspliced layers via scVelo (stochastic / dynamical / steady-state); dynamical mode additionally exports latent time. Skip when input lacks spliced+unspliced layers (use sc-velocity-prep); trajectory pseudotime ordering (use sc-pseudotime).

TianGzlab/OmicsClaw · 78 tokens

Developmental Gene Panel Design Workflow

Panel design for DEVELOPING / dynamic systems (embryonic organs, differentiation, regeneration). The target experiment is usually a LATE / terminal stage, but the biology is a trajectory: terminal cell types are end-products of earlier lineage programs. A panel built from the target stage alone resolves terminal…

aristoteleo/PantheonOS · 129 tokens

dart-io

DART IO: URDF, SDF, MJCF parsers, and dart::io loading.

dartsim/dart · 24 tokens

Gene Panel Selection Workflow

End-to-end workflow for gene panel design in scRNA-seq and spatial transcriptomics, that should be STRICTLY followed: dataset understanding + smart downsampling + train/test splits, algorithmic selection (HVG/DE/RF/scGeneFit/SpaPROS), optimal sub-panel discovery (ARI vs size), biological completion with a stability…

aristoteleo/PantheonOS · 110 tokens

dart-architecture

DART Architecture: the DART 7 multi-physics, multi-solver, multi-backend simulation pipeline and where each abstraction is owned.

dartsim/dart · 32 tokens