File Permission Test

🌐Community
by matteocervelli · vlatest · Repository

Checks if an AI agent has read/write permissions to a specified file path.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add file-permission-test npx -- -y @trustedskills/file-permission-test
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "file-permission-test": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/file-permission-test"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill allows an AI agent to test if a given user has permission to access a specified file. It determines whether the user can read, write, or execute the file based on the operating system's permissions settings. The agent can then report these findings and adjust actions accordingly.

When to use it

  • Automated Security Audits: Regularly check file permissions across a server to identify potential vulnerabilities.
  • User Access Control: Verify if a user has the necessary rights before allowing them to modify or execute a script.
  • Troubleshooting Permission Errors: Diagnose why a user is unable to access or manipulate a specific file.
  • Scripted Deployment: Ensure correct permissions are set on deployed files and directories.

Key capabilities

  • File permission checking (read, write, execute)
  • Operating system compatibility
  • User identification for permission assessment

Example prompts

  • "Can user 'john' read the file '/var/log/syslog'?"
  • "Does the current user have execute permissions on /opt/my_script.sh?"
  • "Check if anyone can write to the configuration file at /etc/app.conf."

Tips & gotchas

The skill requires appropriate operating system access for accurate permission checks. Results are dependent on the underlying OS's permission model and may require elevated privileges in some cases.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
matteocervelli
Installs
6

🌐 Community

Passed automated security scans.