Guard · Rules
Rules
The anti-pattern rule engine, in one panel. List every rule, tune a rule's thresholds, test a candidate against live data before you keep it, or author a new declarative rule with no code file.
Where to find it
- Localhost:
/rules.html?repo=<id> - API:
GET /api/rules,POST /api/rules/evaluate(the playground),POST /api/rules/custom(author a rule) - Keyboard: ⌘ K then
rules - Sidebar: Level up → Rules
What it does for you
Tune a rule without editing code.Each built-in rule exposes its thresholds as parameters you set from the panel, so you adjust when a rule fires without touching a source file.
Test a candidate live before you keep it.The evaluate endpoint runs a rule (built-in or a draft you are authoring) against the current data and shows what it would flag, so you see the effect before you save it.
Author a declarative custom rule.Write a new rule in the authoring vocabulary and it persists as a declarative definition, no code file required.