vtestrun

vtestrun is a skill for Claude Code from phamcuong21478/rtl-skills. It costs 35 tokens per session (1,827 once invoked), scanned C, original, Apache-2.0.

A test runner for Verilog hardware projects that builds and simulates every approved testcase listed for an intellectual-property block, or IP. It records the results and creates a separate report for each failure.

In plain words
What is it for?
Use it to execute the listed testcases through the project’s Makefile, count passes and failures, and write reports under the IP’s issue directory.
Why use it?
Running many hardware simulations manually makes it easy to miss tests or lose useful failure details. This process produces a summary and preserves the build and simulation context without guessing the cause or proposing fixes.

Skill for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; reads .claude/ paths.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is [ -z "$(find ../../rtl ../../lib *.vh sti_*.sv sco_*.sv tb_<module>.sv \.

Good fit Use it to execute the listed testcases through the project’s Makefile, count passes and failures, and write reports under the IP’s issue directory.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/phamcuong21478/rtl-skills
agentmods
npx agentmods add skills/phamcuong21478/rtl-skills/vtestrun

Made for: Claude Code.

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 vtestrun

README.md
[![agentmods](https://agentmods.dev/badge/skills/phamcuong21478/rtl-skills/vtestrun/github.svg)](https://agentmods.dev/skills/phamcuong21478/rtl-skills/vtestrun)
Your own site
<a href="https://agentmods.dev/skills/phamcuong21478/rtl-skills/vtestrun"><img src="https://agentmods.dev/badge/skills/phamcuong21478/rtl-skills/vtestrun/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 vtestrun

Your own site · 80×15
<a href="https://agentmods.dev/skills/phamcuong21478/rtl-skills/vtestrun"><img src="https://agentmods.dev/badge/skills/phamcuong21478/rtl-skills/vtestrun.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,827 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00035 $0.01827
Opus 5 $0.00017 $0.00914
Sonnet 5 $0.00007 $0.00365
Haiku 4.5 $0.00003 $0.00183

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

Security

Grade C, and why

vtestrun scanned grade C with 1 finding 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 11d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf sim/tb_<module> && make tb_<module> # stale/missing — rebuild fresh
skills/vtestrun/SKILL.md · 180 lines

How it starts

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

Verilog Testcase Runner

Overview

This skill runs every IP-level testcase listed in tc_list.md through the Makefile-driven bench that vtestgen scaffolded, captures the build/simulation logs, and writes a structured issue report for each failure.

The input is an IP name. The outputs are:

  1. ./issue/<ip>/issue_NNN_<tcname>.md — one file per failing testcase
  2. ./issue/<ip>/run_summary.md — overall pass/fail count and failure index

This skill reports failure context only. It does not analyze root cause, propose fixes, or suggest code changes.

Prerequisites

Tool Purpose Check
xvlog compile / lint xvlog --version
xelab elaborate xelab --version
xsim simulate xsim --version
make build orchestration make --version

Step 1 - Read the testcase list

Read tb/<ip>/tc_list.md and parse the testcase table into a run list. Include only rows with status OK; skip rows with status SKIPPED.

For each entry record: file (the .sv), module (the tb_* module, equal to the file base name), category, and description. Confirm tb/<ip>/Makefile and tb/<ip>/script/rtl.f exist before proceeding.

Step 2 - Create the output directory

Create ./issue/<ip>/ if absent. Do not delete existing issue files; new files use the next available NNN index (continue from the highest existing index, else start at 001).

Step 3 - Run each testcase

Run from inside tb/<ip>/. vtestrun is the authoritative pass/fail, but it does not need to re-simulate testcases that vtestgen already ran — the verdict is the same [FINISH] token. Re-running everything would just repeat vtestgen's self-check sims. The one thing it must never do is trust a stale result (a simulate.log older than an RTL/TB source it depends on — e.g. after a Phase 6 RTL fix), because the build rule no-ops while a simulate.log exists and make cleanf keeps prior PASS dirs.

Read the full file on GitHub · 180 lines

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. 11d ago First seen · 180 lines · 35 tokens per session scan C cc0bbec96872

Subscribe to this mod's changes

vtestrun is a skill published in the GitHub repository phamcuong21478/rtl-skills (11 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 35 tokens to every session and 1,827 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.