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.
npx skills add zhaixin244-wq/fnw --skill chip-cbb-decisiongit clone --depth 1 https://github.com/zhaixin244-wq/fnwWrote 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.
[](https://agentmods.dev/skills/zhaixin244-wq/fnw/chip-cbb-decision)<a href="https://agentmods.dev/skills/zhaixin244-wq/fnw/chip-cbb-decision"><img src="https://agentmods.dev/badge/skills/zhaixin244-wq/fnw/chip-cbb-decision/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.
<a href="https://agentmods.dev/skills/zhaixin244-wq/fnw/chip-cbb-decision"><img src="https://agentmods.dev/badge/skills/zhaixin244-wq/fnw/chip-cbb-decision.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00071 | $0.01835 |
| Opus 5 | $0.00036 | $0.00918 |
| Sonnet 5 | $0.00014 | $0.00367 |
| Haiku 4.5 | $0.00007 | $0.00184 |
Grade A, and why
chip-cbb-decision 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.
How it starts
The opening of the file, as written. The whole thing — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CBB 抽象决策器
评估 RTL 逻辑是否应该抽象为 CBB 模块。chip-code-writer 在模块结构规划阶段调用。
输入
| 参数 | 类型 | 必需 | 说明 |
|---|---|---|---|
| logic_description | string | 是 | 待评估逻辑的功能描述 |
| interface_signals | object[] | 是 | 接口信号列表(名称、方向、位宽) |
| reuse_scenarios | string[] | 是 | 潜在复用场景描述 |
| param_candidates | string[] | 否 | 可参数化的候选参数 |
输出
| 参数 | 类型 | 说明 |
|---|---|---|
| decision | string | abstract_to_cbb / keep_inline |
| score | object | 四维度评分 |
| reason | string | 决策理由 |
| cbb_spec | object | 如决定抽象,输出 CBB 规格建议 |
四维度评估
维度 1:接口标准化(权重 30%)
| 分值 | 条件 |
|---|---|
| 3 | 输入输出格式可在 3+ 场景完全复用,无需修改 |
| 2 | 输入输出格式可在 2 场景复用,需少量参数调整 |
| 1 | 接口高度定制化,仅当前场景适用 |
维度 2:参数可配置(权重 25%)
| 分值 | 条件 |
|---|---|
| 3 | 核心参数(位宽、深度、通道数等)全部可通过 parameter 化 |
| 2 | 部分参数可配置,部分硬编码 |
| 1 | 核心逻辑依赖运行时值,无法参数化 |
维度 3:功能自包含(权重 25%)
| 分值 | 条件 |
|---|---|
| 3 | 不依赖外部上下文或状态,纯组合/时序逻辑 |
| 2 | 依赖少量外部信号(如时钟、复位、使能) |
| 1 | 依赖模块特定的上下文数组或状态 |
维度 4:复用价值(权重 20%)
| 分值 | 条件 |
|---|---|
| 3 | 至少 3 处使用,或代码量 > 100 行 |
| 2 | 2 处使用,或代码量 50~100 行 |
| 1 | 仅 1 处使用,且代码量 < 50 行 |
决策规则
总分 = Σ(维度分值 × 权重)
总分 ≥ 2.4 → abstract_to_cbb
总分 < 2.4 → keep_inline
强制不抽象条件(任一满足直接 keep_inline)
- 动态范围:搜索/迭代次数由运行时值决定
- 位图依赖:有效性检查依赖动态位图/掩码
- 上下文耦合:需要访问模块特定的上下文数组
- 接口不兼容:与标准 CBB 接口差异 > 3 个信号
执行步骤
读取输入 → 四维度评分 → 检查强制不抽象条件 → 输出决策
输出格式
## CBB 抽象决策报告
**逻辑描述**:{logic_description}
### 四维度评分
| 维度 | 分值 | 权重 | 加权分 | 理由 |
|------|------|------|--------|------|
| 接口标准化 | {N}/3 | 30% | {N} | {理由} |
| 参数可配置 | {N}/3 | 25% | {N} | {理由} |
| 功能自包含 | {N}/3 | 25% | {N} | {理由} |
| 复用价值 | {N}/3 | 20% | {N} | {理由} |
| **总分** | - | - | **{N}** | - |
### 强制不抽象检查
{逐项检查结果}
### 决策结论
**决策**:{abstract_to_cbb / keep_inline}
**理由**:{reason}
### CBB 规格建议(仅 abstract_to_cbb 时输出)
| 字段 | 内容 |
|------|------|
| 建议模块名 | `{module}_{type}_cbb` |
| 参数列表 | `{param1}`, `{param2}`, ... |
| 接口定义 | {端口列表概要} |
| 复用场景数 | {N} |
工具列表
Read:读取现有 CBB 文档和 RTLGrep:搜索复用场景和 CBB 引用Glob:查找现有 CBB 模块文件
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.
- 11d ago First seen · 169 lines · 71 tokens per session scan A 40e539a6c7fe
chip-cbb-decision is a skill published in the GitHub repository zhaixin244-wq/fnw (29 stars, last pushed 3mo ago), licensed MIT. It adds 71 tokens to every session and 1,835 once invoked, about $0.0004 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.
Other skills, from other repositories
gke-compute-classes
Configures, optimizes, and troubleshoots GKE ComputeClasses. Use when configuring Spot VMs with on-demand fallback, targeting specific accelerators (GPUs/TPUs) or machine families, restricting ComputeClass access, or debugging pending pods related to node pool auto-creation. Do not use for cluster-level Node Auto…
jetson-diagnostic
Read-only Jetson health snapshot for identity, memory, GPU, thermal, power, storage, services, and top processes.
doca-socket-relay
Use this skill when the operator is driving the DOCA Socket Relay to bridge a socket-oriented host application onto a BlueField DPU peer without rewriting it — picking the deployment shape (in-process, sidecar, or BlueField service container), configuring the host-side socket and the DPU-side forwarding endpoint…
offensive-z-wave
Z-Wave attack methodology — sniffing with Z-Force / EZ-Wave / RTL-SDR + ZniffMobile, S0 (legacy) network-key derivation flaw and key reuse, S2 (modern) ECDH commissioning analysis, replay/injection on unauthenticated nodes, default-key brute-force on test deployments, and home-automation hub pivots. Use when targeting…
hsb-flash
Flash the FPGA on an HSB board connected to an NVIDIA devkit. Supports HSB Lattice boards (FPGA versions 2407, 2412, 2507, 2510) and Leopard Imaging VB1940 "all-in-one" cameras (FPGA versions 2507, 2510). Uses release-specific YAML manifests and board-type-specific program commands. Lattice and VB1940 commands must…
jetson-validate-image
Use after jetson-flash-image to run static BSP checks, on-target smoke/regression tests on a flashed DUT, or both. Not for build or flash steps. Triggers: validate bsp, on-target validation.