Skip to content
Back to skills

Monitor Drift Sensors

ASecurity

CUSUM and Page-Hinkley statistical drift detection on sensor data streams

  • 6 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 11, 2026
datagobash

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 11, 2026

npx -y skills add grahama1970/agent-skills --skill monitor-drift-sensors --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Monitor Drift Sensors?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Monitor Drift Sensors
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/grahama1970-monitor-drift-sensors/badge)](https://www.skillsdirectory.com/skills/grahama1970-monitor-drift-sensors)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: monitor-drift-sensors
description: CUSUM and Page-Hinkley statistical drift detection on sensor data streams
triggers:
  - "drift detection"
  - "sensor drift"
  - "monitor sensors"
allowed-tools:
  - Bash
provides:
  - monitor-drift-sensors
composes:
  - create-figure
  - task-monitor
  - agentic-evals
disciplines:
  - observability-operations
  - data-engineering
---

# monitor-drift-sensors

Statistical drift detection on sensor data streams using CUSUM (Cumulative Sum) and Page-Hinkley algorithms.

## Usage

```bash
# Analyze a JSONL file of sensor readings for drift
./run.sh analyze <data.jsonl>

# Analyze with built-in test fixtures (no file needed)
./run.sh analyze --dry-run

# Watch a live sensor stream (requires running daemons)
./run.sh watch --sensor vibration --threshold 3.0

# Show algorithm parameters and last detection results
./run.sh status
```

## Input Format

Each JSONL line:
```json
{"timestamp": "2026-02-19T10:00:00", "sensor": "vibration", "value": 50.3}
```

## Output

Table of detected drift points:

```
SAMPLE_IDX | TIMESTAMP            | CUSUM_VALUE | METHOD       | SEVERITY
17         | 2026-02-19T10:00:16  | 12.45       | CUSUM        | HIGH
18         | 2026-02-19T10:00:17  | 8.32        | PAGE_HINKLEY | MEDIUM
```

## Algorithms

- **CUSUM**: Tracks cumulative sum of deviations from running mean. Detects sustained shifts.
- **Page-Hinkley**: Monitors difference between observed values and their running mean. Sensitive to gradual drift.

Both run simultaneously; drift is flagged when either detector triggers.

Files in this skill

  • SKILL.md1.5 KB
  • detect.py3.8 KB
  • fixtures/agentic_eval.json499 B
  • pyproject.toml110 B
  • run.sh2.4 KB
  • sanity.sh873 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.