error-recovery

error-recovery is a skill for Claude Code from GGbond-bo/MemOmics-Agent. It costs 65 tokens per session (2,350 once invoked), scanned A, original, MIT.

An error-diagnosis and repair workflow for bioinformatics analyses. It reads the complete error, identifies a likely cause, tries one fix at a time, and records whether the fix worked.

In plain words
What is it for?
It helps investigate missing packages, version conflicts, insufficient memory, data-type errors, invalid parameters, and missing files or paths.
Why use it?
It replaces guesswork and uncontrolled retries when software fails. It also limits repeated attempts and keeps a history of successful and unsuccessful repairs.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

Good fit It helps investigate missing packages, version conflicts, insufficient memory, data-type errors, invalid parameters, and missing files or paths.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ggbond-bo/memomics-agent/error-recovery
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 GGbond-bo/MemOmics-Agent --skill error-recovery
Clone the repo
git clone --depth 1 https://github.com/GGbond-bo/MemOmics-Agent

Made for: Claude Code.

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 error-recovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/ggbond-bo/memomics-agent/error-recovery/github.svg)](https://agentmods.dev/skills/ggbond-bo/memomics-agent/error-recovery)
Your own site
<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.

agentmods 80×15 button for error-recovery

Your own site · 80×15
<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>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,350 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.
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.00065 $0.02350
Opus 5.5 $0.00026 $0.00940
Sonnet 5.5 $0.00013 $0.00470
Haiku 4.5 $0.00006 $0.00235

Measured 1mo ago against content hash 5b75dd1d652d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

memomics_home/skills/bioinformatics/error-recovery/SKILL.md · 208 lines

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 强制规则

  1. 先读错误再修复:必须先读取完整终端输出,不能猜测
  2. 查历史经验:skill_evolution(action="query_logs", skill_name="<当前skill>") 查同类错误
  3. 一次修一个:每次只修一个错误,修完→跑→确认通过再继续
  4. 记录所有修复:修成功 → record_run,修失败 → record_error
  5. 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'

修复流程

  1. 检查环境: check_env(packages=["xxx"])
  2. 安装: Python → pip install xxx,R → install.packages("xxx") 或 BiocManager::install("xxx")
  3. Bioconductor 包 → 先确认 BiocManager 已安装
  4. 版本冲突 → 检查已安装版本,必要时 pip install xxx==版本号
  5. 修复后: 重启 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)

修复流程

  1. 检查数据规模: print(object.size(x)) (R) / data.nbytes / 1e9 (Python)
  2. 子采样: 随机取 20-50% 细胞(保留所有基因)
  3. 稀疏矩阵: 确保用 dgCMatrix (R) / scipy.sparse.csr_matrix (Python)
  4. 高变基因筛选: 只分析 top 2000-5000 HVG
  5. 清理中间变量: rm() / del + gc() / gc.collect()
  6. 分批处理: 按 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

Read the full file on GitHub · 208 lines

Files

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.

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. 1mo ago First seen · 208 lines · 65 tokens per session scan A 5b75dd1d652d

Subscribe to this mod's changes

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.

Related

error-recovery compared with skills from other repositories

error-recovery next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
error-recoveryGGbond-bo/MemOmics-AgentSkill3314d agoMITA65Claude Code
traceYeachan-Heo/oh-my-claudecodeSkill41ktodayMITA18Claude Code
pos-tagging-fixesspencermountain/compromiseSkill12ktodayMITA72Claude Code, Codex
compileiq-author-objectiveNVIDIA/skillsSkill4.2k2d agoApache-2.0A150Claude Code
compileiq-bootstrapNVIDIA/skillsSkill4.2k2d agoApache-2.0A128Claude Code
cupotential-validateNVIDIA/skillsSkill4.2k2d agoApache-2.0A50Codex
smiles-validationsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A24Claude Code, Codex