/prometheus-testing-skills:bdd-lifecycle-loopfrom prometheus-testing-skills
Codifies the VLBV define → author → execute (once, at the value-phase boundary) → triage → maintain workflow for BDD suites. Includes outside-in scenario authoring, the stochastic profile for nondeterministic claims (no retry-until-green), an immutable-tests guard, and a visual-baseline refresh workflow with paper trail. Use when standing up a BDD suite, growing one past 100 scenarios, or when nondeterminism starts eroding trust in results.
Ships in prometheus-testing-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A repeatable workflow for the life of a BDD suite under VLBV, the pack's single
verification method. Pairs with bdd-cucumber-js and bdd-cucumber-rs (which
cover how to author), value-scenario-verify (which executes) and
bdd-video-proof (which covers how to certify). Boundaries are defined once in
skills/process/kbd-process-orchestrator/references/boundaries.md.
| Act | When | Skill |
|---|---|---|
| Define scenarios (actor, outcome, source, oracle, negative control) | Before generation, from the specification; adopted into the phase contract | value-scenario-discovery |
| Author features, real assertions and steps | After the complete agreed production work (static inspection only) | bdd-cucumber-js / bdd-cucumber-rs author-only |
| Execute against the real path | Only at B4 (the boundary packet, once) and an authorized B5 repair | value-scenario-verify |
Defining a scenario does not authorize running anything. Do not run a scenario
against an intentionally incomplete codebase, per change, per task or per edit. A
scenario that has never run is NOT_EXERCISED — never "red", never "green". A
different execution cadence exists only as a signed KBD-METHOD deviation for one
phase, disclosed in its closure packet. No step here modifies a protected scenario
without its existing signed approval.
┌──────────────┐
│ 1. Author │ Features → real assertions → step definitions (no runs)
└──────┬───────┘
↓
┌──────────────┐
│ 2. Execute │ B4 step 3: the boundary packet runs each scenario once
└──────┬───────┘
↓
┌──────────────┐
│ 3. Triage │ PASS / FAIL / BLOCKED / NOT_EXERCISED — never rerun to green
└──────┬───────┘
↓
┌──────────────┐
│ 4. Maintain │ Refresh baselines, prune stale scenarios, review
│ │ stochastic declarations, enforce immutable tests
└──────┬───────┘
↓ (next value phase)
Work outside-in: begin from the observable user outcome, not from step code that mirrors the implementation. Write the features, assertions and oracle mapping from the adopted scenario IDs, and stop after static inspection.
Each assertion must be real: it observes the production operation's externally meaningful result against an independent source of expected truth. A step that only returns, or asserts a process exit code, is not an assertion. Each scenario's negative control must make that assertion fail when the behavior is absent.
Background for shared preconditions across scenarios in a fileScenario Outline for data variations@SCN-AUTH-001)@api, @ui, @system@team:auth, @owner:alicedata-testid selectors when the scenario is @uiThe adopted boundary packet lists the exact commands; value-scenario-verify
invokes each once. The cucumber runner writes cucumber.json beside any
human-readable report; the packet's receipts and boundary-results.json read it.
# cucumber-js (as a boundary-packet entry)
npx cucumber-js --format json:tests/reports/cucumber.json
# cucumber-rs (as a boundary-packet entry)
cargo test --test features -- --format=json > tests/reports/cucumber.json
Every scenario ends with exactly one of the four verdicts. Nothing is rerun to obtain a different one.
| Observation | Verdict and action |
|---|---|
| Assertion caught a genuine behavior difference | FAIL. Keep the receipt. The owner may authorize a bounded B5 repair; the rerun covers only affected scenarios and consumes repairAttempts |
| Timeout, race or environment fault the contract did not anticipate | BLOCKED (not FAIL). Record the cause; fixing the fixture or environment is a B5 repair or a contract amendment |
| Runner, fixture, permission or isolation unavailable | BLOCKED |
| Adopted scenario never ran | NOT_EXERCISED; it cannot pass |
| Result differs between identical runs | Not a verdict: the scenario is nondeterministic and needs a declared stochastic profile (below). Until then it is BLOCKED |
A later green receipt never overwrites an earlier failure.
There are no @flaky tags, retry flags or flake budgets: retrying until green
hides failures and changes the denominator. A behavior that is genuinely
nondeterministic (model output, timing-dependent UI, distributed timing) is
declared before any result exists, in the scenario's stochastic block of the
adopted contract (schema v2):
"stochastic": {
"samples": 20,
"grader": "fraction of samples whose observation meets the oracle",
"stoppingRule": "run all 20; PASS iff >= 18 meet the oracle; no early stop"
}
The boundary packet then runs the declared number of samples, once, and the verdict
follows the stopping rule. Adoption lint rejects a scenario marked nondeterministic
that has no stochastic block.
stochastic block when its scenario's
amendment history or the closure packet shows drift. Changing samples, grader or
stopping rule is a signed contract amendment, never an edit after results.The immutable-tests rule is enforced once, at final local certification. Agent-time Bash, Python, Edit and Write calls remain unrestricted. The method-independent verifier compares the certified base and candidate Git commits and detects protected modifications, deletions, renames and mode changes. Intentional changes require an SSH-signed canonical approval manifest; see references/immutable-tests.md.
Playwright's --update-snapshots overwrites baselines silently. Coupled with the
immutable-tests rule, baseline changes need a paper trail. See
references/visual-baseline-refresh.md
for the branch-and-review workflow.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
9 skills in this plugin
/bdd-cucumber-jsAuthor, run, and maintain BDD integration tests using cucumber-js 13 with Gherkin, playwright-bdd for browser-driven scenarios, and tsx for TypeScript. Use when writing behavior tests, E2E tests, integration tests, feature files, or step definitions in any Node/TypeScript project.
/bdd-cucumber-rsAuthor, run, and maintain BDD integration tests in Rust using the cucumber 0.23 crate with async World, tokio + reqwest for HTTP scenarios, and thirtyfour for browser-driven scenarios. Use when writing behavior tests, integration tests, feature files, or step definitions for any Rust crate or workspace.
/bdd-testingDEPRECATED alias — use bdd-cucumber-js instead. This skill is retained as a redirect so downstream projects that reference "bdd-testing" by name continue to work.
/bdd-video-proofAssemble a signed certification bundle from a cucumber test run — cucumber JSON report, MP4 videos (ffmpeg-remuxed from Playwright WebM), screenshot manifest, and a SHA-256 manifest keyed to the git commit. Two modes: local bundle under docs/certifications/<module>/<sha>/, or IPFS-pinned. Use when producing release evidence, reviewer-facing test proof, or audit trails.
/skill-certificationCertifies an Agent Skill against five evidence levels (specification, static, trigger, outcome, portability) and writes a certificate bound to the skill's content hash. Use when asked to certify, validate, evaluate or prove a skill works, when a skill was just created or changed and needs checking before it ships, or when a skill does not trigger and the cause is unknown. Do not use for reviewing application code, or for writing a new skill from scratch./value-scenario-discoveryPropose a finite, owner-calibrated set of useful behavioral scenarios before generation. Use independently or from KBD Assess, Spec and Plan; preserves mandatory constraints, rejected alternatives and adoption authority. Does not author executable tests or run generated-code checks.
npx claudepluginhub prometheus-ags/prometheus-skill-system --plugin prometheus-testing-skills2 plugins in one repository ship this exact skill · first indexed Nov 27, 2026