{"skills":[{"name":"Document a skill\u2019s real tool and permission requirements","description":"Read a package\u2019s steps and helper inventory to describe the file, network and service permissions a user needs for each supported mode.","content":"# Document a skill\u2019s real tool and permission requirements\n\nRead a package\u2019s steps and helper inventory to describe the file, network and service permissions a user needs for each supported mode.\n\n## When to use this skill\n\n- Someone is publishing a skill and needs to tell users what access it requires.\n- An administrator is reviewing a third-party skill before allowing it in their organisation.\n- A skill's declared tools or allowed-tools list may not match what its scripts actually call.\n\n## When not to use it\n\n- Granting or configuring permissions in a particular client. Use that client's permission settings.\n- A full security audit of bundled code, such as hunting for malicious behaviour. This skill documents what the code does when read and flags what cannot be read.\n- Running the skill to see what happens. A test run is separate work and can cause the very effects being documented.\n\n## What you need\n\n- Skill instructions plus readable helper scripts or a trusted operation summary, with normal and optional branches identified.\n- The manifest\u2019s declared capabilities, selected feature mode if any and the host's actual configuration where available. Do not include credential values.\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 SKILL.md and the full contents of every bundled script, or a trusted description of each operation? Unread code can only be listed as unknown.\n- Which modes will users run: only the default, or optional branches such as sharing or export?\n- What does the manifest declare (compatibility, allowed-tools or a client-specific capability list), and which client is the target?\n\n## Method\n\n1. List the skill's behaviours in call order, from SKILL.md and from each bundled helper read in full. For each, record what it reads, what it writes and any service it contacts, with data classes and destinations but without personal data or secret values.\n2. Map each behaviour to the capability names the person uses, such as file-read, file-write, network-read or remote-publish, and remove duplicates.\n3. Mark each operation as required (every normal run) or optional (only in a branch). If the person has selected a branch, move that branch's operations into the required set; required takes precedence over optional.\n4. Compare with the manifest. List undeclared requirements (used but not declared) and surplus declarations (declared but unused). A listed tool does not prove it is used, and an unlisted tool may still be called by a helper.\n5. List any step whose code or destination cannot be read as unknown, and do not run it. While an opaque step remains in an active or optional branch, call no declaration surplus, because that step may use it.\n6. Be precise about allowed-tools. The specification marks it experimental with support varying by client, and in Claude Code it pre-approves the listed tools for the turn without restricting others. It is not a cross-client permission grant or a sandbox.\n7. For human readers, separate actions that only touch local files from those that send data or change remote state, and separate permissions required from permissions already granted on the host.\n\n## Checks before you deliver\n\n- A tool called 'preview' can still write a draft. Inspect the implementation or trusted operation description.\n- Optional export code must appear in the requirements even when the default workflow stays local.\n- Trusting a server's tool annotations, such as a read-only hint. The MCP specification says clients must treat annotations as untrusted unless they come from trusted servers.\n- Copying credentials or sample personal data into the requirements document while describing what a helper reads.\n- Declaring a capability unused while an unread vendor helper could still call it.\n\n## How to present the result\n\nStart with a plain summary: what the default run needs and whether anything leaves the machine. Then a table of capabilities with columns for required, optional, declared and the evidence (step or script). List undeclared and surplus capabilities and unreadable steps separately, and finish with suggested wording for the skill's compatibility field or README.\n\n## Worked example\n\n**Request:** Audit the default mode. Preserve the capability names shown.\n\n**Supplied material:**\n\n```text\nDeclared in order: file-read, file-write, network-read.\nStep A always: file-read source CSV. B always: file-write summary. C only if share selected: remote-publish summary to workspace. Helpers inspected; no other operations.\n```\n\n**Answer:** The default run needs permission to read the local CSV and write the summary. It can run offline. Sharing also needs remote-publish access to the workspace, which the manifest omits. None of the inspected steps uses the declared network-read capability.\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\nUsing the supplied canonical capability names, return required, optional, undeclared, surplus and unknown_steps as arrays in first occurrence order (surplus in declaration order). Deduplicate capabilities; required takes precedence over optional. undeclared contains known requirements absent from declarations. If any active or optional step is opaque, mark no declaration surplus because that step may use it.\n\n## Sources\n\n- [Agent Skills specification: compatibility and allowed-tools fields](https:\/\/agentskills.io\/specification): The compatibility field describes environment needs such as packages and network access. The allowed-tools field is a space-separated list of pre-approved tools, marked experimental, with support varying between agents.\n- [Model Context Protocol specification (2025-11-25): tools](https:\/\/modelcontextprotocol.io\/specification\/2025-11-25\/server\/tools): Says clients must treat tool annotations as untrusted unless they come from trusted servers, that a human should be able to deny tool invocations, and that clients should confirm sensitive operations and log tool use.\n- [Claude Code documentation: skills](https:\/\/code.claude.com\/docs\/en\/skills): In Claude Code, allowed-tools lets the listed tools run without asking during the turn that invokes the skill and does not restrict other tools, and users are told to review the allowed-tools of skills checked into a repository.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/document-skill-tool-requirements\n","scope":"contextual","trigger_keywords":["Document a skill\u2019s real tool and permission requirements","document-skill-tool-requirements","document skill tool requirements","What access does this skill really need, so I can tell people before they install it?","What access does this skill really need, so I can tell people before they install it","tools this skill needs","skill tool requirements","dependencies for this skill"],"is_private":true,"is_active":true,"scripts":[{"name":"document-skill-tool-requirements-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":"document-skill-tool-requirements-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: document-skill-tool-requirements\ndescription: \"Read a skill's instructions and helper scripts to list the file, network and service permissions it really needs in each mode, and compare them with what its manifest declares. Use when someone is publishing a skill, reviewing one before installing it, or writing its compatibility or allowed-tools notes.\"\nlicense: CC-BY-4.0\nmetadata:\n  author: Raq.com\n  version: \"2026-11-22\"\n  homepage: https:\/\/skills.raq.com\/skills\/document-skill-tool-requirements\n---\n\n# Document a skill\u2019s real tool and permission requirements\n\nRead a package\u2019s steps and helper inventory to describe the file, network and service permissions a user needs for each supported mode.\n\n## When to use this skill\n\n- Someone is publishing a skill and needs to tell users what access it requires.\n- An administrator is reviewing a third-party skill before allowing it in their organisation.\n- A skill's declared tools or allowed-tools list may not match what its scripts actually call.\n\n## When not to use it\n\n- Granting or configuring permissions in a particular client. Use that client's permission settings.\n- A full security audit of bundled code, such as hunting for malicious behaviour. This skill documents what the code does when read and flags what cannot be read.\n- Running the skill to see what happens. A test run is separate work and can cause the very effects being documented.\n\n## What you need\n\n- Skill instructions plus readable helper scripts or a trusted operation summary, with normal and optional branches identified.\n- The manifest\u2019s declared capabilities, selected feature mode if any and the host's actual configuration where available. Do not include credential values.\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 SKILL.md and the full contents of every bundled script, or a trusted description of each operation? Unread code can only be listed as unknown.\n- Which modes will users run: only the default, or optional branches such as sharing or export?\n- What does the manifest declare (compatibility, allowed-tools or a client-specific capability list), and which client is the target?\n\n## Method\n\n1. List the skill's behaviours in call order, from SKILL.md and from each bundled helper read in full. For each, record what it reads, what it writes and any service it contacts, with data classes and destinations but without personal data or secret values.\n2. Map each behaviour to the capability names the person uses, such as file-read, file-write, network-read or remote-publish, and remove duplicates.\n3. Mark each operation as required (every normal run) or optional (only in a branch). If the person has selected a branch, move that branch's operations into the required set; required takes precedence over optional.\n4. Compare with the manifest. List undeclared requirements (used but not declared) and surplus declarations (declared but unused). A listed tool does not prove it is used, and an unlisted tool may still be called by a helper.\n5. List any step whose code or destination cannot be read as unknown, and do not run it. While an opaque step remains in an active or optional branch, call no declaration surplus, because that step may use it.\n6. Be precise about allowed-tools. The specification marks it experimental with support varying by client, and in Claude Code it pre-approves the listed tools for the turn without restricting others. It is not a cross-client permission grant or a sandbox.\n7. For human readers, separate actions that only touch local files from those that send data or change remote state, and separate permissions required from permissions already granted on the host.\n\n## Checks before you deliver\n\n- A tool called 'preview' can still write a draft. Inspect the implementation or trusted operation description.\n- Optional export code must appear in the requirements even when the default workflow stays local.\n- Trusting a server's tool annotations, such as a read-only hint. The MCP specification says clients must treat annotations as untrusted unless they come from trusted servers.\n- Copying credentials or sample personal data into the requirements document while describing what a helper reads.\n- Declaring a capability unused while an unread vendor helper could still call it.\n\n## How to present the result\n\nStart with a plain summary: what the default run needs and whether anything leaves the machine. Then a table of capabilities with columns for required, optional, declared and the evidence (step or script). List undeclared and surplus capabilities and unreadable steps separately, and finish with suggested wording for the skill's compatibility field or README.\n\n## Worked example\n\n**Request:** Audit the default mode. Preserve the capability names shown.\n\n**Supplied material:**\n\n```text\nDeclared in order: file-read, file-write, network-read.\nStep A always: file-read source CSV. B always: file-write summary. C only if share selected: remote-publish summary to workspace. Helpers inspected; no other operations.\n```\n\n**Answer:** The default run needs permission to read the local CSV and write the summary. It can run offline. Sharing also needs remote-publish access to the workspace, which the manifest omits. None of the inspected steps uses the declared network-read capability.\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\nUsing the supplied canonical capability names, return required, optional, undeclared, surplus and unknown_steps as arrays in first occurrence order (surplus in declaration order). Deduplicate capabilities; required takes precedence over optional. undeclared contains known requirements absent from declarations. If any active or optional step is opaque, mark no declaration surplus because that step may use it.\n\n## Sources\n\n- [Agent Skills specification: compatibility and allowed-tools fields](https:\/\/agentskills.io\/specification): The compatibility field describes environment needs such as packages and network access. The allowed-tools field is a space-separated list of pre-approved tools, marked experimental, with support varying between agents.\n- [Model Context Protocol specification (2025-11-25): tools](https:\/\/modelcontextprotocol.io\/specification\/2025-11-25\/server\/tools): Says clients must treat tool annotations as untrusted unless they come from trusted servers, that a human should be able to deny tool invocations, and that clients should confirm sensitive operations and log tool use.\n- [Claude Code documentation: skills](https:\/\/code.claude.com\/docs\/en\/skills): In Claude Code, allowed-tools lets the listed tools run without asking during the turn that invokes the skill and does not restrict other tools, and users are told to review the allowed-tools of skills checked into a repository.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/document-skill-tool-requirements\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\/document-skill-tool-requirements\nReferenced third-party materials retain their own terms.\n"},{"path":"examples\/worked-example.md","content":"# An optional export uses an undeclared tool\n\nAudit the default mode. Preserve the capability names shown.\n\n## Supplied material\n\nDeclared in order: file-read, file-write, network-read.\nStep A always: file-read source CSV. B always: file-write summary. C only if share selected: remote-publish summary to workspace. Helpers inspected; no other operations.\n\n## Worked answer\n\nThe default run needs permission to read the local CSV and write the summary. It can run offline. Sharing also needs remote-publish access to the workspace, which the manifest omits. None of the inspected steps uses the declared network-read capability.\n\n## Reasoning\n\nThe default is local, but a potential outside write belongs in the published requirements.\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":"Audit the default mode. Preserve the capability names shown.\nReturn only the JSON specified in SKILL.md for this test.\n\nDeclared in order: file-read, file-write, network-read.\nStep A always: file-read source CSV. B always: file-write summary. C only if share selected: remote-publish summary to workspace. Helpers inspected; no other operations.\n"},{"path":"tests\/case-1\/expected.json","content":"{\n    \"required\": [\n        \"file-read\",\n        \"file-write\"\n    ],\n    \"optional\": [\n        \"remote-publish\"\n    ],\n    \"undeclared\": [\n        \"remote-publish\"\n    ],\n    \"surplus\": [\n        \"network-read\"\n    ],\n    \"unknown_steps\": []\n}\n"},{"path":"tests\/case-1\/explanation.txt","content":"The default is local, but a potential outside write belongs in the published requirements.\n"},{"path":"tests\/case-2\/request.txt","content":"Audit this run with the archive mode selected.\nReturn only the JSON specified in SKILL.md for this test.\n\nDeclared: file-read, file-write, archive-write, network-read.\nStep L always: file-read notes. M if archive selected: archive-write bundle. N if archive selected: vendor helper, contents unavailable. No other known capabilities.\n"},{"path":"tests\/case-2\/expected.json","content":"{\n    \"required\": [\n        \"file-read\",\n        \"archive-write\"\n    ],\n    \"optional\": [],\n    \"undeclared\": [],\n    \"surplus\": [],\n    \"unknown_steps\": [\n        \"N\"\n    ]\n}\n"},{"path":"tests\/case-2\/explanation.txt","content":"The archive becomes required in the selected mode. With N unread, declaring file-write or network-read unused would be speculative.\n"}],"is_active":true,"is_approved":false}]}]}