troubleshoot
Skill45 starsChanged 3 months agoMITView on GitHub
Diagnose and resolve common issues in spatial transcriptomics analysis. Use when analysis fails, produces unexpected results, or user encounters errors. Triggers: "error", "failed", "not working", "issue", "problem", "help", "unexpected result", "debug", "fix", "wrong output".
- Installs packages
27 other projects use a version of this.
Adopted by
Most recently taken up by
- naman10parikh/pennytheir own version, first seen Nov 8, 2026
- synchronicity-labs/skillstheir own version, first seen Nov 8, 2026
- naman10parikh/wikimemtheir own version, first seen Nov 8, 2026
- google/ml-workload-debugging-wikitheir own version, first seen Nov 1, 2026
- mystilleef/spae-frameworktheir own version, first seen Oct 28, 2026
- naman10parikh/turbotheir own version, first seen Oct 25, 2026
Used with
Projects with it also use ecosystem-reference, fractal-delegation and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
naman10parikhSkillecosystem-reference
Quick-access directory of Claude Code ecosystem repos, skills, plugins, MCPs, and patterns. Use when improving the harness.
Also in 5 projects that use this
naman10parikhSkillfractal-delegation
Also in 5 projects that use this
MicrosoftSkillact-on-feedback
Act on user feedback attached to the current session. Use when the user submits feedback on the session's changes via the Submit Feedback button.
Also in 3 projects that use this
MicrosoftSkillgenerate-run-commands
Generate or modify run commands for the current session. Use when the user wants to set up or update run commands that appear in the session's Run button.
Also in 3 projects that use this
KirchliveSkillskill-routing
Decides which of the installed skills a task needs and loads them before the work starts. This skill should be used at the beginning of any multi-step task — build, fix, refactor, migrate, review, plan, release, research, write, design, video — and again at every phase change, after context compaction, and when work moves into a different part of the codebase. Use it for requests like "let's build X", "fix this bug", "refactor Y", "plan the migration", "review this", and also when the user asks which skill applies, why a skill did not fire, or asks to check what is available.
Also in 5 projects that use this
sublimotionSkillagent-runtime
Launch and manage detached agent runs on EKS via the agent-runner CLI. Use when the user says "launch an agent run", "agent runtime", "agent-runner", "run this spec on the cluster", "check run status", "agent run logs", or "stop a run". Do NOT use for writing the agent-runner code itself (edit the sibling ../agent-runner repo), Terraform of the foundation (use terraform-automation), or GPU serving deployments (use infra-deployer).
Also in 5 projects that use this
- +6 more from naman10parikh
Other versions27 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 27
- microsoft/vscode★ 195ksame name
- DeL-TaiseiOzaki/claude-code-orchestra★ 199same name
- serithemage/serverless-openclaw★ 196same name
- Azure-Samples/art-voice-agent-accelerator★ 74same name
- microsoft/Employee-Self-Service-Agent-Developer-Kit★ 29same name
- google/ml-workload-debugging-wiki★ 20same name
- laaielichter/Reverseport★ 18same name
- jamie8johnson/cqs★ 15same name
- managelm/claude-extension★ 9same name
- naman10parikh/agentgrid★ 9same name
17 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- cell-compositionSkill
- cell-dynamicsSkill
- cell-interactionSkill
- differential-analysisSkill
- functional-analysisSkill
- publication-readySkill
- spatial-analysisSkill
- spatial-patternsSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 22 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 103
Check for batch effects
- Distinctive: line 108
All spots have same composition
- Distinctive: line 126
Verify cell type annotations are correct
- Distinctive: line 127
Check species setting matches data
- Very specific: line 228
Use CPU fallback: use_gpu=False
- Distinctive: line 269
When reporting issues, include:
“Common” is measured: kept by at least 6 in 10 of the 22 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Troubleshooting Guide
Overview
This skill helps diagnose and resolve common issues in ChatSpatial analysis.
Quick Diagnosis Tree
Q: What type of problem?
│
├─ Analysis fails with error
│ └─ See: Error Messages section
│
├─ Analysis runs but results look wrong
│ └─ See: Result Validation section
│
├─ Performance issues (slow/memory)
│ └─ See: Performance section
│
└─ Dependency/installation problems
└─ See: Environment sectionError Messages
Data Loading Errors
| Error | Cause | Solution |
FileNotFoundError | Path incorrect | Verify file path exists |
KeyError: 'spatial' | No spatial coordinates | Check data format, use correct loader |
ValueError: sparse matrix | Format mismatch | Convert to compatible format |
MemoryError | File too large | Use chunked loading or subsample |
Diagnostic steps:
1. Verify file exists: ls -la <path>
2. Check file size: du -h <path>
3. Try reading header only to test formatPreprocessing Errors
| Error | Cause | Solution |
No highly variable genes | Filtering too strict | Lower min_mean/max_mean thresholds |
Negative values after log | Data not normalized | Use raw counts first |
Empty AnnData after QC | QC too strict | Relax min_genes/min_cells |
Method-Specific Errors
Deconvolution
| Error | Cause | Solution |
No shared genes | Reference mismatch | Check gene naming (symbols vs IDs) |
RCTD failed | R/rpy2 issue | Verify R installation, check rpy2 |
Cell2location GPU error | CUDA issue | Use CPU mode, check GPU availability |
Reference cell types missing | Bad annotation column | Verify cell_type_key exists |
Cell Communication
| Error | Cause | Solution |
CellChat R error | R dependency | Install CellChat in R first |
No interactions found | Stringent filtering | Lower p-value threshold |
Species database not found | Wrong species config | Use "human" or "mouse" |
Trajectory/Velocity
| Error | Cause | Solution |
No spliced/unspliced | Missing layers | Process with velocyto first |
Root cell not found | Bad root specification | Use valid cell barcode or cluster |
Disconnected graph | Poor connectivity | Increase n_neighbors |
Result Validation
Unexpected Clustering Results
Symptoms:
- Too few/many clusters
- Clusters don't match histology
- Known cell types not separated
Solutions:
- Adjust resolution parameter (higher = more clusters)
- Try different clustering methods
- Verify preprocessing quality
- Check for batch effects
Poor Deconvolution Results
Symptoms:
- All spots have same composition
- Proportions don't sum to 1
- Expected cell types missing
Diagnostic checklist:
- Reference and spatial data normalized consistently?
- Sufficient gene overlap (>2000 genes)?
- Reference cell types well-defined?
- Spatial data quality passed QC?
Meaningless Communication Results
Symptoms:
- Random interactions without biological sense
- Same interactions everywhere
- Missing expected pathways
Solutions:
- Verify cell type annotations are correct
- Check species setting matches data
- Try different communication database
- Increase minimum expression threshold
Performance Issues
Memory Problems
Symptoms:
MemoryError- System becomes unresponsive
- Kernel crashes
Solutions by data size:
| Data Size | Strategy |
| <50k cells | Should work, check other processes |
| 50k-100k | Close other applications, increase swap |
| 100k-500k | Use chunked processing, subsample |
| >500k | Requires HPC or cloud resources |
Specific techniques:
1. Subsample for exploration:
sc.pp.subsample(adata, n_obs=50000)
2. Use sparse matrices:
adata.X = scipy.sparse.csr_matrix(adata.X)
3. Process in chunks:
Use batch processing for large datasetsSlow Execution
Common causes and solutions:
| Bottleneck | Solution |
| Neighbor computation | Reduce n_neighbors, use approximate methods |
| Clustering | Use faster method (leiden > louvain) |
| Deconvolution | Use FlashDeconv instead of Cell2location |
| Visualization | Reduce point size, subsample for plotting |
Environment Issues
Python Dependencies
Check installation:
python -c "import scanpy; print(scanpy.__version__)"
python -c "import squidpy; print(squidpy.__version__)"Common fixes:
pip install --upgrade scanpy squidpy
pip install scvi-tools # For deep learning methodsR Dependencies (rpy2)
Check R availability:
import rpy2.robjects as ro
print(ro.r('R.version.string'))Install R packages:
# In R console
install.packages("Seurat")
BiocManager::install("RCTD")
devtools::install_github("sqjin/CellChat")Common rpy2 issues:
1. R_HOME not set:
export R_HOME=/path/to/R
2. Library path issues:
Check .libPaths() in R
3. Version mismatch:
Ensure rpy2 matches R versionGPU/CUDA Issues
Check GPU availability:
import torch
print(torch.cuda.is_available())
print(torch.cuda.device_count())Common fixes:
- Update CUDA drivers
- Install correct torch version for CUDA
- Use CPU fallback:
use_gpu=False
Data Format Issues
AnnData Structure Problems
Verify structure:
print(adata)
print(adata.obs.columns.tolist())
print(adata.var.columns.tolist())
print(list(adata.obsm.keys()))
print(list(adata.layers.keys()))Common fixes:
| Issue | Solution |
| Missing raw counts | adata.raw = adata.copy() before normalization |
| Wrong X matrix | Check if log-transformed when needed |
| Missing obsm keys | Re-run PCA/UMAP computation |
Coordinate System Issues
Spatial coordinates check:
if 'spatial' in adata.obsm:
print(adata.obsm['spatial'].shape)
print(adata.obsm['spatial'][:5])Common problems:
- Coordinates in wrong units
- Flipped/rotated coordinates
- Missing spatial key
Getting Help
Information to Provide
When reporting issues, include:
- Error message: Full traceback
- Data description: n_cells, n_genes, platform
- Command used: Exact parameters
- Environment: Python version, package versions
Quick Diagnostic Commands
# Dataset summary
print(f"Cells: {adata.n_obs}, Genes: {adata.n_vars}")
print(f"Spatial: {'spatial' in adata.obsm}")
print(f"Layers: {list(adata.layers.keys())}")
print(f"Obs columns: {adata.obs.columns.tolist()[:10]}")Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

