โ Browse
protect-tests
karanb192 โ
524
protect-tests is a PreToolUse hook that prevents agents from making test suites pass by deleting, renaming, or skip-disabling tests instead of fixing code. It detects and blocks removal patterns across pytest, unittest, jest/mocha/vitest, Go, JUnit/TestNG, NUnit/MSTest, RSpec, and Rust, with three configurable safety levels while always allowing new tests and legitimate test edits.
Install
> /plugin marketplace add karanb192/claude-code-hooks/tree/HEAD/plugins/protect-tests
> /plugin install protect-tests
Source: https://github.com/karanb192/claude-code-hooks/tree/HEAD/plugins/protect-tests
What it's made of
1 hook
- Commands
- 0
- Agents
- 0
- Skills
- 0
- MCP servers
- 0
- Hooks
- 1 ยท PreToolUse
What it needs & plugs into
- API keys
- none
- Paid services
- none detected
- External tools
node- Talks to
- nothing external detected
Facts extracted from the plugin's files. Prose generated by claude-haiku-4-5-20251001.
Is this your plugin?
Claim it to keep the card accurate and enter the weekly contest. Requires signing in as the GitHub owner (karanb192).