--- name: verify-prd description: "Review PRD.md for gaps, contradictions and unverifiable claims, write an improved PRD.md and record the findings in PRD-REVIEW.md." metadata: source: "https://github.com/nurettincoban/ai-prd-workflow" version: "3.2.0" checksum: "sha256:360f2cd1c205696538e58bb05f6c191a09a3fc3802346f4633e11134bebf9701" --- You are an expert product manager tasked with reviewing a Product Requirements Document (PRD). Your goal is to identify gaps, improve clarity, and ensure the PRD is implementation-ready. Review `PRD.md` in the current directory and provide actionable feedback. If it does not exist, ask the user for their PRD -- pasted text or a file path -- and save it as `PRD.md` before proceeding. Arriving here with a PRD you already wrote is a normal entry point, not an error. Do not assume `/create-prd` ran first, and do not re-interview a user who has already written the document. ## CLASSIFY THE PRODUCT TYPE Classify the product as one of: web app · mobile app · library/SDK · CLI · service/API · data pipeline · game. A product that combines types -- a web app with a public API -- takes the checks of each. Then apply only the checks that fit. What each type needs probed, and what usually does not apply: | Type | Probe | Usually skip | |---|---|---| | web app | auth and sessions, authorization per resource, data model and migrations, accessibility, responsive layout, browser support, page-load budget, SEO for public pages | binary size, offline sync | | mobile app | offline behavior and sync conflicts, OS permissions, app-store review rules, OS-version and device support, battery and data use, push notifications, update strategy | SEO, browser support | | library/SDK | public API surface and consistency, semver and deprecation policy, peer-dependency ranges, bundle size and tree-shaking, type quality, the public/internal boundary, mutation of caller-owned data | infrastructure, scalability, regulatory, business model, accessibility, responsive design, state management, auth | | CLI | command and flag design, exit codes, stdout vs stderr, piping and scripting, config and environment precedence, cross-platform paths and shells, install and upgrade | UI design, accessibility, SEO, sessions | | service/API | API contracts and versioning, authentication and authorization, rate limiting and abuse, idempotency and retries, observability, data retention and privacy, SLOs and scaling | UI, responsive design, accessibility | | data pipeline | schemas and schema evolution, data-quality checks, idempotent re-runs and backfills, late or duplicate data, lineage, PII handling, cost and scheduling | UI, sessions, responsive design | | game | core loop, frame budget and target hardware, input devices, save/load and save versioning, progression and difficulty, platform certification | SEO, CRUD business logic, responsive design | Also record a **Size**: Small (one person, days to a couple of weeks), Medium (a small team or a few weeks to a few months), or Large (several teams, or months and more), from the timeline and team the user gave. Ask if they gave neither. Every later command scales its output to the Size: a weekend tool needs a handful of rules and one or two RFCs, not the paperwork of a platform, and a user who asked for something small and gets fifty rules stops reading them. Record the result in PRD.md as a `## Product Type` section: the type, the Size, and each skipped check with a one-line reason. Later commands read that section instead of classifying again, so every step applies the same checks. Skipping must be visible and auditable, never silent -- a generated "no SQL injection vectors identified" in a library that has no SQL manufactures false confidence. ## STEP 0: GROUND THE PRD IN REALITY Before the gap analysis: - If the PRD names an existing implementation, prototype, or "extracted from" source, READ IT. Diff the documented behavior against the actual behavior and report every discrepancy -- these are the highest-value findings available, and a checklist will not surface them. - If the PRD names specific technologies, check its claims against how those technologies actually behave: versions, defaults, breaking changes, footguns. - List any claim in the PRD you could not verify, and say so explicitly rather than letting it pass as verified. ## STEP 1: GAP ANALYSIS Identify critical missing elements in these areas, as far as the Product Type and Size call for them -- a weekend CLI has no market factors or team plan to find missing: 1. PRODUCT FUNDAMENTALS - Product vision and problem statement - Target users and their needs - Success metrics and scope boundaries 2. TECHNICAL REQUIREMENTS - Technology constraints and integrations - Security, performance, and scalability needs - Infrastructure requirements 3. BUSINESS CONSIDERATIONS - Timeline and budget constraints - Regulatory requirements - Market factors and business model 4. IMPLEMENTATION FACTORS - Dependencies and third-party requirements - Team resources and skills needed - Testing and deployment needs ## STEP 1.5: ASK BEFORE YOU REWRITE Some gaps only the user can close: budget, timeline, team, business model, which of two contradictory requirements is meant, an SLO nobody stated. Before writing the improved PRD, ask about every High-impact gap of that kind, in one batch, and wait. If you cannot ask -- a non-interactive run -- or the user does not know, do not invent the answer: record it in Open Questions marked **(assumption)**, with the assumption you would make and what it would change. Only the user's answers, and fixes that follow from the PRD's own text, go into Decisions. PRD.md outranks every other file, so a guess written there as a decision is defended by every later command, `/manage-changes` included. ## STEP 2: IMPROVEMENT RECOMMENDATIONS Provide specific recommendations in these areas: 1. STRUCTURE & CLARITY - Ensure all essential sections are included - Clarify ambiguous requirements - Format user stories properly 2. COMPLETENESS & FEASIBILITY - Fill gaps in user journeys - Identify technical challenges - Suggest alternatives for problematic requirements 3. PRIORITIZATION & IMPLEMENTATION - Apply MoSCoW prioritization - Identify critical path requirements - Suggest logical implementation sequence ## DELIVERABLES 1. SUMMARY OF FINDINGS - List of critical gaps (High/Medium/Low impact), numbered `P1`, `P2`, ... -- not `F-1`, which reads like a feature ID once FEATURES.md exists - 2-3 sentence overall assessment 2. SPECIFIC RECOMMENDATIONS - Concrete suggestions for improvement - Examples of how to clarify ambiguous requirements 3. IMPROVED PRD - Create an enhanced version addressing the issues found - Include the Product Type section (see CLASSIFY THE PRODUCT TYPE) - Give every functional and non-functional requirement a permanent ID if it has none, one per line as `- **FR-1**: text` or `- **NFR-1**: text`, and never renumber existing ones -- features and RFCs cite them, and `trace-check.py` reads that form - Keep the PRD's Decisions section, and add every decision the user made, or the PRD's own text settles, while resolving these findings -- what was decided, why, and what was rejected. Add the section if the PRD has none. Unanswered questions stay in Open Questions (see STEP 1.5) - Every goal in the PRD maps to at least one FR or NFR whose fulfilment achieves it, or is reworded until one does. A goal no requirement carries is invisible to `trace-check.py` and to every review: "never lose my tasks" narrowed to an NFR about crashes passed full coverage while two concurrent runs lost tasks - Change only what a finding calls for. Every change to scope or to a requirement cites the finding ID that motivated it in PRD-REVIEW.md; an improvement with no finding behind it is a new open question, not an edit - Save as "PRD.md" in the current directory (overwrite the original) - If the project is not under version control, say so first and offer to save as "PRD.v2.md" instead -- overwriting a hand-written PRD with no way to recover it destroys the diff the user needs in order to review what you changed 4. PRD-REVIEW.md - Write deliverables 1 and 2 to "PRD-REVIEW.md" alongside the improved PRD: the gap list, the recommendations, and why each change was made - Findings that live only in this conversation are gone the moment it ends. The next reader then sees a decision in PRD.md with no record of the contradiction that motivated it, and "simplifies" it away - Downstream commands should read this file. Every High-impact finding must stay traceable into FEATURES.md and the RFCs ## SELF-CHECK BEFORE FINISHING - Recount every summary table from the actual content. Never carry a count forward from earlier in your own output. - Verify every internal cross-reference -- feature IDs, rule IDs, RFC numbers, section references -- points at what the surrounding text claims it does. A reference to a VALID but WRONG ID is the dangerous case: nothing looks malformed, so readers are quietly misled. - Confirm no two tables in the document disagree with each other. - If `trace-check.py` is available -- in a `scripts/` folder beside these instructions, or in the project's own `scripts/` folder -- run it on the project (`python3 /trace-check.py .`) and fix every FAIL it reports. It checks mechanically what reading does unreliably: that IDs in definitions and RFC header lines resolve, that requirements and Must-have features are covered, RFC dependencies, and review records. It does not check IDs cited in RFC bodies or whether each criterion has a planned test -- check those yourself. - State in your reply, not in the file you wrote, that you ran these checks and what they turned up: a self-check section in the artifact is read by every later command and helps none of them.