bb-spec-review

SkillDocs & knowledge

Perform an adversarial review of specification documents (PRD + arch_spec + MAS): completeness / consistency / implementability / verification coverage. Defaults to role=ruthless (errors are costliest at the spec stage). Invoke before MAS is frozen. Trigger scenarios: (1) bba-architect finishes writ

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the bb-spec-review skill

What this skill tells your AI

The instructions your AI receives, as published by amoslee2026/babel in .claude/skills/bb-spec-review/SKILL.md and read by ahel’s review.

职责

跨文档检查 PRD ↔ arch_spec ↔ MAS 一致性、可实现性、验证覆盖;输出严重程度分级 issues。

  • 调用者:bba-architect
  • 关联:bb-challenge-code(通用)
  • 禁止使用:Task / Agent / Skill

Input Args

argtyperequired默认说明
prd_pathpathtruePRD.md
arch_spec_dirpathtruearch_spec 目录
mas_dirpathtruespec_mas/(directory containing MAS markdown files)
roleenumfalseruthlessruthless|linus|balanced
focusstringfalsefeasibility,consistency,coverage
design_namestringtrue
stampstringfalse<auto>

Output Contract

field
artifact_pathdesigns/<name>/spec_review_<stamp>.md
issues_foundint
severity_summary{critical,high,medium,low}
consistency_issueslist[str]
feasibility_issueslist[str]
coverage_issueslist[str]
passbool(critical==0 && high≤2)
validbool

4-Phase 执行

Phase 1 — build_prompt

prd = open(prd_path).read()
arch = {p.name: p.read_text() for p in Path(arch_spec_dir).glob("*.md")}
mas = {p.name: p.read_text() for p in Path(mas_dir).glob("*.md")}
prompt = render_spec_review_prompt(role, focus, prd, arch, mas)

Phase 2 — run_review

claude --print "<prompt>" > <artifact_path> 或 agent 内部生成。15 min timeout(文档可能很长)。

Phase 3 — parse_spec_review

scripts/parse_spec_review.py

  • ## Consistency / ## Feasibility / ## Coverage
  • 计 severity
  • pass = (critical == 0 && high <= 2)

Phase 4 — return

返回 JSON。pass=false → bba-architect 修 MAS(≤2 iter),仍失败 → escalate 用户。

维度

维度检查
consistencyPRD FR ↔ arch module ↔ MAS FSM 三层一致
feasibility频率/面积/PDK 能力匹配
coverageverif_plan_seed 完整、corner 覆盖
ambiguity模糊描述、边界缺失

通过标准

级别通过
critical== 0
high≤ 2

收敛 / 失败

状态行动
pass=truefrozen MAS + 开 ready-for-rtl
pass=false & iter<2bba-architect 修 MAS 重评
iter≥2escalate 用户

资源索引

  • scripts/build_prompt.pyscripts/run_review.pyscripts/parse_spec_review.py
  • references/spec_review_dimensions.md

Signals

GitHub stars
42
Forks
10
Last commit
Aug 2026
Advanced
Catalog kind
skill
Gateway key
bb-spec-review
Source
github.com/amoslee2026/babel