← 返回 Skills 市场
nickchristensen

Get Focus Mode

作者 NickChristensen · GitHub ↗ · v1.0.1
cross-platform ✓ 安全检测通过
2196
总下载
1
收藏
2
当前安装
2
版本数
在 OpenClaw 中安装
/install get-focus-mode
功能描述
Get the current macOS Focus mode
使用说明 (SKILL.md)

Get Focus Mode

Returns the name of the currently active macOS Focus mode.

Usage

~/clawd/skills/get-focus-mode/get-focus-mode.sh

Output

Prints the Focus mode name to stdout:

  • "No Focus" - Focus mode is off
  • "Office" - Office focus is active
  • "Sleep" - Sleep focus is active
  • "Do Not Disturb" - DND is active

Requirements

  • macOS
  • jq installed
安全使用建议
This skill is coherent for its stated purpose: it reads two local macOS files and prints the active Focus mode. Before installing or running it, note: (1) it requires jq and macOS — install jq or update the skill metadata to list it; (2) it reads files under ~/Library/DoNotDisturb/DB/, which is expected but is local user data (no network calls); (3) there is no installer or network activity in the package — you can safely open and inspect get-focus-mode.sh yourself to confirm behavior. If you are uncomfortable with any local file reads, do not enable the skill.
功能分析
Type: OpenClaw Skill Name: get-focus-mode Version: 1.0.1 The skill bundle is benign. The `get-focus-mode.sh` script reads specific macOS system files (`~/Library/DoNotDisturb/DB/Assertions.json` and `~/Library/DoNotDisturb/DB/ModeConfigurations.json`) using `jq` to determine the active Focus mode, which is directly aligned with its stated purpose. There is no evidence of data exfiltration, malicious execution, persistence mechanisms, or prompt injection attempts in `SKILL.md`.
能力评估
Purpose & Capability
Name and description (get current macOS Focus mode) align with the included script which reads macOS Do Not Disturb DB files and prints the active mode. One minor metadata mismatch: the registry lists no required binaries, but SKILL.md and the script require jq.
Instruction Scope
The SKILL.md instructs running get-focus-mode.sh which reads two files in ~/Library/DoNotDisturb/DB/ (Assertions.json and ModeConfigurations.json) and prints a single string. This is consistent with the stated purpose, but it does read user-local files (privacy-sensitive data about Focus/DND state) — expected for this feature.
Install Mechanism
No install spec is present (instruction-only plus one script). Nothing is downloaded or installed by the skill itself.
Credentials
No environment variables or external credentials are requested, which is appropriate. However, SKILL.md lists jq as a requirement but the registry metadata did not declare any required binaries; the script will fail if jq is absent.
Persistence & Privilege
Skill does not request persistent presence, does not modify system or other skills, and does not require elevated privileges. It only reads local files when invoked.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install get-focus-mode
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /get-focus-mode 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Skill description shortened to "Get the current macOS Focus mode" - Removed mention of "to know if Nick is sleeping, working out, etc." from description
v1.0.0
Initial release of get-focus-mode. - Provides the active macOS Focus mode name ("No Focus", "Office", "Sleep", "Do Not Disturb"). - Outputs the mode name to stdout for use in scripts and automation. - Requires macOS and jq.
元数据
Slug get-focus-mode
版本 1.0.1
许可证
累计安装 2
当前安装数 2
历史版本数 2
常见问题

Get Focus Mode 是什么?

Get the current macOS Focus mode. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2196 次。

如何安装 Get Focus Mode?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install get-focus-mode」即可一键安装,无需额外配置。

Get Focus Mode 是免费的吗?

是的,Get Focus Mode 完全免费(开源免费),可自由下载、安装和使用。

Get Focus Mode 支持哪些平台?

Get Focus Mode 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Get Focus Mode?

由 NickChristensen(@nickchristensen)开发并维护,当前版本 v1.0.1。

💬 留言讨论