Zum Inhalt springen
TakoAPI
Zurück zu den Skills

get-focus-mode

von nickchristensen

Apple Apps & Services
1.8kDownloadzahlen laut clawskills.sh
1Sterne
0Aufrufe
0 LikesMelde dich an, um diesen Skill zu liken
—Noch nicht bewertet
Deine Bewertung

Kurzbeschreibung

Get the current macOS Focus.

Beschreibung

Was dieser Skill macht

Reads the currently active macOS Focus mode and prints its name to stdout. Returns 'No Focus' when no mode is active, or the mode name (e.g. 'Do Not Disturb', 'Office', 'Sleep') when one is on.

Gives scripts direct programmatic access to Focus mode state without any GUI interaction or AppleScript boilerplate.

Wann du ihn einsetzt

  • Check Focus mode before sending automated notifications
  • Branch automation scripts based on current distraction settings
  • Log Focus mode changes over time
  • Trigger different workflows depending on work vs sleep hours
  • Verify Focus mode state in shell pipelines

Beispiel-Workflow

EINGABE

User asks: what Focus mode am I in right now?

AGENT
  1. 1

    Run get-focus-mode.sh

  2. 2

    Read stdout output

  3. 3

    Return the printed Focus mode name

AUSGABE

'Do Not Disturb'

Installation

clawhub install nickchristensen/get-focus-mode

Führe den CLI-Befehl aus oder füge den Prompt in Claude Code, Cursor, Codex oder deinen Coding-Agenten ein.

Links