---
description: Run the project's quality gate on the current changes before committing.
---

Run the quality gate on the current diff and report results. Do NOT commit unless I explicitly ask.

1. `git status` + `git --no-pager diff --stat` to see what changed.
2. Run `vendor/bin/pint` on the changed PHP files (not the whole repo).
3. `php -l` on any standalone scripts/route files touched.
4. Run the relevant tests: `php artisan test --filter <…>` for the changed area; if broad, run the matching `tests/Feature/...` directory.
5. Quick self-review: any new backend route guarded by a permission? any money/total trusted from the request? any hard delete on an audited model? any hard-coded list that should come from DB? Flag anything found.
6. **CLAUDE.md sync check:** does this diff change anything described in `CLAUDE.md` (a convention, the routing/folder structure, soft-delete coverage, observers, services, a new structural module)? 
   - If **no** — say "CLAUDE.md: à jour" and move on. Do NOT touch it for routine work (bugfix, feature following existing conventions, import/export, content).
   - If **yes** — quote the now-stale line(s) and propose the exact edit, but **do not apply it without explicit approval**. Updating CLAUDE.md is conditional, never automatic.

Report a concise PASS/FAIL summary per step. If anything fails, stop and surface it rather than papering over it.
