PlaygroundCatalog › LLM Guardrails Spec
LG

LLM Guardrails Spec

🔵 Stable🕐 updated 2026-06-29 🔷 SkillSpec L3 pm-ai

Specify the safety and reliability guardrails for an LLM feature before it ships. Use when asked to define LLM guardrails, add safety controls to an AI feature, prevent prompt injection or jailbreaks, or harden a chatbot/agent against misuse. Produces a guardrails spec — threats, input/output controls, refusal and escalation policy, logging, and a red-team test set — mapped to where each control runs.

▶ Run it free — no key needed 📝 Grade your existing draft View SKILL.md ↗

What to give it

The feature — what the LLM does, who uses it, and what it can access (data, tools, actions).
Trust boundary — is input from untrusted users? Does the model call tools or take actions?
Sensitivity — what data is in scope (PII, financial, health), and the regulated/brand constraints.
Acceptable behaviour — what's in scope to answer, what must be refused, and the tone.

✅ The bar it holds itself to

Every skill in this library self-verifies — these are this skill's own quality checks, straight from its definition.

Retrieved / third-party / user content is treated as untrusted **data**, never as instructions
High-impact actions require a confirmation or human gate (least privilege on tools)
Every threat has at least one control, and each control names the layer it runs at
Refusal wording and escalation path are specified, not left to the model
Logging redacts PII and never records secrets/keys
A red-team test set with expected safe outcomes is included

⚠️ What it refuses to do

Do not rely on the system prompt alone — prompt-only guardrails are bypassable; defend in layers
Do not trust retrieved or tool-returned content as instructions — that's the injection vector
Do not grant the model broad tool/action access "for flexibility" — least privilege, allowlist
Do not ship without a red-team set — untested guardrails are decoration
Do not log raw prompts/outputs with PII or secrets in the name of debugging

Install

npx pm-claude-skills add --agent claude   # or codex · cursor · gemini · hermes
# or one-line MCP (every skill, any client):
claude mcp add pm-skills -- npx -y pm-claude-skills-mcp

Related skills

🔌 Embed this skill

Drop this on your blog, docs, or site — it renders a "Run this skill" card:

<div data-pm-skill="llm-guardrails-spec"></div>
<script src="https://mohitagw15856.github.io/pm-claude-skills/embed.js" async></script>

💬 Discussion

LLM Guardrails Spec is one of 551 open-source professional AI agent skills — all SkillSpec L3. Try them all in the browser · ⭐ Star on GitHub · Browse the full catalog