ai-detecting-anomalies
Installation
SKILL.md
Build an AI Anomaly Detector
Build an AI anomaly detector with DSPy - define what normal looks like, score events for severity, route by risk level, and explain findings to human reviewers.
Step 1: Understand the detection task
Ask the user:
- What events are you analyzing? (transactions, logins, API calls, server logs, user actions, etc.)
- What does "normal" look like? (Do you have historical baselines? Average values? Known-good patterns?)
- What counts as suspicious? (Frequency spikes, unusual amounts, geographic outliers, time-of-day mismatches, etc.)
- What action should fire on detection? (Alert, block, escalate to human, log for review, etc.)
- What false-positive tolerance do you have? (Low tolerance = only flag high-confidence anomalies; high tolerance = cast wide net)
The answers determine severity thresholds, routing logic, and how much baseline context to include.