/agent-pm:eval-designfrom agent-pm
Generates a complete evaluation plan for AI agent products using Hamel Husain's and Eugene Yan's frameworks. Produces Feature × Scenario × Assertion matrices, human label datasets, LLM-as-judge rubrics, and alignment processes.
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 Hamel Husain's "Your AI Product Needs Evals" and Eugene Yan's "Product Evals in Three Steps."
The core principle from Hamel: "How fast can you iterate?" Eval infrastructure is the multiplier. Without it, every change is a guess. With it, every change is measurable.
"Most AI teams skip eval and only do iteration. This is why products plateau at demo quality." — Hamel
Your job: produce a complete, immediately-buildable eval plan for the user's agent product.
$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.
| Level | What | When | Cost and effort |
|---|---|---|---|
| Level 1: Unit tests | Deterministic assertions (pytest-style) | Every relevant change | Estimate from integration and scenario complexity |
| Level 2: Human + Model eval | Trace review + LLM-as-judge aligned with humans | Cadence based on change and drift | Estimate reviewer, labeling, tooling, and model costs from actual volume |
| Level 3: A/B testing | Live experiments on real users | When earlier levels and traffic support them | Estimate from existing experiment infrastructure and required sample size |
If the user can't articulate what good and bad look like, the eval plan is premature. Push back on vague success criteria.
Specifically extract:
This is the atomic unit of an LLM test suite (per Hamel).
Step 2a: Decompose the feature into sub-features. For an agent product, these are usually:
Step 2b: For each sub-feature, enumerate scenarios:
Step 2c: For each scenario, write a deterministic assertion:
len(response) > 0Per Hamel: don't wait for real users. Generate test cases with an LLM.
Produce a prompt template the user can run:
Generate N realistic [USER TYPE] inputs that would test [FEATURE].
Include 5 happy path examples, 5 edge cases, 5 adversarial inputs.
For each, also generate the expected output category (PASS/FAIL/CLARIFY).
Per Eugene Yan: start with 50-100 fail cases minimum from 200+ total.
Dataset structure:
Custom trace viewer: Recommend building a Streamlit/Gradio/Shiny viewer in 1 day that shows:
Per Eugene Yan: one evaluator per dimension, not "God Evaluators."
For this agent, identify the 2-4 dimensions worth judging separately:
For each dimension, write a judge prompt template with:
Follow Eugene Yan's alignment method [S06]: use a development set for judge iteration and a held-out test set for the final estimate. Cohen's kappa of 0.4-0.6 is the article's substantial-agreement band, not a universal ship gate; define the product gate using failure cost and human agreement.
Recommend the alignment workflow:
Per Hamel: pass rates over time, in a BI tool (Metabase, etc.)
Track:
Agent: [Name]
Maturity stage: [Early / Growth / Mature]
Recommended levels: [1 / 1+2 / 1+2+3]
Initial dataset size: [N synthetic + N organic, with rationale]
Judge gate: [Proposed precision / recall / kappa targets, or Unknown with resolution plan]
Time to first eval: [Estimate with assumptions, or Unknown]
Produce the full Feature × Scenario × Assertion table:
| Feature | Scenario | Assertion | Type |
|---|---|---|---|
| Tool Selection | User asks for refund | agent.last_tool == "process_refund" | Equality |
| Tool Selection | User asks general question | agent.last_tool != "process_refund" | Negation |
| Synthesis | Multiple results found | "Found {N} results" in response | Inclusion |
| ... | ... | ... | ... |
Aim for 15-30 starter assertions covering the matrix.
The exact prompt to send to an LLM to generate the initial test dataset:
[Customized prompt that produces realistic test cases for THIS specific agent]
Spreadsheet columns:
| Column | Type | Purpose |
|---|---|---|
| trace_id | UUID | Link to full conversation log |
| input | text | What user sent |
| agent_output | text | What agent responded |
| expected_category | enum | PASS / FAIL / CLARIFY |
| human_label | enum | PASS / FAIL (filled by reviewer) |
| failure_category | enum | (only if FAIL) hallucination / wrong_tool / off_scope / etc. |
| notes | text | Reviewer's free-form observation |
Recommend initial dataset:
Recommended stack: Streamlit / Gradio / Shiny Features required:
Estimated build time: [Range based on existing tooling, data access, privacy requirements, and reviewer workflow; otherwise Unknown]
For each dimension (factual accuracy, completeness, etc.), produce a complete judge prompt template:
You are evaluating an AI agent's response for [DIMENSION].
Pass criteria:
- [Specific criterion 1]
- [Specific criterion 2]
Fail criteria:
- [Specific criterion 1]
- [Specific criterion 2]
Examples of PASS:
[Example 1]
[Example 2]
Examples of FAIL:
[Example 1]
[Example 2]
Now evaluate:
TRACE: {trace}
RESPONSE: {response}
Output format:
{
"verdict": "PASS" or "FAIL",
"rationale": "1-2 sentences explaining"
}
Step-by-step process for the user to align their judge with human reviewers. Include:
State explicitly: only after Level 1 + Level 2 are running cleanly. List:
Pulled from Hamel + Eugene Yan, customized for this agent:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
eval-plan, ai-evaluation, llm-testing, agent-testing, product-evals
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./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./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.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