agent-guardrails

Enforces pre-commit hooks and secret detection in AI agent projects using bash and git.

15|1|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/jzOcb/agent-guardrails --skill agent-guardrails
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-guardrails
Source: https://github.com/jzOcb/agent-guardrails/tree/main
Command: npx skills add https://github.com/jzOcb/agent-guardrails --skill agent-guardrails

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bash, git, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill prevents AI agents from bypassing project standards by using code hooks, secret detection, deployment verification, and import registries, ensuring project integrity and reliability.

Core Features & Use Cases

  • Pre-commit Hooks: Blocks commits with bypass patterns and hardcoded secrets.
  • Pre-creation Checks: Prevents reimplementation by showing existing modules and functions.
  • Post-creation Validation: Detects duplicate functions, missing imports, and bypass patterns.
  • Secret Detection: Scans for hardcoded tokens, keys, passwords.
  • Deployment Verification: Ensures new features are wired into production before marking them "done".
  • Use Case: Imagine you have a complex project with numerous components. Use this Skill to enforce consistent coding standards, prevent secret leaks, and ensure all features are properly integrated.

Quick Start

Use the agent-guardrails skill to enforce pre-commit checks and secret detection in your project.

Frequently Asked Questions about agent-guardrails

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce coding standards for AI agents using git hooks?

You can enforce coding standards for AI agents by implementing pre-commit hooks that block commits containing bypass patterns and hardcoded secrets. This approach uses executable code hooks to validate agent reliability instead of relying on markdown rules.

What is the best way to prevent hardcoded secrets in AI-generated code?

The best way to prevent hardcoded secrets in AI-generated code is to run secret detection scans that identify hardcoded tokens, keys, and passwords. This validation runs during pre-commit and post-creation stages to ensure project integrity.

Do I need bash and git to run pre-commit checks and secret detection?

Yes, you need bash and git to run these pre-commit checks and secret detection processes. These dependencies are required to execute the code-based rules and validation logic that enforce project standards.

How does deployment verification ensure new features are wired into production?

Deployment verification ensures new features are wired into production by validating that components are properly integrated before they are marked as done. This prevents AI agents from bypassing deployment standards and leaving features disconnected.

Can I prevent AI agents from duplicating existing functions during code creation?

You can prevent AI agents from duplicating existing functions by running pre-creation checks that show existing modules and functions. Post-creation validation then detects duplicate functions and missing imports to ensure code uniqueness.

Why use code hooks instead of markdown rules for AI agent reliability?

Code hooks provide executable enforcement for AI agent reliability by actively blocking invalid commits and detecting secrets, whereas markdown rules are passive and can be bypassed by agents during development and deployment.