- Home
- Skills
- Testing & Debugging
- AI Verify Guards
AI Verify Guards
Trust the shell, not the summary. Zero-dependency shell guards & Claude Code hooks that catch silent AI coding failures before commit.
Free
Works with the AI Agents you already use
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 Type | Input Value | Result | Status |
|---|---|---|---|
| Pattern | `^[0-9]{4}-(0[1-9] | 1[0-2])-(0[1-9] | [12][0-9] |
| Valid Input | 2024-02-29 | MATCHED | PASS |
| Adversarial | 2024-13-01 | REJECTED | PASS |
| Adversarial | 2024-05-32 | REJECTED | PASS |
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
remodule. git diff --stat: 0 files changed (verification only).
Next steps
- Integrate the pattern into the
UserValidationschema. - Run the
jsonguard on the updated config file. - 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 | tailunderset -o pipefailsotailcan never hide a failed suite with exit 0. - Catch non-strict JSON: Rejects trailing commas AND Python's silent
NaN/Infinitybug (parse_constant). - Catch hidden CRLF & bash syntax breaks: Runs
bash -nand binary\rchecks 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.jsonfiles 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
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
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