rtl-p4s-refactor

Refactor SystemVerilog or Verilog RTL code with lint and equivalence verification.

43|9|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/babyworm/rtl-agent-team --skill rtl-p4s-refactor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rtl-p4s-refactor
Source: https://github.com/babyworm/rtl-agent-team/tree/main/skills/rtl-p4s-refactor
Command: npx skills add https://github.com/babyworm/rtl-agent-team --skill rtl-p4s-refactor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Refactor RTL code for improved readability, naming, and lint compliance without introducing behavioral regressions by coupling structural edits with automated equivalence verification.

Core Features & Use Cases

  • Safe Refactoring: Apply naming conventions, rename signals, and reorganize or split/merge modules while preserving functional behavior.
  • Lint and Style Compliance: Re-run lint checks and enforce coding conventions after transformations to ensure maintainability and review readiness.
  • Equivalence Verification: Orchestrate equivalence checking and smoke simulations to confirm that refactoring did not change observed behavior.
  • Use Case: Split a large legacy SystemVerilog module into focused submodules, fix naming and style violations, and validate equivalence before committing changes.

Quick Start

Ask rtl-p4s-refactor to refactor the target module for naming and style compliance, perform any needed splits or merges, and run lint plus equivalence verification.

Frequently Asked Questions about rtl-p4s-refactor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I refactor SystemVerilog modules without changing functional behavior?

To refactor SystemVerilog modules without changing functional behavior, apply structural edits like signal renaming and module splitting while orchestrating automated equivalence checking and lint validations to verify logic preservation.

Can I split a large legacy RTL module into submodules and ensure equivalence?

Yes, you can split large legacy RTL modules into focused submodules while ensuring equivalence by coupling the structural transformation with automated equivalence checking and smoke simulations to confirm behavior remains unchanged.

How do I enforce naming conventions and lint compliance during RTL maintenance?

Enforce naming conventions and lint compliance during RTL maintenance by applying automated convention rules to restructure code, then re-running lint checks to validate style violations are resolved before review handoff.

What is the safest way to rename signals in Verilog without introducing regressions?

The safest way to rename Verilog signals without regressions is applying structural analysis to execute the renaming, followed by orchestrating equivalence checking tools to verify the original and refactored logic match.

Does RTL refactoring with equivalence checking support pre-review codebase cleanup?

Yes, RTL refactoring with equivalence checking supports pre-review codebase cleanup by reorganizing module structures and fixing style violations, then running lint and equivalence checks to ensure review readiness.