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", "构建安全机制".
$npx -y skills add simbajigege/book2skills --skill tool-permission-systemInstalls into the current project.
Run `npx skills use "https://github.com/simbajigege/book2skills" --skill "simbajigege/book2skills/tool-permission-system"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/simbajigege/book2skills" that are relevant to the current task. Run `npx skills add "https://github.com/simbajigege/book2skills"` and select the relevant skills, then follow their instructions.