---
title: "Reactive Triggers"
description: "Fire skills automatically on runtime conditions in cron-state.json such as consecutive failures or status changes."
canonical: "https://www.aeon.fun/docs/reactive"
---

# Reactive Triggers (https://www.aeon.fun/docs/reactive)

> Fire skills automatically on runtime conditions in cron-state.json such as consecutive failures or status changes.
>
> Full docs: https://www.aeon.fun/docs.md | Whole-site summary: https://www.aeon.fun/llms.txt

While cron schedules handle fixed times, reactive triggers fire skills with `schedule: "reactive"` whenever runtime conditions in `memory/cron-state.json` match.

## Defining Triggers

Add a `reactive:` block to [`aeon.yml`](https://github.com/aeonfun/aeon/blob/main/aeon.yml) (shipped commented out by default so self-repair stays opt-in):

```yaml
reactive:
  skill-repair:
    trigger:
      - { on: "*", when: "consecutive_failures >= 3" }
  autoresearch:
    trigger:
      - { on: "skill-health", when: "last_status = success" }
```

## Trigger Conditions

- **`on: "*"`** matches any skill in `cron-state.json`; pass a specific slug (e.g. `on: "skill-health"`) to watch one skill.
- **`when:`** supports three predicates evaluated on each scheduler tick:
  - `consecutive_failures >= N`
  - `success_rate <op> X` (where `X` is `0.0` to `1.0`)
  - `last_status = <value>` (`success` or `failed`)
- Reactive skills do not need a cron expression - the scheduler dispatches them as soon as their condition matches.
