Tool guard

From 0dayInc/pwn · View interactive version

Tool guard is an AI agent skill from the GitHub repository 0dayInc/pwn. Drive PWN::AI::Agent::ToolGuard from pwn_eval.

How to use this skill

Skill file

PWN::AI::Agent::ToolGuard

Shared pre-dispatch guards for the two high-volume runtime tools (shell / pwn_eval). Rejects placeholder payloads, aliases wrong schema keys, and names the shell that will actually run the command.

When to use

Call PWN::AI::Agent::ToolGuard from pwn_eval when the task needs this module.

Do not reimplement it in shell.

Methodologies

Generated from pwn/ai/agent/tool_guard.rb. Prefer the public class methods below.

Class methods take (opts = {}) and read opts.

How to call

PWN::AI::Agent::ToolGuard.help
PWN::AI::Agent::ToolGuard.unwrap_payload(opts)

Public methods

Source

pwn/ai/agent/tool_guard.rb

Verification

PWN::AI::Agent::ToolGuard.respond_to?(:unwrap_payload) after the

module is loaded. Read the source for parameter names.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.