本文へスキップ
TakoAPI
スキル一覧に戻る

get-focus-mode

nickchristensen 作

Apple Apps & Services
1.8kダウンロード数はclawskills.shが公開している値です
1スター
0閲覧数
0件のいいねサインインするとこのスキルにいいねできます
—まだ評価がありません
あなたの評価

概要

Get the current macOS Focus.

説明

このスキルでできること

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.

使いどころ

  • 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

ワークフロー例

入力

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

エージェント
  1. 1

    Run get-focus-mode.sh

  2. 2

    Read stdout output

  3. 3

    Return the printed Focus mode name

出力

'Do Not Disturb'

インストール

clawhub install nickchristensen/get-focus-mode

CLIコマンドを実行するか、Claude Code、Cursor、Codexなどお使いのコーディングエージェントにプロンプトを貼り付けてください。

リンク