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
Spec Archive
Mechanically merge an active change's deltas into the living spec, promote ADRs, and move the folder to the ar
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
FileMaker AI Grammar
171 engine-measured test vectors and 29 verified behaviour rules for FileMaker's calculation engine, round-tri
Builder Write Test
Builder step 2 — write the failing test from the spec before implementing the fix
Test Driven Development
Use when implementing any feature or bugfix, before writing implementation code - write the test first, watch
Related Agents
Rig QA
Test writing agent. Use to write or extend unit tests for new or changed code. Give it the file or function to
Smoke
Use when a change to dirk needs a test — anything a user can see, any pane or pty behaviour, any keybinding, a
AWS AI Terraform
Write, extend, and review the Terraform in this repo for AWS AI/ML services on the AI Practitioner (AIF-C01) e