write-failing-test

Generate failing unit and integration tests from approved Test Plan criteria.

1|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/opsMachine/OM-Agency --skill write-failing-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-failing-test
Source: https://github.com/opsMachine/OM-Agency/tree/main/skills/write-failing-test
Command: npx skills add https://github.com/opsMachine/OM-Agency --skill write-failing-test

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically generate failing tests from the approved test plan described in a spec to drive the red phase of TDD.

Core Features & Use Cases

  • Automated test generation: Reads the Test Plan from the spec and creates unit/integration tests that fail by design to validate feature scope.
  • Plan-to-test alignment: Verifies that each Plan criterion has a corresponding test, preserving traceability between the spec and the codebase.
  • Workflow integration: Integrates with /plan-tests and /implement-to-pass workflows to drive the development cycle.

Quick Start

Run '/write-failing-test path/to/spec.md' to generate all failing tests from the approved test plan.

Frequently Asked Questions about write-failing-test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate failing tests from a test plan for TDD?

You can generate failing tests from a spec by running /write-failing-test path/to/spec.md. The tool reads the approved Test Plan and automatically creates concrete unit and integration tests that fail by design to validate feature scope.

What is the red phase in test-driven development and how do I automate it?

The red phase in TDD is the initial stage where you write tests that fail before implementation. You can automate this red phase by using a tool that reads your planned test criteria and generates failing JavaScript or TypeScript tests.

Can I use this to create failing tests for JavaScript and TypeScript projects?

Yes, you can use this to create failing tests for JavaScript and TypeScript projects. It coordinates with TDD workflows to cover both unit and integration tests, ensuring each planned criterion results in a concrete failing test before implementation proceeds.

How do I ensure my generated tests align with my spec criteria?

To ensure generated tests align with your spec criteria, the tool verifies plan-to-test alignment by checking that each Plan criterion has a corresponding test. This preserves traceability between the spec and the codebase during test generation.

What do I need to do before generating failing tests from a spec?

Before generating failing tests from a spec, you need an approved Test Plan with a status of Planned. You should also use the /plan-tests workflow to define your criteria, ensuring the skill has a structured plan to read and convert into failing tests.

What should I do after generating failing tests in TDD?

After generating failing tests in TDD, you should proceed to the implementation phase using the /implement-to-pass workflow. This next step involves writing the minimum code necessary to make the previously generated failing tests pass.