mcpField
W
write-tests

write-tests

github.com/cowork-osTesting & quality51757 installsUpdated today
Repository

About write-tests

A skill for generating unit tests for an existing file or module. It produces a prioritized test plan and cases mapped to coverage, including positive and negative scenarios and setup assumptions.

Key features

  1. 01Prioritized test plan
  2. 02Coverage-mapped test cases
  3. 03Positive and negative scenarios
  4. 04Test setup assumptions

Use cases

  1. 01Adding missing unit-test coverage
  2. 02Planning tests for a specific file or module

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/cowork-os/cowork-os --skill write-tests

After installing, type/write-testsin Claude Code to confirm it loaded.

Details

From the project README

Write Tests

Purpose

Generate unit tests for existing code

Routing

  • Use when: Use when the user requests missing test coverage for a specific file or module.
  • Do not use when: Don't use for snapshot tests or manual QA-only validation.
  • Outputs: Prioritized test plan and test cases with clear coverage mapping.
  • Success criteria: Includes positive/negative cases and test setup assumptions.

Trigger Examples

Positive
  • Use the write-tests skill for this request.
  • Help me with write tests.
  • Use when the user requests missing test coverage for a specific file or module.
  • Write Tests: provide an actionable result.
Negative
  • Don't use for snapshot tests or manual QA-only validation.
  • Do not use write-tests for unrelated requests.
  • This request is outside write tests scope.
  • This is conceptual discussion only; no tool workflow is needed.

Parameters

NameTypeRequiredDescription
pathstringYesPath to the file to test
frameworkselectYesTesting framework to use

Runtime Prompt

  • Current runtime prompt length: 339 characters.
  • Runtime prompt is defined directly in ../write-tests.json.

Comments

Markdown supported