Use when measuring requirement quality and enforcing quantitative gates for ambiguity, completeness, traceability, volatility, and testability; use requirements-validation for content review.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
Use when measuring requirement quality and enforcing quantitative gates for ambiguity, completeness, traceability, volatility, and testability; use requirements-validation for content review.
measuring requirement quality and enforcing quantitative gates for ambiguity, completeness, traceability, volatility, and testability; use requirements-validation for content review.
Use this procedure when the required source artefacts are available and Requirements quality scorecard is the next lifecycle deliverable.
Do Not Use When
Use requirements-validation when that neighbouring route owns the decision or deliverable.
Do not invent missing project evidence, standards clauses, thresholds, or stakeholder decisions.
Required Inputs
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.
Workflow
Inspect the required inputs and log the exact sources, versions, and unresolved assumptions.
Apply this skill's existing domain workflow and decision rules to produce Requirements quality scorecard.
Stop when a required source, accountable decision owner, or deterministic test oracle is absent.
Recover by preserving valid work, marking the blocked scope, and returning the narrowest qualified artefact plus the next evidence needed.
Outputs
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 Produced
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.
Capability and permission boundaries
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.
Degraded mode
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.
Decision Rules
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.
Quality Standards
Preserve stable identifiers and bidirectional traceability from project evidence to Requirements quality scorecard and its acceptance checks.
Apply ISO/IEEE measures only with a named metric, method, threshold, evidence source, and responsible reviewer; run the anti-slop gate before release.
Anti-Patterns
Producing Requirements quality scorecard from assumed context. Fix: cite the project source or mark the scope blocked.
Accepting a material requirement without a deterministic oracle. Fix: add a measurable result, boundary, and verification method.
Crossing into requirements-validation without routing the decision. Fix: hand off the named input and preserve trace links.
Treating an unavailable check as passed. Fix: mark it not assessed and state the release consequence.
Claiming standards, statutory, or stakeholder approval without evidence. Fix: cite the source and reviewer or qualify the claim.
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.
When to Use This Skill
After requirements baselining (08-requirements-management) and traceability analysis (09-traceability-engineering).
As a pre-development quality gate in Waterfall workflows.
As a sprint-entry quality gate in Agile workflows.
Periodically during requirements evolution to track quality trends.
Quick Reference
Inputs: All artifacts in projects/<ProjectName>/<phase>/<document>/, projects/<ProjectName>/_context/vision.md
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.
Step 2: Calculate Metrics
Compute each metric below. For metrics requiring historical data that is unavailable, note "Insufficient history -- baseline measurement recorded."
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.
2f: Conflict Count
Count the number of unresolved contradictions between requirements. Source from traceability_matrix.md or perform a fresh scan for:
Mutually exclusive behaviors for the same system element.
Contradictory non-functional targets (e.g., "response time < 100ms" vs. "response time < 500ms" for the same operation).
Conflicting priority assignments from different stakeholders.
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>/.
Step 3: Apply Quality Gate Thresholds
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%
Step 4: Determine Overall Gate Verdict
The overall gate verdict is the lowest individual metric status:
GREEN: All metrics are GREEN. Proceed to downstream activities.
YELLOW: At least one metric is YELLOW, none are RED. Proceed with documented risk acceptance and remediation plan.
RED: At least one metric is RED. Halt downstream activities. Return failing requirements to upstream skills for correction.
For YELLOW verdicts, the report shall include:
Justification for proceeding despite deficiencies.
Specific remediation actions with owners and deadlines.
Escalation path if remediation is not completed on schedule.
Step 5: Generate Per-Metric Breakdown
For each metric, provide:
The calculated score.
The threshold status (GREEN/YELLOW/RED).
A list of specific requirements contributing to deficiency (if not GREEN).
Recommended remediation actions.
Step 6: Generate Output
Write projects/<ProjectName>/<phase>/<document>/requirements_metrics_report.md following the output format below.
Gaming metrics: Marking requirements "complete" without genuine acceptance criteria inflates the Completeness Index. Audit field quality, not just field presence.
Ignoring YELLOW status: A conditional pass is not a free pass. Every YELLOW metric requires a documented remediation plan with deadlines.
Snapshot-only measurement: A single measurement is a snapshot, not a trend. Track metrics over time to detect quality degradation.
Excluding NFRs: Non-functional requirements are often the hardest to make testable. Include them in all metric calculations.
Verification Checklist
All eight metrics are calculated and reported.
Each metric has a GREEN/YELLOW/RED status based on defined thresholds.
Overall gate verdict equals the lowest individual metric status.
Failing requirements are listed with specific deficiencies.
Remediation plan is provided for all non-GREEN metrics.
Vague terms list matches the prohibited terms catalog.
INVEST Compliance is calculated only when user stories exist.