rtl-p4s-unit-test

rtl-p4s-unit-test is a skill for Claude Code from babyworm/rtl-agent-team. It costs 43 tokens per session (730 once invoked), scanned A, original, MIT.

A unit-testing workflow for each RTL module, comparing its simulated behavior with an architectural specification and a reference model. RTL is hardware description code, and a reference model is an independent implementation used as a behavior check.

In plain words
What is it for?
Use it to create SystemVerilog testbenches, test key module features, compare outputs with a reference model, and verify bug fixes with simulations.
Why use it?
Basic smoke tests can show that signals connect and simple operations work, but they may miss incorrect module behavior. These tests provide more focused checks before broader regression or cross-module testing.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

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

Good fit Use it to create SystemVerilog testbenches, test key module features, compare outputs with a reference model, and verify bug fixes with simulations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/babyworm/rtl-agent-team/rtl-p4s-unit-test
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 rtl-p4s-unit-test
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 97 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 rtl-p4s-unit-test

README.md
[![agentmods](https://agentmods.dev/badge/skills/babyworm/rtl-agent-team/rtl-p4s-unit-test/github.svg)](https://agentmods.dev/skills/babyworm/rtl-agent-team/rtl-p4s-unit-test)
Your own site
<a href="https://agentmods.dev/skills/babyworm/rtl-agent-team/rtl-p4s-unit-test"><img src="https://agentmods.dev/badge/skills/babyworm/rtl-agent-team/rtl-p4s-unit-test/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rtl-p4s-unit-test

Your own site · 80×15
<a href="https://agentmods.dev/skills/babyworm/rtl-agent-team/rtl-p4s-unit-test"><img src="https://agentmods.dev/badge/skills/babyworm/rtl-agent-team/rtl-p4s-unit-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 730 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.
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.00043 $0.00730
Opus 5.5 $0.00017 $0.00292
Sonnet 5.5 $0.00009 $0.00146
Haiku 4.5 $0.00004 $0.00073

Measured 15d ago against content hash 536037db0a55, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rtl-p4s-unit-test 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 15d ago.

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/rtl-p4s-unit-test/SKILL.md · 66 lines

How it starts

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

Testing Tier Context:

Tier 1: Smoke Test     — connectivity, R/W, basic ops (rtl-p4-implement Wave 6)
Tier 2: Unit Test      — reference comparison, uarch features (THIS SKILL) ←
Tier 3: Module Regr.   — cocotb multi-seed (rtl-p5s-func-verify)
Tier 4: Integration    — cross-module, end-to-end (rtl-p5s-integration-test)

Outputs: sim/{module}/tb_{module}.sv testbench files + sim/{module}/{module}_unit_results.json.

<Use_When>

  • Phase 4 RTL is lint-clean AND Tier 1 smoke test passed (rtl-p4-implement Wave 6)
  • Each module needs uarch-level functional verification with reference comparison
  • A new module's key features need targeted testing beyond connectivity
  • A bug fix needs regression test verifying the fix against reference model </Use_When>

<Do_Not_Use_When>

  • Only basic connectivity/R/W verification needed (covered by rtl-p4-implement Wave 6 smoke — Tier 1)
  • Full multi-seed regression needed (use rtl-p5s-func-verify — Tier 3)
  • Integration/cross-module testing (use rtl-p5s-integration-test — Tier 4)
  • Formal verification preferred (use rtl-p5s-sva-check instead) </Do_Not_Use_When>

<Why_This_Exists> Tier 1 (smoke) only verifies connectivity and basic I/O. Tier 2 unit tests verify that each module implements its uarch spec — FSM states, pipeline stages, data transformations — using the C reference model as the golden oracle. This catches behavioral bugs that smoke tests miss, while remaining faster and more targeted than full regression (Tier 3). </Why_This_Exists>

All coding conventions, reference mode rules, escalation criteria, and result schemas are defined in the rtl-p4s-unit-test-policy skill (loaded via the orchestrator's skills: field).

Execution

Task(subagent_type="rtl-agent-team:p4s-unit-test-orchestrator", prompt="Execute Tier 2 unit testing. User input: $ARGUMENTS")

Do not perform any work directly. The orchestrator agent manages testbench generation, simulation, and failure triage.

Read the full file on GitHub · 66 lines

Files

What ships with it

1 file 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. 15d ago First seen · 66 lines · 43 tokens per session scan A 536037db0a55

Subscribe to this mod's changes

rtl-p4s-unit-test is a skill published in the GitHub repository babyworm/rtl-agent-team (61 stars, last pushed 16d ago), licensed MIT. It adds 43 tokens to every session and 730 once invoked, about $0.0002 per session on Opus 5.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-10-08.

Related

Other skills, from other repositories

test-sqrl

Use when adding or updating tests for a DataSQRL pipeline. Use after implementing features to verify correctness.

DataSQRL/sqrl · 26 tokens

embedded-testing-patterns

Firmware test patterns with Unity, CMock, Ceedling, and QEMU: project layout, testable HAL interfaces, CMock expect chaining, error-path tests, and an on-target test runner over ITM. Use when making embedded C testable or writing tests for it.

HermeticOrmus/LibreEmbed-Claude-Code · 62 tokens

mavlink-integration

Use this skill when a task involves MAVLink protocol communication via pymavlink, UART/UDP/TCP drone connections, ArduPilot SITL simulation, or telemetry message parsing in the edge service. Don't use it for raw UART hardware driver code without MAVLink framing (use embedded-systems), WebSocket transport to the web…

atretyak1985/swarmery · 86 tokens

codexkit-test-hardening

Strengthen test coverage around changed behavior, edge cases, and regressions without writing noisy or brittle tests.

hoavdc/CodexKit · 28 tokens

testing-business-rules

Use when adding, reviewing, or deleting tests, deciding whether a function needs coverage, or when a suite enumerates branches, signs, empty values, or implementation steps without naming the behavior at risk.

luabagg/agent-skills · 45 tokens

precommit

Run the deterministic pre-commit pipeline in fast or full mode through the packaged runner. Use when handing off repository changes. Not for: ad hoc replacement checks, dependency audits, or read-only verification. Output: runner-owned changed-file reporting and final verdict.

hmj1026/dhpk · 54 tokens