metago-output-integrity

metago-output-integrity is a skill for Claude Code, Codex from metago-ai/metagolifeform. It costs 61 tokens per session (1,161 once invoked), scanned A, original, MIT.

A quality-checking guide for detecting invented facts, fake APIs, unsupported data, incomplete references, and unfinished code in technical output.

In plain words
What is it for?
It is for reviewing code, API descriptions, technical plans, data claims, citations, configuration, and other output that needs to be complete and traceable.
Why use it?
It helps prevent an agent from presenting guesses, placeholder content, or non-working technical details as if they were verified.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit It is for reviewing code, API descriptions, technical plans, data claims, citations, configuration, and other output that needs to be complete and traceable.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/metago-ai/metagolifeform/metago-output-integrity
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 metago-ai/metagolifeform --skill metago-output-integrity
Clone the repo
git clone --depth 1 https://github.com/metago-ai/metagolifeform

Made for: Claude Code, Codex.

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 metago-output-integrity

README.md
[![agentmods](https://agentmods.dev/badge/skills/metago-ai/metagolifeform/metago-output-integrity/github.svg)](https://agentmods.dev/skills/metago-ai/metagolifeform/metago-output-integrity)
Your own site
<a href="https://agentmods.dev/skills/metago-ai/metagolifeform/metago-output-integrity"><img src="https://agentmods.dev/badge/skills/metago-ai/metagolifeform/metago-output-integrity/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 metago-output-integrity

Your own site · 80×15
<a href="https://agentmods.dev/skills/metago-ai/metagolifeform/metago-output-integrity"><img src="https://agentmods.dev/badge/skills/metago-ai/metagolifeform/metago-output-integrity.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,161 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.00061 $0.01161
Opus 5 $0.00030 $0.00580
Sonnet 5 $0.00012 $0.00232
Haiku 4.5 $0.00006 $0.00116

Measured 12d ago against content hash 0e42cbfd163b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

metago-output-integrity 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 12d 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.

plugins/agent-plugins-1.0.0/skills/metago-output-integrity/SKILL.md · 131 lines

What it actually says

输出完整性保障(Output Integrity)

此技能确保每次输出都完整、真实、可执行,杜绝引用占位符、幻觉输出、虚构API、伪造数据。

触发条件

  • 输出涉及代码时强制触发
  • 输出涉及API调用时强制触发
  • 输出涉及数据引用时强制触发
  • 输出涉及技术方案时强制触发
  • 输出超过200字时自动触发

检测维度

1. 引用占位符检测

检测并拒绝以下占位符:

占位符类型 模式 处理
双花括号 {{variable}} ❌ 拒绝
方括号占位 [placeholder] ❌ 拒绝
TODO标记 TODOFIXME ❌ 拒绝
省略号占位 ...(代码中) ❌ 拒绝
注释占位 // 此处省略 ❌ 拒绝
伪调用 someFunction() ❌ 拒绝

规则:输出中的所有代码必须完整可执行,不得有任何占位符。

2. 幻觉检测

检测以下幻觉类型:

幻觉类型 表现 检测方法
虚构API 不存在的API端点 与已知API清单比对
虚构函数 不存在的库函数 与官方文档比对
伪造数据 编造的统计数据 要求提供数据源
虚构引用 不存在的论文/文献 可溯源性检查
虚构配置 不存在的配置项 与配置规范比对

3. 引用完整性

  • 所有引用必须可溯源
  • 所有数据必须有来源
  • 所有事实必须有依据
  • 所有结论必须有论证

4. 代码完整性

  • 代码必须完整可执行
  • 不得省略关键部分
  • 所有导入必须真实存在
  • 所有函数调用必须匹配签名

开发者专属豁免

在以下场景中,允许使用占位符(但必须明确标注):

  • 架构设计文档中的示意代码
  • 概念验证(POC)中的伪代码
  • 教学示例中的简化代码

豁免规则:必须在使用占位符处明确标注 // 示意代码,非可执行 或类似声明。

执行流程

步骤1: 扫描输出内容
  → 检测占位符模式
  → 检测幻觉特征

步骤2: 分类处理
  → 占位符 → 拒绝或要求补全
  → 幻觉 → 拒绝并重新生成
  → 引用不完整 → 要求提供来源

步骤3: 完整性判定
  → 全部通过 → 允许输出
  → 存在问题 → 拒绝输出,触发重新生成

步骤4: 附加完整性标签
  → 输出末尾附加完整性确认

输出格式

输出末尾附加:

【输出完整性确认】
占位符检测:✅ 无占位符
幻觉检测:✅ 无幻觉
引用完整性:✅ 全部可溯源
代码完整性:✅ 完整可执行
完整性判定:✅ 通过

若检测到问题:

【输出完整性确认】
占位符检测:❌ 检测到2处占位符
  - 第15行:{{username}}
  - 第28行:[API_KEY]
幻觉检测:✅ 无幻觉
完整性判定:❌ 拒绝输出,触发重新生成

与其他技能的协同

  • metago-decision-lock 协同:作为决策锁关卡4的实现
  • metago-fact-check 协同:幻觉检测与事实核查联动
  • metago-self-check 协同:作为self-check的核心维度
  • metago-data-provenance 协同:引用完整性与数据溯源联动
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. 12d ago First seen · 131 lines · 61 tokens per session scan A 0e42cbfd163b

Subscribe to this mod's changes

metago-output-integrity is a skill published in the GitHub repository metago-ai/metagolifeform (4 stars, last pushed 10d ago), licensed MIT. It adds 61 tokens to every session and 1,161 once invoked, about $0.0003 per session on Opus 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-08-31.