thearchitectit/agent-guardrails-template/tool-permissions

Claude Code and agent skill by thearchitectit/agent-guardrails-template

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Per-tool permission levels (auto/ask/blocked) that gate which tools the agent can use

Install

npx vskill@latest install thearchitectit/agent-guardrails-template/tool-permissions

SKILL.md

Tool Permission Control

The pi-guardrails extension enforces tool-level permissions. Before any tool call executes, the permission handler checks whether the tool is allowed, requires confirmation, or is blocked.

Automatic Enforcement

The permission handler runs on every tool_call event before execution:

  • auto: Tool executes immediately (no confirmation needed)
  • ask: Tool execution is paused and you must ask the user for approval
  • blocked: Tool execution is refused with reason

Default Permission Matrix

ToolLevelRationale
bashaskShell commands can be destructive
writeautoFile creation is scoped to write paths
editautoEdits are guarded by scope + read tracking
readautoReading is always safe
grepautoSearch is always safe
globautoFile listing is always safe
lsautoDirectory listing is always safe

When You Need Confirmation

If a tool is set to ask level:

  1. Stop before executing the tool
  2. Explain to the user what the tool will do
  3. Ask "Should I proceed with [tool] to [action]?"
  4. Wait for explicit approval
  5. Execute only after approval — do not assume consent

Session Overrides

Permissions can be adjusted within a session via guardrail_mcp with action set_permission:

action: set_permission
toolName: bash
level: auto
reason: User approved bash for this task

This sets the override for the remainder of the session only.

Configuration

Permissions are configured in .pi-guardrails.json:

json
{
"toolPermissions": {
"defaultLevel": "auto",
"tools": {
"bash": "ask",
"write": "auto",
"edit": "auto",
"read": "auto"
}
}
}

Organization and team policies can override these defaults — see [[policy-config]].

What To Do When Blocked

  1. Do not retry the blocked tool call
  2. Inform the user which tool was blocked and why
  3. Suggest an alternative approach that uses allowed tools
  4. If the block seems incorrect, suggest the user update their permission configuration

References

  • [[policy-config]] — How permission policies cascade from org → team → project
  • [[guardrails-core]] — Core guardrail tools overview

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
78
Repository forks
2
7-day trend score
22

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/thearchitectit/agent-guardrails-template/tool-permissions/badge)](https://verified-skill.com/skills/thearchitectit/agent-guardrails-template/tool-permissions)

Something wrong with this skill or its page? Tell us.