mcpField
W
w-unit

w-unit

github.com/blockmatic-iceboxTesting & quality1647 installsUpdated 4w ago
Repository

About w-unit

w-unit is an agent skill for adding unit tests for requested behavior. It follows repository conventions, focuses on failure-prone behavior and regression cases, and runs focused and package-level tests.

Key features

  1. 01Follow existing test conventions
  2. 02Test public APIs and error paths
  3. 03Cover regression behavior
  4. 04Mock documented boundaries
  5. 05Run focused and package tests

Use cases

  1. 01Add tests for a requested change
  2. 02Test error handling and public APIs
  3. 03Verify a regression fix

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/blockmatic-icebox/basilic-skills --skill w-unit

After installing, type/w-unitin Claude Code to confirm it loaded.

Details

From the project README

Cover the requested behavior with unit tests. Follow vitest-v5 (or the stack's test skill) and existing file conventions. Do not chase coverage percentage.

  1. Read neighboring tests and the test skill. Colocate *.test.ts beside the implementation.
  2. Test the behavior that can fail: public API, error paths, and the regression this change needs.
  3. Mock only at documented boundaries. Prefer real types and factories the repo already uses.
  4. Run the focused file, then the package test script.
  5. Docs: /w-docs if behavior or commands changed.

Comments

Markdown supported