Skip to content
cccskills
FreePublished on GitHub

bb-gate

统一质量门禁:RTL / 综合 / 测试 / PD 四阶段验收。调用共享 gate_runner.py 参数化。触发:(1) bba-guru-* 在阶段结束时调用;(2) 显式 /bb-gate <domain>。

The English summary is being prepared. Showing the original description.

See how to install

Files included (2)

  • SKILL.md3.8 KB
  • references/asap7_corner_signoff_list.md516 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

bb-gate

统一质量门禁,参数化的单一 skill(取代早期设想的 4 个独立 skill bb-gate-rtl-quality / bb-gate-synth-quality / bb-gate-test-quality / bb-gate-pd-quality, 这些独立 skill 从未落地,调用方一律用 bb-gate <domain>)。 所有 domain 的判定字段名严格对齐 .claude/schemas/*.schema.json。

职责

综合判定指定阶段的 artifact 是否达标,blocking:

  • pass=true → 下游可以继续
  • pass=false → 上游 agent 必须修复后重试

禁止使用:Task / Agent / Skill(这是叶节点工具)。

4 个 domain 的判定标准

domain=rtl

项条件
lint_cleanverible 0 error,无未 waive (lint_clean == true)
modules_nonemptymodules[] 长度 > 0
file_list_validfile_list 非空

domain=test

项条件
functional_coverage_100functional_coverage == 100
line_coverage_100code_coverage.line == 100
branch_coverage_95code_coverage.branch >= 95
toggle_coverage_90code_coverage.toggle >= 90

domain=synth

项条件
timing_metwns_ns >= 0 且所有 corners[].timing_met == true
area_reasonablearea_um2 > 0
cells_existcell_count > 0

domain=pd

项条件
drc_cleandrc_violations == 0
lvs_cleanlvs_match == true
timing_met所有 timing_corners[].timing_met == true

Signoff corner 列表见 references/asap7_corner_signoff_list.md。

4-Phase 执行

Phase 1 — Render

无需 render — gate_runner.py 直接消费 artifact JSON。

Phase 2 — Run

uv run python .claude/skills/_gate_common/gate_runner.py \
    <domain> <artifact_path> [--output <output_path>]

Exit code: 0 = pass, 1 = fail, 2 = error.

Phase 3 — Parse

JSON 输出结构:

{
  "pass": bool,
  "gate_type": "rtl|synth|pd|test",
  "gate_name": "...",
  "timestamp": "ISO8601",
  "checks": { "<check>": {"pass": bool, "detail": "...?"} },
  "summary": "N/M checks passed"
}

Phase 4 — Return

  • pass=true → 写 quality_gate_<stamp>.json 到对应 stage 目录,agent 可以继续。
  • pass=false → 不写文件;返回 details;上游 agent 修复后重试。

Output Contract

field值
artifact_path<output> 路径
passbool
validbool
checksobject
summarystring

资源索引

  • .claude/skills/_gate_common/gate_runner.py — 共享 runner(参数化所有 4 个 gate)
  • .claude/skills/_gate_common/render_gate_config.py — 可选配置渲染
  • .claude/schemas/*.schema.json — artifact schema(由 validate-input-schema hook 在边界校验)
  • references/asap7_corner_signoff_list.md — PD signoff corners

项目级 Coding Style 参考

  • wiki/codingstyle/systemverilog_styleguide.md — SystemVerilog Style Guide
  • wiki/codingstyle/freescale_verilog_standard.md — Freescale Verilog HDL Standard

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

<一句话说清『这个 skill 做什么 + 何时调用』。把最关键的触发场景放最前面。结尾给 2-3 个用户会说的关键词。>

The English summary is being prepared. Showing the original description.

amoslee2026/Babel49Updated Aug 4, 2026

从粗略 idea 设计芯片或功能模块架构,输出专业架构文档到 spec_arch 目录。Trigger: 芯片架构设计, IC架构, 电路模块设计, 硬件架构. Generate IC/Chip architecture specification from rough ideas.

The English summary is being prepared. Showing the original description.

amoslee2026/Babel49Updated Aug 4, 2026

基于 AST 检查 CDC/RDC 违例:对比 MAS clock_domains 找跨域信号,检查是否被 2ff-sync CBB 保护。触发场景:(1) bba-guru-synthesis 综合前;(2) 显式 /bb-check-cdc。

The English summary is being prepared. Showing the original description.

amoslee2026/Babel49Updated Aug 4, 2026

调用 babel-lsp / verible-verilog-lint 检查 SV 源码。src 必须可综合(零 syntax error),tb 允许 verification constructs。发现 src error 时自动修复重检(max 3 iter)。触发:(1) bba-guru-rtl 生成后;(2) RTL 修复重检;(3) 显式 /bb-check-lint。

The English summary is being prepared. Showing the original description.

amoslee2026/Babel49Updated Aug 4, 2026

Babel internal issue protocol — close a handoff after downstream agent picked it up or user signed off. Moves designs/<name>/.handoff/<label>.md to .handoff/closed/ (using mv per CLAUDE.md), appends to handoff_log.jsonl.

The English summary is being prepared. Showing the original description.

amoslee2026/Babel49Updated Aug 4, 2026

对抗性代码评审:代码质量 / 可维护性 / 时序风险 / 综合友好度 / MAS 对齐度。默认 ruthless 模式,找 EVERY flaw。触发场景:(1) RTL lint 后;(2) 显式 /bb-code-review。

The English summary is being prepared. Showing the original description.

amoslee2026/Babel49Updated Aug 4, 2026

See all skills by amoslee2026

Report a problem with this skill