chip-rtl-guideline-generator

chip-rtl-guideline-generator is a skill for Claude Code from zhaixin244-wq/fnw. It costs 68 tokens per session (1,258 once invoked), scanned A, original, MIT.

A generator for RTL coding rules and implementation guidance based on a chip's microarchitecture. RTL is hardware description code that defines the circuits to be synthesized, and the guidance covers clocks, resets, state machines, interfaces, scan testing, and assertions.

In plain words
What is it for?
Use it to create an implementation guide for a hardware module, including parameter choices, coding patterns, verification hooks, and example Verilog code.
Why use it?
It turns design decisions into concrete coding rules that improve consistency and help keep the RTL synthesizable.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to create an implementation guide for a hardware module, including parameter choices, coding patterns, verification hooks, and example Verilog code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zhaixin244-wq/fnw/chip-rtl-guideline-generator
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 zhaixin244-wq/fnw --skill chip-rtl-guideline-generator
Clone the repo
git clone --depth 1 https://github.com/zhaixin244-wq/fnw

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 chip-rtl-guideline-generator

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhaixin244-wq/fnw/chip-rtl-guideline-generator"><img src="https://agentmods.dev/badge/skills/zhaixin244-wq/fnw/chip-rtl-guideline-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,258 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.00068 $0.01258
Opus 5 $0.00034 $0.00629
Sonnet 5 $0.00014 $0.00252
Haiku 4.5 $0.00007 $0.00126

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

Security

Grade A, and why

chip-rtl-guideline-generator 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 9d 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/skills/chip-rtl-guideline-generator/SKILL.md · 100 lines

How it starts

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

Chip RTL Guideline Generator

任务

从微架构设计生成可执行的 RTL 编码规范与实现指导。

规范维度

  1. Clock/Reset 策略
    • 单一时钟域优先,多时钟域明确 CDC 方案
    • 同步复位或异步复位同步释放
    • 禁止门控时钟直接驱动组合逻辑
  2. 可综合性
    • 避免不可综合结构(initial、delay、floating 端口)
    • 禁止使用 latch(除低功耗保持单元外)
    • 时序逻辑与组合逻辑分离
  3. 编码风格
    • 参数化设计(可配置的 DATA_WIDTH、DEPTH、PIPELINE_STAGES)
    • 模块化接口封装(ready/valid 握手标准模板)
    • 状态机采用两段式或三段式,优先使用 enum/localparam
  4. DFT 友好性
    • 所有触发器接入扫描链(或预留扫描端口)
    • 避免异步置位/复位与组合反馈环
    • 时钟门控使用标准 ICG 单元
  5. 断言与验证接口
    • 关键协议点插入 SVA(握手、边界条件、不变量)
    • 提供可配置的数据通路旁路(BYPASS)用于验证加速

执行步骤

  1. 读取微架构设计描述或框图。
  2. 读取项目编码规范:必须先读取 .claude/rules/coding-style.md,确保生成的规则不与项目规范冲突。
  3. 提取关键实现约束(数据宽度、流水线级数、状态机数量、特殊单元需求)。
  4. 针对每项约束生成对应的 RTL 编码规则与代码片段示例。所有代码示例必须使用 Verilog-2005 语法always @(posedge clk) 而非 always_ff)。
  5. 关联 quality-checklist-impl.md 的 IC 编号,确保编码规则与项目质量体系对齐。
  6. 输出《RTL 实现指导书》Markdown 文档到 {module}_work/ds/doc/ua/

输出格式

### RTL 实现指导(模块:XXX)

#### 1. Clock/Reset
- 主时钟:`clk_core`(频率:X MHz)
- 复位策略:异步复位同步释放,复位同步器深度为 2。

