analysis-version-audit-and-cleanup

analysis-version-audit-and-cleanup is a skill for Claude Code from GGbond-bo/MemOmics-Agent. It costs 103 tokens per session (2,749 once invoked), scanned B, original, MIT.

An audit workflow for comparing several versions of the same data analysis, selecting the supported version, and cleaning up the others.

In plain words
What is it for?
Use it to identify result versions, compare changes that affect statistics, check stability across versions, choose a final result, and remove superseded files.
Why use it?
Repeated parameter changes can create confusing result folders and make it easy to keep the wrong output or delete the final one.

Skill for Claude Code

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

Good fit Use it to identify result versions, compare changes that affect statistics, check stability across versions, choose a final result, and remove superseded files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ggbond-bo/memomics-agent/analysis-version-audit-and-cleanup
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 analysis-version-audit-and-cleanup
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 analysis-version-audit-and-cleanup

README.md
[![agentmods](https://agentmods.dev/badge/skills/ggbond-bo/memomics-agent/analysis-version-audit-and-cleanup/github.svg)](https://agentmods.dev/skills/ggbond-bo/memomics-agent/analysis-version-audit-and-cleanup)
Your own site
<a href="https://agentmods.dev/skills/ggbond-bo/memomics-agent/analysis-version-audit-and-cleanup"><img src="https://agentmods.dev/badge/skills/ggbond-bo/memomics-agent/analysis-version-audit-and-cleanup/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 analysis-version-audit-and-cleanup

Your own site · 80×15
<a href="https://agentmods.dev/skills/ggbond-bo/memomics-agent/analysis-version-audit-and-cleanup"><img src="https://agentmods.dev/badge/skills/ggbond-bo/memomics-agent/analysis-version-audit-and-cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,749 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00103 $0.02749
Opus 5.5 $0.00041 $0.01100
Sonnet 5.5 $0.00021 $0.00550
Haiku 4.5 $0.00010 $0.00275

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

Security

Grade B, and why

analysis-version-audit-and-cleanup scanned grade B with 1 finding 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 13d 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.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

用户说"删除其他版本,只保留 X"时,先按此表分类,**不要一把 `rm -rf *v*`**:

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

memomics_home/skills/bioinformatics/analysis-version-audit-and-cleanup/SKILL.md · 149 lines

How it starts

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

多版本分析结果:对撞审计 → 定版 → 清理

同一份数据反复调参会产生 v2 / v4_NC / v4_test / v5 / v8 … 一大堆目录。本 skill 处理三个连续动作, 顺序不能颠倒:先归因对比 → 再定版 → 最后清理(没定版就清理 = 可能删掉最终结果)。


一、开工前第一件事:确认版本身份,禁止凭记忆

血泪教训(2026-11-03 实测):我曾断言 v2 的产出目录是 Immune/,实际本地叫 Immune_RUV_result/、集群才叫 Immune/——同一版本在两个位置的目录名不同。

清点命令(只读,一次拿全四要素):

cd <results_dir> && for d in */; do
  echo "$(du -sh "$d" | cut -f1) | $(ls "$d" | wc -l) | $d"
done
# 后缀分布(识别版本最快的一招:不同版本的输出文件名后缀不同)
ls Immune_RUV_result/ | sed 's/.*_//' | sort | uniq -c    # → 55 sDEG.csv
ls Immune_v8/      | sed 's/.*_//' | sort | uniq -c       # → 50 v8.csv + 辅助表

判定版本身份靠后缀 + 表数 + 体积三件套交叉验证,不靠目录名记忆。 本机与集群都要各清点一次(.viewed.json、ls 均为只读,不触发大文件闸门)。


二、可归因对比(不是列两串数字)

2.1 先做参数差分表

逐行比对两版脚本,只保留能改变统计量的差异:

类别 例子 是否影响结果
决定性 k/分辨率/协变量进不进模型/守卫阈值/FDR 口径 ✅ 必须逐项列出
无影响 新增注释列、溯源列、文件后缀、目录名 ❌ 明确标注"零影响"

2.2 三指标 + 分层统计

指标 定义 回答什么
集合 Jaccard ` A∩B
方向一致率 共有基因里 sign(coef) 相同比例 变的是"显著性边界"还是"结论方向"
效应量相关 全基因 coef 的 Spearman 整体效应量是否稳定

必须按"哪个参数变了"分层统计,而不是给全局平均值。 全局平均会把两三个不同机制混成一个数。

2.3 故意保留一个"不变臂"

设计版本对撞时,留一组参数完全没变的组合当对照。本次 5 个 k 未变的组合结果逐位完全相同 (Jaccard=1.000、Spearman=1.000、显著基因数一致),这一条就把"差异来自 k"而非"差异来自新加协变量"钉死了。 没有这个对照臂,任何归因都只是推测。

2.4 表数不一样必须解释掉

v8 只有 50 表、v2 有 55 表 → 差额来自 v8 新增的 df_resid <= 2 守卫(5 个组合被跳过)。 不能用"少了几个表"当噪声带过,否则对比基数就是错的。同理,表数少于 亚群×比较组 的预期值时, 先查是不是组别缺失(某些亚群本来就不含全部组)而非任务失败——errors.log 为空即可判定是跳过。

详细实测数据见 references/immune-v2-vs-v8-2026-11.md。


三、定版原则(用户偏好,务必遵守)

  1. 用户已跑通的版本默认就是基准。除非能证明它错,否则不要把它换成自创公式。 用户原话:「还不如我之前的代码来的稳妥」。
  2. 「改进」的正确姿势:先如实说清基准版的唯一真实弱点(如"偏保守,可能丢弱信号"), 再给可选的敏感性版本,由用户决定要不要换——而不是直接拿新版当主结果。
  3. 风险不对称判据(选参数/选版本时的通用准绳):
    方向 后果 可察觉性
    欠校正/欠保守(参数太激进) 噪声被写成结论 → 假阳性 读者无法察觉
    过度保守(参数太严) 只丢一部分弱信号 → 假阴性 结论方向不变
    → 宁可保守,不可欠校正。 不确定时选保守的那版。
  4. 一句话定版,不要留两套并列让用户自己挑。定版要写进 task_plan / 报告, 另一版明确标为"仅作敏感性对照"。
  5. 结论不可为了"改进"而重跑几小时:本次 v8 只有 50 表、覆盖少于 v2 的 55 表, 因此 v2 是更完整的最终版——覆盖面也是定版的合法理由之一。

Read the full file on GitHub · 149 lines

Files

What ships with it

2 files 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. 13d ago First seen · 149 lines · 103 tokens per session scan B ac6d9db7c986

Subscribe to this mod's changes

analysis-version-audit-and-cleanup is a skill published in the GitHub repository GGbond-bo/MemOmics-Agent (33 stars, last pushed 14d ago), licensed MIT. It adds 103 tokens to every session and 2,749 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-17.

Related

analysis-version-audit-and-cleanup compared with skills from other repositories

analysis-version-audit-and-cleanup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
analysis-version-audit-and-cleanupGGbond-bo/MemOmics-AgentSkill3314d agoMITB103Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code