watcher-design

Convert plain-language monitoring requests into deterministic watcher rule trees.

33|1|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/infinition/LaRuche --skill watcher-design-infinition
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: watcher-design
Source: https://github.com/infinition/LaRuche/tree/main/laruche/skills/watcher-design
Command: npx skills add https://github.com/infinition/LaRuche --skill watcher-design-infinition

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up monitoring usually means writing scripts or waking a model on every poll, which is expensive and error-prone. This Skill turns a plain-language request like "tell me when a log line contains ERROR" into a deterministic rule tree that a watcher evaluates mechanically at every poll, at zero model cost. ## Core Features & Use Cases - Rule tree generation: Builds JSON rule trees from combinators (et, ou, non) and deterministic leaves such as contient, heure_entre, jour_semaine, est_down, apparu, and nouvelle_ligne, matched to the correct watcher_type (log, file, url, command). - Watcher lifecycle management: Guides creation, listing, pausing, and deletion of watchers via watcher_create, watcher_list, watcher_toggle, and watcher_delete, including duplicate detection and never-fire validation feedback. - Correlation and actions: Supports correlating multiple watchers into one diagnosis and choosing the right fire action (agent, notifier, commande, aucune) to avoid unnecessary model calls. - Use Case: A user asks to be pinged if release.log contains ERROR but not at night; the Skill produces a log watcher with an et tree combining contient and an heure_entre window, firing only during working hours. ## Quick Start Ask the agent to notify you when a specific file appears on your desktop, and it will design and create the corresponding watcher rule tree.

Frequently Asked Questions about watcher-design

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get notified when a log file contains a specific error?▼

Create a log watcher whose rule tree uses the contient op with your pattern, for example motif ERROR. A log watcher reads newly appended lines, so contient matches fresh content case-insensitively at every poll without any model call.

How do I monitor a website for downtime and get alerted?▼

Use a url watcher with the est_down or down_depuis_min leaf to detect unreachability or 5xx responses. Set interval_secs for how fast you need to know and cooldown_secs to control how often the alert repeats while the site stays down.

Why does my watcher show as active but never fire?▼

The most common cause is an op that does not match the watcher_type, such as contient on a file watcher whose observation carries no text. The second cause is an unreadable heure_entre window, which makes the whole tree false at every poll.

Can I combine time windows or weekdays with a monitoring condition?▼

Yes, wrap the condition in an et combinator with jour_semaine or heure_entre leaves. Note that heure_entre bounds are strings and the end is exclusive, so to cover 23:55 you must write a: "23:56".

When should I use a watcher instead of a scheduled cron prompt?▼

Prefer a watcher whenever detection is mechanical, because the rule tree evaluates for free at every poll. A scheduled prompt is only justified when the answer itself requires a model, not the detection of the condition.

How do I correlate two watchers into a single alert?▼

Use the watcher op referencing another watcher's name inside an et tree, and give the upstream watchers the aucune action so they only publish verdicts. Unknown names evaluate to false, and verdicts come from a snapshot taken before each polling round.