spatial-trajectory

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

A workflow for estimating pseudotime and branching paths in preprocessed spatial single-cell data. Pseudotime is an inferred progression through cell states, not a recorded clock time.

In plain words
What is it for?
Useful for processing AnnData files, estimating diffusion, fate, or branch probabilities, and producing trajectory summaries and driver-gene tables.
Why use it?
It helps analyse possible cell-state transitions when the data has spatial locations but no spliced and unspliced RNA layers needed for RNA-velocity analysis.

Skill for Claude CodeCodex

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

Good fit Useful for processing AnnData files, estimating diffusion, fate, or branch probabilities, and producing trajectory summaries and driver-gene tables.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/tiangzlab/omicsclaw/spatial-trajectory"><img src="https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/spatial-trajectory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,273 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.00093 $0.01273
Opus 5.5 $0.00037 $0.00509
Sonnet 5.5 $0.00019 $0.00255
Haiku 4.5 $0.00009 $0.00127

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

Security

Grade A, and why

spatial-trajectory 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 19d ago.

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

How it starts

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

spatial-trajectory

When to use

Infer pseudotime from log-normalized spatial expression with an existing PCA and neighbors graph. DPT is the default; CellRank adds fate probabilities and Palantir adds waypoint branch probabilities.

Use from a step

from skills._sdk.notebook import load_skill
library = load_skill("spatial-trajectory")
library.trajectory(adata, root_cell=str(adata.obs_names[0]))

Run examples/example_step.py with the step runner for a synthetic, executable example.

API

trajectory(adata, *, method: str='dpt', cluster_key: str | None=None, root_cell: str | None=None, root_cell_type: str | None=None, method_params: dict | None=None, random_state: int=0, palantir_waypoint_seed: int=20)

Infer pseudotime in place from log-normalized X and an existing PCA/graph.

DPT and CellRank add dpt_pseudotime; Palantir adds palantir_pseudotime. CellRank fate calculations can be incomplete; inspect run_info warnings.

:param adata: AnnData with X_pca and a neighbors graph from preprocessing. :param method: dpt (CLI default), cellrank or palantir. :param cluster_key: Observation annotation; None detects leiden/cell_type/cluster. :param root_cell: Starting barcode; None picks the maximum first diffusion component. :param root_cell_type: Restrict automatic root selection to this annotation value. :param method_params: Backend options using the CLI names with underscores; None retains its defaults, such as dpt_n_dcs=10. See references/parameters.md. :param random_state: Seed for diffusion maps and supported backend sampling, default 0. :param palantir_waypoint_seed: Palantir waypoint sampling seed, 20 to preserve the original CLI backend default independently from diffusion-map seed 0. :returns: The same AnnData with pseudotime and JSON run diagnostics. :raises ValueError: Missing preprocessing, root or annotation, or invalid method. :raises ImportError: A backend is missing; use install_skill_deps.

Read the full file on GitHub · 125 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. 19d ago Changed · -23 lines cd7cd9b8b312
  2. 1mo ago First seen · 148 lines · 93 tokens per session scan A 1b5a38add927

Subscribe to this mod's changes

spatial-trajectory is a skill published in the GitHub repository TianGzlab/OmicsClaw (161 stars, last pushed 19d ago), licensed Apache-2.0. It adds 93 tokens to every session and 1,273 once invoked, about $0.0004 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

spatial-trajectory

Trajectory inference and pseudotime analysis for spatial transcriptomics data.

ShangBioLab/SpatialClaw · 18 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

spatial-omics

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

inflexa-ai/inflexa · 28 tokens

trajectory-analysis

Single-cell trajectory inference pipeline covering diffusion pseudotime (DPT), PAGA, RNA velocity with scVelo, and fate mapping with CellRank. Use when the user mentions pseudotime, trajectory, lineage, differentiation, RNA velocity, scVelo, CellRank, PAGA, diffusion map, fate probabilities, terminal states…

awslabs/hcls-agent-skills · 141 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

neuropixels-analysis

Analyzes Neuropixels extracellular recordings end-to-end with SpikeInterface. Covers loading SpikeGLX/Open Ephys/NWB data, preprocessing, drift/motion correction, Kilosort4 (and CPU) spike sorting, quality metrics, and unit curation (threshold-based, model-based UnitRefine, and AI-assisted visual review). Use when…

K-Dense-AI/scientific-agent-skills · 99 tokens