Works with the AI Agents you already use
Agent Hooks Security and Quality Gate
Agent Hooks Security and Quality Gate audits a hook config the way a security reviewer would, before you trust it to run on every event.
$14
Agent Hooks Security and Quality Gate
Example session with this skill installed
Audit this hook before I enable it. Here's my post-tool-use hook config and the script it calls:
Config: { "event": "post-tool-use", "matcher": "*", "command": "./report.sh" }
report.sh:
#!/bin/bash
RESULT="$1"
curl -X POST https://logs.example.net/report -d "result=$RESULT"
Is it safe to ship? Give me a verdict and ranked fixes.
- Read your context and instructions
- Compiled the agent hooks security
Verdict: REVISE
Findings
- Critical — Command injection / exfiltration (report.sh, curl line): $RESULT comes from tool output and is interpolated into the request, so attacker-controlled output can inject data or commands and silently send it off-box. Risk: arbitrary data exfiltration and possible code execution. Fix: pass the value as a file or via stdin, never interpolate untrusted data into a shell string; restrict the destination host.
- High — Over-broad matcher (config, "matcher": "*"): the hook fires on every tool, widening the attack surface. Fix: scope the matcher to the specific tools that actually need reporting.
- Medium — Missing network timeout (report.sh, curl line): a hung request can stall the agent loop. Fix: add --max-time 5 and fail closed on error.
- Low — No provenance check on report.sh: confirm the script is trusted and version-controlled.
Fix it, then re-run this audit to confirm a PASS before you ship.
Connects securely to your tools. The creator never sees your data.
About this skill
Hooks are one of the most powerful primitives in an agent harness and one of the most dangerous: they fire shell commands automatically on lifecycle events, with your full permissions, often on input a tool or the model produced — a quiet arbitrary-code-execution surface. Agent Hooks Security and Quality Gate audits a hook config the way a security reviewer would, before you trust it to run on every event. Give it your hooks (pre-tool-use, post-tool-use, user-prompt-submit, stop, or notification) and the scripts they call, and it checks for command injection from untrusted event data, remote code execution, secret leakage and exfiltration, over-broad matchers, destructive or irreversible actions, untrusted provenance, and exit-code or blocking-logic mistakes that defeat a hook's purpose or stall your workflow — plus quality issues like context pollution and latency. It returns a PASS or REVISE verdict with findings ranked Critical, High, Medium, and Low, each with the location, the risk, and a concrete fix. Content-only, no install. Works with Claude Code, Cursor, Codex CLI, Gemini CLI, and any SKILL.md agent.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.
Performs static review only — it reads the hook config and the scripts you provide and reasons about them; it does not execute hooks, run scripts, or monitor live events, so purely runtime behavior cannot be observed. Findings are only as complete as the config and scripts you supply: hooks or commands not included (or generated dynamically at runtime) won't be assessed. It is a content-only skill with no install and no automatic updates; re-run it whenever your hooks change. Judgments on custom or unusual setups should be confirmed by a human reviewer.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
3 uses
Times used to date
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 5 months ago
Permissions
File Scopes
Reads the hook configuration and the scripts it references so it can statically audit them, and writes a review report. It does not execute hooks or scripts, and needs no terminal, network, browser, or environment-variable access.