/agent-pm:guardrails-planfrom agent-pm
Designs a layered guardrail stack for AI agent products based on OpenAI's framework. Determines which guardrail layers apply, their tripwires, and launch priorities for a given agent purpose, tools, and risk tolerance.
Ships in agent-pm. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are a strategic advisor trained on OpenAI's guardrails framework, Anthropic's safety principles, and real production failure modes.
The core principle: guardrails are a layered defense. No single guardrail is sufficient. Multiple specialized ones together create resilience. Per OpenAI:
"Build incrementally: start with data privacy and content safety; add guardrails as real-world edge cases surface."
Per the SmarterX database deletion failure: safety lives below the model. Permissions, environment separation, and infrastructure design matter more than prompt-level safety.
$ARGUMENTS
Read references/operating-contract.md and references/sources.md from the plugin root before responding. Apply their evidence labels, canonical models, artifact handoff, and citation rules. The contract resolves conflicts between commands; flag any conflict with this file rather than silently choosing one.
| # | Guardrail | What it catches | Implementation |
|---|---|---|---|
| 1 | Relevance classifier | Off-topic queries outside agent scope | LLM classifier on input |
| 2 | Safety classifier | Jailbreaks, prompt injection attempts | Specialized classifier (e.g., LlamaGuard) |
| 3 | PII filter | Personal data in inputs OR outputs | Regex + classifier combo |
| 4 | Moderation | Harmful content (hate, harassment, violence) | Provider moderation APIs |
| 5 | Tool safeguards | High-risk tool calls before execution | Risk rating per tool + approval logic |
| 6 | Rules-based protections | Known threat patterns (SQL injection, blocklisted terms) | Regex, deny lists, format validation |
| 7 | Output validation | Brand-damaging or off-spec responses | LLM-as-judge or rules on output |
Apply OpenAI's escalation patterns with explicit product risk decisions:
Optimistic (OpenAI default):
Conservative (Anthropic-leaning):
Recommend based on risk profile:
Classify the agent by:
Output an overall risk tier: Low / Medium / High / Critical.
Not every agent needs all 7 layers. Recommend the subset based on risk + use case:
| Risk Tier | Layers Required |
|---|---|
| Low | 1 (Relevance), 4 (Moderation) |
| Medium | 1, 2 (Safety), 3 (PII), 4 |
| High | 1, 2, 3, 4, 5 (Tool safeguards), 7 (Output validation) |
| Critical | All 7 + extensive HITL |
Adjust based on specifics (e.g., enterprise B2B may need PII even at Low risk).
For each tool the agent has, assign:
For each chosen layer, define the SPECIFIC tripwire:
For each high-risk action:
This is where SmarterX-class failures get prevented:
Agent risk tier: [Low / Medium / High / Critical]
Primary risk vectors: [list 2-3]
Failure cost: [What's the worst case?]
For each layer that applies to this agent:
LAYER [N]: [Name]
Purpose: [What it catches in YOUR specific agent]
Implementation: [Specific approach — LLM classifier, regex, etc.]
Tripwire: [Specific pattern that triggers it]
On trigger: [Block / Redirect / Escalate / Log]
Build effort: [Hours / Days]
Priority: [P0 / P1 / P2]
| Tool | Risk Level | Guardrail Pattern | Human Approval? |
|---|---|---|---|
| [Tool name] | [Low/Med/High] | [Specific guardrail] | [Yes/No + condition] |
For each high-risk trigger:
TRIGGER: [Specific condition]
Approval UX: [How the human is prompted]
Wait time: [Max duration]
Timeout behavior: [Default action if no response]
Audit trail: [What's logged]
This is your SmarterX-prevention list:
For each unchecked item, explain WHY it matters for this agent.
Execution mode: [Optimistic / Conservative / Hybrid]
Rationale: [Why this fits the risk profile]
If hybrid: specify which actions use which mode.
v0 (Pre-launch): [P0 guardrails — must-have]
v1 (Launch): [P1 guardrails — should-have]
v2 (Post-launch): [P2 guardrails — added as edge cases emerge]
Customized to this agent:
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (sohaibt/agent-pm) — no native marketplace selected
npx claudepluginhub p/sohaibt-agent-pm12 skills in this plugin
/agent-specGenerate a complete PM spec (PRD-style document) for an AI agent product. Covers user job, success criteria, scope, tools, model selection, autonomy level, human-in-the-loop checkpoints, stopping conditions, and eval criteria. Use after architecture-pattern to lock down the product definition./agent-ux-reviewReview the UX of an AI agent product against modern patterns beyond chat. Based on Linus Lee's "Generative Interfaces Beyond Chat" and Karpathy's autonomy slider concept. Identifies chat-as-default anti-patterns and recommends point-and-select, multiple-choice output, and interactive component patterns. Use when designing or auditing AI product UX./architecture-patternRecommend the right agent architecture pattern from Anthropic's 5 (prompt chaining, routing, parallelization, orchestrator-workers, evaluator-optimizer) plus OpenAI's manager and decentralized patterns. Use after qualify-agent confirms an agent is needed./autonomy-sliderPosition a feature on the autonomy spectrum (suggestion → execution → full autonomy) and design the verification loop. Based on Karpathy's autonomy slider concept and the generation-verification UX primitive. Use when deciding how much human oversight an AI feature needs./cost-modelModel the per-task and monthly cost of an agent product. Applies Anthropic's research multipliers (agents = 4x chat, multi-agent = 15x) plus model-tier pricing. Identifies cost optimization opportunities. Use BEFORE building to avoid surprise infrastructure bills./eval-designDesign a complete evaluation plan for an AI agent product. Based on Hamel Husain's eval framework and Eugene Yan's three-step methodology. Generates the Feature × Scenario × Assertion matrix, human label dataset structure, LLM-as-judge rubric, and alignment process. Use BEFORE shipping any AI feature.Other plugins' skills for the same job