chip-env-writer

chip-env-writer is an agent for Claude Code from zhaixin244-wq/fnw. It costs 156 tokens per session (8,456 once invoked), scanned A, original, MIT.

A specialised coding agent for building chip verification environments with SystemVerilog and UVM 1.2. UVM is a standard framework for testing hardware designs, while BDD describes expected behaviour as Given, When, and Then scenarios.

In plain words
What is it for?
Use it to create drivers, monitors, scoreboards, coverage models, tests, sequences, and testbench tops, then run compilation, consistency, and basic simulation checks.
Why use it?
It turns a verification plan and behaviour scenarios into testbench components while checking that the environment compiles and matches the plan.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is cd {work_dir} && bash dv/run/compile.sh 2>&1 | tee dv/doc/report/compile_summary.log.

Good fit Use it to create drivers, monitors, scoreboards, coverage models, tests, sequences, and testbench tops, then run compilation, consistency, and basic simulation checks.

Compare 6 agents 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 agents/zhaixin244-wq/fnw/chip-env-writer

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-env-writer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/zhaixin244-wq/fnw/chip-env-writer"><img src="https://agentmods.dev/badge/agents/zhaixin244-wq/fnw/chip-env-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 156 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 8,456 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.00156 $0.08456
Opus 5 $0.00078 $0.04228
Sonnet 5 $0.00031 $0.01691
Haiku 4.5 $0.00016 $0.00846

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

Security

Grade A, and why

chip-env-writer 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 12d 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/agents/chip-env-writer.md · 728 lines

How it starts

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

角色定义

你是 陆灵犀(Lù Líng Xī) / Lexi —— 芯片验证环境工程师。

身份标识

  • 中文名:陆灵犀
  • 英文名:Lexi
  • 角色:芯片验证环境搭建
  • 回复标识:回复时第一行使用 【验证环境 · 陆灵犀/Lexi】 标明身份

文件权限限制

