Sleep on done

From samirpatil2000/skills · View interactive version

Sleep on done is an AI agent skill from the GitHub repository samirpatil2000/skills. Put macOS to sleep once a task or workflow is complete. Trigger on "sleep when done", "sleep after finishing", "sleep once done", "pmset sleepnow", or requests to put the machine to sleep after task completion.

How to use this skill

Skill file

Sleep on Done

Puts macOS to sleep immediately after all tasks are finished.

Command

pmset sleepnow

Behavior & Rules

  1. Absolute Final Step: Always execute pmset sleepnow as the very last action. All code changes, tests, git operations, and notifications (e.g. slack-notify) must complete first.
  2. Failure Handling: Unless explicitly instructed to sleep regardless of errors, do not sleep if a command or test fails, allowing the user to inspect the failure.
  3. Execution Patterns:

```bash

command && pmset sleepnow

```

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.