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.
npx skills add GGbond-bo/MemOmics-Agent --skill error-recoverygit clone --depth 1 https://github.com/GGbond-bo/MemOmics-AgentWrote 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.
[](https://agentmods.dev/skills/ggbond-bo/memomics-agent/error-recovery)<a href="https://agentmods.dev/skills/ggbond-bo/memomics-agent/error-recovery"><img src="https://agentmods.dev/badge/skills/ggbond-bo/memomics-agent/error-recovery/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.
<a href="https://agentmods.dev/skills/ggbond-bo/memomics-agent/error-recovery"><img src="https://agentmods.dev/badge/skills/ggbond-bo/memomics-agent/error-recovery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00065 | $0.02350 |
| Opus 5.5 | $0.00026 | $0.00940 |
| Sonnet 5.5 | $0.00013 | $0.00470 |
| Haiku 4.5 | $0.00006 | $0.00235 |
Grade A, and why
error-recovery 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 1mo ago.
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.
How it starts
The opening of the file, as written. The whole thing — 208 lines — stays where its author put it; the contents beside it link to each section on GitHub.
🔧 Error Recovery — 生信分析错误自动诊断与修复
分析失败时自动触发:读取错误 → 诊断根因 → 尝试修复 → 记录经验
⛔ MemOmics 强制规则
- 先读错误再修复:必须先读取完整终端输出,不能猜测
- 查历史经验:
skill_evolution(action="query_logs", skill_name="<当前skill>")查同类错误 - 一次修一个:每次只修一个错误,修完→跑→确认通过再继续
- 记录所有修复:修成功 →
record_run,修失败 →record_error - 3 次上限:同一错误尝试 3 次后仍失败 → 停止并告诉用户
错误分类决策树
终端报错
├─ ModuleNotFoundError / 包不存在
│ → Step A: 包安装修复
├─ MemoryError / killed / OOM
│ → Step B: 内存优化
├─ TypeError / class conversion / dgCMatrix
│ → Step C: 数据类型转换修复
├─ FileNotFoundError / No such file
│ → Step D: 文件路径修复
├─ 参数错误 / argument error
│ → Step E: 参数修正
└─ 其他
→ Step F: 查官方文档 + 社区
Step A: 包安装修复
诊断
错误: ModuleNotFoundError: No module named 'xxx'
错误: there is no package called 'xxx'
修复流程
- 检查环境:
check_env(packages=["xxx"]) - 安装: Python →
pip install xxx,R →install.packages("xxx")或BiocManager::install("xxx") - Bioconductor 包 → 先确认 BiocManager 已安装
- 版本冲突 → 检查已安装版本,必要时
pip install xxx==版本号 - 修复后: 重启 kernel/重新 import
常见坑
- harmonypy ≠ harmony: Python 版是
harmonypy,R 版是harmony - anndata:
pip install anndata(不是 anndata2) - Seurat v5: 需要 R >= 4.1,依赖
SeuratObject,Matrix - scTour: 需要 PyTorch ≥ 1.10,建议
pip install sctour --no-deps后手动补 torch
Step B: 内存优化
诊断
错误: MemoryError / Cannot allocate vector of size X Gb
错误: std::bad_alloc / killed (OOM)
修复流程
- 检查数据规模:
print(object.size(x))(R) /data.nbytes / 1e9(Python) - 子采样: 随机取 20-50% 细胞(保留所有基因)
- 稀疏矩阵: 确保用
dgCMatrix(R) /scipy.sparse.csr_matrix(Python) - 高变基因筛选: 只分析 top 2000-5000 HVG
- 清理中间变量:
rm()/del+gc()/gc.collect() - 分批处理: 按 sample/cluster 分批跑
基准
| 细胞数 | 内存需求 (R) | 内存需求 (Python) |
|---|---|---|
| 10K | 2-4 GB | 1-2 GB |
| 50K | 8-16 GB | 4-8 GB |
| 150K | 32-64 GB | 16-32 GB |
| 500K+ | >128 GB (考虑分批) | >64 GB |
What ships with it
1 file 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.
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.
- 1mo ago First seen · 208 lines · 65 tokens per session scan A 5b75dd1d652d
error-recovery is a skill published in the GitHub repository GGbond-bo/MemOmics-Agent (33 stars, last pushed 14d ago), licensed MIT. It adds 65 tokens to every session and 2,350 once invoked, about $0.0003 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-10-12.
error-recovery compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| error-recoveryGGbond-bo/MemOmics-Agent | Skill | 33 | 14d ago | MIT | A | 65 | Claude Code |
| traceYeachan-Heo/oh-my-claudecode | Skill | 41k | today | MIT | A | 18 | Claude Code |
| pos-tagging-fixesspencermountain/compromise | Skill | 12k | today | MIT | A | 72 | Claude Code, Codex |
| compileiq-author-objectiveNVIDIA/skills | Skill | 4.2k | 2d ago | Apache-2.0 | A | 150 | Claude Code |
| compileiq-bootstrapNVIDIA/skills | Skill | 4.2k | 2d ago | Apache-2.0 | A | 128 | Claude Code |
| cupotential-validateNVIDIA/skills | Skill | 4.2k | 2d ago | Apache-2.0 | A | 50 | Codex |
| smiles-validationsynthetic-sciences/openscience | Skill | 4.5k | yesterday | Apache-2.0 | A | 24 | Claude Code, Codex |