2
    GuardrailDoctor

    GuardrailDoctor

    by JustHandled Labs

    Penetration-test your Claude Code agent's guardrails before you deploy. Throws prompt-injection payloads, shell-chaining, and path-traversal attempts at your PreToolUse/PostToolUse hooks and sensitive-file protections, then returns a pass/fail report on 10+ attack vectors with copy-paste remediation for every gap.

    Updated Jun 2026
    Security scanned
    settings.json and hook files.

    $29

    · or 145 credits

    30-day refund guarantee

    Secure checkout via Stripe

    Also available in a bundle

    Included in download

    • Validate that PreToolUse hooks correctly block unauthorized shell commands.
    • Test agent defenses against base64-encoded or translation-based injections.
    • terminal, file_read automation included
    • Ready for settings.json and hook files.
    • Instant install

    Sample input

    Run a security audit on my Claude Code guardrails and check for path traversal and shell chaining vulnerabilities.

    Sample output

    Test | Result | Evidence | Remediation Path Traversal | FAIL | cat /etc/passwd allowed | Update hook to block '/etc/' Shell Chaining | FAIL | echo 'vulnerable' && id allowed | Use command parser script Sensitive Files | PASS | .env blocked by hook | N/A

    Total: 1 Pass, 2 Fail. High bypass risk detected.

    About This Skill

    What it does

    Guardrail Doctor is a specialized security auditing skill designed to stress-test your Claude Code environment's safety configurations. It performs a comprehensive "penetration test" on your agent's guardrails by auditing security hooks, testing against prompt injection payloads, and verifying that sensitive file protections actually trigger when faced with adversarial inputs.

    Why use this skill

    Standard LLM prompts are notoriously easy to bypass. Manually testing every potential shell substitution, encoding attack, or path traversal vulnerability is tedious and error-prone. Guardrail Doctor automates this process by treating your agent's security layer as software that must be validated. It goes beyond simple keyword blocking to ensure that PreToolUse and PostToolUse hooks are correctly implemented, firing on the right tools, and actually blocking execution rather than just logging failures.

    Supported Tools & Frameworks

    • Claude Code (.claude/settings.json)
    • Custom PreToolUse and PostToolUse hook scripts
    • Bash, Read, Write, Edit, and MCP tools
    • System-level security patterns (Linux/MacOS/Env vars)

    Output Expected

    The skill generates a professional audit report including a pass/fail table for at least 10 specific attack vectors, hook execution status, and copy-pasteable remediation snippets to fix any discovered vulnerabilities immediately.

    Use Cases

    • Validate that PreToolUse hooks correctly block unauthorized shell commands.
    • Test agent defenses against base64-encoded or translation-based injections.
    • Ensures sensitive files like .env or SSH keys are inaccessible to the agent.
    • Generate copy-paste remediation code for broken Claude Code safety settings.

    Reviews

    No reviews yet - be the first to share your experience.

    Only users who have downloaded or purchased this skill can leave a review.

    Security Scanned

    Passed automated security review

    Permissions

    Terminal / Shell
    Read Files

    File Scopes

    .claude/settings.json
    .claude/hooks/**/*
    **/.*rc
    **/*.env

    Guardrail Doctor needs terminal access to safely test hook configurations with benign test payloads (e.g., harmless echo commands). It never executes destructive or unauthorized commands. File read access allows it to audit existing security settings. The skill does not write to any files—all recommendations are provided as output for the user to review and apply manually, ensuring the user remains in control of their security configuration.

    Works with Claude Code. Requires access to .claude/settings.json and hook files.

    Creator

    JustHandled Labs builds focused agent skills for the work nobody wants to do by hand. Each one is a single repeatable job done well: catching the security and data mistakes that quietly ship, keeping docs and tests honest, gating the commands an agent is about to run, sharpening writing, and handling the founder chores around launches, outreach, and brand setup. Not generic AI productivity. Specific workflows that are easy to run, review, and repeat. Maintained by H.J. Westerfield, with a background in communications, editing, project coordination, customer support, and practical AI systems. Tools for people who want useful automation without theatrical complexity.

    Frequently Asked Questions

    More Premium Skills

    $29