trw-audit

Extract PRD requirements and map them to code and tests for audit findings.

Updated Mar 25, 2026
One-click install
npx skills add https://github.com/wallter/trw-mcp --skill trw-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: trw-audit
Source: https://github.com/wallter/trw-mcp/tree/main/src/trw_mcp/data/codex/skills/trw-audit
Command: npx skills add https://github.com/wallter/trw-mcp --skill trw-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Adversarial audits verify that code implementations align with PRD acceptance criteria, identifying gaps beyond typical test success to prevent confirmation bias and hidden requirements slipping through.

Core Features & Use Cases

  • Extract functional and non-functional requirements from PRDs and map them to implemented code and tests.
  • Perform keyword-based tracing of FRs/NFRs into source and test files, flagging missing coverage or misalignments.
  • Generate structured audit findings and an auditable report stored under scratch/audits for traceability.

Quick Start

Invoke /trw-audit PRD-CORE-055 in your project workspace to start the audit.

Frequently Asked Questions about trw-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I verify code compliance against PRD acceptance criteria?

To verify code compliance against PRD acceptance criteria, invoke /trw-audit in your project workspace to extract functional and non-functional requirements, map them to implemented code and tests, and generate structured audit findings.

What is an adversarial PRD audit and how does it prevent confirmation bias?

An adversarial PRD audit is an independent verification process that checks code implementations against PRD acceptance criteria to prevent confirmation bias by identifying hidden requirement gaps beyond typical test success.

How do I trace non-functional requirements to source and test files?

You can trace non-functional requirements to source and test files by performing keyword-based tracing across the repository, flagging missing test coverage or misalignments between the NFRs and the implemented code.

Does this code review approach check for missing NFR coverage?

Yes, this code review approach checks for missing NFR coverage by applying mandatory NFR checklists and performing structured test-quality assessments to ensure non-functional requirements are fully traced.

How do I generate an auditable report for spec compliance findings?

You generate an auditable report for spec compliance findings by running the audit workflow, which creates a traceable report stored under the scratch/audits directory within your project workspace.

When do I need an independent audit instead of standard test validation?

You need an independent audit instead of standard test validation when you want to prevent confirmation bias and detect hidden requirements slipping through by verifying alignment with PRD acceptance criteria beyond typical test success.