spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / plugins / hookify / examples / require-tests-stop.local.md
22 lines · 500 BPreviewCodeRaw
1---
2name: require-tests-run
3enabled: false
4event: stop
5action: block
6conditions:
7 - field: transcript
8 operator: not_contains
9 pattern: npm test|pytest|cargo test
10---
11
12**Tests not detected in transcript!**
13
14Before stopping, please run tests to verify your changes work correctly.
15
16Look for test commands like:
17- `npm test`
18- `pytest`
19- `cargo test`
20
21**Note:** This rule blocks stopping if no test commands appear in the transcript.
22Enable this rule only when you want strict test enforcement.