Skip to content
Development
Command

/rtk-test-before-merge

Force the agent to write or extend a test for every behaviour change.

From plugin
rtk
86k13 skills6 agents13 commands
$ npx -y skills add rtk-ai/rtk --agent claude-code

Command definition

rtk-test-before-merge.md

Force the agent to write or extend a test for every behaviour change.

Test before merge

For every code change that affects observable behaviour:

1. Identify the existing test that covers the area. If none, propose creating it (note the gap in the response). 2. Write the failing test FIRST in a separate commit named `test: <what>` — verify it fails on main, passes on the branch. 3. The implementation commit comes second. 4. If the change is purely refactoring, run the existing tests and report the count + duration; do not add new tests just to satisfy this rule when there is no behaviour change.

Skip is allowed only when:

  • Tweaking a doc string, comment, log message
  • Renaming a private symbol
  • A pre-existing TODO points at "test added in #issue-N"
@rtk-ai
Ships withrtk

CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies

86k12 skills6 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
86.0k
Star history of rtk-ai/rtk on GitHub, a chart by star-history.com

Other commands on rtk.

clean-worktree

clean-worktree

Command

Interactive cleanup of stale worktrees (merged branches, orphaned refs)

@rtk-ai@rtk-aiInstall Command
diagnose

diagnose

Command

RTK environment diagnostics - Checks installation, hooks, version, command routing

@rtk-ai@rtk-aiInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command