{"skills":[{"name":"Turn marked homework into targeted practice","description":"Find the first repeated wrong step in marked work and use it to design a fresh question with a separate answer key.","content":"# Turn marked homework into targeted practice\n\nFind the first repeated wrong step in marked work and use it to design a fresh question with a separate answer key.\n\n## When to use this skill\n\n- A parent or tutor has a child's marked maths or science homework and wants practice on what went wrong.\n- A teacher wants a follow-up question for a group who made the same error.\n- Someone asks why a pupil keeps getting a type of question wrong, and the working is available.\n\n## When not to use it\n\n- Diagnosing a learning difficulty such as dyscalculia. Persistent difficulties are a conversation with the school's special educational needs coordinator.\n- Re-marking or disputing the teacher's marks. Raise disagreements with the teacher.\n- Doing the pupil's homework for them.\n\n## What you need\n\n- The pupil's working, original tasks, marking key and any teacher feedback.\n- The list of error labels to use, if the teacher or a fixture supplies one.\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 pupil's full working, not only the answers? Without working, a cause can only be guessed.\n- What were the original questions, and is there a mark scheme or teacher comment?\n- What year group or level is the pupil, so the new question is pitched at the same level?\n\n## Method\n\n1. Solve each original question yourself, step by step, so you know the intended route.\n2. For each wrong answer, find the first line where the pupil's working leaves a correct route. Later errors may follow from that one.\n3. Name the cause only from the evidence: a rule applied wrongly in the same way more than once, a one-off arithmetic or copying slip, or unclear (no working, unreadable, or several possible causes).\n4. Group questions only when the same cause appears in each. A single instance stays a slip until it recurs.\n5. Write a fresh question that the mistaken rule and the correct rule answer differently, so the pupil's answer shows which one they used. Add a prompt about the exact step where the routes split, and do not reuse the marked question or its numbers.\n6. Solve the new question and check the answer by a second route, for example evaluating with brackets and again after expanding.\n7. Give the pupil sheet and the answer key separately. For answer-only work, give a diagnostic question that asks for working and mark any suggested cause as provisional.\n\n## Checks before you deliver\n\n- A wrong answer can have several causes. Do not assign one if no working is visible.\n- Use a fresh problem; repeating the marked example can reward recall of its answer.\n- Choosing a check question the wrong rule also gets right: with a multiplier of 1, 1(x + 2) and x + 2 agree, so the question cannot show the error.\n- Putting the answers on the pupil's sheet lets them check before trying, which removes the practice.\n\n## How to present the result\n\nStart with the finding in one line ('Q1 and Q2 show the same error: the 3 multiplies x but not 2'). Then give the pupil sheet with questions only and, separately, the key for the teacher or parent with worked answers and the step to watch. Mark any cause that is a guess as provisional.\n\n## Worked example\n\n**Request:** Review the working and check the new question.\n\n**Supplied material:**\n\n```text\nLabels: incomplete distribution, arithmetic slip. Q1: 3(x+2) became 3x+2. Q2: 4(y+5) became 4y+5. Fresh: evaluate 2(z+6) at z=1.\n```\n\n**Answer:** Learner sheet: In 3(x + 2), which terms does the 3 multiply? Now evaluate 2(z + 6) at z = 1, once using brackets and once by expanding.\nTeacher key: Q1 and Q2 both leave the second term unmultiplied. The new calculation is 2 \u00d7 7 = 14, and 2z + 12 also gives 14.\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 fixtures, use only the supplied error labels. Return demonstrated as [question,label] rows, unclear as question IDs and key as the numerical answer to the supplied fresh problem.\n\n## Sources\n\n- [Education Endowment Foundation: teacher feedback to improve pupil learning](https:\/\/educationendowmentfoundation.org.uk\/education-evidence\/guidance-reports\/feedback): The guidance report's recommendations say feedback should target the specific learning gaps pupils show, and teachers should give pupils opportunities to use it so the feedback loop is closed. The fresh practice question is that opportunity.\n- [Education Endowment Foundation: improving mathematics in key stages 2 and 3](https:\/\/educationendowmentfoundation.org.uk\/education-evidence\/guidance-reports\/maths-ks-2-3): Recommends using assessment to find what pupils do and do not know, and says teachers must address misconceptions and understand why pupils persist with errors. This is why the skill locates the first wrong step before writing practice.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/homework-error-practice\n","scope":"contextual","trigger_keywords":["Turn marked homework into targeted practice","homework-error-practice","homework error practice","What went wrong in this marked homework, and what should my child practise next?","What went wrong in this marked homework, and what should my child practise next","practice from marked homework","practise my homework mistakes","practice my homework mistakes"],"is_private":true,"is_active":true,"scripts":[{"name":"homework-error-practice-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":"homework-error-practice-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: homework-error-practice\ndescription: \"Find the repeated mistake in a pupil's marked work from the first step where the working goes wrong, then write a fresh practice question with a separate answer key. Use when a parent, tutor or teacher asks to turn marked homework or a test into targeted practice, or to work out what a pupil keeps getting wrong.\"\nlicense: CC-BY-4.0\nmetadata:\n  author: Raq.com\n  version: \"2026-11-22\"\n  homepage: https:\/\/skills.raq.com\/skills\/homework-error-practice\n---\n\n# Turn marked homework into targeted practice\n\nFind the first repeated wrong step in marked work and use it to design a fresh question with a separate answer key.\n\n## When to use this skill\n\n- A parent or tutor has a child's marked maths or science homework and wants practice on what went wrong.\n- A teacher wants a follow-up question for a group who made the same error.\n- Someone asks why a pupil keeps getting a type of question wrong, and the working is available.\n\n## When not to use it\n\n- Diagnosing a learning difficulty such as dyscalculia. Persistent difficulties are a conversation with the school's special educational needs coordinator.\n- Re-marking or disputing the teacher's marks. Raise disagreements with the teacher.\n- Doing the pupil's homework for them.\n\n## What you need\n\n- The pupil's working, original tasks, marking key and any teacher feedback.\n- The list of error labels to use, if the teacher or a fixture supplies one.\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 pupil's full working, not only the answers? Without working, a cause can only be guessed.\n- What were the original questions, and is there a mark scheme or teacher comment?\n- What year group or level is the pupil, so the new question is pitched at the same level?\n\n## Method\n\n1. Solve each original question yourself, step by step, so you know the intended route.\n2. For each wrong answer, find the first line where the pupil's working leaves a correct route. Later errors may follow from that one.\n3. Name the cause only from the evidence: a rule applied wrongly in the same way more than once, a one-off arithmetic or copying slip, or unclear (no working, unreadable, or several possible causes).\n4. Group questions only when the same cause appears in each. A single instance stays a slip until it recurs.\n5. Write a fresh question that the mistaken rule and the correct rule answer differently, so the pupil's answer shows which one they used. Add a prompt about the exact step where the routes split, and do not reuse the marked question or its numbers.\n6. Solve the new question and check the answer by a second route, for example evaluating with brackets and again after expanding.\n7. Give the pupil sheet and the answer key separately. For answer-only work, give a diagnostic question that asks for working and mark any suggested cause as provisional.\n\n## Checks before you deliver\n\n- A wrong answer can have several causes. Do not assign one if no working is visible.\n- Use a fresh problem; repeating the marked example can reward recall of its answer.\n- Choosing a check question the wrong rule also gets right: with a multiplier of 1, 1(x + 2) and x + 2 agree, so the question cannot show the error.\n- Putting the answers on the pupil's sheet lets them check before trying, which removes the practice.\n\n## How to present the result\n\nStart with the finding in one line ('Q1 and Q2 show the same error: the 3 multiplies x but not 2'). Then give the pupil sheet with questions only and, separately, the key for the teacher or parent with worked answers and the step to watch. Mark any cause that is a guess as provisional.\n\n## Worked example\n\n**Request:** Review the working and check the new question.\n\n**Supplied material:**\n\n```text\nLabels: incomplete distribution, arithmetic slip. Q1: 3(x+2) became 3x+2. Q2: 4(y+5) became 4y+5. Fresh: evaluate 2(z+6) at z=1.\n```\n\n**Answer:** Learner sheet: In 3(x + 2), which terms does the 3 multiply? Now evaluate 2(z + 6) at z = 1, once using brackets and once by expanding.\nTeacher key: Q1 and Q2 both leave the second term unmultiplied. The new calculation is 2 \u00d7 7 = 14, and 2z + 12 also gives 14.\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 fixtures, use only the supplied error labels. Return demonstrated as [question,label] rows, unclear as question IDs and key as the numerical answer to the supplied fresh problem.\n\n## Sources\n\n- [Education Endowment Foundation: teacher feedback to improve pupil learning](https:\/\/educationendowmentfoundation.org.uk\/education-evidence\/guidance-reports\/feedback): The guidance report's recommendations say feedback should target the specific learning gaps pupils show, and teachers should give pupils opportunities to use it so the feedback loop is closed. The fresh practice question is that opportunity.\n- [Education Endowment Foundation: improving mathematics in key stages 2 and 3](https:\/\/educationendowmentfoundation.org.uk\/education-evidence\/guidance-reports\/maths-ks-2-3): Recommends using assessment to find what pupils do and do not know, and says teachers must address misconceptions and understand why pupils persist with errors. This is why the skill locates the first wrong step before writing practice.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/homework-error-practice\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\/homework-error-practice\nReferenced third-party materials retain their own terms.\n"},{"path":"examples\/worked-example.md","content":"# Distributing a multiplier\n\nReview the working and check the new question.\n\n## Supplied material\n\nLabels: incomplete distribution, arithmetic slip. Q1: 3(x+2) became 3x+2. Q2: 4(y+5) became 4y+5. Fresh: evaluate 2(z+6) at z=1.\n\n## Worked answer\n\nLearner sheet: In 3(x + 2), which terms does the 3 multiply? Now evaluate 2(z + 6) at z = 1, once using brackets and once by expanding.\nTeacher key: Q1 and Q2 both leave the second term unmultiplied. The new calculation is 2 \u00d7 7 = 14, and 2z + 12 also gives 14.\n\n## Reasoning\n\nBoth recorded steps omit the second multiplication.\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":"Review the working and check the new question.\nReturn only the JSON specified in SKILL.md for this test.\n\nLabels: incomplete distribution, arithmetic slip. Q1: 3(x+2) became 3x+2. Q2: 4(y+5) became 4y+5. Fresh: evaluate 2(z+6) at z=1.\n"},{"path":"tests\/case-1\/expected.json","content":"{\n    \"demonstrated\": [\n        [\n            \"Q1\",\n            \"incomplete distribution\"\n        ],\n        [\n            \"Q2\",\n            \"incomplete distribution\"\n        ]\n    ],\n    \"unclear\": [],\n    \"key\": 14\n}\n"},{"path":"tests\/case-1\/explanation.txt","content":"Both recorded steps omit the second multiplication.\n"},{"path":"tests\/case-2\/request.txt","content":"Identify only demonstrated causes.\nReturn only the JSON specified in SKILL.md for this test.\n\nLabel: arithmetic slip. Q1: 7+8 answered 12, no working. Fresh: 8+9.\n"},{"path":"tests\/case-2\/expected.json","content":"{\n    \"demonstrated\": [],\n    \"unclear\": [\n        \"Q1\"\n    ],\n    \"key\": 17\n}\n"},{"path":"tests\/case-2\/explanation.txt","content":"A wrong final number alone cannot locate the mistake.\n"}],"is_active":true,"is_approved":false}]}]}