sleepwell-loop

Installation
SKILL.md

sleepwell-loop

Core skill of the sleepwell plugin. Runs one iteration of the autonomous loop per invocation and decides whether to continue (via ScheduleWakeup) or stop.

When to activate

  • When the user invokes /sleepwell:sleepwell "<intent>" [opts] (1st iteration — bootstrap).
  • When a scheduled ScheduleWakeup re-fires this skill (next iter).
  • When another skill/agent explicitly requests loop continuation.

Do not activate if:

  • User invoked /sleepwell:sleepwell-status, /sleepwell:sleepwell-diff, /sleepwell:sleepwell-stop, /sleepwell:sleepwell-undo (those have their own flows).
  • .sleepwell/state.json does not exist AND no intent was provided (no anchor — abort).

Prerequisites

  • Repo is git (git rev-parse --is-inside-work-tree).
  • Working tree clean OR user accepted automatic stash (ask via AskUserQuestion on 1st iter).
  • Current branch != main/master/develop (if so, create a sleepwell branch before touching any file).
Installs
1
First Seen
Aug 25, 2026