Variable identification

From pdl-openair/OpenAIR · View interactive version

Variable identification is an AI agent skill from the GitHub repository pdl-openair/OpenAIR. 将待验证假设、方法想法或实验目标拆成自变量、因变量、控制变量、对照条件、测量方式和约束;用于验证方案设计时必须输出变量表、混杂因素、最小可验证版本和人工确认门,不启动实验或训练。

How to use this skill

Skill file

变量识别与验证设计骨架 (L3)

Input

接受以下输入:

如果假设或目标不清楚,先输出变量澄清问题,不直接设计完整实验。

Steps

  1. 抽取待验证命题,写成“改变 X 是否影响 Y,在条件 C 下如何衡量”的形式。
  2. 识别变量:
  1. 设计最小可验证版本:最少样本/运行、必要对照、可接受失败标准。
  2. 标注对照和 baseline 需求;如果需要后续 baseline_selection 或 ablation_design,明确输入。
  3. 标注不能自动执行的内容:实验启动、训练任务、平台资源、下载数据、伦理审批。

Output

输出结构必须包含:

Scenario Artifact Contract v2

For validation design, produce a design-review artifact, not an experiment

result. Include these sections:

  1. testable_hypothesis: one sentence in the form "Under condition C,

changing X is expected to affect Y through/measured by Z".

  1. variable_table: variable_id, variable type, name, operational

definition, level/range, measurement method, unit, timing, acceptable range

or threshold when known, and linked hypothesis.

  1. controls_and_baselines: control condition, baseline method/material/model,

fairness condition, what is held constant, and why each is necessary.

  1. confounders: confounder_id, risk, how it could change interpretation,

control strategy, and residual risk.

  1. ablation_or_comparison_matrix: comparison ID, changed factor, held-constant

factors, expected interpretation, and failure mode.

  1. analysis_plan: metric, statistical/comparison method, exclusion rule,

success criteria, failure criteria, decision threshold, and uncertainty

reporting.

  1. stop_conditions: conditions that should stop, narrow, or redesign the

validation before spending resources.

  1. confirmation_gates: resources, safety, ethics, data license, cost,

platform, and owner confirmations.

  1. execution_status: always not_started unless an external executor has

actually run and returned records.

  1. missing_inputs_or_assumptions: missing details that materially affect

validity, such as additive identity, electrode chemistry, cell format,

concentration range, sample count, measurement equipment, dataset/corpus,

baseline implementation, cost, safety, or license constraints.

  1. provisional_parameters: any concrete value, threshold, sample size,

p-value, concentration level, C-rate, temperature, prompt set size, dataset

size, or characterization method that was not supplied by the user. Mark

each item with requires_confirmation: true and explain why it is only a

design placeholder.

If the hypothesis is too vague, output clarification_questions and

minimum_viable_validation_inputs instead of a full design. Still provide a

minimal design skeleton when possible: bounded_hypothesis_placeholder,

variable_slots, candidate_controls, cannot_execute_until, and

next_user_actions. Mark each unknown explicitly rather than inventing a

protocol. Do not claim that the validation has been run or that the hypothesis

is supported.

Avoid generic experiment advice. A validation artifact is useful only if a

researcher can review feasibility: list missing dataset/material access,

baseline fairness risks, sample/prompt-set readiness, resource/safety/license

gates, and the conditions that would make the design unable to answer the

hypothesis.

Do not silently invent an executable protocol. If you include default values

such as n >= 3, p < 0.05, additive concentration levels, C-rate, cycle

count, XPS/FTIR/cryo-TEM, dataset size, or prompt-set size without those values

being present in the input, label them as provisional design assumptions, not

as confirmed requirements.

When the user asks to run an experiment but has not provided executable

materials, credentials, data, safety approval, or a concrete protocol, fail

closed as design_only. A high-value refusal should still be useful: provide

the minimum validation skeleton, the exact inputs required before execution,

and the next 1-3 user actions. Do not reduce the answer to only a generic

clarification checklist.

For retrieval, GraphRAG, LLM, benchmark, or hallucination-reduction validation,

include dataset-readiness sections when the user has no dataset yet:

minimum_viable_dataset_or_prompt_set, evaluation_asset_plan,

annotation_rubric, and baseline_fairness_checks. These should specify the

source corpus snapshot, prompt/topic sampling frame, hallucination label schema,

judge or annotator owner, agreement or adjudication plan, baseline-vs-treatment

matching rules, and what must be confirmed before any run. Do not imply that a

missing dataset can be skipped.

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.