Agent Skills: /asciinema-tools:daemon-stop

Stop the asciinema chunker daemon. TRIGGERS - stop daemon, pause chunker, disable backup.

UncategorizedID: terrylica/cc-skills/daemon-stop

Install this agent skill to your local

pnpm dlx add-skill https://github.com/terrylica/cc-skills/tree/HEAD/plugins/asciinema-tools/skills/daemon-stop

Skill Files

Browse the full folder contents for daemon-stop.

Download Skill

Loading file tree…

plugins/asciinema-tools/skills/daemon-stop/SKILL.md

Skill Metadata

Name
daemon-stop
Description
Stop the asciinema chunker daemon. TRIGGERS - stop daemon, pause chunker, disable backup.

/asciinema-tools:daemon-stop

Stop the asciinema chunker daemon via launchd.

Execution

Check if Running

/usr/bin/env bash << 'CHECK_EOF'
PLIST_PATH="$HOME/Library/LaunchAgents/com.cc-skills.asciinema-chunker.plist"

if ! [[ -f "$PLIST_PATH" ]]; then
  echo "Daemon not installed."
  exit 0
fi

if ! launchctl list 2>/dev/null | grep -q "asciinema-chunker"; then
  echo "Daemon not running."
  exit 0
fi

echo "RUNNING"
CHECK_EOF

Stop Daemon

/usr/bin/env bash << 'STOP_EOF'
PLIST_PATH="$HOME/Library/LaunchAgents/com.cc-skills.asciinema-chunker.plist"

if launchctl unload "$PLIST_PATH"; then
  echo "Daemon stopped"

  # Verify
  sleep 1
  if launchctl list 2>/dev/null | grep -q "asciinema-chunker"; then
    echo "WARNING: Daemon may still be running"
  else
    echo "Confirmed: Daemon is no longer running"
  fi
else
  echo "ERROR: Failed to stop daemon"
  exit 1
fi
STOP_EOF

Output

On success:

Daemon stopped
Confirmed: Daemon is no longer running

Notes

  • Stopping the daemon does NOT delete credentials from Keychain
  • To restart: /asciinema-tools:daemon-start
  • The daemon will NOT auto-start on next login until started again

Troubleshooting

| Issue | Cause | Solution | | ----------------------- | ------------------------ | ------------------------------------------------ | | Failed to stop daemon | Launchd error | Try launchctl unload -F <plist-path> | | Daemon still running | Multiple instances | Kill manually: pkill -f asciinema-chunker | | Can't find plist | Setup not run | Run /asciinema-tools:daemon-setup first | | Recordings not stopping | asciinema rec is running | Exit recording shell first (Ctrl-D or type exit) |