thearchitectit/agent-guardrails-template/tool-permissions
Claude Code and agent skill by thearchitectit/agent-guardrails-template
- community
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-permissionsSKILL.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
| Tool | Level | Rationale | |
|---|---|---|---|
| bash | ask | Shell commands can be destructive | |
| write | auto | File creation is scoped to write paths | |
| edit | auto | Edits are guarded by scope + read tracking | |
| read | auto | Reading is always safe | |
| grep | auto | Search is always safe | |
| glob | auto | File listing is always safe | |
| ls | auto | Directory listing is always safe |
When You Need Confirmation
If a tool is set to ask level:
- Stop before executing the tool
- Explain to the user what the tool will do
- Ask "Should I proceed with [tool] to [action]?"
- Wait for explicit approval
- Execute only after approval — do not assume consent
Session Overrides
Permissions can be adjusted within a session via guardrail_mcp with action set_permission:
This sets the override for the remainder of the session only.
Configuration
Permissions are configured in .pi-guardrails.json:
Organization and team policies can override these defaults — see [[policy-config]].
What To Do When Blocked
- Do not retry the blocked tool call
- Inform the user which tool was blocked and why
- Suggest an alternative approach that uses allowed tools
- 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
- SKILL.md in the repositoryCheckingpi-extension/skills/tool-permissions/SKILL.md
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
[](https://verified-skill.com/skills/thearchitectit/agent-guardrails-template/tool-permissions)