Retour aux skills
get-focus-mode
par nickchristensen
Apple Apps & Services1.8kTéléchargements rapportés par clawskills.sh
1Étoiles
0Vues
0 mention J'aimeConnecte-toi pour aimer ce skill—Pas encore noté
Ta note
Résumé
Get the current macOS Focus.
Description
Ce que fait ce 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.
Quand l'utiliser
- 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
Exemple de workflow
ENTRÉE
User asks: what Focus mode am I in right now?
AGENT
- 1
Run get-focus-mode.sh
- 2
Read stdout output
- 3
Return the printed Focus mode name
SORTIE
'Do Not Disturb'
Installation
clawhub install nickchristensen/get-focus-modeExécute la commande CLI, ou colle l'instruction dans Claude Code, Cursor, Codex ou l'agent de code que tu utilises.