Skip to content
Back to skills

STAgent

ASecurity

Run STAgent to align histology images with expression matrices, perform clustering/SVG detection, and generate literature-backed spatial reports.

  • 32 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added February 7, 2026
researchpythonshellexpressrailsgit

Security analysis

A100/100

Pro scans all 15 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add mdbabumiamssm/LLMs-Universal-Life-Science-and-Clinical-Skills- --skill STAgent --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of STAgent?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for STAgent
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mdbabumiamssm-stagent/badge)](https://www.skillsdirectory.com/skills/mdbabumiamssm-stagent)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: spatial-transcriptomics-agent
description: Run STAgent to align histology images with expression matrices, perform clustering/SVG detection, and generate literature-backed spatial reports.
---

## At-a-Glance
- **description (10-20 chars):** Spatial analyst
- **keywords:** spatial, h5ad, H&E, clustering, SVG
- **measurable_outcome:** For each sample, deliver ≥1 spatial domain map + SVG list + narrative interpretation within 30 minutes.
- **license:** MIT | **version:** 1.0.0 (Python 3.9+; Scanpy + Squidpy stack)
- **allowed-tools:** `run_shell_command`, `read_file`, `web_fetch`

## When to Use
- Analysis of Visium/Xenium or similar ST datasets.
- Visual reasoning over spatial plots, H&E images, or cluster maps.
- Automatically generating Scanpy/Squidpy code for new ST workflows.
- Hypothesis generation about spatial gene expression patterns.

## Core Capabilities
1. **Dynamic code generation:** Create/execute Python scripts for QC, clustering, SVG detection.
2. **Visual reasoning:** Interpret spatial plots to identify tissue domains and cell neighborhoods.
3. **Literature retrieval:** Pull references that contextualize findings.
4. **Report generation:** Deliver publication-style writeups with plots and SVG tables.

## Workflow
1. **Env setup:** `conda env create -f environment.yml && conda activate STAgent`.
2. **Data prep:** Supply `expression_path` (`.h5ad`/Spaceranger) + `image_path` (H&E/IF) and metadata.
3. **Task selection:** Choose tasks such as `cluster`, `find_svg`, `annotate_domains`, or composite instructions; run `python repo/src/main.py --data_path ... --task "..."`.
4. **Execute & interpret:** Let STAgent generate scripts, run analyses, and interpret results with literature references.
5. **Package outputs:** Save UMAP/spatial plots, SVG tables, QC details, and summary markdown.

## Example Usage
```text
User: "Analyze this breast cancer ST dataset, find immune infiltrates."
Agent: loads data, runs `sqidpy.gr.spatial_neighbors`, computes Leiden clusters, plots marker genes (CD3D, CD19), and summarizes which clusters map to tumor core vs. stromal/immune zones.
```

## Guardrails
- Document coordinate systems and any scaling between imaging and expression coordinates.
- Avoid definitive cell-type labels without supporting markers.
- Capture QC parameters for reproducibility.

## References
- Source repo: https://github.com/LiuLab-Bioelectronics-Harvard/STAgent
- See local `README.md` for detailed instructions.

Files in this skill

  • README.md912 B
  • SKILL.md2.4 KB
  • agent_config.yaml597 B
  • repo/LICENSE1.1 KB
  • repo/README.md6 KB
  • repo/STAgent_generated_report.md17.8 KB
  • repo/environment.yml807 B
  • repo/src/.env170 B
  • repo/src/.streamlit/config.toml455 B
  • repo/src/db/chroma_squidpy_db/f219160f-16f0-4337-8401-5cefc3a7ae39/header.bin100 B
  • repo/src/db/chroma_squidpy_db/f219160f-16f0-4337-8401-5cefc3a7ae39/length.bin39.1 KB
  • repo/src/graph.py7.8 KB
  • repo/src/graph_anthropic.py8.2 KB
  • repo/src/prompt.py9.6 KB
  • repo/src/speech_to_text.py4.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.