/rtl-agent-team:codec-conformance-evalfrom rtl-agent-team
Automates decoder conformance evaluation: builds C ref-model decoder, runs parallel decoding against JVET/JCTVC bitstreams, and verifies bitexact output with MD5/golden references.
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.
Read when SKILL.md points to them; scripts run unread.
This skill automates the full decoder conformance evaluation pipeline:
Scope: Decoder conformance evaluation at the algorithm/C model level.
/rtl-agent-team:rtl-conformance-test (Phase 5)/rtl-agent-team:codec-rd-evalPhase-agnostic: Commonly used during Phase 1-2 (Research/Architecture) to validate decoder algorithm correctness before committing to hardware implementation. Can also be used at any Phase where decoder conformance verification is needed.
| rtl-conformance-test | codec-conformance-eval | |
|---|---|---|
| Target | RTL implementation (.sv) | C ref model decoder |
| Phase | Phase 5 (Verify) | Phase 1-2 (Research/Architecture) |
| Comparison | JM/HM reference output | Official conformance golden output |
| Purpose | RTL-level bitexact verification | Algorithm-level conformance verification |
Execution modes:
Key features:
<Use_When>
<Do_Not_Use_When>
/rtl-agent-team:ref-model)/rtl-agent-team:rtl-conformance-test, Phase 5)/rtl-agent-team:codec-rd-eval)/rtl-agent-team:rtl-model-consistency)
</Do_Not_Use_When><Why_This_Exists> Decoder conformance is a hard requirement for any video codec implementation. A decoder that fails official conformance streams has algorithmic bugs that will propagate to hardware.
Catching conformance failures at the C model level (Phase 1-2) is orders of magnitude cheaper than discovering them after RTL implementation (Phase 5). Official conformance streams from JVET and JCTVC exercise specific codec features and corner cases that typical test sequences may not cover.
This skill automates the tedious process of running hundreds of conformance streams, comparing outputs, and tracking which profile features are covered. </Why_This_Exists>
<Execution_Policy>
/app/decode.sh from a
container image you supply, so decoder.decoder_binary does not apply — the image
provides the decoder. decoder_cmd_template and extra_args are forwarded as the
DECODER_CMD_TEMPLATE and DECODER_EXTRA_ARGS environment variables; an AWS run
only matches a local run if the image reads them. The submitter prints a note
whenever these settings are set, so the divergence is never silent.target.profile, target.level) apply identically in
local and AWS Batch mode. Level matching accepts 4.1, 4_1 and the packed L41
filename conventionspython3 {plugin_root}/skills/codec-conformance-eval/scripts/compare_output.py --test runs built-in unit tests ({plugin_root} = plugin root resolved from .rat/state/spawn-context.json)
</Execution_Policy>Decoder build (build_decoder.sh)
bash {plugin_root}/skills/codec-conformance-eval/scripts/build_decoder.sh <decoder_src> <decoder_binary> [extra_cflags...]gcc -std=c11 -O2 -Wall -Wextra -lm (C11 standard per CLAUDE.md)-DDECODER_ONLY, -DMAX_DPB_SIZE=16Conformance test execution (run_conformance.py)
python3 {plugin_root}/skills/codec-conformance-eval/scripts/run_conformance.py <config.hjson> --mode localpython3 {plugin_root}/skills/codec-conformance-eval/scripts/run_conformance.py <config.hjson> --mode aws-batch.rat/scratch/conformance-eval/results.jsonOutput comparison (compare_output.py)
python3 {plugin_root}/skills/codec-conformance-eval/scripts/compare_output.py <results.json> <config.hjson>.rat/scratch/conformance-eval/conformance-metrics.jsonReport generation
output.report_path (default: docs/phase-1-research/conformance-eval-report.md).
No script writes this file — the skill does, so read the key rather than assuming the default.<Tool_Usage>
# ============================================================
# Step 1: Prerequisite validation
# ============================================================
Glob("refc/*.c") # Verify decoder source exists
Read("<conformance-config.hjson>") # Read conformance configuration
Bash("python3 -c 'import hjson; print(\"OK\")'") # Check dependencies
Bash("ls conformance/") # Verify conformance bitstream dirs exist
Bash("ls conformance/golden-outputs/") # Verify golden output references exist
# ============================================================
# Step 2: Decoder build
# ============================================================
Bash("bash {plugin_root}/skills/codec-conformance-eval/scripts/build_decoder.sh refc .rat/scratch/conformance-eval/decoder")
# ============================================================
# Step 3: Conformance test execution (parallel)
# ============================================================
Bash("python3 {plugin_root}/skills/codec-conformance-eval/scripts/run_conformance.py <config.hjson> --mode local",
timeout=600000)
# ============================================================
# Step 4: Output comparison
# ============================================================
Bash("python3 {plugin_root}/skills/codec-conformance-eval/scripts/compare_output.py .rat/scratch/conformance-eval/results.json <config.hjson> --output .rat/scratch/conformance-eval/conformance-metrics.json")
# ============================================================
# Step 5: Report generation
# ============================================================
Read(".rat/scratch/conformance-eval/conformance-metrics.json")
# Write report to configured output path
</Tool_Usage>
**Example 1: H.264 Baseline decoder conformance** ``` User: "Run H.264 Baseline profile decoder conformance test" → Invoke /rtl-agent-team:codec-conformance-eval → Step 1: Verify refc/ exists, generate conformance-config.hjson (target: h264/Baseline) → Step 2: Build decoder → Step 3: Filter Baseline profile from JVET + JCTVC conformance streams, parallel decoding → Step 4: Per-stream MD5 comparison → 42/45 PASS, 3 FAIL → Step 5: Generate docs/phase-1-research/conformance-eval-report.md → "42 of 45 conformance streams PASS. 3 failures: deblocking filter edge cases. Debugging required." ```Example 2: Full HEVC conformance with SSIM
User: "Run H.265 Main profile conformance with SSIM"
→ quality_metrics: ["psnr", "ssim"] configured
→ Execute JVET + JCTVC + Allegro + Elecard conformance streams
→ Mandatory (JVET+JCTVC): 128/128 PASS
→ Optional (3rd party): 45/48 PASS
→ "All mandatory streams PASS. 3 third-party failures (optional). Overall verdict: PASS."
Example 3: No decoder source
User: "Run decoder conformance test"
→ Step 1: No decoder code found in refc/
→ "No ref C model decoder source found. Run /rtl-agent-team:ref-model first to generate the reference model."
<Escalation_And_Stop_Conditions>
<Final_Checklist> Before reporting completion, verify ALL of the following:
{plugin_root}/domain-packages/video-codec/knowledge/block-level-conformance.md)If ANY item is unchecked → DO NOT report completion. Fix the issue first. </Final_Checklist>
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub babyworm/rtl-agent-team --plugin rtl-agent-team56 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-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.Other plugins' skills for the same job