spatial-enrichment

spatial-enrichment is a skill for Claude Code, Codex from ShangBioLab/SpatialClaw. It costs 18 tokens per session (2,075 once invoked), scanned A, original, Apache-2.0.

A tool for finding biological pathways and gene sets that are over-represented in spatial transcriptomics results. A pathway is a group of genes involved in a shared biological process.

In plain words
What is it for?
Use it for per-cluster over-representation analysis or optional GSEA, using built-in Hallmark, cell-cycle, and immune gene sets, with pathway scores and dot plots.
Why use it?
It helps turn long lists of marker genes into interpretable biological functions and applies corrections intended to reduce false discoveries.

Skill for Claude CodeCodex

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is --input ./data/clustered.h5ad \.

Good fit Use it for per-cluster over-representation analysis or optional GSEA, using built-in Hallmark, cell-cycle, and immune gene sets, with pathway scores and dot plots.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ShangBioLab/SpatialClaw
agentmods
npx agentmods add skills/shangbiolab/spatialclaw/spatial-enrichment

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-enrichment

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/shangbiolab/spatialclaw/spatial-enrichment"><img src="https://agentmods.dev/badge/skills/shangbiolab/spatialclaw/spatial-enrichment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,075 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 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.1 $0.00018 $0.02075
Opus 5.5 $0.00007 $0.00830
Sonnet 5.5 $0.00004 $0.00415
Haiku 4.5 $0.00002 $0.00208

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

Security

Grade A, and why

spatial-enrichment 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 3mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (spatial_enrichment.py, tests/test_spatial_enrichment.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-enrichment/SKILL.md · 201 lines

How it starts

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

🧬 Spatial Enrichment

You are Spatial Enrichment, a specialised SPATIALCLAW agent for pathway and gene set enrichment analysis. Your role is to identify over-represented biological pathways in spatially resolved gene expression data.

Why This Exists

  • Without it: Users must extract marker genes, format gene lists, and run external enrichment tools manually
  • With it: Automated per-cluster enrichment analysis with built-in gene sets and optional GSEA
  • Why SPATIALCLAW: Integrates directly with spatial DE results and produces publication-ready enrichment figures

Workflow

  1. Calculate: Map marker genes against biological networks and knowledge bases.
  2. Execute: Run over-representation analysis (ORA) or GSEA dynamically.
  3. Assess: Perform multiple hypothesis testing corrections.
  4. Generate: Output structured pathway scores and dot plots.
  5. Report: Tabulate top significantly enriched functions.

Core Capabilities

  1. Over-representation analysis (ORA): Hypergeometric test on marker genes per cluster
  2. Built-in gene sets: Curated Hallmark, cell cycle, and immune signature sets — no downloads needed
  3. Optional gseapy: When available, run full GSEA/Enrichr against MSigDB, GO, KEGG, Reactome
  4. Per-cluster enrichment: Run enrichment on each cluster's marker genes
  5. Ranking metric selection: Choose from scores, logfoldchanges, or test statistic for GSEA
  6. Leading edge extraction: Identify core genes driving enrichment in top pathways
  7. Multiple databases: GO BP/MF/CC, KEGG, Reactome, MSigDB Hallmark/Oncogenic/Immunologic

GSEA Ranking Metrics

When running GSEA, the ranking metric determines how genes are ordered. Preference order:

Metric Column When to use
Test statistic stat Best: accounts for both effect size and significance
Wilcoxon scores scores Good default: from scanpy's rank_genes_groups
Log fold change logfoldchanges Avoid if possible: ignores significance

Read the full file on GitHub · 201 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. 3mo ago First seen · 201 lines · 18 tokens per session scan A d6b6e70ac952

Subscribe to this mod's changes

spatial-enrichment is a skill published in the GitHub repository ShangBioLab/SpatialClaw (11 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 18 tokens to every session and 2,075 once invoked, about $0.0001 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-08-30.

Related

spatial-enrichment compared with skills from other repositories

spatial-enrichment next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
spatial-enrichmentShangBioLab/SpatialClawSkill116mo agoApache-2.0A18Claude Code, Codex
bulkrna-enrichmentTianGzlab/OmicsClawSkill1612mo agoApache-2.0A59Claude Code, Codex
spatial-enrichmentTianGzlab/OmicsClawSkill1612mo agoApache-2.0A59Claude Code, Codex
sc-enrichmentTianGzlab/OmicsClawSkill1612mo agoApache-2.0A71Claude Code, Codex
metabolomics-pathway-enrichmentTianGzlab/OmicsClawSkill1612mo agoApache-2.0A68Claude Code, Codex
kegg-queryPharMolix/OpenBioMedSkill1.1k4mo agoMITA82Claude Code, Codex
Gene Panel Selection Workflowaristoteleo/PantheonOSSkill499todayBSD-2-ClauseA110Claude Code, Codex