analysis-output-validity-gates

analysis-output-validity-gates is a skill for Claude Code from GGbond-bo/MemOmics-Agent. It costs 311 tokens per session (13,107 once invoked), scanned A, original, MIT.

A set of checks for deciding whether a bioinformatics analysis produced meaningful results, rather than merely finishing without an error. It tests identifiers, values, dimensions, and biological direction using measurable conditions.

In plain words
What is it for?
Use it to validate outputs from tools such as pySCENIC and distributed pipelines, detect identifier mismatches or empty matrices, and reject results that fail defined checks.
Why use it?
A process can exit successfully and create non-empty files while still producing all-zero, mismatched, or otherwise invalid results. These checks help distinguish data or memory problems from actual code defects.

Skill for Claude Code

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

Good fit Use it to validate outputs from tools such as pySCENIC and distributed pipelines, detect identifier mismatches or empty matrices, and reject results that fail defined checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ggbond-bo/memomics-agent/analysis-output-validity-gates
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-output-validity-gates
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-output-validity-gates

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ggbond-bo/memomics-agent/analysis-output-validity-gates"><img src="https://agentmods.dev/badge/skills/ggbond-bo/memomics-agent/analysis-output-validity-gates.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 311 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 13,107 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.00311 $0.13107
Opus 5.5 $0.00124 $0.05243
Sonnet 5.5 $0.00062 $0.02621
Haiku 4.5 $0.00031 $0.01311

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

Security

Grade A, and why

analysis-output-validity-gates 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 20d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/coef_threshold_audit.py, scripts/probe_excel_numeric_display.py, scripts/triage_batch_deg.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/analysis-output-validity-gates/SKILL.md · 478 lines

How it starts

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

分析产出有效性门(Analysis Output Validity Gates)

核心原则

退出码 0 ≠ 结果有效;文件非空 ≠ 内容有意义;日志有 ✓ ≠ 分析成立。

生信工具(尤其 pySCENIC / 分布式 / 多步骤管线)会在参数或数据口径错位时静默降级: 照样打印 ✓ completed、照样写盘、行数形状都正常,但数值已经是垃圾。 唯一可靠的防线是「可量化的不变量断言」——每条断言都必须能自己算出一个数字(命中率、非零占比、 交集数、维度匹配),断言失败就报错、拒绝产出、拒绝汇报"分析完成"。

禁止:产出异常时先说"分析完成",等用户质疑才发现无效。 必须:先自证(算出数字)→ 通过才汇报。

一、产出有效性硬校验清单(通用四问)

对任何交给下游/写进结论的结果表,依次回答:

# 问题 怎么答(要算出数字,不是眼看) 不合格的信号
1 标识符对得上吗? 结果 ID 命名体系和输入是同一套吗(HGNC vs ENSEMBL、带不带版本号、大小写) len(set(结果ID) & set(输入ID)) / len(结果ID) 命中率 < 0.9 → 口径错位
2 数值分布合理吗? 是不是全 0 / 全 NA / 全同一个值 (arr > 0).mean()、np.nanmean、pd.Series.nunique() 非零占比 < 0.5、唯一值 = 1
3 形状/维度对得上吗? 行列、ID 顺序、分组水平数 shape、index.is_unique、value_counts() 与预期水平数比对 维度对不上、ID 重复
4 生物学/统计方向说得通吗? 效应量符号、量级、组间关系 与知识库/文献已知方向比对;关键 marker 是否出现在该出现的位置 方向相反、量级离谱

把四问写成脚本(每步分析都做,不是最后统一做),断言失败直接 raise,不要 try/except 吞掉。

二、静默失败的「症状特征」速查(一眼认出)

症状 典型根因 深入
结果表里出现单字符条目([、(、'、单个字母) 一个 str 被当成「列表/集合」逐字符迭代 references/prune2df-targetgenes-stringification.md
整张活性/打分矩阵全 0,summary 也全 0(不是"算得低") 输入基因集与表达矩阵零交集(上游 ID/类型错位) 同上
行数正常但每条都是同一个值/权重 1.0 解析失败走了 fallback 默认值 同上
工具刷屏打印 Less than N% of the genes ... are present 不是无害 warning,是 ID 错位告警,命中率接近 0 同上
中间表列名对不上(KeyError),且发生在最贵的步骤之后 自写代码猜了上游 DataFrame 的列结构(MultiIndex / 列名被截断) 同上「列结构先看清再写」
MemoryError: Unable to allocate 1.93 MiB + FutureCancelledError: finalize-... cancelled for reason: unknown 不是代码 bug:worker 被 OOM 杀掉 → scattered 数据丢失 references/distributed-worker-oom-vs-code-bug.md
产出数值齐全、分布像样,但显著率高达 50–99.7%,或比对照方法多几十到几万倍 不是方法改进:SE 被压小 → 假精度 → 假阳性膨胀(细胞级把细胞当独立 n) references/statistical-inflation-diagnostics.md
模型公式里写了随机效应 (1|donor),但加与不加 SE 几乎不变(如 0.050 vs 0.052) 随机效应没进 SE → 方差结构未被吸收,等同没做校正 同上(第三节)

Read the full file on GitHub · 478 lines

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. 20d ago Changed · +83 lines · +47 tokens per session 0d542a4f0319
  2. 1mo ago First seen · 395 lines · 264 tokens per session scan A 5ab25a0f93a2

Subscribe to this mod's changes

analysis-output-validity-gates is a skill published in the GitHub repository GGbond-bo/MemOmics-Agent (33 stars, last pushed 14d ago), licensed MIT. It adds 311 tokens to every session and 13,107 once invoked, about $0.0012 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-14.

Related

analysis-output-validity-gates compared with skills from other repositories

analysis-output-validity-gates next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
analysis-output-validity-gatesGGbond-bo/MemOmics-AgentSkill3314d agoMITA311Claude Code
nonlinear-solversbeita6969/ScienceClawSkill1.0k7d agoMITA63Claude Code
linear-solversbeita6969/ScienceClawSkill1.0k7d agoMITA55Claude Code
numerical-stabilitybeita6969/ScienceClawSkill1.0k7d agoMITA61Claude Code
bio-genome-assembly-assembly-polishingFridrichMethod/awesome-skillsSkill17yesterdaynoneA190Claude Code, Codex
onekgpdK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA143Claude Code
biopythonK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA65Claude Code