Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Bug condition/postcondition formalization as testable Behavior Contracts. Defines invariants that must be preserved across fixes.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -52% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -61% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -52% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -64% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -36% | 0% |
InvalidAmountError"markdown# Behavior Contract: [Bug Title] ## Bug Condition [Precise description of triggering conditions] ## Postcondition [Expected correct behavior after fix] ## Invariants - [ ] Invariant 1: [existing behavior to preserve] - [ ] Invariant 2: [existing behavior to preserve] ## Testable Assertions 1. `expect(processPayment(0)).toEqual({ amount: 0, status: 'completed' })` 2. `expect(processPayment(100)).toEqual({ amount: 100, status: 'completed' })` 3. `expect(() => processPayment(-1)).toThrow(InvalidAmountError)`
Other measured skills in the registry, with their headline benchmark lift.