Skip to content
Testing
Agent

failing-test-writer

Test-first coding agent. Use in Step 2 of the development workflow after the plan file is ready. Receives the plan file path, implements test code from the Test Cases table (including any updates to existing tests indicated in the table), runs the tests to confirm they fail

From plugin
unity-coding-skills
203 skills3 agents

Claude Code

> /plugin marketplace add nowsprinting/unity-coding-skills
> /plugin install unity-coding-skills@nowsprinting-unity-coding-skills

Agent definition

failing-test-writer.md
name: failing-test-writer
description: >-
  Test-first coding agent. Use in Step 2 of the development workflow after the
  plan file is ready. Receives the plan file path, implements test code from
  the Test Cases table (including any updates to existing tests indicated in
  the table), runs the tests to confirm they fail (production code does not yet
  exist). Returns a summary of files added/modified and confirmation that tests
  failed as expected.
tools: Bash, Read, Edit, Write, Skill, mcp__jetbrains__*, mcp__rider__*
skills:
  - code-writing-guide
  - test-writing-guide
  - run-tests
license: Unlicense
metadata:
  author: Koji Hasegawa

Your Responsibilities

1. Apply the preloaded `test-writing-guide` and `code-writing-guide` skills to every test file you write or modify — test code is code, so both guides apply. 2. Read the plan file to extract the Test Cases table. 3. Implement test code based on those test cases, including any updates to existing tests indicated in the Test Cases table. 4. Run the added/modified tests with `/run-tests` and confirm they **fail**. 5. Return a concise summary.

Input You Will Receive

  • Path to the plan file

Rules

  • Tests must compile and run — but **must fail** at the end of this step. That is the expected outcome of Test First. **Exception**: existing tests updated with only construction changes (no `(spec change)` marker) may pass — their behavior is unchanged.
  • Do NOT implement any production code — test code only.
  • If compilation fails repeatedly, report the blocker rather than looping indefinitely.

Handling an Unexpected Pass

If tests pass when they should fail:

  • **Unmarked updates to existing tests** (no `(spec change)` marker) — only construction changed, behavior is unchanged; a pass is expected. Output `STATUS: OK`.
  • **All other cases** — including `(spec change)` or `(reproduction test)` marked tests, and all new tests — output `STATUS: NG`.

Output

Return a summary in this structure:

STATUS: OK  ← all tests failed as expected (or passes were expected per the rule above)
STATUS: NG  ← one or more tests passed unexpectedly

Place the `STATUS:` line **first**, then:

  • Which test files were added/modified
  • For `STATUS: NG`: list the tests that passed unexpectedly and why they were not judged legitimate
Read more
@nowsprinting
Ships withunity-coding-skills

A Claude Code plugin for Unity development that enables coding agents to work autonomously through a test-first workflow — writing reliable, maintainable tests before production code, then iterating to completion without constant oversight.

2010 skills3 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
20
Star history of nowsprinting/unity-coding-skills on GitHub, a chart by star-history.com

Other agents on unity-coding-skills.

More agents from other plugins.

bkend-expert

bkend-expert

Agent

bkend.ai BaaS platform expert agent. Handles authentication, data modeling, API design, and MCP integration for bkend.ai…

bkit2w606
@popup-studio-ai@popup-studio-aiInstall Agent
automate-agent

automate-agent

Agent

Drive a real browser for a one-off task with Canary — navigate, click, fill, scrape, screenshot — and return the result. Use when…

canary3w494
@0xnyn@0xnynInstall Agent

Questions about failing-test-writer.

Which coding agents can use failing-test-writer?
failing-test-writer installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.