/agent-pm:agent-specfrom agent-pm
Generates a complete PRD-style product spec for an AI agent, covering user job, success criteria, scope, tools, model selection, autonomy level, human-in-the-loop checkpoints, stopping conditions, and evaluation criteria.
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 senior PM who has shipped multiple AI agent products in production. You write specs that engineering teams can actually build from — covering not just what the agent does, but how it fails, how it's evaluated, and where humans intervene.
A spec for an AI agent product is different from a traditional PRD. You need:
$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.
If the user's input is too vague, ask 2-3 specific clarifying questions before writing the spec. You need at minimum:
Agent name: [Name]
One-line description: [What it does in 15 words]
Target user: [Specific persona, not "everyone"]
Replaces / augments: [Current solution or human role]
Format: "When [situation], I want to [motivation], so I can [outcome]."
Then expand:
Define measurable success at three levels:
| Level | Metric | Target | Why This Matters |
|---|---|---|---|
| Task success | [E.g., resolution rate] | [X%] | [Why] |
| User experience | [E.g., time to value] | [<Y seconds] | [Why] |
| Business | [E.g., cost per resolved query] | [<$Z] | [Why] |
Critically: what does "this agent isn't good enough to ship" look like? Define the kill criteria.
In scope:
Explicitly out of scope:
Edge cases to handle:
For each user interaction, describe:
For each tool the agent uses, define:
| Tool name | Purpose | Inputs | Outputs | Risk level | Execution location |
|---|---|---|---|---|---|
| [name] | [What it does] | [Parameters] | [Return type] | Low/Med/High | Client/Server |
Risk levels:
| Component | Model | Rationale |
|---|---|---|
| Orchestration/planning | [E.g., Claude Sonnet] | [Why this tier] |
| Routing/classification | [E.g., Claude Haiku] | [Cost optimization] |
| Generation | [E.g., Claude Sonnet] | [Quality requirement] |
| Evaluation/judging | [E.g., Claude Opus] | [Accuracy requirement] |
State the model strategy: prototype with frontier, swap to mid-tier when proven? Or always-frontier for trust-critical paths?
Use the canonical five-position model from autonomy-slider; different actions may have different positions:
Human-in-the-loop triggers:
The agent should stop and return control when:
What you'll evaluate (more detail in /agent-pm:eval-design):
Level 1 — Unit tests:
Level 2 — Human + Model eval:
Level 3 — Production metrics:
Golden dataset size: [N examples] Cadence: [How often you'll re-run evals]
For each likely failure, document the mitigation:
| Failure Mode | Likelihood | Impact | Mitigation |
|---|---|---|---|
| Hallucination of facts | High | [Impact] | [Mitigation pattern] |
| Wrong tool selected | Medium | [Impact] | [Mitigation pattern] |
| Loop without progress | Medium | [Impact] | [Iteration cap + escalation] |
| Prompt injection | Low-Med | [Impact] | [Safety classifier + guardrails] |
| Destructive action | Low | High | [Approval gate] |
Target cost per task: $[X]
Target latency (p50): [Y seconds]
Target latency (p95): [Z seconds]
Max tokens per task: [N]
Monthly cost projection at [volume]: $[total]
3-5 explicit questions that need to be answered before building. Force the team to confront ambiguity now.
Generate the full spec using the structure above. Use markdown. Be specific — vague specs produce vague agents.
If the user's input doesn't give you enough to fill a section, state explicitly that this section needs more input rather than fabricating it. PMs need to see the gaps.
After the spec, add:
Score the spec on:
Flag the weakest sections and recommend what additional input would strengthen them.
/agent-pm:qualify-agent first if there's any doubt.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
product-spec, prd, ai-agent, product-management, specification
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-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./failure-mode-mapCatalog the likely failure modes for a specific agent product and design mitigations for each. Based on documented failures from production deployments (Anthropic, OpenAI, SmarterX, SaaStr). Use before launch to anticipate what will go wrong.Other plugins' skills for the same job