跳到正文
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 或你在用的任意编程智能体里。

链接