/rtl-agent-team:cross-phase-contract-validator [phase-boundary: p3-p4 | p4-p5]from rtl-agent-team
Validates spec contracts across phase boundaries (P3 uarch→P4 RTL→P5 verify): port widths, memory class, pipeline depth, bus width parameterization, REQ traceability, and unit test existence. Use at P4/P5 entry gates.
Ships in rtl-agent-team. 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.
None: SKILL.md is the whole skill.
<Use_When>
<Do_Not_Use_When>
Compare across three sources — all must agree:
docs/phase-1-research/io_definition.json (if exists): port widthsdocs/phase-3-uarch/*.md: interface width specificationsrtl/*/*.sv: actual module port declarationsFor each port: io_definition[width] == uarch_spec[width] == RTL_port_width.
Mismatch → CRITICAL.
Compare each P3 storage class and its access contract with P4 RTL. Check dimensions, simultaneous ports, clock domains, read latency and any specified collision behavior. Inspect the instantiated wrapper or inferred memory where needed. Report a demonstrated mismatch as CRITICAL (e.g., P3 requires a one-cycle SRAM wrapper and P4 uses an inline array with same-cycle reads). If a missing P3 decision prevents comparison, report that specification gap and identify the affected check.
For each module with pipeline specification in P3:
always_ff sequential stages (±1 tolerance)stage_* or sequential register chains in RTLFor each FIFO/bus width defined in P3 with a derivation formula:
localparam MUST use the same formula (derived from parameters)WIDTH = PIXELS * COMPONENTS * (BPC+1) + META but P4 has
localparam L_FIFO_W = 672 → MAJORlocalparam.*WIDTH.*=.*[0-9]+; where a corresponding parameter existsFor each REQ-U-* in docs/phase-3-uarch/iron-requirements.json:
// REQ: REQ-U-NNN)
or in docs/phase-4-rtl/functional-completeness.mdFor each RTL module in rtl/*/:
sim/{module}/tb_{module}.sv or equivalent must existsim/{module}/{module}_unit_results.json must exist with ref_mismatches=0Verify Stream B artifacts from P4 are present for P5 consumption:
docs/phase-4-rtl/stream-b-sva-skeletons.md → contains property/assert per moduledocs/phase-4-rtl/stream-b-cdc-preliminary.md → references clock domain namesdocs/phase-4-rtl/stream-b-tb-skeletons.md → references REQ tags per moduledocs/phase-4-rtl/stream-b-synth-estimate.md → no inferred latchessim/uvm/coverage/hier.cfg exists (if UVM flow) → TB infrastructure excluded from coverageRead all upstream artifacts, perform checks, generate report:
Glob("docs/phase-3-uarch/*.md")
Glob("docs/phase-3-uarch/iron-requirements.json")
Glob("docs/phase-1-research/io_definition.json")
Glob("rtl/*/*.sv")
Glob("sim/*/tb_*.sv")
Glob("sim/*/*_unit_results.json")
For each check: collect evidence (file:line citations), classify (CRITICAL/MAJOR/WARNING/INFO).
Write reviews/cross-phase-contract-validation.md:
# Cross-Phase Contract Validation
- Date: YYYY-MM-DD
- Boundary: P3→P4 | P4→P5
- Verdict: PASS | FAIL
## Check Results
| # | Check | Status | Evidence |
|---|-------|--------|----------|
| 1 | Port width consistency | PASS/FAIL | file:line details |
| 2 | Memory classification | PASS/FAIL | ... |
| ... | ... | ... | ... |
## Critical Findings
[details with file:line citations]
## Recommendations
[actionable fix suggestions]
The edit-tracker hook creates spec-cascade-stale-p{1,2,3} markers in the project
state dir (.rat/state/, or legacy .rtl-agent-team/state/ when .rat/ is absent)
whenever an upstream phase doc is modified while downstream artifacts exist. This
skill is the resolution path for those markers:
rm -f .rat/state/spec-cascade-stale-p* (adjust the state dir for the
legacy layout). Downstream artifacts are re-validated against the changed spec.Note: writing reviews/cross-phase-contract-validation.md with a PASS verdict also
triggers hook-side auto-clear in rtl-edit-tracker.sh (PostToolUse). The explicit
rm -f above is the fallback when the report is written to a non-standard path.
What SKILL.md sets; muted values are Claude Code's defaults
56 skills in this plugin
/arch-reviewRead-only architecture review of RTL vs uArch spec with area/timing/power tradeoffs. Use for post-RTL architecture sign-off or suspected spec mismatch./bfm-developBuilds Phase 3 SystemC TLM-2.0 bus functional models with AMBA (AXI/AHB/APB) support. Use for 'develop BFM', 'SystemC TLM model', 'bus functional model'./codec-conformance-evalEvaluate C ref-model decoder against JVET/JCTVC conformance bitstreams (bitexact/MD5) — 'decoder conformance'; C-level, not RTL (rtl-conformance-test)./codec-rd-evalEncoder RD evaluation of C ref model: BD-PSNR/BD-rate (VCEG-M33) across sequences/QPs — 'RD eval', 'BD-rate', codec algorithm quality comparison./codex-cross-reviewOne independent Codex review of completed phase artifacts when requested or enabled for the project./domain-consultRoute domain questions to the best expert agent: codec standards, video/signal processing, fixed-point math, HW protocols. Trigger: 'consult domain expert'.npx claudepluginhub babyworm/rtl-agent-team --plugin rtl-agent-teamOther plugins' skills for the same job