Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Repo-specific TDD and test-validation workflow for Happier changes, with lane selection, fixture policy, and anti-flake guardrails.
.claude/skills/happier-dev-happier-testing/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-18 | ✗→✓ | ▲ Improved | 74% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 53% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 52% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 123% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 99% | 0% |
Use this skill for behavior-changing work in this repository, especially when changes touch shared runtime contracts, CLI/server/UI flows, or any lane that historically accumulates stale fixtures.
Apply strict RED-GREEN-REFACTOR while following Happier-specific lane, fixture, and rerun rules so changes do not silently drift until a late pipeline sweep.
production bug: runtime behavior is wrongtest drift: assertions/fixtures assume an obsolete contractharness drift: helpers/mocks/testkit no longer match real runtime wiringinfra/resource issue: disk, Docker, stale child processes, or similar environment failuresHeaders do not expose plain properties), the instrument can observe the claimed cost or state, and the code under test cannot swallow its own failure and read as a pass..agents/skills/happier-compatibility when a behavior change affects wire/semantic contracts, persistence, schemas/migrations, feature negotiation, installer/service state, mixed versions, upgrades, or rollback.Canonical top-level lanes:
yarn testyarn test:integrationyarn test:e2e:core:fastyarn test:e2e:core:slowyarn test:e2e:uiyarn test:providersyarn test:db-contract:dockerCLI lane rule:
apps/cli unit tests must not force a full CLI dist build.src/test-setup.unit.tssrc/test-setup.integration.tssrc/test-setup.slow.ts@/sync/domains/state/storage.packages/tests/src/testkit.expo-router, @/text, @/modal, react-native, and react-native-unistyles; prefer existing server route/DB harnesses over direct storage mocks when available.apps/ui tests, treat apps/ui/sources/dev/testkit/** as the default surface. Read apps/ui/sources/dev/testkit/README.md first and prefer imports from @/dev/testkit for mocks, fixtures, render helpers, hook helpers, and harnesses.vi.mock(...) families for expo-router, @/text, @/modal, react-native, react-native-unistyles, or @/sync/domains/state/storage when the UI testkit already owns that boundary. If a needed case is missing, extend the canonical UI testkit helper in the same change instead of inventing a file-local mock family.apps/uiapps/cliapps/servertestID selectors, not visible copy, as the primary selector contract.packages/tests/src/testkit/uiE2e/browserDiagnostics.ts for browser console, page-error, failed-request, and error-response collection. Append diagnostics with its stack-preserving helper; never replace the original exception with a new wrapper that erases the deciding callsite.Host-test green alone is not shippable for user-visible behavior; this skill owns the lane-level live-validation rules.
NODE_OPTIONS=--max-old-space-size=8192 instead of silently narrowing the lane.Do not mark a validation step complete merely because wiring is registered, a command reached a compiler/test runner, or a background process remains running. Record the terminal exit/result and decisive product evidence. If the live recipe cannot run, mark it BLOCKED with the missing prerequisite and next action; do not substitute more host tests and call the behavior shipped.
When reporting testing work, summarize:
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-18 | fail→pass | 17,105 | 9,756 | -43% | 1 | 1 | 0% | 1,923 | 3,353 | +74% | 0 | 0 | — |
case-07 | pass→pass | 21,089 | 9,639 | -54% | 1 | 1 | 0% | 2,614 | 3,604 | +38% | 0 | 0 | — |
case-01 | fail→fail | 16,728 | 15,416 | -8% | 1 | 1 | 0% | 333 | 3,118 | +836% | 0 | 0 | — |
case-02 | fail→fail | 16,095 | 17,077 | +6% | 1 | 1 | 0% | 284 | 3,048 | +973% | 0 | 0 | — |
case-03 | fail→fail | 28,373 | 15,773 | -44% | 1 | 1 | 0% | 4,268 | 2,990 | -30% | 0 | 0 | — |
case-04 | fail→fail | 18,844 | 14,871 | -21% | 1 | 1 | 0% | 2,957 | 3,004 | +2% | 0 | 0 | — |
case-05 | fail→pass | 20,748 | 17,323 | -17% | 1 | 1 | 0% | 3,058 | 4,675 | +53% | 0 | 0 | — |
case-06 | pass→fail | 22,417 | 16,953 | -24% | 1 | 1 | 0% | 3,299 | 3,180 | -4% | 0 | 0 | — |
case-08 | fail→pass | 17,589 | 9,821 | -44% | 1 | 1 | 0% | 2,396 | 3,630 | +52% | 0 | 0 | — |
case-09 | fail→pass | 14,067 | 8,351 | -41% | 1 | 1 | 0% | 1,449 | 3,230 | +123% | 0 | 0 | — |
case-10 | pass→pass | 13,871 | 10,219 | -26% | 1 | 1 | 0% | 1,430 | 3,547 | +148% | 0 | 0 | — |
case-11 | fail→pass | 14,241 | 9,180 | -36% | 1 | 1 | 0% | 1,718 | 3,423 | +99% | 0 | 0 | — |
case-12 | pass→pass | 16,557 | 9,409 | -43% | 1 | 1 | 0% | 1,999 | 3,411 | +71% | 0 | 0 | — |
case-13 | fail→pass | 17,970 | 7,499 | -58% | 1 | 1 | 0% | 2,418 | 3,061 | +27% | 0 | 0 | — |
case-14 | pass→pass | 14,686 | 10,365 | -29% | 1 | 1 | 0% | 1,615 | 3,687 | +128% | 0 | 0 | — |
case-15 | fail→pass | 20,972 | 7,388 | -65% | 1 | 1 | 0% | 2,841 | 3,061 | +8% | 0 | 0 | — |
case-16 | pass→pass | 14,638 | 10,641 | -27% | 1 | 1 | 0% | 1,638 | 3,682 | +125% | 0 | 0 | — |
case-17 | fail→pass | 10,466 | 7,172 | -31% | 1 | 1 | 0% | 913 | 3,008 | +229% | 0 | 0 | — |
case-19 | fail→pass | 14,601 | 10,120 | -31% | 1 | 1 | 0% | 1,511 | 3,530 | +134% | 0 | 0 | — |
case-20 | fail→pass | 19,309 | 7,345 | -62% | 1 | 1 | 0% | 2,186 | 3,070 | +40% | 0 | 0 | — |
case-21 | fail→pass | 16,170 | 8,733 | -46% | 1 | 1 | 0% | 1,883 | 3,359 | +78% | 0 | 0 | — |
case-22 | pass→pass | 16,635 | 9,878 | -41% | 1 | 1 | 0% | 1,886 | 3,505 | +86% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 17 counted toward the lift figure. The other 5 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +45 percentage points is the difference between those two pass rates over the 17 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
| Model | Method | Date | Lift |
|---|---|---|---|
| gemini-3.6-flash | verified | 9/2/2026 | +50% |
| gemini-3.6-flash | verified | 8/27/2026 | +30% |
| gemini-3.6-flash | verified | 8/17/2026 | +45% |
| gemini-3.6-flash | verified | 8/13/2026 | +36% |
Other measured skills in the registry, with their headline benchmark lift.