본문으로 건너뛰기
cccskills
무료GitHub에 공개

bb-get-interface-template

读取指定 CBB / protocol wiki 文件,解析其 ## Interface / ## Ports section,返回结构化端口表 + 参数表。bba-architect 用于填入 MAS 模块接口。

触发场景:(1) bb-search-cbb 命中后取详细接口;(2) 显式 /bb-get-interface-template。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(4)

  • SKILL.md2.2 KB
  • references/wiki_section_conventions.md637 B
  • scripts/locate_template.py852 B
  • scripts/parse_md_tables.py1.0 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

bb-get-interface-template

职责

按 template_name 查 wiki/cbb/ 或 wiki/protocols/ 中对应 .md,提取 ## Interface / ## Ports 表格 → JSON。

  • 调用者:bba-architect
  • 上游:bb-search-cbb / bb-search-protocol
  • 禁止使用:Task / Agent / Skill

Input Args

argtyperequired默认说明
template_namestringtrue—CBB 或协议名(sync-fifo/uart/axi4-lite)
sectionstringfalseinterfaceinterface | ports | parameters

Output Contract

field值
artifact_path—
template_namestr
source_filepath
ports[{name,direction,width,description}]
parameters[{name,default}]
validbool
errorstring|null

4-Phase 执行

Phase 1 — locate_template

scripts/locate_template.py:优先 wiki/cbb/<name>.md,其次 wiki/protocols/<name>.md;都不存在 → error="template not found: <name>"。

Phase 2 — read_md

Python 直接读取目标文件全文(无需 shell)。

Phase 3 — parse_md_tables

scripts/parse_md_tables.py:

  • 用 markdown 解析定位 ## Interface / ## Ports / ## Parameters 标题
  • 之后第一张表格按列名 name / direction / width / description 解析为 list[dict]
  • 类似处理 Parameters 表

Phase 4 — return

返回 JSON。bba-architect 把 ports 写到 MAS 对应模块的 interface.ports。

收敛 / 失败

状态行动
valid=true写入 MAS
文件不存在error="template not found"
Section 找不到error="section <name> not found"
表格格式错error="malformed table";fallback:返回原始 markdown

资源索引

  • scripts/locate_template.py、scripts/parse_md_tables.py
  • references/wiki_section_conventions.md — wiki markdown 标题/表头约定

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

amoslee2026/Babel492026년 8월 4일 업데이트

bb-arch

무료

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

amoslee2026/Babel492026년 8월 4일 업데이트

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

amoslee2026/Babel492026년 8월 4일 업데이트

调用 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。

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

amoslee2026/Babel492026년 8월 4일 업데이트

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

amoslee2026/Babel492026년 8월 4일 업데이트

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

amoslee2026/Babel492026년 8월 4일 업데이트

amoslee2026의 스킬 모두 보기

이 스킬의 문제 신고