rtl-lint

rtl-lint is a command for Claude Code from zhaixin244-wq/fnw. It costs 0 tokens per session (304 once invoked), scanned A, original, MIT.

A command for checking Verilog and SystemVerilog hardware-design files with Verible and Verilator, tools that detect syntax, style, structural, and functional issues.

In plain words
What is it for?
Use it to lint a hardware-description file and optionally apply automatic formatting fixes.
Why use it?
It can reveal problems such as incorrect widths, inferred latches, or disconnected ports before hardware code is used further.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash .claude/shared/rtl-lint.sh {file}.v.

Good fit Use it to lint a hardware-description file and optionally apply automatic formatting fixes.

Compare 6 commands 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/zhaixin244-wq/fnw
agentmods
npx agentmods add commands/zhaixin244-wq/fnw/rtl-lint

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 rtl-lint

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/zhaixin244-wq/fnw/rtl-lint"><img src="https://agentmods.dev/badge/commands/zhaixin244-wq/fnw/rtl-lint.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 304 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.00000 $0.00304
Opus 5 $0.00000 $0.00152
Sonnet 5 $0.00000 $0.00061
Haiku 4.5 $0.00000 $0.00030

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

Security

Grade A, and why

rtl-lint 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 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.

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.

.claude/commands/rtl-lint.md · 37 lines

What it actually says

RTL Lint — Verilator + Verible 双重检查

对 Verilog/SystemVerilog 文件执行综合 lint 检查。

检查内容

  1. Verible 语法检查 — 解析器级别的语法正确性
  2. Verible 风格检查 — 50+ 可配置规则(命名、格式、结构)
  3. Verilator 功能检查 — 功能级 lint(latch、位宽、未连接端口等)

使用方式

# 完整检查
bash .claude/shared/rtl-lint.sh {file}.v

# 检查 + 自动格式化
bash .claude/shared/rtl-lint.sh {file}.v --fix

参数

  • $ARGUMENTS — 要检查的 Verilog 文件路径

检查规则

工具 检查维度 规则文件
Verible 语法、命名、格式、结构 .claude/tools/verible/verible-lint.rules
Verilator 功能、位宽、latch、未连接端口 内置 -Wall

规则定制

编辑 .claude/tools/verible/verible-lint.rules 可启用/禁用规则:

  • +rule-name 启用
  • -rule-name 禁用
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 · 37 lines · 0 tokens per session scan A db598808756e

Subscribe to this mod's changes

rtl-lint is a command published in the GitHub repository zhaixin244-wq/fnw (29 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 304 tokens. 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-08-30.