← ClaudeAtlas

stoplisted

Mark LOOP_CONTRACT.md completed, append DONE section, send PushNotification, let loop terminate naturally.
terrylica/cc-skills · ★ 49 · AI & Automation · score 82
Install: claude install-skill terrylica/cc-skills
# autoloop: Stop Cleanly terminate a self-revising loop. Appends a `## DONE` section with timestamp + reason, sends a `PushNotification` summarizing final state, and stops scheduling new wake-ups. The next `/loop` firing will see the DONE marker and exit without acting. > **Self-Evolving Skill**: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues. ## Arguments - Positional (optional): reason string. Defaults to "user-requested stop". - `--keep-forensics` (flag, optional): retain the state directory after stop instead of archiving + removing it. Default behavior since Wave 2: cleanup tarball is created and `<state_dir>` is `rm -rf`'d. Pass this flag if you need to inspect heartbeat.json or revision-log/ after stop. ## Step 1: Locate contract ```bash CONTRACT_PATH="${CONTRACT_PATH:-./LOOP_CONTRACT.md}" if [ ! -f "$CONTRACT_PATH" ]; then echo "No contract at $CONTRACT_PATH — nothing to stop." exit 0 fi ``` If the user hasn't specified which contract, and multiple `LOOP_CONTRACT.md` files exist under the cwd, use `AskUserQuestion` to pick. ## Step 2: Confirm stop reason Use `AskUserQuestion` to pick a stop reason: - `Research saturation` — 3 consecutive null-rescue firings - `Goal achieved` — completion criterion met - `User request` — manual termination - `Blocked on external dependency` — can't proceed without intervention Re