#### 2. 参数定义
```systemverilog
localparam DATA_WIDTH = 64;
localparam FIFO_DEPTH = 16;
3. 关键编码规则
规则 ID 规则描述 优先级 示例/备注
RTL-001 所有时序逻辑统一使用 always @(posedge clk or negedge rst_n) Must Verilog-2005 语法,见 coding-style.md §5
4. 可综合性检查点
  • ...

## 使用示例

**示例 1**:
- 用户:「从 data_adpt 微架构生成 RTL 编码指导」
- 行为:读取微架构提取关键约束(数据宽度、流水线级数、FSM 数量),生成 Clock/Reset 策略、参数定义、编码规则表、可综合性检查点

**示例 2**:
- 用户:「帮我为 buf_mgr 生成 DFT 友好性编码规范」
- 行为:聚焦 DFT 维度,生成扫描链接入规则、ICG 使用规范、异步置位禁止规则,输出编码指导文档

## 异常处理

| 场景 | 触发条件 | 处理动作 |
|------|----------|----------|
| 微架构文档缺失 | 文件路径无效 | 暂停,提示先完成微架构设计 |
| 约束信息不足 | 微架构无详细时序/面积约束 | 基于通用规范生成,标注 `[GUIDE-GENERAL]` |
| 编码风格冲突 | 项目编码规范与生成规则矛盾 | 以项目编码规范为准,标注差异项 |

## 检查点

**检查前**:
- 确认微架构文档路径有效(用 Glob 搜索 `ds/doc/ua/*.md`)
- 确认项目编码规范 `.claude/rules/coding-style.md` 已读取

**检查后**:
- 确认 5 个规范维度均已覆盖
- 确认编码规则表包含规则 ID、描述、优先级
- 确认所有代码示例使用 Verilog-2005 语法(非 SystemVerilog)
- 确认可综合性检查点已列出

## 降级策略

Read the full file on GitHub · 100 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. 9d ago First seen · 100 lines · 68 tokens per session scan A a37c98c2b4d7

Subscribe to this mod's changes

chip-rtl-guideline-generator is a skill published in the GitHub repository zhaixin244-wq/fnw (29 stars, last pushed 3mo ago), licensed MIT. It adds 68 tokens to every session and 1,258 once invoked, about $0.0003 per session on Opus 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-09-03.

Related

Other skills, from other repositories

cardputer-buddy

Iterate on the Cardputer-Adv MicroPython app bundle (Claude Buddy, Snake, Hello) after the device is already provisioned via m5-onboard. Use when the user wants to add a new app, push a single changed .py without re-flashing, watch device serial logs, or run a one-shot REPL command. Trigger on "add an app", "push to…

anthropics/claude-plugins-official · 109 tokens

doca-argp

Use this skill for hands-on DOCA Arg Parser CLI work on a shipped sample or new DOCA-using app — adding / removing / renaming flags; wiring docaargpinit → register params → docaargpstart → docaargpdestroy in order; picking a parameter type from the full public enum (DOCAARGPTYPESTRING, INT, BOOLEAN, DEVICE, DEVICEREP…

NVIDIA/skills · 267 tokens

holoscan-install-wheel

Install Holoscan SDK Python wheel via pip into a venv. Use for Python installs; not for native C++/apt or Conda installs.

NVIDIA/skills · 37 tokens

zener-language

Read or edit Zener HDL, package APIs, and tool-managed dependencies.

diodeinc/pcb · 19 tokens

embedded-stm32

Best practices for embedded C/C++ development on STM32 microcontrollers using the HAL, covering peripherals, DMA, interrupts, memory constraints, and hardware-focused testing. Use when writing STM32 HAL code, configuring peripherals generated by STM32CubeMX, working with interrupts or DMA, debugging with SWD/JTAG…

Mindrally/skills · 87 tokens

003-skills-inventory

Use when you need to generate a checklist document with Java system prompts from skills.xml, following the embedded section template and producing INVENTORY-SKILLS-JAVA.md. This should trigger for requests such as Create Java system prompts checklist; Generate INVENTORY-SKILLS-JAVA.md; Use @003-skills-inventory…

jabrena/plinth · 88 tokens