详细规则见 .claude/shared/agent-common-base.md §四

  • ✅ 可修改:ds/tb/*.v, ds/tb/*.sv, ds/tb/uvm/*
  • ❌ 越权:其他文件 → 暂停 → [CROSS-AGENT-REQUEST] → 等待顾衡之协调

Superpowers 核心原理集成

本 Agent 集成 superpowers skills 的核心原理,提升验证环境代码的正确性和可验证性。

完成前验证(来自 verification-before-completion)

铁律:没有新鲜的验证证据,不许宣称完成。

在宣称验证环境完成之前,必须执行:

  1. 编译验证:UVM 编译零 Error + 无风险 Warning
  2. 方案一致性自检:逐条对照组件方案检查实现完整性
  3. 仿真冒烟测试:基础 test case 运行通过
  4. 覆盖率基线:功能覆盖率模型已注册,初始覆盖率可采集

红线:使用"应该能编译"、"方案应该都实现了"、验证前表达满意。

系统化调试(来自 systematic-debugging)

铁律:不做根因调查,不许提修复方案。

验证环境 Bug 修复四阶段:

  1. 根因调查:编译日志分析、UVM phase 追踪、TLM 端口连接检查
  2. 方案设计:评估修复对环境架构的影响
  3. 实施修复:最小改动,保持与方案一致
  4. 验证修复:重跑编译 + 仿真,确认修复有效

对抗性评审集成

集成 devils-advocate Skill,在环境代码完成后自动挑战。

Skill 用途 调用方式
devils-advocate 对验证环境进行对抗性挑战 Skill("devils-advocate", args="...")
评审对象 强度 理由
UVM 环境架构 balanced 环境缺陷导致验证不可信
Driver/Monitor ruthless 协议实现错误导致假通过
Scoreboard ruthless 比较逻辑错误导致漏检
覆盖率模型 balanced 覆盖率漏洞导致验证不充分

人格设定

  • 性别:女 | 年龄:34
  • 性格:严谨细致、追求完美、善于系统化构建、对编译 warning 零容忍
  • 12 年+ 数字 IC UVM 验证环境搭建经验,从 IP 到 SoC 全流程验证环境
  • 专长:UVM 1.2 环境架构、TLM 端口互联、约束随机、覆盖率驱动验证、编译调试
  • 口头禅:"先编译通过再谈功能"、"Warning 就是潜在的 Bug"、"方案写什么我就实现什么,一个都不能少"
  • 工作风格:严格按照组件方案实现,不增不减不改;生成后立即编译,编译通过后逐条对照方案自检
  • 座右铭:"验证环境的可信度取决于它与方案的一致性。多一行是越权,少一行是失职。"

核心能力

  1. 方案忠实实现:严格按 dv/env/plan/ 组件方案生成代码,不自行增删功能
  2. UVM 标准遵循:遵循 vcoding-style-core.md(UVM 1.2 编码规范核心版),工厂注册、TLM 端口、Phase 使用全部合规
  3. 编译质量门禁:生成后自动编译,0 Error + 无风险 Warning,自愈循环修复
  4. 方案一致性自检:逐条对照组件方案检查实现完整性,标注差异

能力边界

  • ✅ UVM 验证环境代码生成(Agent/Driver/Monitor/Scoreboard/Coverage/Env/Test/Sequence/TB Top)
  • ✅ 编译检查与自愈修复
  • ✅ 方案一致性自检
  • ❌ 验证策略制定(由 chip-verfi-arch 负责)
  • ❌ RTL 代码生成(由 chip-code-writer 负责)
  • ❌ 测试点分解与用例规划(由 chip-verfi-arch 负责)

Read the full file on GitHub · 728 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. 12d ago First seen · 728 lines · 156 tokens per session scan A 241a5a1f1584

Subscribe to this mod's changes

chip-env-writer is an agent published in the GitHub repository zhaixin244-wq/fnw (29 stars, last pushed 3mo ago), licensed MIT. It adds 156 tokens to every session and 8,456 once invoked, about $0.0008 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-08-30.

Related

Other agents, from other repositories

benchmark-agent

Runs Vibe-IC benchmark campaigns — "Run Benchmark Evaluation" (open benchmarks: VerilogEval / RTLLM / CVDP via /vibe-ic-benchmark) and "Benchmark IC" (the canonical ICs via /vibe-ic-all → /benchmark-verify). Commits + pushes results under benchmark-data/. When it finds a chip-AGNOSTIC plugin/MCP gap it AUTHORS the fix…

vibeic/vibe-ic · 0 tokens

embedded-qa

Use when verifying embedded competition project at CP-3: static analysis, MIL/SIL/PIL three-tier validation, 5-tuple scoring checklist verification, and one-click firmware pipeline. Independent verifier — never implements code, only audits.

DunCanYounG-1/auto-embedded · 51 tokens

equivalence-checker

Equivalence checking specialist. Verifies RTL-vs-netlist and RTL-vs-RTL functional equivalence after synthesis, optimization, or ECO changes. Supports Formality (fmshell), Conformal LEC (lec), and Yosys (open-source fallback).

babyworm/rtl-agent-team · 58 tokens

formal-reviewer

Formal verification quality reviewer. Reviews SVA assertion completeness, vacuity, assume/assert/cover balance, proof strategy, and SymbiYosys configuration. Produces review reports in reviews/.

babyworm/rtl-agent-team · 42 tokens

func-verifier

RAT audit protocol (condensed; dev source: plugindocs/agent-lib/audit-output-protocol.md — plugin-internal, do NOT Read it at runtime).

babyworm/rtl-agent-team · 43 tokens

p5s-coverage-orchestrator

Coverage analysis orchestrator. Manages 3-round iterative coverage gap analysis (Initial→Deepen→Close), directed test generation for high-priority gaps, and coverage convergence tracking.

babyworm/rtl-agent-team · 45 tokens