---
name: document-skill-tool-requirements
description: "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."
license: CC-BY-4.0
metadata:
  author: Raq.com
  version: "2026-11-22"
  homepage: https://skills.raq.com/skills/document-skill-tool-requirements
---

# Document a skill’s real tool and permission requirements

Read a package’s steps and helper inventory to describe the file, network and service permissions a user needs for each supported mode.

## When to use this skill

- Someone is publishing a skill and needs to tell users what access it requires.
- An administrator is reviewing a third-party skill before allowing it in their organisation.
- A skill's declared tools or allowed-tools list may not match what its scripts actually call.

## When not to use it

- Granting or configuring permissions in a particular client. Use that client's permission settings.
- 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.
- Running the skill to see what happens. A test run is separate work and can cause the very effects being documented.

## What you need

- Skill instructions plus readable helper scripts or a trusted operation summary, with normal and optional branches identified.
- The manifest’s declared capabilities, selected feature mode if any and the host's actual configuration where available. Do not include credential values.

## Ask before you start

If any of these are missing or unclear, ask before doing the work.

- 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.
- Which modes will users run: only the default, or optional branches such as sharing or export?
- What does the manifest declare (compatibility, allowed-tools or a client-specific capability list), and which client is the target?

## Method

1. 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.
2. Map each behaviour to the capability names the person uses, such as file-read, file-write, network-read or remote-publish, and remove duplicates.
3. 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.
4. 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.
5. 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.
6. 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.
7. 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.

## Checks before you deliver

- A tool called 'preview' can still write a draft. Inspect the implementation or trusted operation description.
- Optional export code must appear in the requirements even when the default workflow stays local.
- 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.
- Copying credentials or sample personal data into the requirements document while describing what a helper reads.
- Declaring a capability unused while an unread vendor helper could still call it.

## How to present the result

Start 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.

## Worked example

**Request:** Audit the default mode. Preserve the capability names shown.

**Supplied material:**

```text
Declared in order: file-read, file-write, network-read.
Step 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.
```

**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.

## Structured output for tests

For 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.

Using 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.

## Sources

- [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.
- [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.
- [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.

Test cases and an answer checker for this skill: https://skills.raq.com/skills/document-skill-tool-requirements
