Skip to content

Slash command

Test writer

Writes the tests that would have caught the bug, in the style the project already uses.

About

Writes the tests that would have caught the bug, in the style the project already uses.

Files in v1.0.0

  • replicamd.plugin.json2077 B
  • skills/tests-worth-keeping.md2023 B

Contributes

{
  "commands": [
    {
      "id": "cover",
      "title": "Test what the diff changed",
      "prompt": "Read the working diff and write the tests it should have come with.\n\nFirst read two or three existing test files and match them: the same runner, the same file location and naming, the same assertion style, the same setup helpers. A test that is right but foreign to the codebase gets rewritten by the next person, so this matters more than your preferences.\n\nThen write tests for what the change actually does - the branch that was added, the edge it now handles, the error path. Cover the boundary: empty, one, many, the value either side of a comparison. Skip tests that only assert the implementation back at itself; a test that breaks on every refactor and never on a bug is a liability.\n\nRun them. Show me the output. If a test passes against the old code too, it is not testing the change - say so and fix it."
    },
    {
      "id": "regression",
      "title": "Write the test for a bug",
      "prompt": "Describe the bug to me, or point me at the fix, and I will write the regression test.\n\nThe test must fail against the broken code. Write it first, run it against the current state, and show me it failing for the right reason - a test that passes before the fix proves nothing, and that is the single most common way a regression test is worthless.\n\nName it after the behaviour, not the ticket: `returns the last write when two land in the same tick` beats `test issue 412`. Include the specific input that triggered it, so the next reader sees the shape of the failure without going to find the report."
    }
  ],
  "skills": [
    "skills/tests-worth-keeping.md"
  ]
}

Versions

  • v1.0.07/26/2026 · 2 files

Install

Install in ReplicaMD

Nothing happened? ReplicaMD may not be installed yet - or open it first, then Settings → Plugins and install by id.

Plugin id:

test-writer

Bundle endpoint:

https://replicamd.nl/api/registry/plugins/test-writer/download
Author
Ardjun Debi - Tewarie @ardjun
Latest
v1.0.0
License
MIT
Installs
0
testingqualitycoverage