atai-rare-event-detection-agent-data-prep
Installation
SKILL.md
RED Data Prep — a labelled recording → role files
The RED agent learns one prototype per class from a handful of labelled incidents and normal operation, and flags windows that sit closer to an event's prototype than to normal. With so few examples, a few prep decisions carry the whole result, and the ways to get them wrong rarely error: a channel that goes dark because the pump failed becomes a perfect but meaningless signature; an incident shorter than half a window is all but undetectable at that window; two incidents close together share their normal context between validation and test; channels chosen on held-out incidents score optimistically. This skill makes each decision visible and checks every rule before you upload.
one recording (any rate, jitter, gaps, missing readings)
+ a per-row label column prepare.py → check_events.py → build_roles.py → preflight_roles.py → RED agent skill, Path 2