Rtk Test Before Merge — Testing skill for Claude Code
Force the agent to write or extend a test for every behaviour change.
How to install Rtk Test Before Merge
Installs to ~/.claude/commands/velesnitski-rtk-rtk-test-before-merge.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/velesnitski/rtk/HEAD/.claude/commands/rtk-test-before-merge.md -o ~/.claude/commands/velesnitski-rtk-rtk-test-before-merge.md Restart Claude Code, or start a new session, for it to be picked up.
What Rtk Test Before Merge does
Force the agent to write or extend a test for every behaviour change.
Test before merge
For every code change that affects observable behaviour:
- Identify the existing test that covers the area. If none, propose creating it (note the gap in the response).
- Write the failing test FIRST in a separate commit named
test:— verify it fails on main, passes on the branch. - The implementation commit comes second.
- If the change is purely refactoring, run the existing tests
Alternatives in Testing
- /test Routing — Vérifie le routing de commandes RTK sans exécution (dry-run) 25.5k ★
- Pua — Use when the user invokes /pua or asks for PUA mode, try-harder/retry help, change-approach coaching, completi 19.5k ★
- Testing Strategy — This project is small, runs in a terminal, and is mostly deterministic 10.9k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Ddd Spec
Enter a task and write or extend its spec
Spec Archive
Mechanically merge an active change's deltas into the living spec, promote ADRs, and move the folder to the ar
Tool Policy
Write your company's rules for an agent's tool calls, test them on past traces, and run them on every change
Grill Spec
Stress-test a plan or feature with grill-me and spoonfeeder, then write docs/prompts/SPEC.md or an OpenSpec ch
Decision Memo
Produce a senior-leadership decision memo before proposing a non-trivial change. Seven sections — observation,
Discovery Experiment
Map the assumptions behind an idea and design the cheapest test that would actually change your mind, with the
Related Agents
Karr Test Writer
Write and extend tests for App::karr under t/. Use for new coverage and regression tests. App::karr is a Moo +
Rig QA
Test writing agent. Use to write or extend unit tests for new or changed code. Give it the file or function to
E2e Playwright Tester
Use this agent to write, fix, or extend end-to-end tests with Playwright. Triggers on phrases like "write an e