anomaly-detection-rule-builder

Design anomaly-detection rules for business metrics using PostgreSQL-compatible SQL templates.

3|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/anthril/official-claude-plugins --skill anomaly-detection-rule-builder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: anomaly-detection-rule-builder
Source: https://github.com/anthril/official-claude-plugins/tree/main/plugins/data-analysis/skills/anomaly-detection-rule-builder
Command: npx skills add https://github.com/anthril/official-claude-plugins --skill anomaly-detection-rule-builder

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Build rule-based and statistical anomaly detection systems for business metrics, enabling proactive alerts and structured investigations.

Core Features & Use Cases

  • Layered detection: static thresholds, statistical deviation, and trend detection across revenue, traffic, conversions, churn, and operations.
  • Event-aware suppression and logging; includes templates, SQL samples, anomaly_log, and an investigation playbook.
  • Quick-start: drop-in rules and templates for PostgreSQL (Supabase/PostgreSQL friendly) or standard SQL environments.

Quick Start

Install and run the anomaly-detection-rule-builder in your data pipeline.

Frequently Asked Questions about anomaly-detection-rule-builder

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

FAQPage Schema
How do I set up anomaly detection rules for business metrics in SQL?

Anomaly detection in PostgreSQL uses SQL templates for static thresholds, statistical deviations, and trend detection across business metrics. It includes drop-in rules, an anomaly_log, and an investigation playbook without requiring external dependencies.

What types of business metrics can I monitor for statistical deviations?

Statistical deviations can be monitored across revenue, traffic, conversions, churn, and operational metrics. Detection rules operate over daily to monthly horizons to identify significant anomalies in these specific business areas.

Does this anomaly detection approach work with Supabase and standard PostgreSQL?

Yes, the anomaly detection rules are PostgreSQL-compatible and explicitly designed to be Supabase and PostgreSQL friendly. They function in standard SQL environments using only standard libraries, requiring no external dependencies.

How do I handle false positive alerts during known business events?

False positive alerts during known business events are handled through event-aware suppression. This feature prevents automated alerting when expected metric fluctuations occur, ensuring investigations focus only on genuine anomalies.

What is included in the anomaly investigation playbook?

The anomaly investigation playbook provides structured procedures for responding to detected metric deviations. It accompanies the SQL templates and anomaly_log to guide proactive alerting and systematic post-detection analysis.