Individual skill
tool-permission-system
Design and implement a layered, configurable permission/safety system for agent tools. Use this skill when building an agent that needs to control which tool calls are auto-allowed, which require user confirmation, and which are denied — especially when the system must be configurable across multiple scopes (project/user/enterprise) and extensible via hooks. Triggers on: "权限系统", "工具安全", "tool permission", "permission system", "tool safety", "allow/deny rules", "hook system", "构建安全机制".
skills/tool-permission-system/SKILL.md
Source commit e5ba66cac91c857dce254dc6b6195d52201068d8
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 11, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 203
- Repository last updated
- Aug 26, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agent-skills Repository topic
- agentskills Repository topic
- anthropic Repository topic
- anthropic-claude Repository topic
- growth-investing Repository topic
- investing Repository topic
- skills Repository topic
- stock-analysis Repository topic
- book2skills Repository topic
- investing-skills Repository topic
- design Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
LICENSEasset · 626 bytesREADME.mddoc · 2,995 bytesSKILL.mdcore · 10,534 bytesSKILL.mdcore · 10,534 bytesagents/openai.yamlasset · 321 bytesreferences/dangerous-patterns.tsruns · 3,083 bytesreferences/denial-tracking.tsruns · 3,131 bytesreferences/hook-system.mddoc · 6,122 bytesreferences/permission-pipeline.mddoc · 7,843 bytesreferences/permission-types.tsruns · 7,786 bytesreferences/settings-examples.jsonasset · 4,068 bytestool-permission-system.zipasset · 21,925 bytes
Read excerpt
# Tool Permission System
## Core Idea
Every time an agent calls a tool, a **permission pipeline** runs before execution. This pipeline is the single place that decides: auto-allow, ask the user, or deny. The pipeline is layered — different stakeholders (enterprise admin, user, project team, session) can each contribute rules, with higher layers overriding lower ones.
```
Tool call request
↓
[硬否决] Deny rules → immediate deny
↓
[强制确认] Ask rules → force prompt (even in bypass mode)
↓
[工具自身] Tool's checkPermissions() → tool-specific logic