Anomaly Rule DSL

Define anomaly detection rules using a YAML DSL schema.

Updated Feb 13, 2026
One-click install
npx skills add https://github.com/FrancisVarga/stupid-db --skill anomaly-rule-dsl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Anomaly Rule DSL
Source: https://github.com/FrancisVarga/stupid-db/tree/main/packages/stupid-claude-agent/.claude/skills/anomaly-rule-dsl
Command: npx skills add https://github.com/FrancisVarga/stupid-db --skill anomaly-rule-dsl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive reference for defining, configuring, and managing anomaly detection rules within the stupid-db system, ensuring accurate and efficient identification of unusual patterns.

Core Features & Use Cases

  • YAML DSL Schema: A complete schema for creating anomaly detection rules, covering structure, detection methods (spike, drift, absence, threshold), signal composition, and enrichment.
  • Notification Channels: Supports configuring alerts via webhooks, email, and Telegram.
  • Use Case: You need to create a new rule to detect sudden spikes in login failures for specific user groups. You would use this DSL to define the rule's parameters, set a notification for critical spikes, and schedule its execution.

Quick Start

Use the anomaly-rule-dsl skill to understand how to configure a 'spike' detection template for the 'login_count_7d' feature.

Frequently Asked Questions about Anomaly Rule DSL

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

FAQPage Schema
How do I define anomaly detection rules in YAML for monitoring data spikes?

You define anomaly detection rules in YAML by using a structured DSL schema that specifies detection templates like spike, drift, absence, and threshold, along with signal composition and execution scheduling parameters.

What notification channels can I configure for anomaly alerting rules?

Anomaly alerting rules support configuring notifications through webhooks, email, and Telegram channels, allowing you to deliver critical alerts to the appropriate communication platforms when unusual patterns are detected.

How does signal composition work when configuring anomaly detection?

Signal composition in anomaly detection allows you to combine multiple input signals within the YAML DSL schema, enabling complex rule logic that evaluates aggregated data patterns before triggering threshold or spike alerts.

Can I use OpenSearch data enrichment with anomaly detection rule configurations?

Yes, the anomaly rule DSL schema supports OpenSearch enrichment, allowing you to augment detection rules with external data context to improve the accuracy of spike, drift, and absence pattern identification.

What detection templates are available for building anomaly monitoring rules?

The available anomaly detection templates include spike detection for sudden increases, drift detection for gradual changes, absence detection for missing data, and threshold detection for boundary violations.

How do I set up a rule to detect sudden spikes in login failures?

To detect login failure spikes, use the YAML DSL to configure a spike detection template targeting the login count feature, set notification parameters for critical thresholds, and schedule the rule execution frequency.