Saltar al contenido
TakoAPI
Volver a skills

get-focus-mode

por nickchristensen

Apple Apps & Services
1.8kDescargas según clawskills.sh
1Estrellas
0Vistas
0 me gustaInicia sesión para dar me gusta a esta skill
—Aún sin valoraciones
Tu valoración

Resumen

Get the current macOS Focus.

Descripción

Qué hace esta skill

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.

Cuándo usarla

  • 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

Flujo de trabajo de ejemplo

ENTRADA

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

AGENTE
  1. 1

    Run get-focus-mode.sh

  2. 2

    Read stdout output

  3. 3

    Return the printed Focus mode name

SALIDA

'Do Not Disturb'

Instalación

clawhub install nickchristensen/get-focus-mode

Ejecuta el comando de la CLI o pega el prompt en Claude Code, Cursor, Codex o el agente de programación que uses.

Enlaces