agentleFS
alexzhu0alexzhu0/agent-ready-skills/skills/tool-permission-audit/SKILL.md

tool-permission-audit

Skill0 starsChanged 5 months agoMITView on GitHub

Use when auditing AI-agent tool permissions, command policies, connector access, GitHub actions, file-system scopes, or automation rules for risk, approval gates, and least-privilege controls.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use when an agent can read/write files, call connectors, run commands, publish, or touch credentials.

    line 14
  2. Distinctive:

    Do not use when the agent has no tool access and only produces plain text.

    line 15
  3. Distinctive:

    Check whether approval gates match the risk.

    line 27

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Tool Permission Audit

Purpose

Review an agent's tools and permission policy for unsafe access, unclear gates, and least-privilege gaps.

Fit

  • Use when an agent can read/write files, call connectors, run commands, publish, or touch credentials.
  • Do not use when the agent has no tool access and only produces plain text.

Inputs

  • Tool list, command allowlist, connector scopes, system instructions, or policy text.
  • User expectations for autonomy, external writes, destructive actions, and credentials.
  • Known environment restrictions.

Workflow

  1. Inventory tools and classify their side effects.
  2. Separate read-only, local write, external write, credential, and destructive actions.
  3. Check whether approval gates match the risk.
  4. Identify overbroad scopes and ambiguous wording.
  5. Recommend a least-privilege policy patch.

Output

Produce Markdown with:

  • Permission Matrix
  • Risk Summary
  • Approval Gates
  • Overbroad Access
  • Policy Gaps
  • Recommended Patch
  • Residual Risks

Validation

  • Public or external writes are clearly gated.
  • Destructive commands are not treated as normal execution.
  • Credential handling is explicit.
  • Local reversible actions are separated from irreversible actions.
  • Recommendations preserve useful autonomy where risk is low.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.