clean-worktree
Interactive cleanup of stale worktrees (merged branches, orphaned refs)
Force the agent to write or extend a test for every behaviour change.
$ npx -y skills add rtk-ai/rtk --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/rtk-test-before-mergeContext preview
What this command does when you run it.
Force the agent to write or extend a test for every behaviour change.
Force the agent to write or extend a test for every behaviour change.
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:
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
Repo: rtk-ai/rtk
Interactive cleanup of stale worktrees (merged branches, orphaned refs)
Clean all merged worktrees automatically (no interaction)
RTK environment diagnostics - Checks installation, hooks, version, command routing
Conventional Commits enforcer for AI-authored PRs.
Refuse force-pushes / history rewrites unless the user explicitly asks.
Defensive idioms when generating Rust code.