rules-engine

Diagnose rule matching and processing order issues in ChatControl.

Updated Feb 15, 2026
One-click install
npx skills add https://github.com/kangarko/ai-support --skill rules-engine-kangarko
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rules-engine
Source: https://github.com/kangarko/ai-support/tree/main/projects/chatcontrol/skills/rules-engine
Command: npx skills add https://github.com/kangarko/ai-support --skill rules-engine-kangarko

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Troubleshooting the Rules Engine to identify why a rule isn't matching, understand differences between replace and rewrite, and manage groups and processing order.

Core Features & Use Cases

  • Diagnostic steps to verify rule matching, examine log output, and assess how rule order affects evaluation.
  • Clarifications of common mistakes like using replace vs rewrite, and how groups and ignore filters influence results.
  • Practical guidance for debugging message processing in rule-based configurations for ChatControl.

Quick Start

Enable verbose logging in settings, reproduce the issue by testing the same input, and adjust the rule order to validate fixes.

Frequently Asked Questions about rules-engine

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why is my ChatControl rule not matching messages even when the regex filter is correct?

Rule matching fails when rule order or ignore filters prevent evaluation. Enable verbose logging in settings to trace message processing, reproduce the input, and verify if group handling blocks the match.

What is the difference between replace and rewrite in a rules engine?

Replace modifies matched content within the original message, while rewrite alters the entire message structure. Understanding this distinction prevents common configuration mistakes when troubleshooting message processing outcomes.

How do I debug rule processing order in ChatControl?

Debug rule processing order by enabling verbose logging, reproducing the issue with the same input, and adjusting rule sequence. Examine log output to assess how rule order affects evaluation and validate fixes.

How do group assignments and ignore filters influence rule matching outcomes?

Groups organize rules into logical sets, while ignore filters exclude specific conditions from evaluation. Misconfiguring either causes unexpected rule matching behavior and prevents intended message replacements or rewrites.

Can I use this rules engine diagnostic approach for Discord message processing?

Yes, troubleshooting steps apply to Discord message processing. Enable verbose logging, reproduce the issue by testing the same input, and adjust rule order to validate fixes across ChatControl configurations.

What are common mistakes when configuring rule order and regex filters?

Common mistakes include confusing replace with rewrite, misordering rules so earlier matches block later ones, and misapplying ignore filters. Validate configuration steps and examine log output to guide precise adjustments.