diff options
| author | Noah Zweben MacBook <noahz@anthropic.com> | 2025-11-20 11:47:24 -0800 |
|---|---|---|
| committer | Noah Zweben MacBook <noahz@anthropic.com> | 2025-11-20 11:47:24 -0800 |
| commit | 4ca561fb8532594e7a5faef945e85096fcec0616 (patch) | |
| tree | 0218e6f274b7fb9872d470da3b4dc1f6b28dd9e8 /plugins/hookify/examples/require-tests-stop.local.md | |
creating intital scaffolding for claude code pluginsnoahz/initial_scaffold
Diffstat (limited to 'plugins/hookify/examples/require-tests-stop.local.md')
| -rw-r--r-- | plugins/hookify/examples/require-tests-stop.local.md | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/plugins/hookify/examples/require-tests-stop.local.md b/plugins/hookify/examples/require-tests-stop.local.md new file mode 100644 index 00000000..87039186 --- /dev/null +++ b/plugins/hookify/examples/require-tests-stop.local.md @@ -0,0 +1,22 @@ +--- +name: require-tests-run +enabled: false +event: stop +action: block +conditions: + - field: transcript + operator: not_contains + pattern: npm test|pytest|cargo test +--- + +**Tests not detected in transcript!** + +Before stopping, please run tests to verify your changes work correctly. + +Look for test commands like: +- `npm test` +- `pytest` +- `cargo test` + +**Note:** This rule blocks stopping if no test commands appear in the transcript. +Enable this rule only when you want strict test enforcement. |
