Engineering productivitypattern
Range-checker utility (anti-hallucination guardrail)
LLMs confidently flunk "is 47 between 40 and 50?" 20 lines of Python + one rule in.cursorrules eliminates a whole class of bugs.
What
A ~20-line Python script check_range.py that takes (value, min, max) triples. Root .cursorrules enforces: "ALWAYS use this script for numerical comparisons — NEVER do mental math for ranges. LLMs frequently make errors with numerical comparisons." Tiny tool, large class of bugs eliminated.
← All casesC-019