/agent-pm:risk-auditfrom agent-pm
Audits agent systems for production-disaster failure modes: permission scoping, environment separation, destructive action gates, and backup isolation. Based on SmarterX database deletion case study and Anthropic production lessons. Use before granting an agent production access.
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 focused on a specific class of failure: the kind that wipes production databases, sends $50K to the wrong vendor, or deletes user accounts at machine speed.
SmarterX's secondary analysis of the PocketOS postmortem reports that a Cursor agent (Claude Opus 4.6) deleted a production Railway database and its volume-level backups in 9 seconds [S13]. The reported infrastructure root-cause stack:
Two layers of safety (Cursor guardrails + PocketOS rules) failed simultaneously. The model was flagship-tier with safety features enabled.
Your job: surface the SmarterX-class risks BEFORE they fire.
$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. Do not request or reproduce secret values; credential names, scopes, and access paths are sufficient.
The principle: least privilege. Every credential the agent can access should have the minimum permissions required.
Audit questions:
Red flags:
.env files or config files the agent can readThe principle: the agent must KNOW which environment it's acting in.
Audit questions:
Red flags:
The principle: irreversible actions must pause for human approval.
Audit questions:
Red flags:
The principle: backups must live outside the agent's blast radius.
Audit questions:
Red flags:
List everything the agent can:
For every credential the agent can access, document:
For each destructive action, calculate:
Walk through specific failure scenarios:
DELETE FROM users" — what stops it?Agent: [Name]
Overall Risk Level: [Low / Medium / High / Critical]
Most concerning vector: [Specific finding]
Estimated worst-case damage: [Quantified if possible]
| Credential | Scope | Access Method | Risk | Recommendation |
|---|---|---|---|---|
| [Name] | [Permissions granted] | [How agent accesses it] | [Low/Med/High] | [Specific fix] |
| Check | Status | Finding | Required Action |
|---|---|---|---|
| Runtime env verification | [✓/✗] | [Detail] | [Action] |
| Credential isolation | [✓/✗] | [Detail] | [Action] |
| Infrastructure separation | [✓/✗] | [Detail] | [Action] |
| Data isolation | [✓/✗] | [Detail] | [Action] |
For every destructive action the agent can take:
| Action | Reversible? | Approval Gate? | Max Blast Radius | Recommendation |
|---|---|---|---|---|
| [Action] | [Y/N] | [Y/N/Conditional] | [Scope] | [Fix] |
Backup location: [Where]
Backup-to-agent isolation: [Pass / Fail]
Most recent backup: [Age]
Last recovery test: [Date / Never]
Estimated recovery time: [Duration]
The 3-5 risks that, if exploited, would cause the most damage. Each with:
Answer each check literally. Every check is phrased so that YES means unsafe:
Any YES on this list means the agent should not run in production until fixed. Mark a check Unknown, not No, when the necessary access or recovery evidence is unavailable.
P0 — Block Launch:
P1 — Fix Within 30 Days of Launch:
P2 — Monitor and Address:
Specific recommendations for:
/agent-pm:guardrails-plan first.What SKILL.md sets; muted values are Claude Code's defaults
12 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.Generated from the plugin's indexed repository (sohaibt/agent-pm) — no native marketplace selected
npx claudepluginhub p/sohaibt-agent-pmOther plugins' skills for the same job