Skip to content
cccskills
FreePublished on GitHub

bb-search-cbb

在 wiki/cbb/ 搜索可复用 Common Building Block(sync-fifo / 2ff-sync / clock-gate 等),返回匹配模板路径。bba-architect 在 MAS 中识别复用组件时调用。

触发场景:(1) bba-architect 拆分子模块识别 CBB;(2) 显式 /bb-search-cbb。

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

See how to install

Files included (5)

  • SKILL.md1.9 KB
  • references/cbb_catalog.md1.0 KB
  • scripts/parse_cbb_list.py982 B
  • scripts/render_search.py558 B
  • scripts/run_search.py1.8 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

bb-search-cbb

职责

按 pattern 搜索 wiki/cbb/ 目录,输出可复用 CBB 列表。调用方据匹配进一步获取接口模板。

  • 调用者:bba-architect
  • 关联:bb-get-interface-template(获取详细接口)
  • 禁止使用:Task / Agent / Skill

Input Args

argtyperequired默认说明
patternstringtrue—CBB 关键词(sync-fifo / 2ff / clock-gate)
max_resultsintfalse10最多返回条数

Output Contract

field值
artifact_path—
matches[{cbb_name:str, file:path}]
countint
validbool

4-Phase 执行

Phase 1 — render_search_cmd

rg -i "<pattern>" wiki/cbb/ --include="*.md" -l --max-count=<max_results>

Phase 2 — run_search

scripts/run_search.py:timeout 30 bash -c "<cmd>" > <out> 2>&1

Phase 3 — parse_cbb_list

scripts/parse_cbb_list.py:

  • 每行一条文件路径 → 提取 basename 去 .md 作为 cbb_name
  • 排序去重

Phase 4 — return

返回 JSON。bba-architect 据 cbb_name 调 bb-get-interface-template 取接口表。

收敛 / 失败

状态行动
count>0调用方进入接口模板提取
count==0该子模块在 MAS 中标 reuse: none,需从头实现

MVP CBB 覆盖

wiki/cbb/
├── sync-fifo.md
├── 2ff-sync.md
└── clock-gate.md

资源索引

  • scripts/render_search.py、scripts/run_search.py、scripts/parse_cbb_list.py
  • references/cbb_catalog.md — CBB 一览(含参数/适用场景)

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