Skip to content

Quick Start

1. Check your rules are valid

crossfire validate rules.json

2. Find duplicates within a file

crossfire scan rules.json

3. Compare rules across files

crossfire compare community.json pro_rules.json vendor_rules.json

4. Test rules against real data

crossfire evaluate rules.json --corpus production_samples.jsonl

What to do with the results

  • Duplicates: drop the lower-priority rule
  • Subsets: the superset rule covers everything — consider if the specific rule adds value
  • Overlaps: review manually — may be intentional
  • Broad patterns: rules overlapping with 5+ others deserve scrutiny
  • Zero unique coverage: the rule is fully redundant and can be safely removed