---
name: require-make-quality
enabled: true
event: stop
action: block
pattern: .*
---

🛑 **Quality Gate: Run `make quality` Before Completing**

You MUST run the quality checks before ending this conversation turn.

**Required command:**
```bash
cd /home/trav/repos/noteflow && make quality
```

**This is required when:**
- ✅ Any code changes were made (Edit, Write, MultiEdit)
- ✅ Any subagent was spawned (Task tool)
- ✅ Any file modifications occurred

**What `make quality` checks:**
- Type checking (basedpyright/mypy)
- Linting (ruff)
- Test smell detection (tests/quality/)
- Code formatting verification

**If quality checks fail:**
1. Fix the reported issues
2. Run `make quality` again
3. Only then complete the conversation turn

**If no code changes were made:**
You can acknowledge this reminder and proceed - but verify no files were modified.

**Project policy:** All code changes must pass quality gates before completion. This prevents broken code from being committed.
