{"skills":[{"name":"Prepare a credit line for reused Creative Commons work","description":"Collect attribution information from a source record, record adaptations and flag the details still needed before sharing.","content":"# Prepare a credit line for reused Creative Commons work\n\nCollect attribution information from a source record, record adaptations and flag the details still needed before sharing.\n\n## When to use this skill\n\n- Someone wants to use a Creative Commons photo, illustration, map or text in a report, website, slide deck or leaflet and needs the credit line.\n- A CC-licensed work has been cropped, translated, recoloured or otherwise changed and the credit must say so.\n- The licence includes NoDerivatives (ND) or NonCommercial (NC) and someone needs to know whether the planned use is allowed.\n\n## When not to use it\n\n- Works with no licence statement, or 'free to use' claims on aggregator sites. Ask the rights holder for permission instead.\n- Deciding whether a use falls under a copyright exception, such as quotation or fair dealing in the UK. That is a separate legal question that depends on the country.\n- Choosing a licence for your own work. Creative Commons provides a licence chooser for that.\n\n## What you need\n\n- Original work page, supplied creator credit, title, licence name and link, intended use and changes made.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- Where is the original work published? The creator's own page or the repository record is the evidence of the licence, not a search result or thumbnail.\n- Which licence and version applies, such as CC BY 4.0 or CC BY-ND 4.0? Conditions differ between licences and between versions.\n- What exactly has been changed, and will the result be shared with others or used privately?\n- Is the use commercial? NonCommercial licences restrict that.\n\n## Method\n\n1. Find the original source page. Record the creator as they ask to be credited (a pseudonym if they use one), the title if there is one, the source link, and the licence name, version and link. A hosting platform is not necessarily the creator.\n2. Keep any copyright notice, licence notice and disclaimer notice supplied with the work. The 4.0 licences require these to be retained when the licensor supplied them.\n3. Describe every change, such as 'cropped' or 'translated into Polish', and keep any earlier modification notes.\n4. Decide whether the change is an adaptation. A translation or other creative alteration is one. A change of medium or format with no creative change, such as TIFF to PNG, is a technical modification that the 4.0 licences permit and that does not produce adapted material.\n5. Check the licence against the planned use. ND licences let you make and reproduce an adaptation but not share it; NC licences exclude commercial use. Where the use is not covered, say so and suggest asking the licensor for permission. Earlier licence versions can differ, so check the version's own legal code.\n6. Draft the credit in the order title, creator, source, licence, with links, followed by the changes. If there is no title, leave it out rather than inventing one.\n7. Place the credit where readers will see it in that medium, such as under an image or on the slide, since the licence allows any reasonable manner for the context.\n\n## Checks before you deliver\n\n- A hosting platform is not necessarily the creator.\n- Attribution alone cannot grant adaptation permission.\n- Linking to the Creative Commons home page instead of the specific licence and version.\n- Inventing a title such as 'Untitled photo' when the source gives none.\n- Treating a translation shared under an ND licence as acceptable because the credit is correct.\n\n## How to present the result\n\nLead with the credit line, ready to paste, for example 'Harbour by Sam Lee, https:\/\/example.org\/harbour-map, licensed under CC BY 4.0 (with licence link). Margins cropped.' Then list any missing details and any licence problem with the planned use, such as sharing a translation of an ND work, with the action needed.\n\n## Worked example\n\n**Request:** Assemble the credit fields.\n\n**Supplied material:**\n\n```text\nOriginal: https:\/\/example.org\/harbour-map ; title Harbour; creator Sam Lee; licence CC BY 4.0 https:\/\/creativecommons.org\/licenses\/by\/4.0\/ ; change: cropped margins.\n```\n\n**Answer:** Harbour, by Sam Lee. Source: https:\/\/example.org\/harbour-map. Licensed under CC BY 4.0 (https:\/\/creativecommons.org\/licenses\/by\/4.0\/). Margins cropped.\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 return creator, title, source, licence, licence_url and change; use exact supplied text and null for absent values. Return check_adaptation as true if the proposed distribution involves an adaptation under a NoDerivatives licence, or there is a genuine question about whether the change is an adaptation. A purely technical format change under version 4.0 is false.\n\n## Sources\n\n- [Creative Commons: recommended practices for attribution](https:\/\/wiki.creativecommons.org\/Recommended_practices_for_attribution): Recommends giving title, author, source and licence with a link to the licence, noting changes such as cropping, leaving out a title when none is given, and crediting the creator by the name they specify. It warns that ND licences do not allow adaptations.\n- [Creative Commons: Attribution-NoDerivatives 4.0 legal code](https:\/\/creativecommons.org\/licenses\/by-nd\/4.0\/legalcode.en): Section 2(a)(1) allows sharing the work and producing adapted material but not sharing it, section 2(a)(4) allows technical modifications needed for other media and formats, and section 3(a)(1) lists the attribution details to retain and requires changes to be indicated.\n- [Creative Commons: frequently asked questions](https:\/\/creativecommons.org\/faq\/): Says the licences allow use in any medium or format and that Creative Commons does not verify that the person applying a licence holds the rights, which is why the skill relies on the original source page.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/creative-commons-credit\n","scope":"contextual","trigger_keywords":["Prepare a credit line for reused Creative Commons work","creative-commons-credit","creative commons credit","How do I credit this Creative Commons photo in our report?","How do I credit this Creative Commons photo in our report","creative commons attribution","credit this cc-licensed"],"is_private":true,"is_active":true,"scripts":[{"name":"creative-commons-credit-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":"creative-commons-credit-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: creative-commons-credit\ndescription: \"Write the attribution for a reused Creative Commons work with title, creator, source, licence and changes, and flag when the licence does not allow sharing an adaptation. Use when someone wants to reuse a CC-licensed photo, map, chart, text or video in a publication, website or slide.\"\nlicense: CC-BY-4.0\nmetadata:\n  author: Raq.com\n  version: \"2026-11-22\"\n  homepage: https:\/\/skills.raq.com\/skills\/creative-commons-credit\n---\n\n# Prepare a credit line for reused Creative Commons work\n\nCollect attribution information from a source record, record adaptations and flag the details still needed before sharing.\n\n## When to use this skill\n\n- Someone wants to use a Creative Commons photo, illustration, map or text in a report, website, slide deck or leaflet and needs the credit line.\n- A CC-licensed work has been cropped, translated, recoloured or otherwise changed and the credit must say so.\n- The licence includes NoDerivatives (ND) or NonCommercial (NC) and someone needs to know whether the planned use is allowed.\n\n## When not to use it\n\n- Works with no licence statement, or 'free to use' claims on aggregator sites. Ask the rights holder for permission instead.\n- Deciding whether a use falls under a copyright exception, such as quotation or fair dealing in the UK. That is a separate legal question that depends on the country.\n- Choosing a licence for your own work. Creative Commons provides a licence chooser for that.\n\n## What you need\n\n- Original work page, supplied creator credit, title, licence name and link, intended use and changes made.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- Where is the original work published? The creator's own page or the repository record is the evidence of the licence, not a search result or thumbnail.\n- Which licence and version applies, such as CC BY 4.0 or CC BY-ND 4.0? Conditions differ between licences and between versions.\n- What exactly has been changed, and will the result be shared with others or used privately?\n- Is the use commercial? NonCommercial licences restrict that.\n\n## Method\n\n1. Find the original source page. Record the creator as they ask to be credited (a pseudonym if they use one), the title if there is one, the source link, and the licence name, version and link. A hosting platform is not necessarily the creator.\n2. Keep any copyright notice, licence notice and disclaimer notice supplied with the work. The 4.0 licences require these to be retained when the licensor supplied them.\n3. Describe every change, such as 'cropped' or 'translated into Polish', and keep any earlier modification notes.\n4. Decide whether the change is an adaptation. A translation or other creative alteration is one. A change of medium or format with no creative change, such as TIFF to PNG, is a technical modification that the 4.0 licences permit and that does not produce adapted material.\n5. Check the licence against the planned use. ND licences let you make and reproduce an adaptation but not share it; NC licences exclude commercial use. Where the use is not covered, say so and suggest asking the licensor for permission. Earlier licence versions can differ, so check the version's own legal code.\n6. Draft the credit in the order title, creator, source, licence, with links, followed by the changes. If there is no title, leave it out rather than inventing one.\n7. Place the credit where readers will see it in that medium, such as under an image or on the slide, since the licence allows any reasonable manner for the context.\n\n## Checks before you deliver\n\n- A hosting platform is not necessarily the creator.\n- Attribution alone cannot grant adaptation permission.\n- Linking to the Creative Commons home page instead of the specific licence and version.\n- Inventing a title such as 'Untitled photo' when the source gives none.\n- Treating a translation shared under an ND licence as acceptable because the credit is correct.\n\n## How to present the result\n\nLead with the credit line, ready to paste, for example 'Harbour by Sam Lee, https:\/\/example.org\/harbour-map, licensed under CC BY 4.0 (with licence link). Margins cropped.' Then list any missing details and any licence problem with the planned use, such as sharing a translation of an ND work, with the action needed.\n\n## Worked example\n\n**Request:** Assemble the credit fields.\n\n**Supplied material:**\n\n```text\nOriginal: https:\/\/example.org\/harbour-map ; title Harbour; creator Sam Lee; licence CC BY 4.0 https:\/\/creativecommons.org\/licenses\/by\/4.0\/ ; change: cropped margins.\n```\n\n**Answer:** Harbour, by Sam Lee. Source: https:\/\/example.org\/harbour-map. Licensed under CC BY 4.0 (https:\/\/creativecommons.org\/licenses\/by\/4.0\/). Margins cropped.\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 return creator, title, source, licence, licence_url and change; use exact supplied text and null for absent values. Return check_adaptation as true if the proposed distribution involves an adaptation under a NoDerivatives licence, or there is a genuine question about whether the change is an adaptation. A purely technical format change under version 4.0 is false.\n\n## Sources\n\n- [Creative Commons: recommended practices for attribution](https:\/\/wiki.creativecommons.org\/Recommended_practices_for_attribution): Recommends giving title, author, source and licence with a link to the licence, noting changes such as cropping, leaving out a title when none is given, and crediting the creator by the name they specify. It warns that ND licences do not allow adaptations.\n- [Creative Commons: Attribution-NoDerivatives 4.0 legal code](https:\/\/creativecommons.org\/licenses\/by-nd\/4.0\/legalcode.en): Section 2(a)(1) allows sharing the work and producing adapted material but not sharing it, section 2(a)(4) allows technical modifications needed for other media and formats, and section 3(a)(1) lists the attribution details to retain and requires changes to be indicated.\n- [Creative Commons: frequently asked questions](https:\/\/creativecommons.org\/faq\/): Says the licences allow use in any medium or format and that Creative Commons does not verify that the person applying a licence holds the rights, which is why the skill relies on the original source page.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/creative-commons-credit\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\/creative-commons-credit\nReferenced third-party materials retain their own terms.\n"},{"path":"examples\/worked-example.md","content":"# Cropped map\n\nAssemble the credit fields.\n\n## Supplied material\n\nOriginal: https:\/\/example.org\/harbour-map ; title Harbour; creator Sam Lee; licence CC BY 4.0 https:\/\/creativecommons.org\/licenses\/by\/4.0\/ ; change: cropped margins.\n\n## Worked answer\n\nHarbour, by Sam Lee. Source: https:\/\/example.org\/harbour-map. Licensed under CC BY 4.0 (https:\/\/creativecommons.org\/licenses\/by\/4.0\/). Margins cropped.\n\n## Reasoning\n\nThe adapter should identify the crop and retain the original credit.\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":"Assemble the credit fields.\nReturn only the JSON specified in SKILL.md for this test.\n\nOriginal: https:\/\/example.org\/harbour-map ; title Harbour; creator Sam Lee; licence CC BY 4.0 https:\/\/creativecommons.org\/licenses\/by\/4.0\/ ; change: cropped margins.\n"},{"path":"tests\/case-1\/expected.json","content":"{\n    \"creator\": \"Sam Lee\",\n    \"title\": \"Harbour\",\n    \"source\": \"https:\/\/example.org\/harbour-map\",\n    \"licence\": \"CC BY 4.0\",\n    \"licence_url\": \"https:\/\/creativecommons.org\/licenses\/by\/4.0\/\",\n    \"change\": \"cropped margins\",\n    \"check_adaptation\": false\n}\n"},{"path":"tests\/case-1\/explanation.txt","content":"The adapter should identify the crop and retain the original credit.\n"},{"path":"tests\/case-2\/request.txt","content":"Review the credit.\nReturn only the JSON specified in SKILL.md for this test.\n\nSource https:\/\/example.org\/leaflet ; creator North Club; untitled; CC BY-ND 4.0 https:\/\/creativecommons.org\/licenses\/by-nd\/4.0\/ ; change: translated into Polish. Distribute the translation.\n"},{"path":"tests\/case-2\/expected.json","content":"{\n    \"creator\": \"North Club\",\n    \"title\": null,\n    \"source\": \"https:\/\/example.org\/leaflet\",\n    \"licence\": \"CC BY-ND 4.0\",\n    \"licence_url\": \"https:\/\/creativecommons.org\/licenses\/by-nd\/4.0\/\",\n    \"change\": \"translated into Polish\",\n    \"check_adaptation\": true\n}\n"},{"path":"tests\/case-2\/explanation.txt","content":"The entries allow a credit, but sharing a translation raises an additional licence question.\n"},{"path":"tests\/case-3\/request.txt","content":"Prepare the credit fields and assess the format change.\nReturn only the JSON specified in SKILL.md for this test.\n\nTitle Jetty; creator Bay Archive; source https:\/\/example.org\/jetty ; licence CC BY-ND 4.0 https:\/\/creativecommons.org\/licenses\/by-nd\/4.0\/ ; change: TIFF to PNG. Share identical pixels, with no creative changes.\n"},{"path":"tests\/case-3\/expected.json","content":"{\n    \"creator\": \"Bay Archive\",\n    \"title\": \"Jetty\",\n    \"source\": \"https:\/\/example.org\/jetty\",\n    \"licence\": \"CC BY-ND 4.0\",\n    \"licence_url\": \"https:\/\/creativecommons.org\/licenses\/by-nd\/4.0\/\",\n    \"change\": \"TIFF to PNG\",\n    \"check_adaptation\": false\n}\n"},{"path":"tests\/case-3\/explanation.txt","content":"A necessary format conversion without creative changes is covered by section 2(a)(4). Usual credit and notice conditions still apply.\n"}],"is_active":true,"is_approved":false}]}]}