spatial-enrichment

spatial-enrichment is a skill for Claude Code, Codex from TianGzlab/OmicsClaw. It costs 59 tokens per session (1,602 once invoked), scanned A, original, Apache-2.0.

A spatial gene-set analysis tool for finding biological pathways enriched in groups of locations or cells in spatial transcriptomics data. It can also score pathways in individual cells.

In plain words
What is it for?
Use it with a preprocessed AnnData file to test gene sets with Enrichr, GSEA, or ssGSEA for each cluster or cell.
Why use it?
It helps turn long lists of genes into interpretable biological processes, such as immune activity or cell growth, while keeping their spatial groups in view.

Skill for Claude CodeCodex

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

Good fit Use it with a preprocessed AnnData file to test gene sets with Enrichr, GSEA, or ssGSEA for each cluster or cell.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tiangzlab/omicsclaw/spatial-enrichment
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.

Any agent
npx skills add TianGzlab/OmicsClaw --skill spatial-enrichment
Clone the repo
git clone --depth 1 https://github.com/TianGzlab/OmicsClaw

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/tiangzlab/omicsclaw/spatial-enrichment/github.svg)](https://agentmods.dev/skills/tiangzlab/omicsclaw/spatial-enrichment)
Your own site
<a href="https://agentmods.dev/skills/tiangzlab/omicsclaw/spatial-enrichment"><img src="https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/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/tiangzlab/omicsclaw/spatial-enrichment"><img src="https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/spatial-enrichment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,602 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Rogue Agent · line 3
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
How audits are shown
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.00059 $0.01602
Opus 5.5 $0.00024 $0.00641
Sonnet 5.5 $0.00012 $0.00320
Haiku 4.5 $0.00006 $0.00160

Measured 14d ago against content hash ebafad939db6, 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 14d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (_api.py, examples/example_step.py, 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 · 164 lines

How it starts

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

spatial-enrichment

When to use

Interpret group markers with gene sets, or score group-mean expression. The default is a small local OmicsClaw signature library. Hosted libraries require network access; explicit gene-set mappings and local GMT/JSON files work offline. Synthetic demo signatures are not curated biological pathways.

Use from a step

from skills._sdk.notebook import load_skill, read_input, write_output
library = load_skill("spatial-enrichment")
adata = read_input("processed.h5ad")
library.enrich(adata, groupby="leiden", source="omicsclaw_core")
write_output(library.results(adata), "tables/enrichment_results.csv")

The executable example uses explicit synthetic marker sets and checks their known group enrichment.

For local libraries use sets = read_input("data/sets.gmt", reader=library.read_gene_sets), then library.enrich(adata, gene_sets=sets). read_input records the file hash. library.fetch_gene_sets("KEGG_2021_Human") explicitly accesses the network. Cache that mapping as JSON before a repeatable analysis, then load the cached file with read_input and this reader. Computation accepts built-in sources or mappings.

API

read_gene_sets(path)

Read a local GMT or JSON gene-set library without writing files.

In a step call read_input(path, reader=library.read_gene_sets) to record the input file hash and resolve the path relative to the project root.

:param path: Local GMT or JSON path supplied by read_input or the CLI. :returns: Term-to-gene mapping retaining its local source metadata. :raises FileNotFoundError: The local file is absent. :raises ValueError: The format or JSON structure is invalid.

fetch_gene_sets(source, *, species='human')

Fetch a remote Enrichr library; this call requires network access.

Cache the mapping as JSON, then use read_input(path, reader=library.read_gene_sets) for repeatable analysis steps. Fetching alone does not record a file hash.

Read the full file on GitHub · 164 lines

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. 14d ago Changed · +25 lines · -10 tokens per session ebafad939db6
  2. 1mo ago First seen · 139 lines · 69 tokens per session scan A 6b6ac9c8cc52

Subscribe to this mod's changes

spatial-enrichment is a skill published in the GitHub repository TianGzlab/OmicsClaw (161 stars, last pushed 14d ago), licensed Apache-2.0. It adds 59 tokens to every session and 1,602 once invoked, about $0.0002 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-09-03.

Related

Other skills, from other repositories

enrichment

Functional enrichment and pathway analysis including GSEA, ORA, ssGSEA, GSVA, and decoupler-based activity inference.

inflexa-ai/inflexa · 29 tokens

spatial-enrichment

Pathway and gene set enrichment analysis for spatial transcriptomics data.

ShangBioLab/SpatialClaw · 18 tokens

kegg-query

Query KEGG database for drug information, pathway analysis, and disease-drug-target discovery. Use this skill when: (1) Looking up drug information including efficacy, targets, metabolism, and interactions, (2) Analyzing metabolic or signaling pathways to retrieve genes, compounds, and modules, (3) Discovering…

PharMolix/OpenBioMed · 82 tokens

spatial-omics

Spatial transcriptomics and spatial proteomics analysis covering technology-specific workflows, spatial statistics, deconvolution, and niche analysis.

inflexa-ai/inflexa · 28 tokens

spatial-omics-integrate

Integrate two aligned spatial omics modalities on the same cells using SpatialGlue or SpaDDM. Standard input contract: --input --omics2 . Supports demo mode and validated modality pairs such as RNA+Protein and RNA+ATAC.

ShangBioLab/SpatialClaw · 70 tokens

bio-agent-skills-hub

Discover and invoke 1,676 deduplicated biomedical AI agent skills from the Awesome Bio Agent Skills repository (20 source repos, 15 categories). Use this skill as a router whenever a user needs a bioinformatics/biomedical task (genomics, transcriptomics, single-cell, proteomics, protein design, clinical, epigenomics…

BioTender-max/awesome-bio-agent-skills · 114 tokens