{"skills":[{"name":"Review interview excerpts for identifying details","description":"Find direct and contextual identifiers in interview extracts and keep a private replacement log alongside the proposed release copy.","content":"# Review interview excerpts for identifying details\n\nFind direct and contextual identifiers in interview extracts and keep a private replacement log alongside the proposed release copy.\n\n## When to use this skill\n\n- A researcher is preparing qualitative interview transcripts for deposit in a data archive or for sharing with other researchers.\n- Someone is quoting interview extracts in a report, newsletter or article and wants to check that no one can be identified.\n- An oral history or community project needs a release copy of transcripts alongside a protected original.\n\n## When not to use it\n\n- Deciding whether data can lawfully be shared at all. That depends on the consent given and on data protection law (in the UK, the UK GDPR and Data Protection Act 2018), and may need the data protection officer or ethics committee.\n- Numerical survey microdata, which need statistical disclosure control methods.\n- Declaring a release anonymous. A person who knows the audience must make the final judgement.\n\n## What you need\n\n- Text with line identifiers, intended audience, agreed anonymisation plan and information already public to that audience.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- Who will read the release copy: a closed research team, an archive's registered users, a local newsletter's readers or the public? What can identify someone depends on what that audience already knows.\n- What did participants agree to in their consent forms, and is there an agreed anonymisation plan?\n- Are any details already public, or did any participant agree to be named? That changes what must be replaced, although third parties may still need protecting.\n\n## Method\n\n1. Establish the intended audience, the consent terms and the anonymisation plan before reading. A detail harmless to a national audience can identify someone to their neighbours.\n2. Mark direct identifiers line by line: names, contact details, addresses, exact dates of birth, identification numbers, and the names of third parties who did not take part.\n3. Read across the whole narrative for indirect identifiers: combinations such as a rare job, a small place and an unusual event that would let someone with local knowledge identify a person. Check whether a detail on one line becomes identifying alongside a detail on another.\n4. Propose replacements that keep the research meaning, such as 'a small island community' rather than deleting the passage. Mark each change in the text, for example in square brackets, and replace repeated references consistently.\n5. Record every replacement in an anonymisation log that maps original to replacement. Keep the log and the unredacted original apart from the release copy, with restricted access.\n6. List the risks that need a human decision, such as a detail that matters to the analysis but is also identifying, and set out the options. Do not promise anonymity from a keyword search.\n\n## Checks before you deliver\n\n- A participant can identify a third person who never took part.\n- A common first name can still be identifying when linked to a unique job.\n- Over-anonymising, such as removing every place and job, which can strip the material of its research value.\n- Inconsistent replacements, such as the same person becoming 'Anna' in one passage and 'Jane' in another, which confuses readers and can expose the edit.\n- Missing identifiers outside the transcript text, such as file names, document properties, interviewer notes and the audio itself.\n- Treating a pseudonymised transcript as anonymous while a linking key exists. The ICO says pseudonymised data is still personal data.\n\n## How to present the result\n\nStart with the lines that cannot be released as they stand. Then a table: line ID, the identifier or combination, whether it is direct or contextual, the proposed replacement and any decision needed. Give the proposed release text separately from the private replacement log, and state plainly which risks remain for a person to judge.\n\n## Worked example\n\n**Request:** Screen the lines for a village newsletter.\n\n**Supplied material:**\n\n```text\nA: My supervisor is Dana Reed. B: She is the only night ferryman on this island of 80. C: Meeting times vary.\n```\n\n**Answer:** Hold A and B together. In A, replace the supervisor\u2019s name with \u201cmy supervisor\u201d. In B, remove or generalise the unique night-ferry role and the island population. People reading the village newsletter could otherwise identify her from B alone. C can stay as written on the supplied evidence.\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\nFor these labelled extracts return direct, contextual and clear as line ID arrays in input order. Classify an explicitly named person or personal contact as direct; if both kinds appear on one line prefer direct.\n\n## Sources\n\n- [UK Data Service: anonymisation for text data](https:\/\/ukdataservice.ac.uk\/learning-hub\/data-producer-support\/preparing-data-for-sharing-and-reuse\/anonymising-data-and-protecting-participants\/anonymisationfortextdata\/): Advises replacing disclosive detail with meaningful descriptors rather than deleting content, replacing names consistently, marking replacements, keeping an anonymisation log, avoiding over-anonymisation and considering how narrative details and third-party information combine with outside knowledge.\n- [Information Commissioner's Office: how do we ensure anonymisation is effective?](https:\/\/ico.org.uk\/for-organisations\/uk-gdpr-guidance-and-resources\/data-sharing\/anonymisation\/how-do-we-ensure-anonymisation-is-effective): The UK regulator says identifiability depends on context, including who receives the data and what someone with personal knowledge could work out, describes the motivated intruder test, and says pseudonymised data is still personal data. The page notes it is under review after the Data (Use and Access) Act 2025.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/interview-redaction-review\n","scope":"contextual","trigger_keywords":["Review interview excerpts for identifying details","interview-redaction-review","interview redaction review","What in these interview transcripts could identify someone before we share them?","What in these interview transcripts could identify someone before we share them","redact this interview","anonymise these interview extracts","anonymize these interview extracts"],"is_private":true,"is_active":true,"scripts":[{"name":"interview-redaction-review-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":"interview-redaction-review-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: interview-redaction-review\ndescription: \"Review interview transcripts or excerpts for direct identifiers, such as names and contact details, and for combinations of details that would identify someone, and propose replacements with a separate log. Use when someone is preparing interview data for archiving, sharing or publication.\"\nlicense: CC-BY-4.0\nmetadata:\n  author: Raq.com\n  version: \"2026-11-22\"\n  homepage: https:\/\/skills.raq.com\/skills\/interview-redaction-review\n---\n\n# Review interview excerpts for identifying details\n\nFind direct and contextual identifiers in interview extracts and keep a private replacement log alongside the proposed release copy.\n\n## When to use this skill\n\n- A researcher is preparing qualitative interview transcripts for deposit in a data archive or for sharing with other researchers.\n- Someone is quoting interview extracts in a report, newsletter or article and wants to check that no one can be identified.\n- An oral history or community project needs a release copy of transcripts alongside a protected original.\n\n## When not to use it\n\n- Deciding whether data can lawfully be shared at all. That depends on the consent given and on data protection law (in the UK, the UK GDPR and Data Protection Act 2018), and may need the data protection officer or ethics committee.\n- Numerical survey microdata, which need statistical disclosure control methods.\n- Declaring a release anonymous. A person who knows the audience must make the final judgement.\n\n## What you need\n\n- Text with line identifiers, intended audience, agreed anonymisation plan and information already public to that audience.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- Who will read the release copy: a closed research team, an archive's registered users, a local newsletter's readers or the public? What can identify someone depends on what that audience already knows.\n- What did participants agree to in their consent forms, and is there an agreed anonymisation plan?\n- Are any details already public, or did any participant agree to be named? That changes what must be replaced, although third parties may still need protecting.\n\n## Method\n\n1. Establish the intended audience, the consent terms and the anonymisation plan before reading. A detail harmless to a national audience can identify someone to their neighbours.\n2. Mark direct identifiers line by line: names, contact details, addresses, exact dates of birth, identification numbers, and the names of third parties who did not take part.\n3. Read across the whole narrative for indirect identifiers: combinations such as a rare job, a small place and an unusual event that would let someone with local knowledge identify a person. Check whether a detail on one line becomes identifying alongside a detail on another.\n4. Propose replacements that keep the research meaning, such as 'a small island community' rather than deleting the passage. Mark each change in the text, for example in square brackets, and replace repeated references consistently.\n5. Record every replacement in an anonymisation log that maps original to replacement. Keep the log and the unredacted original apart from the release copy, with restricted access.\n6. List the risks that need a human decision, such as a detail that matters to the analysis but is also identifying, and set out the options. Do not promise anonymity from a keyword search.\n\n## Checks before you deliver\n\n- A participant can identify a third person who never took part.\n- A common first name can still be identifying when linked to a unique job.\n- Over-anonymising, such as removing every place and job, which can strip the material of its research value.\n- Inconsistent replacements, such as the same person becoming 'Anna' in one passage and 'Jane' in another, which confuses readers and can expose the edit.\n- Missing identifiers outside the transcript text, such as file names, document properties, interviewer notes and the audio itself.\n- Treating a pseudonymised transcript as anonymous while a linking key exists. The ICO says pseudonymised data is still personal data.\n\n## How to present the result\n\nStart with the lines that cannot be released as they stand. Then a table: line ID, the identifier or combination, whether it is direct or contextual, the proposed replacement and any decision needed. Give the proposed release text separately from the private replacement log, and state plainly which risks remain for a person to judge.\n\n## Worked example\n\n**Request:** Screen the lines for a village newsletter.\n\n**Supplied material:**\n\n```text\nA: My supervisor is Dana Reed. B: She is the only night ferryman on this island of 80. C: Meeting times vary.\n```\n\n**Answer:** Hold A and B together. In A, replace the supervisor\u2019s name with \u201cmy supervisor\u201d. In B, remove or generalise the unique night-ferry role and the island population. People reading the village newsletter could otherwise identify her from B alone. C can stay as written on the supplied evidence.\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\nFor these labelled extracts return direct, contextual and clear as line ID arrays in input order. Classify an explicitly named person or personal contact as direct; if both kinds appear on one line prefer direct.\n\n## Sources\n\n- [UK Data Service: anonymisation for text data](https:\/\/ukdataservice.ac.uk\/learning-hub\/data-producer-support\/preparing-data-for-sharing-and-reuse\/anonymising-data-and-protecting-participants\/anonymisationfortextdata\/): Advises replacing disclosive detail with meaningful descriptors rather than deleting content, replacing names consistently, marking replacements, keeping an anonymisation log, avoiding over-anonymisation and considering how narrative details and third-party information combine with outside knowledge.\n- [Information Commissioner's Office: how do we ensure anonymisation is effective?](https:\/\/ico.org.uk\/for-organisations\/uk-gdpr-guidance-and-resources\/data-sharing\/anonymisation\/how-do-we-ensure-anonymisation-is-effective): The UK regulator says identifiability depends on context, including who receives the data and what someone with personal knowledge could work out, describes the motivated intruder test, and says pseudonymised data is still personal data. The page notes it is under review after the Data (Use and Access) Act 2025.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/interview-redaction-review\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\/interview-redaction-review\nReferenced third-party materials retain their own terms.\n"},{"path":"examples\/worked-example.md","content":"# A role that singles someone out\n\nScreen the lines for a village newsletter.\n\n## Supplied material\n\nA: My supervisor is Dana Reed. B: She is the only night ferryman on this island of 80. C: Meeting times vary.\n\n## Worked answer\n\nHold A and B together. In A, replace the supervisor\u2019s name with \u201cmy supervisor\u201d. In B, remove or generalise the unique night-ferry role and the island population. People reading the village newsletter could otherwise identify her from B alone. C can stay as written on the supplied evidence.\n\n## Reasoning\n\nA unique local role remains identifying after the name is removed.\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":"Screen the lines for a village newsletter.\nReturn only the JSON specified in SKILL.md for this test.\n\nA: My supervisor is Dana Reed. B: She is the only night ferryman on this island of 80. C: Meeting times vary.\n"},{"path":"tests\/case-1\/expected.json","content":"{\n    \"direct\": [\n        \"A\"\n    ],\n    \"contextual\": [\n        \"B\"\n    ],\n    \"clear\": [\n        \"C\"\n    ]\n}\n"},{"path":"tests\/case-1\/explanation.txt","content":"A unique local role remains identifying after the name is removed.\n"},{"path":"tests\/case-2\/request.txt","content":"Screen for release to the public.\nReturn only the JSON specified in SKILL.md for this test.\n\nD: Our team met on Mondays. E: Call my neighbour at person@example.invalid. F: The only headteacher in the district who won that year\u2019s named prize came too.\n"},{"path":"tests\/case-2\/expected.json","content":"{\n    \"direct\": [\n        \"E\"\n    ],\n    \"contextual\": [\n        \"F\"\n    ],\n    \"clear\": [\n        \"D\"\n    ]\n}\n"},{"path":"tests\/case-2\/explanation.txt","content":"The neighbour and the identifiable third-party role both need review.\n"}],"is_active":true,"is_approved":false}]}]}