{"skills":[{"name":"Check a weighted marking rubric","description":"Recalculate a rubric across criteria with different maxima and flag missing marks or weights that prevent a fair total.","content":"# Check a weighted marking rubric\n\nRecalculate a rubric across criteria with different maxima and flag missing marks or weights that prevent a fair total.\n\n## When to use this skill\n\n- A teacher has marked against a rubric whose criteria have different maximum marks and percentage weights, and wants the total checked.\n- A student thinks a weighted percentage has been added up wrongly.\n- A moderator wants the totals on a set of marked rubrics checked.\n\n## When not to use it\n\n- Deciding what mark the work deserves. That is the marker's judgement against the descriptors.\n- Turning the percentage into a grade. Use the published grade boundaries or the institution's regulations.\n- Appeals or academic misconduct decisions.\n\n## What you need\n\n- The approved rubric, criterion maxima and weights, and the pupil\u2019s awarded marks.\n- Any total already recorded and any rounding rule, so the check can be compared with it.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- What are each criterion's maximum mark and weight in the approved rubric?\n- What mark was awarded on each criterion, and was every criterion assessed?\n- Is there a rounding rule set by the school or institution?\n\n## Method\n\n1. Copy each criterion with its descriptor, maximum and weight from the approved rubric. Check every maximum is positive, every mark lies between zero and its maximum, and the weights add up to the stated total, usually 100.\n2. Put each criterion on a common scale before weighting: contribution = mark \u00f7 maximum \u00d7 weight. Do not add raw marks across criteria with different maxima.\n3. Keep the contributions unrounded and round only the final total, to the institution's precision or to two decimal places if none is given.\n4. If a criterion is unmarked or its scale is invalid, show its contribution as missing and leave the total pending. Do not turn an unassessed criterion into zero; ask whether zero was intended.\n5. If the weights do not add up to 100, leave the total unset and report what they do add up to.\n6. Show each criterion's mark, maximum, weight and contribution beside the total, and compare with any total already recorded.\n\n## Checks before you deliver\n\n- Adding raw points first changes the intended weighting when criteria have different maxima.\n- With 50:50 weights, 4\/5 and 5\/10 add to 9\/15 (60%), but the weighted total is 65%.\n- Treating an unmarked criterion as zero lowers the total without evidence.\n- Rounding each contribution before adding can move a total across a grade boundary.\n- Weights that no longer add to 100 after a criterion was edited.\n\n## How to present the result\n\nLead with the checked total, or why it is pending. Then a table: criterion, mark, maximum, weight, contribution. Note any invalid mark, missing mark or weight sum, and any difference from a total already recorded.\n\n## Worked example\n\n**Request:** Check my total.\n\n**Supplied material:**\n\n```text\nIdeas 6\/8 weight 60%; Mechanics 3\/5 weight 40%.\n```\n\n**Answer:** Record 69%. Ideas contributes 45 percentage points (6\/8 \u00d7 60), and Mechanics contributes 24 (3\/5 \u00d7 40). Both criteria have marks and the weights sum to 100%.\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 contributions as an object keyed by criterion, invalid or missing contributions as null, total as a percentage rounded to two decimals or null, and pending as criterion labels in input order. If the weights do not total 100, leave total null.\n\n## Sources\n\n- [Carnegie Mellon University Eberly Center: creating and using rubrics](https:\/\/www.cmu.edu\/teaching\/assessment\/assesslearning\/rubrics.html): Defines a rubric's criteria, descriptors and the rating scale used within each criterion, and says rubrics help consistency across time and graders. This is why each criterion keeps its own scale until it is weighted.\n- [Dublin City University Institute of Education: a primer on performance standards, cut scores and weights](https:\/\/www.dcu.ie\/sites\/default\/files\/carpe\/a_primer_on_performance_standards_cut_scores_and_weights.pdf): Works through the percentage-correct method, multiplying each component's percentage by its weight and summing, and states that components on different scales must be converted to the same scale before weighting.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/weighted-rubric-check\n","scope":"contextual","trigger_keywords":["Check a weighted marking rubric","weighted-rubric-check","weighted rubric check","Have I added up this weighted marking rubric correctly?","Have I added up this weighted marking rubric correctly","weighted rubric","weighted marking total","check these rubric scores"],"is_private":true,"is_active":true,"scripts":[{"name":"weighted-rubric-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":"weighted-rubric-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: weighted-rubric-check\ndescription: \"Recalculate a weighted marking rubric criterion by criterion, check that maxima, weights and marks are valid, and leave the total open when a mark or weight is missing. Use when a teacher, moderator or student asks to check a rubric total, a weighted mark, or why a percentage looks wrong.\"\nlicense: CC-BY-4.0\nmetadata:\n  author: Raq.com\n  version: \"2026-11-22\"\n  homepage: https:\/\/skills.raq.com\/skills\/weighted-rubric-check\n---\n\n# Check a weighted marking rubric\n\nRecalculate a rubric across criteria with different maxima and flag missing marks or weights that prevent a fair total.\n\n## When to use this skill\n\n- A teacher has marked against a rubric whose criteria have different maximum marks and percentage weights, and wants the total checked.\n- A student thinks a weighted percentage has been added up wrongly.\n- A moderator wants the totals on a set of marked rubrics checked.\n\n## When not to use it\n\n- Deciding what mark the work deserves. That is the marker's judgement against the descriptors.\n- Turning the percentage into a grade. Use the published grade boundaries or the institution's regulations.\n- Appeals or academic misconduct decisions.\n\n## What you need\n\n- The approved rubric, criterion maxima and weights, and the pupil\u2019s awarded marks.\n- Any total already recorded and any rounding rule, so the check can be compared with it.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- What are each criterion's maximum mark and weight in the approved rubric?\n- What mark was awarded on each criterion, and was every criterion assessed?\n- Is there a rounding rule set by the school or institution?\n\n## Method\n\n1. Copy each criterion with its descriptor, maximum and weight from the approved rubric. Check every maximum is positive, every mark lies between zero and its maximum, and the weights add up to the stated total, usually 100.\n2. Put each criterion on a common scale before weighting: contribution = mark \u00f7 maximum \u00d7 weight. Do not add raw marks across criteria with different maxima.\n3. Keep the contributions unrounded and round only the final total, to the institution's precision or to two decimal places if none is given.\n4. If a criterion is unmarked or its scale is invalid, show its contribution as missing and leave the total pending. Do not turn an unassessed criterion into zero; ask whether zero was intended.\n5. If the weights do not add up to 100, leave the total unset and report what they do add up to.\n6. Show each criterion's mark, maximum, weight and contribution beside the total, and compare with any total already recorded.\n\n## Checks before you deliver\n\n- Adding raw points first changes the intended weighting when criteria have different maxima.\n- With 50:50 weights, 4\/5 and 5\/10 add to 9\/15 (60%), but the weighted total is 65%.\n- Treating an unmarked criterion as zero lowers the total without evidence.\n- Rounding each contribution before adding can move a total across a grade boundary.\n- Weights that no longer add to 100 after a criterion was edited.\n\n## How to present the result\n\nLead with the checked total, or why it is pending. Then a table: criterion, mark, maximum, weight, contribution. Note any invalid mark, missing mark or weight sum, and any difference from a total already recorded.\n\n## Worked example\n\n**Request:** Check my total.\n\n**Supplied material:**\n\n```text\nIdeas 6\/8 weight 60%; Mechanics 3\/5 weight 40%.\n```\n\n**Answer:** Record 69%. Ideas contributes 45 percentage points (6\/8 \u00d7 60), and Mechanics contributes 24 (3\/5 \u00d7 40). Both criteria have marks and the weights sum to 100%.\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 contributions as an object keyed by criterion, invalid or missing contributions as null, total as a percentage rounded to two decimals or null, and pending as criterion labels in input order. If the weights do not total 100, leave total null.\n\n## Sources\n\n- [Carnegie Mellon University Eberly Center: creating and using rubrics](https:\/\/www.cmu.edu\/teaching\/assessment\/assesslearning\/rubrics.html): Defines a rubric's criteria, descriptors and the rating scale used within each criterion, and says rubrics help consistency across time and graders. This is why each criterion keeps its own scale until it is weighted.\n- [Dublin City University Institute of Education: a primer on performance standards, cut scores and weights](https:\/\/www.dcu.ie\/sites\/default\/files\/carpe\/a_primer_on_performance_standards_cut_scores_and_weights.pdf): Works through the percentage-correct method, multiplying each component's percentage by its weight and summing, and states that components on different scales must be converted to the same scale before weighting.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/weighted-rubric-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\/weighted-rubric-check\nReferenced third-party materials retain their own terms.\n"},{"path":"examples\/worked-example.md","content":"# Unlike maxima\n\nCheck my total.\n\n## Supplied material\n\nIdeas 6\/8 weight 60%; Mechanics 3\/5 weight 40%.\n\n## Worked answer\n\nRecord 69%. Ideas contributes 45 percentage points (6\/8 \u00d7 60), and Mechanics contributes 24 (3\/5 \u00d7 40). Both criteria have marks and the weights sum to 100%.\n\n## Reasoning\n\nThe two weighted contributions are 45 and 24 percentage points.\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 my total.\nReturn only the JSON specified in SKILL.md for this test.\n\nIdeas 6\/8 weight 60%; Mechanics 3\/5 weight 40%.\n"},{"path":"tests\/case-1\/expected.json","content":"{\n    \"contributions\": {\n        \"Ideas\": 45,\n        \"Mechanics\": 24\n    },\n    \"total\": 69,\n    \"pending\": []\n}\n"},{"path":"tests\/case-1\/explanation.txt","content":"The two weighted contributions are 45 and 24 percentage points.\n"},{"path":"tests\/case-2\/request.txt","content":"Calculate what is known.\nReturn only the JSON specified in SKILL.md for this test.\n\nContent 4\/5 weight 50%; Delivery not marked, maximum 10, weight 50%.\n"},{"path":"tests\/case-2\/expected.json","content":"{\n    \"contributions\": {\n        \"Content\": 40,\n        \"Delivery\": null\n    },\n    \"total\": null,\n    \"pending\": [\n        \"Delivery\"\n    ]\n}\n"},{"path":"tests\/case-2\/explanation.txt","content":"Missing evidence leaves the overall result open.\n"}],"is_active":true,"is_approved":false}]}]}