W Test

blockmatic/basilic-skills/skills/workflow/w-test

by blockmatic7e05e2abd052dc6b526e8a28e36d102d42bfd635No license1 starsListed Oct 9, 2026Updated Oct 9, 2026Repository updated 6 days ago

Run the repository test scripts and fix failures until they pass.

Instructions onlySoftware Development
AI-generated overview

Runs a repository's documented test scripts, fixes the owning causes of failures, and re-runs until the suite passes.

What it does
This skill guides an agent through running the documented test scripts from package.json, choosing the narrowest suite that covers the change or the full suite when the failure is unknown. It captures the actual failing tests, fixes one owning cause at a time, and re-runs the failed command until the suite is green. It explicitly forbids weakening assertions or skipping tests to obtain a pass, and stops when remaining failures need a human, such as secrets, environment issues, or flaky infrastructure. It also notes that documentation should be updated if behavior or commands changed.
When to use it
Use it when a repository has documented test scripts and you need failures diagnosed and fixed rather than merely reported. It fits changes where you want the relevant test suite run and repaired, including cases where the full suite must be used because the failure is unknown.
Requirements
It needs a repository with documented test scripts in package.json and a working test runner such as pnpm or Turbo, plus any environment, secrets, or services the tests require. It ships no scripts of its own and is instructions only.

Run the documented test scripts from package.json (filtered to the change when the repo supports it). Fix owning causes. Do not publish.

  1. Identify the test command for the affected packages (pnpm test, Turbo filters, or the app E2E script). Prefer the narrowest suite that covers the change; use the full suite when the failure is unknown or the user asked for it.
  2. Run the command. Capture failing tests, not a paraphrase.
  3. Fix one owning cause at a time. Re-run the failed command. Do not weaken assertions or skip tests to obtain a pass. Stop when the suite is green or remaining failures need a human (secrets, env, flaky infra).
  4. Docs: /w-docs if behavior or commands changed.

Source and attribution

Source:blockmatic/basilic-skillsinskills/workflow/w-testat commit7e05e2a

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal