rtl-p4s-bugfix-policy

rtl-p4s-bugfix-policy is a skill for Claude Code from babyworm/rtl-agent-team. It costs 27 tokens per session (823 once invoked), scanned A, original, MIT.

An internal policy for fixing bugs in RTL, the code used to describe digital hardware. It requires analysis, a lint check, a testbench change, and functional simulation in that order.

In plain words
What is it for?
Use it to guide module-level and cross-module bug fixes, parallel fixes for separate modules, regression testing, and the feedback process after verification failures.
Why use it?
Linting only checks code rules and syntax; it does not show that the hardware behaves correctly. The policy ensures a fix is tested and that all affected modules pass simulation.

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 guide module-level and cross-module bug fixes, parallel fixes for separate modules, regression testing, and the feedback process after verification failures.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/babyworm/rtl-agent-team/rtl-p4s-bugfix-policy"><img src="https://agentmods.dev/badge/skills/babyworm/rtl-agent-team/rtl-p4s-bugfix-policy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 823 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.00027 $0.00823
Opus 5.5 $0.00011 $0.00329
Sonnet 5.5 $0.00005 $0.00165
Haiku 4.5 $0.00003 $0.00082

Measured 18d ago against content hash faf12d51484e, 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-bugfix-policy 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 18d 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-bugfix-policy/SKILL.md · 81 lines

How it starts

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

RTL Bug Fix Policy

Mandatory 4-Step Sequence (per module)

  1. Analyze → identify root cause and affected modules
  2. Fix + Lint → modify RTL, run verilator --lint-only -Wall (max 3 lint rounds)
  3. TB → create or update testbench (at least 1 test per modified module)
  4. Functional Verification → run simulation, ALL tests must PASS

Each step can only proceed after the previous step is complete. Lint is a necessary condition, NOT sufficient — simulation is required.

Parallel UNIT_FIX Decision Tree

Failure Pattern Handling Parallelism
Different modules, UNIT_FIX Parallel rtl-p4s-bugfix, one per module run_in_background: true
Same module, multiple failures Sequential within single task No
INTEGRATION_FIX (cross-module) Always sequential No
Mixed UNIT_FIX + INTEGRATION_FIX INTEGRATION_FIX first, then UNIT_FIX in parallel Partial

Verification-done marker created ONLY after ALL parallel fixes pass functional verification.

Phase 5→4 Feedback Mode

Fix Type After Fix Re-verify
UNIT_FIX (SVA fail) lint → unit TB → unit sim Only affected Phase 5 sub-phase
UNIT_FIX (sim fail) lint → unit TB → unit sim Only affected Phase 5 sub-phase
INTEGRATION_FIX lint → unit TB + integration TB → sim 5b + 5c

In feedback mode: lesson-learned recording is mandatory (not just recommended).

Escalation & Stop Conditions

  • Lint fails 3 times → escalate to rtl-architect for design review
  • Cannot write TB (no ref model) → write minimal self-checking TB, report ref model requirement to user
  • Simulation fails after 2 fix iterations → escalate to waveform-analyzer + rtl-bug-repro skill
  • Simulator not installed → eda-runner provides installation instructions

TB Signal Naming Convention

  • dut.sys_clk, dut.sys_rst_n (clock/reset)
  • dut.i_*, dut.o_* (input/output ports)
  • TB check: ls sim/*/test_*.py sim/*/tb_*.sv 2>/dev/null

Read the full file on GitHub · 81 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. 18d ago First seen · 81 lines · 27 tokens per session scan A faf12d51484e

Subscribe to this mod's changes

rtl-p4s-bugfix-policy is a skill published in the GitHub repository babyworm/rtl-agent-team (61 stars, last pushed 19d ago), licensed MIT. It adds 27 tokens to every session and 823 once invoked, about $0.0001 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

hardware-health-check

Out-of-band hardware health via Redfish BMC (read-only) — power state, component health, thermal and power readings, firmware inventory, SEL log triage. Use when determining whether a host is powered off versus unreachable, checking hardware faults, reviewing thermal or PSU state, or triaging BMC event logs.

automateyournetwork/netclaw · 67 tokens

boot-doctor-mcp

Deterministic PC no-boot / no-POST / no-display troubleshooting — real BIOS beep-code lookup and a ranked next-steps engine, no LLM guessing at hardware causes. Use this whenever the user describes a computer that won't turn on, won't POST, has no display output, is beeping, or asks for hardware troubleshooting steps…

pamela-0/boot-doctor-mcp · 111 tokens

fpga-hardware-design-and-review-guide

Comprehensive FPGA hardware design guide based on real-world project experience. Covers pipeline architecture, timing optimization, SystemVerilog coding patterns, CDC handling, and practical debugging techniques. Use this skill when: (1) designing FPGA modules with timing constraints, (2) implementing video processing…

cobbpeng/fpga-hardware-design-and-review-guide · 99 tokens

vdebug

Trace failing signals through the RTL hierarchy, classify root cause, and write a debug report per issue — no fix is proposed.

phamcuong21478/rtl-skills · 27 tokens

gke-ai-troubleshooting-tpu-dynamic-slices-monitoring

Monitors, troubleshoots, and manages GKE TPU Dynamic Slices custom resources. Use when checking TPU slice lifecycle states, troubleshooting slice provisioning failures, validating single-slice or multi-slice (JobSet) workload manifests, or safely patching stuck finalizers and disabling the slice controller. Don't use…

google/skills · 107 tokens

gke-ai-troubleshooting-tpu-vbar-oom

Diagnoses and prevents vbarcontrolagent segfaults, out-of-memory (OOM) errors, and TPU device initialization failures on TPU v6e nodes in GKE caused by race conditions during TPU device resets or high-frequency metrics polling. Use when troubleshooting vbarcontrolagent crashes, memory cgroup OOMs in serial console…

google/skills · 125 tokens