Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

get-focus-mode

bởi nickchristensen

Apple Apps & Services
1.8kLượt tải do clawskills.sh công bố
1Sao
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Get the current macOS Focus.

Mô tả

Kỹ năng này làm gì

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.

Khi nào nên dùng

  • 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

Quy trình ví dụ

ĐẦU VÀO

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

ĐẦU RA

'Do Not Disturb'

Cài đặt

clawhub install nickchristensen/get-focus-mode

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết