{"skills":[{"name":"Check whether a source supports a claim","description":"Trace each factual statement in a draft to the evidence and identify changes in population, time or certainty.","content":"# Check whether a source supports a claim\n\nTrace each factual statement in a draft to the evidence and identify changes in population, time or certainty.\n\n## When to use this skill\n\n- A draft report, press release, article or briefing cites surveys or studies and someone wants each figure checked before publication.\n- A headline or summary may have stretched a finding to a larger group, a longer period or a causal claim.\n- Someone has a source and a sentence and asks whether the source actually says that.\n\n## When not to use it\n\n- Judging whether the source itself is reliable or its data were collected properly. This skill checks whether the wording matches the evidence supplied.\n- Legal review for defamation, or regulated claims such as health or financial promotions, which have their own rules and approval routes.\n- Finding new evidence for an unsupported claim. The skill reports the gap; sourcing new evidence is a separate research task.\n\n## What you need\n\n- Draft statements with identifiers and the relevant source passages, tables or original data.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- Can you share the source itself (the report, table or dataset), not only the citation? A press release about a study is a second-hand source.\n- Which statements must be checked, and are they numbered? Compound sentences will be split into separate claims.\n- Who is the audience and where will the text appear? Wording that is fine in an internal note may need to be more exact in a public statement.\n\n## Method\n\n1. Split compound sentences into separately checkable claims and give each an ID. A sentence with a figure, a group and a cause holds three claims.\n2. Follow each citation to the original finding: the report table, dataset or paper, not a press release or later article that repeats it. Record what was measured, in whom (respondents, a sample, a whole population), where, over what period, and the stated limitations.\n3. Compare the wording with the source claim by claim: the number, unit, group, period and strength of conclusion. Recalculate any derived figure, such as a percentage from a count.\n4. Give one verdict per claim. Supported: the source states it within its scope. Contradicted: the source gives a different value or the opposite finding. Broader-than-source: a real finding extended to a larger group, a longer period or a causal claim. No-evidence: the supplied sources do not address it.\n5. Check causal words such as caused, led to or reduced. They need a design that supports them, usually a randomised or well-controlled comparison. An observational association supports 'was associated with' or 'was higher in'.\n6. Point to the exact evidence for each verdict and propose the smallest edit that brings the claim back within the source's scope while keeping the author's meaning.\n\n## Checks before you deliver\n\n- A result for respondents cannot automatically describe all residents.\n- Absence of evidence in the supplied sources is not an explicit contradiction.\n- Checking a figure against a secondary source that copied it, rather than the original, repeats any earlier error.\n- A voluntary survey with no weighting describes its respondents only, however many replied.\n- Rounding differently from the source can create an apparent contradiction that is not in the evidence. Recalculate from the counts before calling a figure wrong.\n\n## How to present the result\n\nStart with the number of claims in each verdict. Then give a table: claim ID, the draft wording, verdict, the source passage or table reference, and the suggested replacement. Put contradicted claims first because they must change before publication. End with the corrected sentences ready to paste into the draft.\n\n## Worked example\n\n**Request:** Check the claims against the extract.\n\n**Supplied material:**\n\n```text\nSource: 48 of 80 respondents to the library's voluntary survey preferred evening opening; no population weights. A: 60% of respondents preferred evenings. B: 60% of all residents preferred evenings. C: 52 respondents preferred evenings.\n```\n\n**Answer:** Publish \u201c48 of the 80 survey respondents (60%) preferred evening opening.\u201d The voluntary survey cannot establish the preference of all residents. The draft figure of 52 respondents conflicts with the source count of 48.\n\n## Structured output for tests\n\nFor an ordinary job, answer in the format above and point back to the supplied evidence. Use this structure only for the test cases published with this skill, or when someone asks for structured JSON.\n\nReturn findings keyed by claim ID with one of supported, contradicted, broader-than-source or no-evidence. Use broader-than-source when a real finding has been extended to a larger group or a causal claim.\n\n## Sources\n\n- [Office for Statistics Regulation: Standards for the Public Use of Statistics, Data and Wider Analysis](https:\/\/osr.statisticsauthority.gov.uk\/guidance\/guidance-on-the-standards-for-the-public-use-of-statistics-data-and-wider-analysis\/): The UK statistics regulator's standards (October 2025) ask public bodies to cite the source of figures they use, state key limitations and caveats, and give the context needed to read a figure, so others can check it. The skill applies that test claim by claim.\n- [Government Analysis Function: writing about statistics](https:\/\/analysisfunction.civilservice.gov.uk\/policy-store\/writing-about-statistics-2\/): Advises stating what statistics can and cannot be used for, giving the time period and coverage, and using causal words such as cause, effect and impact only where the evidence supports them, with association wording otherwise.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/claim-evidence-check\n","scope":"contextual","trigger_keywords":["Check whether a source supports a claim","claim-evidence-check","claim evidence check","Does the source we cite really support each figure in this report?","Does the source we cite really support each figure in this report","does the source support","fact-check these claims","claims against the evidence"],"is_private":true,"is_active":true,"scripts":[{"name":"claim-evidence-check-check","description":"Compare a saved JSON answer with a published test. Pass tests\/case-1\/expected.json (or another case) and the path to your answer.","language":"python","filename":"claim-evidence-check-check.py","content":"from pathlib import Path\nimport runpy\n\nrunpy.run_path(str(Path(__file__).parent \/ 'tests' \/ 'check.py'), run_name='__main__')\n","supporting_files":[{"path":"SKILL.md","content":"---\nname: claim-evidence-check\ndescription: \"Check each factual statement in a draft against its cited source and mark it supported, contradicted, broader than the source or unsupported, with the smallest wording fix. Use when someone asks you to fact-check a report, press release, article or briefing against the evidence.\"\nlicense: CC-BY-4.0\nmetadata:\n  author: Raq.com\n  version: \"2026-11-22\"\n  homepage: https:\/\/skills.raq.com\/skills\/claim-evidence-check\n---\n\n# Check whether a source supports a claim\n\nTrace each factual statement in a draft to the evidence and identify changes in population, time or certainty.\n\n## When to use this skill\n\n- A draft report, press release, article or briefing cites surveys or studies and someone wants each figure checked before publication.\n- A headline or summary may have stretched a finding to a larger group, a longer period or a causal claim.\n- Someone has a source and a sentence and asks whether the source actually says that.\n\n## When not to use it\n\n- Judging whether the source itself is reliable or its data were collected properly. This skill checks whether the wording matches the evidence supplied.\n- Legal review for defamation, or regulated claims such as health or financial promotions, which have their own rules and approval routes.\n- Finding new evidence for an unsupported claim. The skill reports the gap; sourcing new evidence is a separate research task.\n\n## What you need\n\n- Draft statements with identifiers and the relevant source passages, tables or original data.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- Can you share the source itself (the report, table or dataset), not only the citation? A press release about a study is a second-hand source.\n- Which statements must be checked, and are they numbered? Compound sentences will be split into separate claims.\n- Who is the audience and where will the text appear? Wording that is fine in an internal note may need to be more exact in a public statement.\n\n## Method\n\n1. Split compound sentences into separately checkable claims and give each an ID. A sentence with a figure, a group and a cause holds three claims.\n2. Follow each citation to the original finding: the report table, dataset or paper, not a press release or later article that repeats it. Record what was measured, in whom (respondents, a sample, a whole population), where, over what period, and the stated limitations.\n3. Compare the wording with the source claim by claim: the number, unit, group, period and strength of conclusion. Recalculate any derived figure, such as a percentage from a count.\n4. Give one verdict per claim. Supported: the source states it within its scope. Contradicted: the source gives a different value or the opposite finding. Broader-than-source: a real finding extended to a larger group, a longer period or a causal claim. No-evidence: the supplied sources do not address it.\n5. Check causal words such as caused, led to or reduced. They need a design that supports them, usually a randomised or well-controlled comparison. An observational association supports 'was associated with' or 'was higher in'.\n6. Point to the exact evidence for each verdict and propose the smallest edit that brings the claim back within the source's scope while keeping the author's meaning.\n\n## Checks before you deliver\n\n- A result for respondents cannot automatically describe all residents.\n- Absence of evidence in the supplied sources is not an explicit contradiction.\n- Checking a figure against a secondary source that copied it, rather than the original, repeats any earlier error.\n- A voluntary survey with no weighting describes its respondents only, however many replied.\n- Rounding differently from the source can create an apparent contradiction that is not in the evidence. Recalculate from the counts before calling a figure wrong.\n\n## How to present the result\n\nStart with the number of claims in each verdict. Then give a table: claim ID, the draft wording, verdict, the source passage or table reference, and the suggested replacement. Put contradicted claims first because they must change before publication. End with the corrected sentences ready to paste into the draft.\n\n## Worked example\n\n**Request:** Check the claims against the extract.\n\n**Supplied material:**\n\n```text\nSource: 48 of 80 respondents to the library's voluntary survey preferred evening opening; no population weights. A: 60% of respondents preferred evenings. B: 60% of all residents preferred evenings. C: 52 respondents preferred evenings.\n```\n\n**Answer:** Publish \u201c48 of the 80 survey respondents (60%) preferred evening opening.\u201d The voluntary survey cannot establish the preference of all residents. The draft figure of 52 respondents conflicts with the source count of 48.\n\n## Structured output for tests\n\nFor an ordinary job, answer in the format above and point back to the supplied evidence. Use this structure only for the test cases published with this skill, or when someone asks for structured JSON.\n\nReturn findings keyed by claim ID with one of supported, contradicted, broader-than-source or no-evidence. Use broader-than-source when a real finding has been extended to a larger group or a causal claim.\n\n## Sources\n\n- [Office for Statistics Regulation: Standards for the Public Use of Statistics, Data and Wider Analysis](https:\/\/osr.statisticsauthority.gov.uk\/guidance\/guidance-on-the-standards-for-the-public-use-of-statistics-data-and-wider-analysis\/): The UK statistics regulator's standards (October 2025) ask public bodies to cite the source of figures they use, state key limitations and caveats, and give the context needed to read a figure, so others can check it. The skill applies that test claim by claim.\n- [Government Analysis Function: writing about statistics](https:\/\/analysisfunction.civilservice.gov.uk\/policy-store\/writing-about-statistics-2\/): Advises stating what statistics can and cannot be used for, giving the time period and coverage, and using causal words such as cause, effect and impact only where the evidence supports them, with association wording otherwise.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/claim-evidence-check\n"},{"path":"LICENSE.txt","content":"Original Raq.com instructions and synthetic examples: CC BY 4.0.\nhttps:\/\/creativecommons.org\/licenses\/by\/4.0\/\nAttribution: Raq.com, https:\/\/skills.raq.com\/skills\/claim-evidence-check\nReferenced third-party materials retain their own terms.\n"},{"path":"examples\/worked-example.md","content":"# A survey headline\n\nCheck the claims against the extract.\n\n## Supplied material\n\nSource: 48 of 80 respondents to the library's voluntary survey preferred evening opening; no population weights. A: 60% of respondents preferred evenings. B: 60% of all residents preferred evenings. C: 52 respondents preferred evenings.\n\n## Worked answer\n\nPublish \u201c48 of the 80 survey respondents (60%) preferred evening opening.\u201d The voluntary survey cannot establish the preference of all residents. The draft figure of 52 respondents conflicts with the source count of 48.\n\n## Reasoning\n\nThe source establishes a count and rate for respondents only.\n"},{"path":"tests\/check.py","content":"\"\"\"Check a saved agent answer locally with Python 3 (standard library only).\"\"\"\nimport json\nimport math\nimport sys\nfrom pathlib import Path\n\n\ndef compare(expected, actual, path=\"$\", accepted=None):\n    if isinstance(expected, bool) or isinstance(actual, bool):\n        if expected is not actual:\n            yield path\n    elif isinstance(expected, (int, float)) and isinstance(actual, (int, float)):\n        if not math.isclose(expected, actual, rel_tol=0, abs_tol=1e-8):\n            yield path\n    elif isinstance(expected, dict) and isinstance(actual, dict):\n        for key in sorted(set(expected) | set(actual)):\n            if key not in expected or key not in actual:\n                yield f\"{path}.{key}\"\n            elif not any(\n                not list(compare(option, actual[key]))\n                for option in (accepted or {}).get(key, [])\n            ):\n                yield from compare(expected[key], actual[key], f\"{path}.{key}\")\n    elif isinstance(expected, list) and isinstance(actual, list):\n        if len(expected) != len(actual):\n            yield f\"{path} (length)\"\n        for i, (left, right) in enumerate(zip(expected, actual)):\n            yield from compare(left, right, f\"{path}[{i}]\")\n    elif type(expected) != type(actual) or expected != actual:\n        yield path\n\n\ndef main():\n    if len(sys.argv) != 3:\n        raise SystemExit(\"Usage: python3 check.py expected.json answer.json\")\n    try:\n        expected, actual = [json.loads(Path(p).read_text(encoding=\"utf-8\")) for p in sys.argv[1:]]\n        alternatives = Path(sys.argv[1]).with_name(\"accepted.json\")\n        accepted = json.loads(alternatives.read_text(encoding=\"utf-8\")) if alternatives.is_file() else {}\n    except (ValueError, OSError) as error:\n        raise SystemExit(str(error))\n    differences = list(compare(expected, actual, accepted=accepted))\n    if differences:\n        raise SystemExit(\"Different fields: \" + \", \".join(differences))\n    print(\"Pass\")\n\n\nif __name__ == \"__main__\":\n    main()\n"},{"path":"tests\/README.md","content":"Give your agent SKILL.md and one request.txt in a fresh session. Keep the expected answer aside. Save the reply as answer.json, then run this from the tests folder:\n\n    python3 check.py case-1\/expected.json answer.json\n\nEach case also has an explanation. Where accepted.json exists, the checker accepts the alternatives listed there.\n"},{"path":"tests\/case-1\/request.txt","content":"Check the claims against the extract.\nReturn only the JSON specified in SKILL.md for this test.\n\nSource: 48 of 80 respondents to the library's voluntary survey preferred evening opening; no population weights. A: 60% of respondents preferred evenings. B: 60% of all residents preferred evenings. C: 52 respondents preferred evenings.\n"},{"path":"tests\/case-1\/expected.json","content":"{\n    \"findings\": {\n        \"A\": \"supported\",\n        \"B\": \"broader-than-source\",\n        \"C\": \"contradicted\"\n    }\n}\n"},{"path":"tests\/case-1\/explanation.txt","content":"The source establishes a count and rate for respondents only.\n"},{"path":"tests\/case-2\/request.txt","content":"Check the report wording.\nReturn only the JSON specified in SKILL.md for this test.\n\nSource: branches with later openings logged higher evening footfall in the observed month. No experiment. D: later hours caused higher footfall. E: staff turnover fell.\n"},{"path":"tests\/case-2\/expected.json","content":"{\n    \"findings\": {\n        \"D\": \"broader-than-source\",\n        \"E\": \"no-evidence\"\n    }\n}\n"},{"path":"tests\/case-2\/explanation.txt","content":"A causal explanation is stronger than the observed association; staff turnover was not reported.\n"}],"is_active":true,"is_approved":false}]}]}