Quality audit

From pdl-openair/OpenAIR · View interactive version

Quality audit is an AI agent skill from the GitHub repository pdl-openair/OpenAIR. 审计结果、图表、结论、原始数据、实验记录、运行日志、分析脚本和证据链之间是否可追溯、一致、合规和可复现;缺少原始记录时只输出审计缺口,不做通过/不通过背书。

How to use this skill

Skill file

结果可靠性审计 (L3)

Input

需要可复核材料,至少包含以下一类:

只有结论口述或“帮我看看靠不靠谱”时,先要求补材料,不给质量背书。

Steps

  1. 建立审计对象清单:结论、图表、指标、数据、脚本、日志、来源和证据 ID。
  2. 检查追溯完整性:
  1. 检查一致性:单位、样本数、统计口径、筛选条件、版本、图表数值和正文表述是否一致。
  2. 检查分析合规性:预定义分析、显著性、效应量、多重比较、异常值处理、negative result 是否记录。
  3. 检查可复现性:环境、随机种子、数据版本、命令、参数、硬件/设备、批次记录是否足够。
  4. 输出风险等级和修复建议;只有材料充分时才给 pass / needs_fix / fail 判定。

Output

输出结构必须包含:

Scenario Artifact Contract v2

The audit output must be usable before a report, citation, or follow-up

experiment decision. Include these sections:

  1. audit_scope: provided records, missing records, audit standard, and what

was not inspected.

  1. traceability_matrix: claim_id, conclusion text, figure/result ID,

data/log/script ID, source ID, claim-to-record path, trace status, and break

reason.

  1. issues: issue_id, severity, affected claim/result, issue evidence,

severity reason, reproducibility impact, citation risk, whether recomputation

is needed, and next repair action.

  1. missing_records: record type, why it matters, minimum acceptable

replacement, and whether it blocks a verdict.

  1. reproducibility_checklist: environment, seed, data version, command,

parameters, sample/filter rule, statistics, and negative-result record.

  1. verdict: one of pass, needs_fix, fail, insufficient_materials.
  2. next_record_to_inspect: the single highest-value record to request next.

Severity labels must be blocker, high, medium, or low. A pass

verdict requires a complete traceability matrix and no blocker/high unresolved

issues. If original data, logs, scripts, or source IDs are missing, the verdict

must be insufficient_materials.

Do not stop at "linked" or "broken". Explain why a link is adequate or

inadequate for the claim. Check for stale notebook outputs, missing clean-run

evidence, sample-count/filter-rule gaps, unit/statistics mismatch, and missing

environment or command records when those records are relevant.

Fail Closed

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.