Define agent tools using the fail-closed design pattern — unified name/schema/security/execution in one class, with three-layer execution (validate → permission → call). Use this skill whenever the user wants to define a new agent tool, add permission or validation logic to an existing tool, or asks about 'build a tool', '定义一个工具', 'create a tool for X', '工具定义'. Framework-agnostic: works with hermes-agent, LangChain, or any Python agent framework.
$npx -y skills add simbajigege/book2skills --skill agent-tool-builderInstalls into the current project.
Run `npx skills use "https://github.com/simbajigege/book2skills" --skill "simbajigege/book2skills/agent-tool-builder"` 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.