Skip to main content

inspect-bdd-steps

Two-pass BDD step assertion completeness inspector. Pass 1 (Sonnet): triage all Then steps — FLAG or PASS. Pass 2 (Opus): deep trace flagged steps with full production context, producing architectural judgment on what the correct assertion should be. Use after writing or modifying BDD step definitions to catch assertion mismatches (steps that claim to verify X but actually only check existence).

跳到安装

来源信息

仓库
prebid/salesagent
最近来源活动
2026年4月1日 16:29
检测到的 SKILL.md 语言
英语
星标
38
分支
54

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
inspect-bdd-steps
description
Two-pass BDD step assertion completeness inspector. Pass 1 (Sonnet): triage all Then steps — FLAG or PASS. Pass 2 (Opus): deep trace flagged steps with full production context, producing architectural judgment on what the correct assertion should be. Use after writing or modifying BDD step definitions to catch assertion mismatches (steps that claim to verify X but actually only check existence).
args
[--pass1-only] [--then-only] [--steps-dir PATH] [--output PATH]
# BDD Step Assertion Completeness Inspector Inspects every BDD step function for semantic completeness: does the function body actually implement what the step text claims? ## Usage ``` /inspect-bdd-steps /inspect-bdd-steps --pass1-only ``` ## What It Does 1. **AST scan**: Extracts all `@given`/`@when`/`@then` decorated functions from `tests/bdd/steps/` 2. **Pass 1 (Sonnet triage)**: For each Then step, asks: "Is there a HIGH chance this function does NOT implement what the step text claims?" - PASS: Function plausibly implements its claim - FLAG: Function likely doesn't (pass body, truthiness-only check, etc.) 3. **Pass 2 (Opus deep trace)**: For each FLAG, collects production context (schemas, error classes, harness code) and asks Opus to make an architectural judgment about what the correct assertion should be. 4. **Report**: Writes `.claude/reports/bdd-step-audit-<date>.md` with findings grouped by severity (MISSING > WEAK > COSMETIC). ## Protocol Run the inspection script: ```bash python3 .claude/scripts/inspect_bdd_steps.py ``` Options: - `--pass1-only` — Skip Pass 2 deep trace (fast triage only) - `--steps-dir PATH` — Override step definitions directory - `--output PATH` — Override report output path - `--then-only` — Only inspect Then steps (default: true) Review the generated report and use findings to inform beads-58u (assertion mismatch fixes) or create new tasks. ## When to Use - After writing new BDD step definitions - After modifying existing step assertions - As a periodic audit (monthly or per-epic) - Before closing BDD-related PRs
在 GitHub 查看