atai-rare-event-detection-agent

atai-rare-event-detection-agent is a skill for Claude Code, Codex from archetypeai/agent-skills. It costs 216 tokens per session (5,308 once invoked), scanned A, original, Apache-2.0.

A managed service for finding specific rare events in sensor data, such as a pump breakdown, from a small set of labelled examples. It compares new data with representative examples of each named event.

In plain words
What is it for?
Use it to upload sensor data, run the predefined RED Quick Start workflow, and retrieve predictions for each time window.
Why use it?
It is useful when there are too few examples to train a full model, but normal-only anomaly detection would flag too many unrelated changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to upload sensor data, run the predefined RED Quick Start workflow, and retrieve predictions for each time window.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/archetypeai/agent-skills/atai-rare-event-detection-agent
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add archetypeai/agent-skills --skill atai-rare-event-detection-agent
Clone the repo
git clone --depth 1 https://github.com/archetypeai/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for atai-rare-event-detection-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/archetypeai/agent-skills/atai-rare-event-detection-agent/github.svg)](https://agentmods.dev/skills/archetypeai/agent-skills/atai-rare-event-detection-agent)
Your own site
<a href="https://agentmods.dev/skills/archetypeai/agent-skills/atai-rare-event-detection-agent"><img src="https://agentmods.dev/badge/skills/archetypeai/agent-skills/atai-rare-event-detection-agent/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for atai-rare-event-detection-agent

Your own site · 80×15
<a href="https://agentmods.dev/skills/archetypeai/agent-skills/atai-rare-event-detection-agent"><img src="https://agentmods.dev/badge/skills/archetypeai/agent-skills/atai-rare-event-detection-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 216 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,308 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00216 $0.05308
Opus 5.5 $0.00086 $0.02123
Sonnet 5.5 $0.00043 $0.01062
Haiku 4.5 $0.00022 $0.00531

Measured 7d ago against content hash 73db8d944897, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

atai-rare-event-detection-agent scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (references/run_red_agent.py, tests/test_references.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST -H "Authorization: Bearer $ATAI_API_KEY" \
skills/atai-rare-event-detection-agent/SKILL.md · 412 lines

How it starts

The opening of the file, as written. The whole thing — 412 lines — stays where its author put it; the contents beside it link to each section on GitHub.

RED Agent — Managed Rare Event Detection via the Agents API

The RED agent detects named, rare events from a handful of labelled examples. It is the few-shot middle path between two siblings: OSM needs a full labelled library across every regime you care about, anomaly detection needs only normal data but flags everything unusual. RED takes a small named catalog — "pump breakdown", "severe slugging" — with a few labelled examples each plus normal data, and detects those specific signatures recurring.

Algorithmically it is two modules: the Omega encoder turns windowed multivariate sensor data into embeddings, and a nearest-prototype classifier assigns each window to the closest class prototype. One prototype per class — the arithmetic mean of that class's shot embeddings — which is what makes it tolerate the severe imbalance between abundant normal data and one or two fault incidents.

The platform runs the whole graph server-side:

source → interpolate → window → windowInterpolate → samplingRate
       → limitValues → encoder (omega:1.5) → classifier → sink

You don't have to fit or host anything: the platform ships canonical "RED Quick Start" bundles with a pump-breakdown classifier and its windowing (window_size=64, step_size=1) already pinned. One run = one agent instance = one input file. You upload the CSV, resolve the pre-packaged bundle by name, run it, poll until terminal, and download one output CSV of per-window predictions. (Detecting your own fault catalog means a classifier fitted for your data — Archetype AI does that with you; see "Bring your own classifier" below.)

When to Apply

  • Run managed rare-event detection without fitting anything — the pre-packaged Quick Start bundle pins a classifier and its windowing; upload a prepared CSV and run
  • Detect a named fault of your own recurring, given only one or two labelled incidents of it plus normal-operation data (bring your own classifier, below)
  • Deploy a detector as a repeatable batch job with no client-side ML — the platform embeds and classifies every window
  • Score a few-shot detector honestly, where standard accuracy is meaningless because the positive class is under 1% of windows

Read the full file on GitHub · 412 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago Changed · +1 lines 73db8d944897
  2. 25d ago Changed · +6 lines bd481928138f
  3. 1mo ago First seen · 405 lines · 216 tokens per session scan A 3539bb530aaa

Subscribe to this mod's changes

atai-rare-event-detection-agent is a skill published in the GitHub repository archetypeai/agent-skills (7 stars, last pushed today), licensed Apache-2.0. It adds 216 tokens to every session and 5,308 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

environment

Interpret environmental sensor readings and sustained changes for room comfort and air quality. Use for [environment:initial] greeting context, [environment:update] events, questions about room temperature, humidity, measured CO2 or air quality, checking changes after ventilation or air cleaning, and room-feeling…

autonomous-ai/autonomous-os · 109 tokens

sensing-track

Query flow event logs to answer questions about past sensing events — "Have you seen anybody between 10pm and midnight?", "Is there any motion in the last hour?", "What happened while I was away?". Also holds your OWN sleep history — "how many times have you slept?", "when do you usually go to sleep?".

autonomous-ai/autonomous-os · 70 tokens

sensing

React to passive device events tagged [sensing:...] — presence, sound, light, fire hazard — with inline emotion markers and optional short speech. Does NOT handle motion.activity (→ wellbeing) or emotion.detected / speechemotion.detected (→ user-emotion-detection).

autonomous-ai/autonomous-os · 60 tokens

emotion

Express emotion through coordinated servo + LED + display eyes on EVERY conversational response. This is the PRIMARY response skill that makes the device feel alive. Do NOT use for ambiance lighting (use Scene) or custom LED colors (use LED Control).

autonomous-ai/autonomous-os · 49 tokens

guard

Guard mode for security monitoring. Two uses — (1) Toggle on/off when a friend says "guard mode", "watch the house", "I'm going out", or similar. (2) Handle any sensing event that carries a [guard-active] tag (e.g. [sensing:presence.enter][guard-active], [sensing:motion][guard-active]) with dramatic shock/curious…

autonomous-ai/autonomous-os · 101 tokens

led-control

Control the device's RGB light when the user asks for a SPECIFIC color (e.g. "yellow", "red", "yellow", "red", "turn on color X", "enable X light"), an LED effect, or turning LEDs off. Do NOT use for ambiance/activity lighting (use Scene) or emotion expression (use Emotion).

autonomous-ai/autonomous-os · 72 tokens