ai-product-prds
Skill1 starsChanged 42 days agoMITView on GitHub
Writes PRDs and briefs for LLM-powered features with eval-first acceptance criteria: golden dataset before model choice, hallucination-rate thresholds, human-in-the-loop escalation design, and LLM cost per action as a feasibility gate. Use when the user asks to \"write a PRD for an AI feature\", \"spec an LLM feature\", \"add summarization / copilot / agents\", or \"scope AI for X\". Treats \"add AI\" with no eval plan as an evidence-free request and answers it with a minimal eval protocol and a minified draft, not fiction. Owns only features whose core value is LLM/model behavior; PRDs for non-model-core features stay in the general outcome-brief discipline.
In this repository17 other files it gives its agents.
- ai-feature-operationsSkill
- customer-discoverySkill
- decision-journalSkill
- empowered-teamsSkill
- experiment-designSkill
- failure-analysisSkill
- glossarySkill
- growth-loopsSkill
- gtm-launchSkill
- metrics-analysisSkill
- prd-writingSkill
- pricing-packagingSkill
- prioritizationSkill
- product-strategySkill
- roadmap-planningSkill
- stakeholder-updatesSkill
- user-storiesSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Before drafting, establish four things:
- Distinctive: line 33
Run the Eval Gate (§2).
- Very specific: line 36
Write Acceptance Criteria as eval thresholds: metric, threshold, anchor or [ASSUMPTION] + revisit trigger (spec §3).
- Distinctive: line 37
Run the cost gate: the per-action math goes in the brief.
- Distinctive: line 38
Add a Failure Modes section from ./references/ai-risks.md: hallucination, drift, prompt injection, cost explosion, automation bias — one …
- Distinctive: line 39
Add PII & Liability (spec §7) for any feature touching user or third-party data.
- Distinctive: line 40
Add Versioning & Rollback (spec §6).
- Very specific: line 44
Every threshold states its anchor: measured baseline on the golden set, current production rate, or [ASSUMPTION] with a revisit date.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AI Feature PRDs
An AI feature without an eval is a hopeful prose document. You write AI PRDs whose acceptance criteria are executable evaluations: a golden dataset exists before the model is chosen, quality bars are registered thresholds, cost per action is modeled, and a human owns the failure paths.
1. Core Principles
- Evals before model — the golden dataset and graders exist before model or prompt choice; evals define the planned capability, then iteration runs until they pass (Anthropic / Demystifying evals; OpenAI / evals guides).
- Quality bars are acceptance criteria — an AI feature ships when measured task success, faithfulness and format rates cross registered thresholds. Unmeasured numbers are
[ASSUMPTION], never facts. - Cost per action is a feasibility gate — model LLM spend per action and compare it to incremental margin per action before the roadmap commits. Unit economics, not vibes.
- Humans in the loop by default, escalation by design — the stakes class of the surface dictates the HITL pattern; high-stakes effects get human approval and a named escalation path before launch.
- Version everything — prompts, models and datasets move under version control together; every change ships with an eval diff and a rollback rule.
- "Add AI" with no eval plan is an evidence-free request — answer it with the Pushback Protocol (§5): named risks, a minimal eval plan, a minified draft. Compliance is not helpfulness.
2. The Eval Gate
Before drafting, establish four things:
- Golden dataset — does it exist? Size, provenance, representativeness, holdout split (spec §1).
- Baseline & graders — current behavior or human reference output; grader type and agreement (spec §2).
- Cost inputs — tokens per action, model price, expected volume (spec §5).
- Stakes class — low / medium / high by consequence of a wrong output (spec §4); this drives HITL design.
Missing inputs -> ask at most three targeted questions. Big bet + empty eval base -> run the Pushback Protocol (§5) instead of a full PRD. If the prompt contains [DRAFT-ONLY] or [SANDBOX]: header [DRAFT-ONLY / SANDBOX BYPASS ACTIVE], tag every assumption [ASSUMPTION] inline, and append a one-paragraph Risk Note when the build implies > 2 weeks of effort.
3. Workflow
- Run the Eval Gate (§2).
- Classify stakes and pick the HITL pattern (spec §4).
- Fill ./assets/ai-feature-brief.md using the rules in ./references/ai-feature-spec.md.
- Write Acceptance Criteria as eval thresholds: metric, threshold, anchor or
[ASSUMPTION]+ revisit trigger (spec §3). Hallucination/faithfulness rate is mandatory for any generative surface. - Run the cost gate: the per-action math goes in the brief; if infeasible, propose staged routing, cheaper tiers, caching or trigger changes — recompute, don't go quiet (spec §5).
- Add a Failure Modes section from ./references/ai-risks.md: hallucination, drift, prompt injection, cost explosion, automation bias — one owner-mitigation each.
- Add PII & Liability (spec §7) for any feature touching user or third-party data.
- Add Versioning & Rollback (spec §6).
4. Acceptance-Criteria Discipline
- Every threshold states its anchor: measured baseline on the golden set, current production rate, or
[ASSUMPTION]with a revisit date. - "It worked in the demo" is anecdote, not acceptance. Acceptance = holdout eval pass plus human-eval cadence met (spec §2).
- A disclaimer ("users should verify") is a disclosure, not a control. Controls are grounding, citations, abstention thresholds and HITL gates.
5. Pushback Protocol (Evidence-Free AI Requests)
Trigger: "add AI / summarize everything / build an agent" with no golden set, no grader, no cost model, and no bypass tag. Output, in order:
- Name the unvalidated risks — specifically: hallucination exposure on real users at each named surface, cost explosion at real volume, prompt-injection surface, reviewer automation bias, liability for wrong outputs. Not "AI is risky".
- Minimal eval plan (1 week) — 50-100 golden cases drawn from real traffic [ASSUMPTION default; revisit on observed variance]; 20 dual-graded cases for grader agreement [ASSUMPTION]; score one candidate prompt; compute cost per action from measured tokens.
- Minified draft — <= 10 lines of core logic, labeled
[EVIDENCE-FREE DRAFT]. - Positive decision framework — the exact conditions that fund the build: eval pass rate >= registered bar on holdout, cost/action <= stated margin share, stakes class signed off, escalation owner named.
- Budget objection — "no budget for evals" is a cost claim with no math: price the 1-week plan (≈ one PM-week + grader time [ASSUMPTION]) against one blind rework cycle or one liability incident, both in the decision memo. An unfunded eval means the decision framework funds no build — it never licenses a blind one.
6. Anti-Patterns
| Anti-Pattern | How to detect | Rectification |
| "AI everywhere" roadmap | multiple surfaces, no eval plan per surface | Stage by stakes class; eval-first per surface |
| Hallucination rate asserted unmeasured | precise percentage with no source | [ASSUMPTION] + the eval that will measure it |
| Demo-ware acceptance | "it worked in the demo" | Holdout eval pass + human cadence |
| Unbounded cost | no cost-per-action model | Cost gate math; routing tiers and caps |
| Rubber-stamp reviewers | approvers never edit | Blind planted defects, forced-edit sampling, audit rate |
| Silent model swaps | no pinned versions | Version registry + eval-diff gate + rollback rule |
| Disclaimer-as-safety | "users should verify" as the only control | Grounding, citations, abstain thresholds, HITL gates |
7. Files
- ./references/ai-feature-spec.md — eval-first spec rules: golden sets, grader agreement, quality bars, HITL, cost math, versioning, PII/liability. Load for every draft.
- ./references/ai-risks.md — failure modes with detection signals and mitigations. Load for the Failure Modes section.
- ./assets/ai-feature-brief.md — the template. Load at workflow step 3.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

