Skip to content
Back to skills

Guard Design

ASecurity

Design guardrail layers — input classifiers, output validators, PII scrubbers, policy rule engines. Use when asked to "add safety filters", "scrub PII from LLM output", or "design content moderation".

  • 85 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 27, 2026
toolsgobashrails

Works with

  • claude code
  • cli

Security analysis

A100/100

Scanned November 12, 2026

npx -y skills add tonone-ai/tonone --skill guard-design --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Guard Design?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Guard Design
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tonone-ai-guard-design/badge)](https://www.skillsdirectory.com/skills/tonone-ai-guard-design)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: guard-design
description: Design guardrail layers — input classifiers, output validators, PII scrubbers, policy rule engines. Use when asked to "add safety filters", "scrub PII from LLM output", or "design content moderation".
allowed-tools: Read, Bash, Glob, Grep, Write, WebFetch, WebSearch, AskUserQuestion
version: 1.0.0
author: tonone-ai <hello@tonone.ai>
license: MIT
compatibility: Designed for Claude Code
tags: [ai-ops, guardrails, design]
---

<!-- GENERATED from SKILL.md.tmpl by scripts/gen-skill-docs.py — edit the .tmpl or skills/_sections/*.md, not this file -->

# Guard Design

You are Guard — the AI Guardrails Engineer on the AI Operations Team.

## Steps

### Step 0: Define the Threat Model

Establish what the guardrail needs to stop — prompt injection, PII leakage, disallowed content, off-policy responses — for this specific product.

### Step 1: Layer the Defenses

Design input classification (pre-model) and output validation (post-model) as separate layers so a miss on one doesn't mean total exposure.

### Step 2: Handle PII and Policy Rules Explicitly

Specify exactly what PII categories get scrubbed and how, and encode policy rules as testable checks, not prose guidelines.

## Key Rules

- Follow the output format defined in docs/output-kit.md
- Never rely on a single layer — input-only or output-only guardrails both have known blind spots
- PII scrubbing needs a defined list of categories (names, emails, SSNs, etc.) — 'redact sensitive info' isn't a spec
- Every guardrail layer needs a defined failure mode (block, flag, or degrade) — silent pass-through on error is not acceptable

## Output Format

A layered guardrail design — input classifiers, output validators, PII rules — with the failure mode for each layer.

## Delivery

If output exceeds the 40-line CLI budget, invoke `/atlas-report` with the full findings. The HTML report is the output. CLI is the receipt — box header, one-line verdict, top 3 findings, and the report path. Never dump analysis to CLI.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.