darknecrocities/skillbuilder/testing

Claude Code and agent skill by darknecrocities/skillbuilder

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Test-Driven Development (TDD), Vitest, Jest, Playwright E2E with accessible locators, MSW contract tests, mutation testing, and controlled A/B testing with deterministic hash bucketing and SRM statistical verification.

Install

npx vskill@latest install darknecrocities/skillbuilder/testing

SKILL.md

The same SKILL.md was published earlier as darknecrocities/skillbuilder/testing.

Testing Discipline, E2E & A/B Experimentation (/testing)

Philosophy: Test behavior not implementation, ban fragile selectors and sleep timers, and gate every A/B rollout on deterministic hashing, Sample Ratio Mismatch (SRM) checks, and pre-registered guardrails.

1. Progressive Disclosure References

ResourcePurpose
references/playwright-accessible-locators.mdAccessible locator hierarchy (getByRole > getByLabel), web-first assertions, zero waitForTimeout.
references/tdd-and-msw-contracts.mdRed-Green-Refactor cycle, MSW HTTP boundary mocking, ephemeral DB isolation.
references/ab-testing-and-experimentation.mdExperiment contracts (OEC + guardrails), SHA-256/MurmurHash3 bucketing, SRM chi-squared, sequential/CUPED/AI model evals.
scripts/verify_testing_hygiene.pyAudits fragile CSS selectors, arbitrary sleep()/waitForTimeout() timers, and missing assertions.
scripts/verify_ab_experiment.pyAudits Math.random() bucketing / missing guardrails and computes exact SRM + two-proportion z-tests.

2. The 6 Core Testing & Experimentation Gates

mermaid
flowchart LR
G1["1. TDD Red/Green"] --> G2["2. Accessible E2E"]
G2 --> G3["3. Zero Sleep Timers"]
G3 --> G4["4. MSW HTTP Contracts"]
G4 --> G5["5. Ephemeral Isolation"]
G5 --> G6["6. A/B Hash & SRM Gate"]
  1. TDD Red-Green-Refactor: Write failing behavioral/repro tests before modifying production files; target >= 80% branch coverage.
  2. Accessible E2E Locators: Use getByRole(), getByLabel(), getByText()—ban div.cls > button DOM selector soup.
  3. Zero Arbitrary Sleeps: Ban waitForTimeout() and time.sleep(); rely on auto-retrying web-first assertions (await expect(loc).toBeVisible()).
  4. MSW Transport Interception: Mock external APIs at the HTTP boundary via MSW (onUnhandledRequest: "error") instead of stubbing private methods.
  5. Deterministic Isolation: Run every test against clean ephemeral fixtures or rolled-back transactions with zero shared global state.
  6. Controlled A/B Experimentation: Assign variants via deterministic SHA-256/MurmurHash3(exp:salt:subject) (zero Math.random() SSR flicker), verify SRM (p >= 0.001) before reading lift, enforce latency/error guardrails, and sunset flags within 14 days.

3. Verification & Statistical CLIs

bash
python3 skills/testing/scripts/verify_testing_hygiene.py --path . --strict
python3 skills/testing/scripts/verify_ab_experiment.py --path . --srm 5000 4980 --ztest 5000 500 4980 575 --strict

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/darknecrocities/skillbuilder/testing/badge)](https://verified-skill.com/skills/darknecrocities/skillbuilder/testing)

Something wrong with this skill or its page? Tell us.