Skip to content
Agentmart
Submit a tool

agent-guardrail

Configure and test agent guardrails for input/output validation, tool-use constraints, and safety boundaries

Skill by hummbl-io

IndexedApache-2.0
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/hummbl-io-agent-guardrail

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Configure and test agent guardrails for input/output validation, tool-use constraints, and safety boundaries

Use cases: testing, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/agent-guardrail

What's inside

Skill name
agent-guardrail
Description
Configure and test agent guardrails for input/output validation, tool-use constraints, and safety boundaries
License
Apache-2.0
Instructions
81 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

---
name: agent-guardrail
description: Configure and test agent guardrails for input/output validation, tool-use constraints, and safety boundaries
version: 0.1.0
execution-mode: advisory
argument-hint: "[--agent <name>] [--type input|output|tool|safety] [--test]"
category: security
status: candidate
---
# agent-guardrail | Agent Guardrail Configurator

## When to Use
- Hardening an agent before production deployment
- Adding safety boundaries to prevent harmful or out-of-scope actions
- Validating that existing guardrails resist adversarial prompts
- Constraining tool use to approved operations and parameters

## Execution

### 1. Parse Arguments
- `--agent <name>`: target agent to configure (default all)
- `--type input|output|tool|safety`: guardrail category (default all)
- `--test`: run adversarial test suite after configuration

### 2. Configure Input Guardrails
- Prompt injection detection: pattern + classifier screening
- Topic filtering: reject out-of-scope requests
- Length and rate limits: cap input tokens and requests per minute
- PII scrubbing on inbound user messages

### 3. Configure Output Guardrails
- Content filtering: toxicity, self-harm, and policy violation classifiers
- Format validation: schema check on structured outputs
- PII redaction on outbound responses
- Refusal templates for blocked content

### 4. Configure Tool Guardrails
- Allowlist: permitted tools and parameter ranges
- Rate limiting: max tool calls per turn and per session
- Confirmation gates for destructive or irreversible operations
- Sandboxing: network and filesystem access boundaries

### 5. Configure Safety Boundaries
- Cost and token caps per session
- Loop detection: abort after N repeated tool calls
- Escalation path: hand off to human on safety triggers
- Audit logging: record all guardrail interventions

### 6. Run Test Suite (if --test)
- Execute adversarial prompt set from `_state/guardrails/tests/`
- Record pass/fail per test case and guardrail triggered
- Flag any bypass for immediate remediation

### 7. Emit Guardrail Config
- Write config to `_state/guardrails/<agent>.config.yaml`
- Write test results to `_state/guardrails/<agent>.test.md`

## Output Format

```
agent-guardrail | agent=researcher type=all test=true

## Configuration
| Category | Rules | Status |
|----------|-------|--------|
| input    | 6     | active |
| output   | 4     | active |
| tool     | 5     | active |
| safety   | 3     | active |

## Test Results
| Test ID   | Category | Result | Guardrail Triggered |
|-----------|----------|--------|---------------------|
| INJ-001   | input    | PASS   | prompt-injection    |
| TOX-003   | output   | PASS   | toxicity-filter     |
| TOOL-002  | tool     | PASS   | allowlist           |
| LOOP-001  | safety   | PASS   | loop-detection      |

## Summary
- Tests run: 24 | Passed: 23 | Failed: 1 | Bypasses: 0

## Verdict
PASS | 18 guardrails active, 23/24 tests passed, 1 failure flagged
```

## Skill Chains
- After configuring -> `[guardrail-design]` to refine guardrail architecture
- After configuring -> `[redteam]` to run advanced adversarial tests
- Before configuring -> `[agent-design]` to understand agent behavior

From hummbl-io/agent-skills, Apache-2.0.

More from hummbl-io/agent-skills

Signals

Stars
0
Forks
0
Open issues
1
Last commit (this folder)
Sep 27, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from hummbl-io

Cite this page

agent-guardrail skill. Agent Mart. https://agentmart.dev/skills/hummbl-io-agent-guardrail (last updated 2026-10-24)