AI Verify Guards

    1

    Trust the shell, not the summary. Zero-dependency shell guards & Claude Code hooks that catch silent AI coding failures before commit.

    Free

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    AI Verify Guards

    Example session with this skill installed

    Verify the new date regex '^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$' against 2024-02-29 and an invalid month like 2024-13-01.

    • Read your context and instructions
    • Compiled the ai verify guards

    I have run the deterministic regex verification guard to ensure the pattern handles both valid leap years and invalid month ranges correctly.

    Regex Verification Results

    Input TypeInput ValueResultStatus
    Pattern`^[0-9]{4}-(0[1-9]1[0-2])-(0[1-9][12][0-9]
    Valid Input2024-02-29MATCHEDPASS
    Adversarial2024-13-01REJECTEDPASS
    Adversarial2024-05-32REJECTEDPASS

    Command Executed:

    bash scripts/verify-ai.sh regex '^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$' \
      --must-match 2024-02-29 \
      --must-reject 2024-13-01 --must-reject 2024-05-32
    

    Verification Receipt:

    • Exit Code: exit 0
    • Deterministic check completed via Python 3 re module.
    • git diff --stat: 0 files changed (verification only).

    Next steps

    1. Integrate the pattern into the UserValidation schema.
    2. Run the json guard on the updated config file.
    3. Commit the changes once the post-edit hook confirms syntax.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    AI coding agents rarely fail loudly. They fail silently and hand you a confident summary saying "Done — all tests pass."

    AI Verify Guards adds deterministic, zero-dependency shell verification checks (pure Bash + Python 3 stdlib) directly into Claude Code, Cursor, Codex, and Copilot workflows:

    • Catch false-green piped tests: Run pytest | tail under set -o pipefail so tail can never hide a failed suite with exit 0.
    • Catch non-strict JSON: Rejects trailing commas AND Python's silent NaN / Infinity bug (parse_constant).
    • Catch hidden CRLF & bash syntax breaks: Runs bash -n and binary \r checks before executing generated scripts.
    • Catch silently dropped files: Diffs source and destination file trees with comm -23.
    • Catch shape-only regexes: Tests generated patterns against adversarial inputs (like 2026-13-45).
    • Sanitize logs before pasting to LLMs: Scrubs API keys / Bearer tokens, collapses repeated errors, and caps byte budget.
    • Drop-in Claude Code PostToolUse hook: Auto-validates edited .sh, .py, and .json files automatically.

    100% free & MIT open-source. More daily verified shell receipts, interactive demos & updates: https://harveyi.com · https://x.com/lxy71 · https://github.com/haiwei971-ui/ai-verify-guards

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.

    Requires local bash and Python 3. No native Windows CMD/PowerShell support. Verification is limited to the included shell and python scripts.

    How to use

    1. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 1 day ago

    • Free with an Agensi account

    Software
    Git

    Permissions

    Terminal / Shell
    Network Access
    Read Files
    Listed1 day ago

    What's inside

    Frequently Asked Questions

    This skill provides deterministic shell-level scripts that check for issues LLMs often miss, such as silent pipe failures, hidden Windows line endings (CRLF), and non-standard JSON values like NaN or trailing commas.

    The skill is designed for local environments running Bash and Python 3, making it compatible with leading AI tools like Claude Code, Cursor, and GitHub Copilot. While it runs natively on macOS and Linux, Windows users will need a compatibility layer like WSL to execute the verification scripts.

    Setup is straightforward: you simply add the provided script directory to your environment and link the automated hooks to your agent's post-edit settings. Once configured, your agent can trigger validations like `run-strict` or `verify-ai.sh` automatically after generating code.

    You receive a full suite of zero-dependency verification scripts, including a strict command wrapper, a JSON/Regex validator, a log sanitizer for secret scrubbing, and pre-configured automation hooks for agent integration.

    No, these guards are designed to provide a deterministic "binary truth" through shell logic and Python validation, preventing the LLM from hallucinating that a broken script is functional. It acts as an external auditor that forces the agent to fix errors based on hard exit codes rather than visual intuition.

    New in Testing & Debugging

    Free