{"skills":[{"name":"Turn a support report into a reproducible bug case","description":"Extract testable actions, expected behaviour and observed results from a support note while preserving the gaps a developer needs to resolve.","content":"# Turn a support report into a reproducible bug case\n\nExtract testable actions, expected behaviour and observed results from a support note while preserving the gaps a developer needs to resolve.\n\n## When to use this skill\n\n- Someone pastes a support ticket, chat transcript or customer email and wants a bug report for the development team.\n- A developer has asked support for steps to reproduce and the team wants to know what to ask the customer.\n- A support note mixes what the customer saw with their theories, and the team needs the observations separated out.\n\n## When not to use it\n\n- Diagnosing the cause or proposing a fix. The case records what was reported; investigation comes after.\n- Security vulnerabilities or suspected data breaches. Follow the organisation's security reporting process, which usually restricts who can see the details.\n- Feature requests or disagreement with how something is meant to work. Record those as product feedback unless a documented rule says the behaviour is wrong.\n\n## What you need\n\n- The original support note or transcript, preferably with individually labelled lines.\n- Reported environment, prerequisites, frequency and an expectation supported by the report or a supplied product rule.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- Which version, device, browser or app build was the person using? A likely environment is not the reported one.\n- What should have happened? If the report does not say and no product rule covers it, the expected result has to be asked for.\n- How often does it happen, and has anyone tried again?\n- Is it safe to reproduce on the live service? Some steps send email, take payment or change data, so a retest may need a test account.\n\n## Method\n\n1. Keep one problem per case. If the note describes several, split them and say so.\n2. Sort the reporter's evidence into environment, prerequisites (account, data or state before the first step), ordered steps, actual result, expected result and frequency. Use only what the reporter said or a supplied product rule; never fill a gap with what usually happens.\n3. Cite evidence by line ID when lines are labelled. For an unlabelled note, quote short exact excerpts so a tester can find the original wording.\n4. Separate observation from speculation. 'A blank tab opens' is an actual result; 'your database is down' is the reporter's theory and goes in a note, not in the case.\n5. Record frequency exactly as reported, such as every time, three out of three or once. Do not turn one report into a confirmed reproduction; mark the case unconfirmed until someone on the team reproduces it.\n6. Turn every missing category into a specific follow-up question. If the report says no prerequisites are needed, for example no account or data, cite that line under prerequisites and do not ask for them.\n7. Write a summary of about ten words that names the problem, not a suggested fix. Remove names, email addresses, account numbers and other personal data the developer does not need, and keep a reference to the original ticket instead.\n\n## Checks before you deliver\n\n- A statement such as 'the server lost my data' may be a hypothesis. Record what the reporter saw.\n- Version, browser and prerequisite records make a difference. A suggested environment is not a reported environment.\n- Rewriting the reporter's steps in product terms they did not use can hide what they actually did. Keep their wording as the evidence.\n- Merging two similar reports into one case can mix environments. Keep separate cases until both reproduce the same way.\n- Copying a whole ticket, with names, emails and payment details, into a shared bug tracker spreads personal data. Under UK GDPR's data minimisation principle, share only what the fix needs, and check the equivalent rule elsewhere.\n\n## How to present the result\n\nStart with a summary of the problem in about ten words. Then give the case under headings: environment, prerequisites, steps to reproduce (numbered), actual result, expected result and frequency, each pointing to the reporter's line or quote. End with the follow-up questions for the customer, ready to send, and mark the case unconfirmed until someone reproduces it.\n\n## Worked example\n\n**Request:** Extract a bug case from these labelled support notes.\n\n**Supplied material:**\n\n```text\nL1 Browser 11, desktop app build 44.\nL2 Start with the saved view Sales open.\nL3 Click Edit.\nL4 Clear the Region filter and select Save.\nL5 The Region filter is still shown once the view reopens.\nL6 The view should reopen without a Region filter.\nL7 Reproduced three times out of three.\n```\n\n**Answer:** Saved Region filter persists in desktop app build 44, Browser 11. Open the saved Sales view, select Edit, clear Region and save. The view reopens with Region still shown. It should reopen without the filter. The reporter reproduced this three times in three attempts.\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 environment, prerequisites, steps, actual, expected and frequency as arrays of supporting line IDs in report order, or short source excerpts for unlabelled notes. Use empty arrays for missing categories. Return ask_for as missing categories in the same listed order; omit prerequisites from it if the report explicitly says none are needed.\n\n## Sources\n\n- [Mozilla Bugzilla bug writing guidelines](https:\/\/bugzilla.mozilla.org\/page.cgi?id=bug-writing.html): Asks for one bug per report, precise steps to reproduce, expected and actual results, a summary of about ten words that explains the problem rather than a suggested fix, and a clear separation of facts from speculation.\n- [Chromium bug reporting guidelines](https:\/\/www.chromium.org\/for-testers\/bug-reporting-guidelines\/): Asks for a high-level problem description, detailed steps to replicate, the expected behaviour and, where possible, a reduced test case, and points security bugs to separate guidelines.\n- [ICO: data minimisation principle](https:\/\/ico.org.uk\/for-organisations\/uk-gdpr-guidance-and-resources\/data-protection-principles\/a-guide-to-the-data-protection-principles\/data-minimisation\/): The UK regulator explains UK GDPR Article 5(1)(c): personal data must be adequate, relevant and limited to what is necessary. The skill applies it when moving support tickets into a bug tracker; outside the UK, check the local data protection rule.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/turn-a-support-report-into-a-bug-case\n","scope":"contextual","trigger_keywords":["Turn a support report into a reproducible bug case","turn-a-support-report-into-a-bug-case","turn a support report into a bug case","Can you turn this customer complaint into a bug report the developers can reproduce?","Can you turn this customer complaint into a bug report the developers can reproduce","turn this support ticket into a bug","repro steps from this support ticket","bug report from support"],"is_private":true,"is_active":true,"scripts":[{"name":"turn-a-support-report-into-a-bug-case-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":"turn-a-support-report-into-a-bug-case-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: turn-a-support-report-into-a-bug-case\ndescription: \"Turn a customer's support note or chat into a reproducible bug case with environment, starting state, steps, actual result, expected result and frequency, keeping the reporter's own evidence and asking for what is missing. Use when someone wants repro steps or a developer-ready bug report from a support ticket.\"\nlicense: CC-BY-4.0\nmetadata:\n  author: Raq.com\n  version: \"2026-11-22\"\n  homepage: https:\/\/skills.raq.com\/skills\/turn-a-support-report-into-a-bug-case\n---\n\n# Turn a support report into a reproducible bug case\n\nExtract testable actions, expected behaviour and observed results from a support note while preserving the gaps a developer needs to resolve.\n\n## When to use this skill\n\n- Someone pastes a support ticket, chat transcript or customer email and wants a bug report for the development team.\n- A developer has asked support for steps to reproduce and the team wants to know what to ask the customer.\n- A support note mixes what the customer saw with their theories, and the team needs the observations separated out.\n\n## When not to use it\n\n- Diagnosing the cause or proposing a fix. The case records what was reported; investigation comes after.\n- Security vulnerabilities or suspected data breaches. Follow the organisation's security reporting process, which usually restricts who can see the details.\n- Feature requests or disagreement with how something is meant to work. Record those as product feedback unless a documented rule says the behaviour is wrong.\n\n## What you need\n\n- The original support note or transcript, preferably with individually labelled lines.\n- Reported environment, prerequisites, frequency and an expectation supported by the report or a supplied product rule.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- Which version, device, browser or app build was the person using? A likely environment is not the reported one.\n- What should have happened? If the report does not say and no product rule covers it, the expected result has to be asked for.\n- How often does it happen, and has anyone tried again?\n- Is it safe to reproduce on the live service? Some steps send email, take payment or change data, so a retest may need a test account.\n\n## Method\n\n1. Keep one problem per case. If the note describes several, split them and say so.\n2. Sort the reporter's evidence into environment, prerequisites (account, data or state before the first step), ordered steps, actual result, expected result and frequency. Use only what the reporter said or a supplied product rule; never fill a gap with what usually happens.\n3. Cite evidence by line ID when lines are labelled. For an unlabelled note, quote short exact excerpts so a tester can find the original wording.\n4. Separate observation from speculation. 'A blank tab opens' is an actual result; 'your database is down' is the reporter's theory and goes in a note, not in the case.\n5. Record frequency exactly as reported, such as every time, three out of three or once. Do not turn one report into a confirmed reproduction; mark the case unconfirmed until someone on the team reproduces it.\n6. Turn every missing category into a specific follow-up question. If the report says no prerequisites are needed, for example no account or data, cite that line under prerequisites and do not ask for them.\n7. Write a summary of about ten words that names the problem, not a suggested fix. Remove names, email addresses, account numbers and other personal data the developer does not need, and keep a reference to the original ticket instead.\n\n## Checks before you deliver\n\n- A statement such as 'the server lost my data' may be a hypothesis. Record what the reporter saw.\n- Version, browser and prerequisite records make a difference. A suggested environment is not a reported environment.\n- Rewriting the reporter's steps in product terms they did not use can hide what they actually did. Keep their wording as the evidence.\n- Merging two similar reports into one case can mix environments. Keep separate cases until both reproduce the same way.\n- Copying a whole ticket, with names, emails and payment details, into a shared bug tracker spreads personal data. Under UK GDPR's data minimisation principle, share only what the fix needs, and check the equivalent rule elsewhere.\n\n## How to present the result\n\nStart with a summary of the problem in about ten words. Then give the case under headings: environment, prerequisites, steps to reproduce (numbered), actual result, expected result and frequency, each pointing to the reporter's line or quote. End with the follow-up questions for the customer, ready to send, and mark the case unconfirmed until someone reproduces it.\n\n## Worked example\n\n**Request:** Extract a bug case from these labelled support notes.\n\n**Supplied material:**\n\n```text\nL1 Browser 11, desktop app build 44.\nL2 Start with the saved view Sales open.\nL3 Click Edit.\nL4 Clear the Region filter and select Save.\nL5 The Region filter is still shown once the view reopens.\nL6 The view should reopen without a Region filter.\nL7 Reproduced three times out of three.\n```\n\n**Answer:** Saved Region filter persists in desktop app build 44, Browser 11. Open the saved Sales view, select Edit, clear Region and save. The view reopens with Region still shown. It should reopen without the filter. The reporter reproduced this three times in three attempts.\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 environment, prerequisites, steps, actual, expected and frequency as arrays of supporting line IDs in report order, or short source excerpts for unlabelled notes. Use empty arrays for missing categories. Return ask_for as missing categories in the same listed order; omit prerequisites from it if the report explicitly says none are needed.\n\n## Sources\n\n- [Mozilla Bugzilla bug writing guidelines](https:\/\/bugzilla.mozilla.org\/page.cgi?id=bug-writing.html): Asks for one bug per report, precise steps to reproduce, expected and actual results, a summary of about ten words that explains the problem rather than a suggested fix, and a clear separation of facts from speculation.\n- [Chromium bug reporting guidelines](https:\/\/www.chromium.org\/for-testers\/bug-reporting-guidelines\/): Asks for a high-level problem description, detailed steps to replicate, the expected behaviour and, where possible, a reduced test case, and points security bugs to separate guidelines.\n- [ICO: data minimisation principle](https:\/\/ico.org.uk\/for-organisations\/uk-gdpr-guidance-and-resources\/data-protection-principles\/a-guide-to-the-data-protection-principles\/data-minimisation\/): The UK regulator explains UK GDPR Article 5(1)(c): personal data must be adequate, relevant and limited to what is necessary. The skill applies it when moving support tickets into a bug tracker; outside the UK, check the local data protection rule.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/turn-a-support-report-into-a-bug-case\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\/turn-a-support-report-into-a-bug-case\nReferenced third-party materials retain their own terms.\n"},{"path":"examples\/worked-example.md","content":"# A saved filter vanishes\n\nExtract a bug case from these labelled support notes.\n\n## Supplied material\n\nL1 Browser 11, desktop app build 44.\nL2 Start with the saved view Sales open.\nL3 Click Edit.\nL4 Clear the Region filter and select Save.\nL5 The Region filter is still shown once the view reopens.\nL6 The view should reopen without a Region filter.\nL7 Reproduced three times out of three.\n\n## Worked answer\n\nSaved Region filter persists in desktop app build 44, Browser 11. Open the saved Sales view, select Edit, clear Region and save. The view reopens with Region still shown. It should reopen without the filter. The reporter reproduced this three times in three attempts.\n\n## Reasoning\n\nThe test can be reconstructed from the source report without inventing any state.\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":"Extract a bug case from these labelled support notes.\nReturn only the JSON specified in SKILL.md for this test.\n\nL1 Browser 11, desktop app build 44.\nL2 Start with the saved view Sales open.\nL3 Click Edit.\nL4 Clear the Region filter and select Save.\nL5 The Region filter is still shown once the view reopens.\nL6 The view should reopen without a Region filter.\nL7 Reproduced three times out of three.\n"},{"path":"tests\/case-1\/expected.json","content":"{\n    \"environment\": [\n        \"L1\"\n    ],\n    \"prerequisites\": [\n        \"L2\"\n    ],\n    \"steps\": [\n        \"L3\",\n        \"L4\"\n    ],\n    \"actual\": [\n        \"L5\"\n    ],\n    \"expected\": [\n        \"L6\"\n    ],\n    \"frequency\": [\n        \"L7\"\n    ],\n    \"ask_for\": []\n}\n"},{"path":"tests\/case-1\/explanation.txt","content":"The test can be reconstructed from the source report without inventing any state.\n"},{"path":"tests\/case-2\/request.txt","content":"Extract the available bug case and ask for missing essentials.\nReturn only the JSON specified in SKILL.md for this test.\n\nN1 No prerequisite account or data is needed.\nN2 Select Download on the public sample.\nN3 A blank tab opens.\nN4 I think your database is down.\n"},{"path":"tests\/case-2\/expected.json","content":"{\n    \"environment\": [],\n    \"prerequisites\": [\n        \"N1\"\n    ],\n    \"steps\": [\n        \"N2\"\n    ],\n    \"actual\": [\n        \"N3\"\n    ],\n    \"expected\": [],\n    \"frequency\": [],\n    \"ask_for\": [\n        \"environment\",\n        \"expected\",\n        \"frequency\"\n    ]\n}\n"},{"path":"tests\/case-2\/explanation.txt","content":"The database guess adds no observed result, frequency or documented expectation.\n"},{"path":"tests\/case-3\/request.txt","content":"Extract a bug case from this note. Another live submission would send email.\nReturn only the JSON specified in SKILL.md for this test.\n\nMobile browser. I tapped Save. I saw a spinner. I tapped Save again. I received two confirmation emails.\n"},{"path":"tests\/case-3\/expected.json","content":"{\n    \"environment\": [\n        \"Mobile browser.\"\n    ],\n    \"prerequisites\": [],\n    \"steps\": [\n        \"I tapped Save.\",\n        \"I tapped Save again.\"\n    ],\n    \"actual\": [\n        \"I saw a spinner.\",\n        \"I received two confirmation emails.\"\n    ],\n    \"expected\": [],\n    \"frequency\": [],\n    \"ask_for\": [\n        \"prerequisites\",\n        \"expected\",\n        \"frequency\"\n    ]\n}\n"},{"path":"tests\/case-3\/explanation.txt","content":"The observation establishes what the reporter saw, without proving that two records were created. The missing expectation and reproducibility details can be obtained without another live submission.\n"}],"is_active":true,"is_approved":false}]}]}