bdd-audit

Classify BDD feature files and OpenSpec specs by user-visible behavior.

9|2|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/typemd/typemd --skill bdd-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bdd-audit
Source: https://github.com/typemd/typemd/tree/main/.claude/skills/bdd-audit
Command: npx skills add https://github.com/typemd/typemd --skill bdd-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps teams identify BDD feature files and OpenSpec specs that test internal implementation details rather than user-visible behavior, reducing brittle tests and noisy feature suites so BDD remains focused on user scenarios.

Core Features & Use Cases

  • Scan and collect .feature and spec.md files across the repository to build an audit surface.
  • Classify scenarios into user-facing versus purely technical tests using a clear core principle.
  • Actionable recommendations: rewrite, delete, supplement with unit tests, or archive OpenSpec specs based on coverage and intent.
  • Safe execution steps including checklist items, verification with go vet and make test, and guidance to avoid deleting shared step files.
  • Use case: Run before a release to reduce BDD noise and speed up CI by moving technical assertions into unit tests.

Quick Start

Run a BDD audit across your repo to classify feature and spec files, produce a prioritized report of technical-only scenarios, and recommend rewrite/delete/supplement actions.

Frequently Asked Questions about bdd-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit BDD feature files for implementation details instead of user behavior?

To audit BDD feature files, scan .feature and spec.md documents to classify scenarios into user-facing versus purely technical tests, then generate a prioritized report with rewrite, delete, or supplement recommendations. This reduces brittle tests and keeps BDD focused on user scenarios.

What is the best way to clean up noisy BDD test suites before a release?

The best way to clean up noisy BDD suites is running a feature file audit to identify technical-only scenarios, moving those assertions into unit tests to reduce CI noise. Validate changes by running go vet and make test before modifying or deleting artifacts.

Can I use this audit to reclassify OpenSpec spec documents testing internal logic?

Yes, you can use this audit to reclassify OpenSpec spec.md documents. It reads scenario text from openspec/specs and checks unit test coverage in *_test.go files to classify scenarios, recommending whether to archive specs or supplement them with unit tests based on coverage and intent.

Does the BDD audit work with Go projects using *_test.go files?

Yes, the BDD audit works with Go projects by checking unit test coverage in *_test.go files to validate technical assertions. It processes feature files under core/features and cmd/features, verifying changes with go vet and make test before deleting or modifying any artifacts.

Why should I move technical assertions out of BDD scenarios into unit tests?

You should move technical assertions into unit tests because testing implementation details in BDD creates brittle tests and noisy feature suites. Moving them speeds up CI and ensures BDD scenarios remain focused on validating user-visible behavior rather than internal logic.

What precautions should I take when deleting technical BDD scenarios?

When deleting technical BDD scenarios, avoid deleting shared step files and always validate changes by running go vet and make test first. The audit provides safe execution checklist items to ensure modifications do not break existing test coverage across the repository.