/sdlc-documentation:14-ai-feature-prd-specfrom sdlc-documentation
Converts an approved AI feature strategy into testable PRD requirements covering quality, latency, cost, abstention, citations, consent, and evaluation.
Ships in sdlc-documentation. 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.
Read when SKILL.md points to them.
AI feature PRD specification is the next lifecycle deliverable.ai-feature-strategy-doc when that neighbouring route owns the decision or deliverable.| Artefact | Source or provider | Required? | Behaviour when missing |
|---|---|---|---|
| Approved AI feature strategy, users, data constraints, and evaluation targets | Product owner and AI governance owner | Yes | Stop the affected step, name the missing source, and return only a qualified gap record. |
AI feature PRD specification.| Artefact | Consumer | Acceptance condition |
|---|---|---|
| AI feature PRD specification | AI architecture, evaluation, safety, and delivery teams | Required sections are populated, source links resolve, and every material requirement or decision has an observable review or test oracle. |
| Evidence | Reviewer | Acceptance condition |
|---|---|---|
Source, decision, trace, and validation record for AI feature PRD specification | Requirements quality reviewer | Inputs used, decisions made, checks run, failures, and unassessed items are explicit. |
Read and search are required. Editing is allowed only when the request authorises creation or repair of the named requirements artefact. Publishing, production mutation, destructive action, spending, and certification require explicit authority.
Fallback: if a required file, reviewer, standard source, network check, renderer, or execution capability is unavailable, return the narrowest useful qualified result and mark the affected check not assessed; never convert an unassessed check into a pass.
| Choice or condition | Action | Failure or risk avoided |
|---|---|---|
| A model behaviour has no measurable evaluation oracle | Mark it blocked and define the dataset, metric, threshold, and owner. | An AI claim that cannot be tested or governed. |
| The prototype handoff pack (evaluation set, failure-mode catalogue, versioned instructions, known limits) is incomplete | Keep the affected AI-FR [DRAFT] and list the missing items | Demo behaviour hardened into production requirements |
| An AI-FR does not beat the optimised non-AI option by the pre-agreed uplift | Withdraw it or return it to discovery | Paying AI cost and risk for no net gain |
| Required inputs and test oracles are complete | Continue through the existing workflow and record evidence. | A deliverable whose acceptance cannot be reproduced. |
| A mandatory source or owner is missing | Stop the affected branch and issue a qualified gap record. | Fabricated context or unauthorised decisions. |
AI feature PRD specification and its acceptance checks.AI feature PRD specification from assumed context. Fix: cite the project source or mark the scope blocked.ai-feature-strategy-doc without routing the decision. Fix: hand off the named input and preserve trace links.not assessed and state the release consequence.Produces the AI-feature complement to the generic PRD. Every AI-powered FR carries seven mandatory clauses that the generic PRD does not collect. The acceptance gates point at the eval harness as the test oracle.
| Attribute | Value |
|---|---|
| Inputs | AI_Economic_Value_Brief.md, AI_Feature_Strategy_Doc.md, PRD.md, Multi_Tenancy_Architecture_Spec.md, pricing & packaging spec |
| Output | AI_Feature_PRD_Spec.md |
| Standard | ISO/IEC/IEEE 29148:2018 (supersedes IEEE 830-1998), NIST AI RMF MAP/MEASURE |
List every FR whose output is produced or modified by an AI component (LLM call, RAG, classifier, embedding search, agent action, fine-tune).
Also attach the model/system/input/output map, human oversight, correction,
contest, undo or safe fallback, consent/notice, drift signal, and rollback
acceptance evidence from references/ai-system-human-control-contract.md.
For each AI-powered FR, the spec MUST capture:
| Clause | Form | Example |
|---|---|---|
| Hallucination tolerance | factuality score threshold | factuality >= 0.92 on golden set; abstain otherwise |
| Latency budget | P95 target ms | P95 <= 2000 ms; timeout at 8000 ms with graceful fallback |
| $/call ceiling | USD or token cap | <= $0.04/call; throttle when tenant > $X/day |
| Abstain criteria | rule | abstain when retrieval returns < 2 relevant chunks OR confidence < 0.6 |
| Citation policy | rule | every claim about ingested document cites the source span |
| Consent / opt-in | rule | feature is opt-in per workspace admin; default off for EEA tenants |
| Training-data exclusion | rule | tenant content is not used to train the provider model; provider's no-training endpoint used |
Where feasible the output is structured (JSON schema, function-call payload, enum). Free-form prose is reserved for user-visible text that has a separate guard (length, style, banned-terms list).
State which content policy applies (no medical advice, no legal advice, no investment advice, no PII generation, no protected-class judgements). Cite the safety harness scenarios that verify each rule.
Which decisions require human approval before commitment. How a user contests an output (button, reroute, escalation). Reference EU AI Act Art. 14 obligations where the feature is high-risk.
Initial rollout (canary cohort, opt-in beta, free-tier first), promotion gates (eval pass, red-team pass, hallucination SLO met for N days), and the rollback trigger.
Every AI FR has a row in the eval harness golden set with a pass threshold. Acceptance = "harness green for 30 d on this case set + red-team pass for the corresponding adversarial set".
AI_Feature_PRD_Spec.md sections: 1) AI FR Inventory, 2) Per-FR AI Clauses, 3) Structured Output Requirements, 4) Safety & Content Rules, 5) Human-in-the-Loop & Contestability, 6) Rollout Posture, 7) Eval Acceptance Gates, 8) Traceability to PRD and to eval harness IDs.
05-ai-red-team-test-plan/references/red-team-scenario-library.md)logic.prompt, README.md, references/ai-feature-prd-spec-template.md, references/ai-feature-prd-addendum.md.README.md (opens in a new tab)logic.prompt (opens in a new tab)references/ai-agent-feature-addendum-crosslink.md (opens in a new tab)references/ai-eval-set-and-graduation-requirements.md (opens in a new tab)references/ai-feature-prd-addendum.md (opens in a new tab)references/ai-feature-prd-spec-template.md (opens in a new tab)references/ai-system-human-control-contract.md (opens in a new tab)references/human-ai-collaboration-requirements.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub peterbamuhigire/chwezi-sdlc-documentation --plugin sdlc-documentation160 skills in this plugin
/01-deployment-guideUse when producing or updating deployment guide for release prerequisites, migration choreography, verification, rollback, and ownership. Use runbook for the neighbouring concern; this skill owns the named document contract and its acceptance evidence./01-high-level-designUse when approved requirements need a system-level architecture with boundaries, components, critical flows, deployment topology and ADRs, or an as-built design must be recovered from existing code; use system-overview for orientation, low-level-design for module internals, and infrastructure-design for infrastructure depth./01-initialize-srsUse when writing a new SRS (software requirements specification) for a business system or module: create the Waterfall SRS workspace, IEEE structure, identifiers and source context; use context-engineering next for boundaries and actors.Other plugins' skills for the same job