/sdlc-documentation:10-requirements-metricsfrom sdlc-documentation
Measures requirement quality and enforces quantitative gates for ambiguity, completeness, traceability, volatility, and testability. Produces a requirements quality scorecard.
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.
Requirements quality scorecard is the next lifecycle deliverable.requirements-validation when that neighbouring route owns the decision or deliverable.| Artefact | Source or provider | Required? | Behaviour when missing |
|---|---|---|---|
| Requirements baseline, metric definitions, thresholds, and prior results | Requirements owner and quality standards | Yes | Stop the affected step, name the missing source, and return only a qualified gap record. |
Requirements quality scorecard.| Artefact | Consumer | Acceptance condition |
|---|---|---|
| Requirements quality scorecard | Phase gate owner and remediation 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 Requirements quality scorecard | Requirements quality reviewer | Inputs used, decisions made, checks run, failures, and unassessed items are explicit. |
Read and search are required. This procedure is read-only by default. Editing the reviewed artefact, publishing, production mutation, destructive action, spending, or certification requires 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 metric has no numerator, denominator, threshold, or sampling rule | Mark it unassessed until the metric contract is complete. | A quality pass based on unrepeatable scoring. |
| 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. |
Requirements quality scorecard and its acceptance checks.Requirements quality scorecard from assumed context. Fix: cite the project source or mark the scope blocked.requirements-validation without routing the decision. Fix: hand off the named input and preserve trace links.not assessed and state the release consequence.Use the scenario-spine and requirement-contract reference to measure verifiability, NFR specificity, uncertainty, and trace completeness.
Run this skill as the universal quality gate for both Waterfall and Agile pipelines. It reads all requirements artifacts, computes quantitative quality metrics, and issues a GREEN/YELLOW/RED gate verdict. No downstream activity (design, development, sprint planning) shall proceed until this gate passes at YELLOW or above.
08-requirements-management) and traceability analysis (09-traceability-engineering).projects/<ProjectName>/<phase>/<document>/, projects/<ProjectName>/_context/vision.mdprojects/<ProjectName>/<phase>/<document>/requirements_metrics_report.md| File | Source | Required? |
|---|---|---|
All *.md artifacts | projects/<ProjectName>/<phase>/<document>/ | Yes |
vision.md | projects/<ProjectName>/_context/ | Yes |
traceability_matrix.md | projects/<ProjectName>/<phase>/<document>/ | Recommended |
requirements_baseline.md | projects/<ProjectName>/<phase>/<document>/ | Recommended |
| File | Contents | Destination |
|---|---|---|
requirements_metrics_report.md | Per-metric scores, overall gate verdict, remediation guidance | projects/<ProjectName>/<phase>/<document>/ |
Read every file in projects/<ProjectName>/<phase>/<document>/ and projects/<ProjectName>/_context/vision.md. Log each file path read. Build a consolidated requirements inventory with all requirement identifiers, their fields, and their trace links.
Compute each metric below. For metrics requiring historical data that is unavailable, note "Insufficient history -- baseline measurement recorded."
$$\text{Volatility Index} = \frac{R_{\text{changed}} + R_{\text{added}} + R_{\text{deleted}}}{R_{\text{total}}} \times 100$$
Where:
If this is the first baseline, record Volatility Index as 0% (initial measurement).
$$\text{Completeness Index} = \frac{R_{\text{complete}}}{R_{\text{total}}} \times 100$$
A requirement is complete when all mandatory fields are populated:
Count occurrences of the following vague terms across all requirements:
| Prohibited Term | IEEE 830 Violation |
|---|---|
| fast | Missing quantitative performance target |
| easy | Subjective usability claim |
| intuitive | Undefined interaction metric |
| user-friendly | No measurable UX criterion |
| robust | Missing reliability specification |
| flexible | Undefined adaptability scope |
| scalable | Missing load/capacity targets |
| efficient | No resource utilization metric |
| appropriate | Undefined acceptance boundary |
| reasonable | Subjective judgment term |
| sufficient | Missing quantitative threshold |
| adequate | Undefined quality level |
| minimal | Missing lower-bound specification |
| maximize/minimize | Missing target value |
| support | Ambiguous capability claim |
$$\text{Ambiguity Index} = \sum \text{vague term occurrences}$$
Each occurrence shall be listed with the requirement ID and the offending term.
$$\text{Testability Score} = \frac{R_{\text{testable}}}{R_{\text{total}}} \times 100$$
A requirement is testable when it has:
$$\text{Traceability Coverage} = \frac{R_{\text{traced}}}{R_{\text{total}}} \times 100$$
A requirement is traced when it links to both a business goal (upward) AND a test case (downward). Source this metric from traceability_matrix.md if available.
Count the number of unresolved contradictions between requirements. Source from traceability_matrix.md or perform a fresh scan for:
$$\text{Data Quality Score} = \frac{D_{\text{complete}} + D_{\text{consistent}}}{2 \times D_{\text{total}}} \times 100$$
Where:
$$\text{INVEST Compliance} = \frac{S_{\text{passing}}}{S_{\text{total}}} \times 100$$
A user story passes INVEST when it satisfies all six criteria: Independent, Negotiable, Valuable, Estimable, Small, Testable. Apply only when user stories exist in projects/<ProjectName>/<phase>/<document>/.
Evaluate each metric against the following thresholds:
| Metric | GREEN (Pass) | YELLOW (Conditional) | RED (Fail) |
|---|---|---|---|
| Completeness Index | >= 95% | >= 80% | < 80% |
| Ambiguity Index | 0 | <= 5 | > 5 |
| Testability Score | >= 90% | >= 75% | < 75% |
| Traceability Coverage | >= 85% | >= 70% | < 70% |
| Conflict Count | 0 | <= 2 | > 2 |
| Data Quality Score | >= 90% | >= 75% | < 75% |
| INVEST Compliance | >= 90% | >= 75% | < 75% |
| Volatility Index | <= 10% | <= 25% | > 25% |
The overall gate verdict is the lowest individual metric status:
For YELLOW verdicts, the report shall include:
For each metric, provide:
Write projects/<ProjectName>/<phase>/<document>/requirements_metrics_report.md following the output format below.
# Requirements Metrics Report: [Project Name]
**Generated:** [Date]
**Baseline:** BL-[PROJECT]-[VERSION]
**Standards:** IEEE 29148-2018, IEEE 982.1-2005
---
## Overall Gate Verdict: [GREEN / YELLOW / RED]
---
## Metrics Summary
| Metric | Score | Threshold | Status |
|--------|-------|-----------|--------|
| Completeness Index | N% | >= 95% | [GREEN/YELLOW/RED] |
| Ambiguity Index | N | 0 | [GREEN/YELLOW/RED] |
| Testability Score | N% | >= 90% | [GREEN/YELLOW/RED] |
| Traceability Coverage | N% | >= 85% | [GREEN/YELLOW/RED] |
| Conflict Count | N | 0 | [GREEN/YELLOW/RED] |
| Data Quality Score | N% | >= 90% | [GREEN/YELLOW/RED] |
| INVEST Compliance | N% | >= 90% | [GREEN/YELLOW/RED] |
| Volatility Index | N% | <= 10% | [GREEN/YELLOW/RED] |
---
## Per-Metric Detail
### Completeness Index: N%
[List of incomplete requirements with missing fields]
### Ambiguity Index: N
[List of requirements with vague terms, term identified]
### Testability Score: N%
[List of untestable requirements with deficiency noted]
[Continue for each metric...]
---
## Remediation Plan
| Priority | Requirement(s) | Issue | Action | Owner | Deadline |
|----------|----------------|-------|--------|-------|----------|
| Critical | REQ-xxx | Missing acceptance criteria | Add verifiable criteria | [Name] | [Date] |
---
## Historical Trend (if available)
| Date | Completeness | Ambiguity | Testability | Traceability | Verdict |
|------|-------------|-----------|-------------|--------------|---------|
| [Date] | N% | N | N% | N% | [Verdict] |
08-requirements-management, 09-traceability-engineeringwaterfall/08-semantic-auditingreferences/metrics-catalog.md: Complete metrics catalog with formulas and benchmarks.references/quality-gate-thresholds.md: Gate configuration and escalation procedures.Last Updated: 2026-03-07 Skill Version: 1.0.0
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./01-prd-generationUse when converting approved discovery evidence into a traceable PRD with objectives, prioritised features, success measures, constraints, and release scope; use vision-statement for the strategic north star and lean-canvas while assumptions still need testing./01-sprint-planningUse when preparing a sprint goal, evidence-based team capacity, selected backlog, task breakdown, and delivery risks. Use definition-of-ready to admit individual items and definition-of-done to judge completed increments./01-stakeholder-analysisUse when identifying and classifying stakeholders, influence, interests, decision rights, and communication needs before elicitation; use elicitation-toolkit to gather requirements from them.Other plugins' skills for the same job