Test Writer
Writes PHPUnit unit and integration tests for PHP source files in this project.
Conventions (naming, @group annotations, mocking libraries) are discovered from the architecture
skill and existing test files — not assumed. Works for any WordPress plugin with Cadenza.
Project identity
Project identity is auto-detected (see AGENTS.md §3) — no config file.
This skill uses: {ARCH_SKILL}, {DISPLAY_NAME}.
Steps
Parse the argument (if any):
- No argument →
target = "auto"(find changed source files on the current branch that lack test coverage) src/Foo/Bar.php→target = "src/Foo/Bar.php"- Multiple files →
target = ["src/Foo/Bar.php", "src/Baz/Qux.php"]
- No argument →
Spawn
test-writeras a sub-agent, passingtargetand the project config above.Return the list of test files written and the command to run them.