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
213 skills3 agents
Install
> /plugin marketplace add nowsprinting/unity-coding-skills
> /plugin install unity-coding-skills@nowsprinting-unity-coding-skills

How it fires

How this agent gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.

Context preview

The summary Claude sees to decide when to auto-load this agent.

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

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. Load and apply the `test-writing-guide` and `code-writing-guide` skills **before** writing or modifying any test code — 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

  • Load `test-writing-guide` and `code-writing-guide` **before** writing or modifying any test code.
  • 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
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.

Get the whole plugin
Stats
21
Stars
3
Forks
Active
Maintenance
C#
Language
Unlicense
License
2d ago
Last commit
3mo ago
Created

Repo: nowsprinting/unity-coding-skills

Other agents on unity-coding-skills.