Research lead generation skill

From pdl-openair/OpenAIR · View interactive version

Research lead generation skill is an AI agent skill from the GitHub repository pdl-openair/OpenAIR. Generate traceable research directions from existing findings, mechanism chains, conflicts, and evidence gaps without turning them into hypotheses, predictions, experiment plans, or recommendations. Use for the OpenTrajectory research_lead_generation substage after findings_synthesis.

How to use this skill

Skill file

Research Lead Generation

Responsibility

Generate research leads: unresolved questions or directions worth investigating next, grounded in existing findings, mechanism evidence, conflicts, or explicit gaps.

This Skill owns only research_lead_generation.

A research lead is not a finding, hypothesis, prediction, experiment plan, or final recommendation.

Input contract

input.schema.json is authoritative.

Required:

Optional:

max_research_leads is executed by finalization:

LLM draft contract

The LLM must emit draft.schema.json, not the final output schema.

The draft contains only scientific-semantic content:

The LLM must not generate research_lead_id, local_lead_key, claim_type, novelty_boundary, summary, audit, or input_fingerprint.

Wrong JSON types, unknown fields, missing required fields, malformed references, and duplicate upstream finding_id / edge_id values are rejected. They are never coerced, overwritten, or repaired.

Scientific boundaries

The model owns this semantic judgment. For every proposed lead it must set semantic_boundary_judgment to one of:

Only within_research_lead_boundary may enter a successful final output. The deterministic runtime checks the declared enum and rejects violation judgments; it does not scan the scientific text with keywords, regex, or other semantic heuristics.

The model must classify content as a violation when it has become an expected outcome/direction, hypothesis, prediction, experiment plan, parameterized instruction, recommendation, or causal conclusion. Gap edges may motivate a lead, but they do not support an established scientific effect.

Finalization pipeline

scripts/runtime_guard.py executes one straight contract path:

  1. validate the input schema;
  2. validate the LLM draft schema strictly;
  3. validate the model-declared semantic boundary judgment and deterministic provenance;
  4. deterministically create identity and metadata;
  5. deduplicate, apply max_research_leads, and build summary/audit;
  6. validate the final object against output.schema.json.

scripts/identity.py owns only deterministic research_lead_id and input_fingerprint generation.

Empty, degraded, and failed behavior

Deterministic fields

The runtime, never the LLM, creates:

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.