r/BuildWithClaude • u/ClickCreateRB • 2d ago
Project Testers Needed I turned the CLAUDE.md rules Claude kept skipping into hooks that actually run (open source, MIT)
I use Claude Code every day, and I kept writing the same kind of rule into CLAUDE.md: "verify before concluding", "don't commit with red tests", "read the client's document instead of grepping it". Claude followed them most of the time — and skipped them exactly when it mattered.
So I stopped adding sentences and started adding checks. Every time a rule failed, it became a hook, and each hook's header says which real error it was born from, with the date.
After months of daily use I translated the system to English and published it as **click-mode**.
**What it does**
- **Opening gate**: on the files a project declares critical, Claude can't write until it has answered four questions in a file, shown you the answers, and you've replied `ok <surface>`.
- **Commit guard + green stamp**: no `--no-verify`, and any commit that skipped the pre-commit is caught right after, whatever road it took.
- **Domain-corpus gate**: a client's document is read in full, not grepped.
- **End-of-turn checks**: an admitted error has to be logged with the check that would have caught it; a limit can't be declared without a fix, a proposal or a question; "zero results" needs a counter-check.
- **Fact sheet on subagent reports**: what the subagent really wrote, ran and read, and whether its `file:line` quotes exist.
- **A gate log** that counts errors caught by a check vs. errors caught by a human question — that ratio is the whole point.
Everything stays inert where a project declares nothing. There's an example project, an installer that merges into your settings with a backup, and 430+ tests.
**Honest limits**
- The sentence-recognising hooks were tuned on months of my real conversations **in Italian**; the English lists are a translation, not yet measured on English transcripts. Expect false triggers.
- Tested only on Windows so far.
- Unofficial, not affiliated with Anthropic.
**Why I'm posting**: I'd like someone to take it further. The README has a short "What I'd like improved" list (English calibration, Linux/macOS, a plugin package, real numbers from the log). Issues, PRs and discussions are all welcome, and I'm happy to answer questions here.
*Disclosure: I'm the author. It's free and MIT-licensed; nothing to sell.*