codec-conformance-eval

codec-conformance-eval is a skill for Claude Code from babyworm/rtl-agent-team. It costs 45 tokens per session (3,056 once invoked), scanned A, original, MIT.

A tool for checking a C video decoder against official test bitstreams from standards groups such as JVET and JCTVC. It compares decoded results with approved reference outputs using exact hashes and image-quality measures.

In plain words
What is it for?
It is for building the decoder, running official streams, comparing results, and producing a conformance coverage report.
Why use it?
It finds decoder errors and shows which video profiles and levels work before the design is implemented in hardware.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions CLAUDE.md.

Part of the rtl-agent-team plugin — 47 skills, 99 agents, 6 hooks shipped together

Good fit It is for building the decoder, running official streams, comparing results, and producing a conformance coverage report.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/babyworm/rtl-agent-team/codec-conformance-eval
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add babyworm/rtl-agent-team --skill codec-conformance-eval
Clone the repo
git clone --depth 1 https://github.com/babyworm/rtl-agent-team

Made for: Claude Code.

Or install rtl-agent-team, the plugin that ships this one along with the rest of its 47 skills, 99 agents, 6 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for codec-conformance-eval

README.md
[![agentmods](https://agentmods.dev/badge/skills/babyworm/rtl-agent-team/codec-conformance-eval.svg)](https://agentmods.dev/skills/babyworm/rtl-agent-team/codec-conformance-eval)
Your own site
<a href="https://agentmods.dev/skills/babyworm/rtl-agent-team/codec-conformance-eval"><img src="https://agentmods.dev/badge/skills/babyworm/rtl-agent-team/codec-conformance-eval.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,056 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.03056
Opus 5 $0.00023 $0.01528
Sonnet 5 $0.00009 $0.00611
Haiku 4.5 $0.00005 $0.00306

Measured 4d ago against content hash d5a67eb26287, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

codec-conformance-eval scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/aws_batch_conformance.py, scripts/build_decoder.sh, scripts/compare_output.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/codec-conformance-eval/SKILL.md · 239 lines

How it starts

The opening of the file, as written. The whole thing — 239 lines — stays where its author put it; the contents beside it link to each section on GitHub.

This skill automates the full decoder conformance evaluation pipeline:

  1. Build decoder binary from refc/*.c (C11, gcc)
  2. Run parallel decoding of conformance bitstreams (JVET, JCTVC, 3rd party)
  3. Compare decoded output against golden references (MD5, bitexact, optional PSNR/SSIM/VMAF)
  4. Generate conformance report with profile/level coverage matrix

Scope: Decoder conformance evaluation at the algorithm/C model level.

  • This skill tests the C reference model decoder against official conformance streams
  • For RTL-level conformance testing, use /rtl-agent-team:rtl-conformance-test (Phase 5)
  • For encoder RD evaluation, use /rtl-agent-team:codec-rd-eval

Phase-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:

  • local: ProcessPoolExecutor-based parallel decoding on local CPU cores
  • aws-batch: Optional AWS Batch spot instance submission for large stream sets

Key features:

  • Profile/level filtering for targeted conformance testing
  • Multiple conformance sources: JVET/JCTVC (mandatory per standard), 3rd party (optional)
  • Configurable comparison: MD5 checksum, bitexact byte comparison, PSNR threshold
  • SSIM/VMAF opt-in (only on explicit user request)
  • Profile coverage matrix generation

<Use_When>

  • Validating decoder algorithm correctness against official conformance streams
  • Verifying that a C ref model decoder passes JVET/JCTVC conformance requirements
  • Testing decoder support for specific profiles/levels before hardware implementation
  • Evaluating 3rd-party conformance streams for additional coverage
  • The user explicitly says "decoder conformance", "conformance stream", "conformance test", "decoder verify", "bitexact decoder" </Use_When>

<Do_Not_Use_When>

  • No ref C model decoder exists yet (build ref model first via /rtl-agent-team:ref-model)
  • Testing RTL decoder implementation (use /rtl-agent-team:rtl-conformance-test, Phase 5)
  • Comparing encoder quality (use /rtl-agent-team:codec-rd-eval)
  • Comparing RTL vs C model output (use /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>

  • Requires refc/*.c with decoder functionality (or configured decoder_src)
  • HJSON conformance configuration defines all test parameters
  • Local execution is the default; AWS Batch is opt-in via configuration
  • AWS Batch decoder contract: the job definition runs /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.
  • Profile and level filters (target.profile, target.level) apply identically in local and AWS Batch mode. Level matching accepts 4.1, 4_1 and the packed L41 filename conventions
  • Conformance results are cached at .rat/scratch/conformance-eval/
  • Report is generated at configured path (default: docs/phase-1-research/conformance-eval-report.md)
  • On build failure: report error details and stop
  • On decoding failure: mark stream as FAIL, continue with remaining streams
  • Mandatory streams (JVET, JCTVC) must all PASS for overall conformance PASS
  • Optional streams (3rd party) failures are reported but do not affect overall verdict
  • SSIM/VMAF are computed ONLY when explicitly requested via quality_metrics config
  • timeout_per_job is in seconds (default: 300s = 5 min per decoding job)
  • Dependencies: gcc (C11), Python 3.9+, hjson, numpy (optional, for PSNR computation). Optional: ffmpeg (required for SSIM/VMAF computation when quality_metrics includes "ssim" or "vmaf"), boto3 (required only for aws-batch execution mode)
  • Self-test: python3 {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>

Read the full file on GitHub · 239 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 239 lines · 45 tokens per session scan A d5a67eb26287

Subscribe to this mod's changes

codec-conformance-eval is a skill published in the GitHub repository babyworm/rtl-agent-team (51 stars, last pushed 14d ago), licensed MIT. It adds 45 tokens to every session and 3,056 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.