goal-and-loop
Installation
SKILL.md
goal-and-loop — a stopping condition, and something that keeps asking
/goal decides whether to continue. /loop guarantees something asks — a cron tick the model
cannot cancel, reaching the case a goal cannot: a session already gone quiet, because nothing in a
goal runs when no turn is running. An unattended run needs both.
Raise it
Three commands, in this order. Do not hand-write the transport.
S=${CLAUDE_SKILL_DIR}/../craft/scripts/goal-self-send.sh
bash $S "/goal <the linted goal>"
bash $S "/loop 30m Check the goal. If it is not met, take the next action now rather than proposing it."
Pass the goal as one single-quoted argument. The template is backticked, so double quotes hand
every <CHECK> to the shell to run before the script sees the string, and the goal then carries
that command's output where its text should be.