bm25-suggest.js
Self-calibrating BM25 skill routing hook (Node.js, zero deps)
When to use this
- When smart-suggest feels too slow and you want a self-calibrating BM25 ranking with zero dependencies
- When your skill library has grown large enough that naive keyword matching misses intent
- When you want routing accuracy to improve automatically as usage data accumulates
How to use
-
Open the template on GitHub and copy its content:
hooks/bm25-routing/bm25-suggest.js -
Place the file inside
.claude/hooks/in your project (or globally in~/.claude/to share across all projects). For shell scripts, make it executable:chmod +x bm25-suggest.js - Read through the file, identify the sections that need project-specific values, and update them before committing.