agentleFS
leventiloleventilo/mobius/skills/claim-extractor/SKILL.md

claim-extractor

Skill8 starsChanged 7 months agoMITView on GitHub

Activate when the orchestrator needs the paper's verifiable claims separated from prose so each can be tested against the simulator.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the input is degenerate (paper.json missing, body text empty, model context exceeded), emit a fenced JSON block carrying a single error …

    line 83
  2. Distinctive:

    DO NOT emit narration, summaries, or follow-up questions after the closing fence — they break the orchestrator's downstream consumption and …

    line 90
  3. Very specific:

    Never invent a claim. If the body text contains no recognisable numerical assertion, emit { "numerical_claims": [] } and stop — fabrication …

    line 104
  4. Very specific:

    Never strip the verbatim source_quote.

    line 108
  5. Very specific:

    Never reuse a claim id across two distinct claims.

    line 111
  6. Very specific:

    Never emit a value without a unit.

    line 114

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

claim-extractor

Purpose and scope

This skill walks the paper body, the figure captions, and the surrounding context of every equation, and returns a list of paper-anchored numerical claims that downstream skills (simspec-author, science-integrity, paper-diff) can compare against simulation telemetry.

The skill does NOT extract equations (that is paper-parser), does not classify regimes (physics-interpreter), and does not generate code (primitive-generator). It is a typed-extract stage: paper-parser artifacts in, validated numerical_claims[] out, every claim traceable to a verbatim source quote.

Input

The skill expects two artifacts on disk in the current working directory:

  • paper.json from paper-parser — the full structured paper record with equations[], figures[], body text, and the paper-level metadata.
  • text_body.json (optional) — the segmented paper body keyed by section anchor. When absent, the skill reads paper.json body text inline.

Algorithm

  1. Concatenate body text (skipping References / Bibliography), all figure captions, and the surrounding context of every equation.
  2. Chunk into ~4000-token segments with 500-token overlap.
  3. For each chunk, call Opus 4.7 with a strict extraction prompt (no formula symbols, no page numbers, no years).
  4. Merge chunk results, deduplicate by (value, unit_ucum, source_quote[:50]).
  5. Normalize units via Pint loaded with UCUM-compatible definitions. When a unit cannot be parsed, keep the raw string and lower the confidence.
  6. Assign a stable id to every claim (snake-case derived from the symbol or the description; collisions resolved with a numeric suffix).

Output format (mandatory)

You MUST emit your final output as a single fenced json block at the END of your reply, with NO prose after the closing fence. The orchestrator parses that block by regex (`/(?:json)?\s*\n([\s\S]?)\n\s```/`) and ignores everything else in your text content.

The canonical artifact for claim-extractor (consumed downstream as ClaimsJson in server/src/types.ts):

{
  "numerical_claims": [
    {
      "id": "delta_y",
      "symbol": "\\Delta y",
      "description": "fringe spacing on the screen",
      "value": 1.96,
      "unit_ucum": "mm",
      "tolerance": 0.05,
      "formula": "\\lambda L / d",
      "figure_ref": "Fig. 3",
      "source_quote": "the measured fringe spacing was 1.96 mm at L = 1 m",
      "section": "Results",
      "confidence": 0.92
    }
  ]
}

The required fields per claim are id, value, unit_ucum, and source_quote (consumed by server/src/types.ts:ClaimsJson). The other fields (symbol, description, tolerance, formula, figure_ref, section, confidence) are recommended and consumed by downstream skills (narration bijection, science-integrity claim_match, paper-diff). When the paper has zero numerical claims, emit { "numerical_claims": [] } — an empty array is a valid, honest output and downstream skills tolerate it.

If the input is degenerate (paper.json missing, body text empty, model context exceeded), emit a fenced JSON block carrying a single error field:

{ "error": "paper.json missing; cannot extract claims without parsed body" }

DO NOT emit narration, summaries, or follow-up questions after the closing fence — they break the orchestrator's downstream consumption and get silently dropped.

Hand-off

simspec-author reads numerical_claims[] into paper.numerical_claims[]. science-integrity (check_claim_match) compares each value to a measured quantity in the simulation telemetry. narration (R5 bijection) requires that every claim id appear either in narration.claims_referenced[] or be acknowledged inline by its numerical value within 5 % tolerance.

Red flags

Never invent a claim. If the body text contains no recognisable numerical assertion, emit { "numerical_claims": [] } and stop — fabrication is the single most catastrophic failure mode for downstream verification.

Never strip the verbatim source_quote. The user must be able to trace each claim back to the paper.

Never reuse a claim id across two distinct claims. Collisions get a numeric suffix.

Never emit a value without a unit. If the paper truly cites a dimensionless quantity, mark it "unit_ucum": "1".

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.