Get Focus Mode for Openclaw

A lightweight macOS utility to programmatically retrieve the current Focus mode status for context-aware automation.

nickchristensen
v1.0.1
Jan 14, 2026
3
3.3k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install get-focus-mode

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install get-focus-mode using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Get Focus Mode?

The Get Focus Mode skill is a specialized utility designed for macOS users who need to bridge the gap between their system state and AI agent automation. By leveraging this tool within the Openclaw Skills ecosystem, developers can build context-aware workflows that adapt based on whether the user is in Do Not Disturb, Sleep, or a custom Office mode.

It provides a simple command-line interface to extract the active Focus profile, enabling smarter task management and notification handling for AI coding agents. This allows for a more seamless integration between the operating system's environment and the automated logic of your developer tools.

Get Focus Mode Use Cases

  • Automatically silence AI agent notifications when Sleep or Do Not Disturb is active.
  • Trigger specific developer environment scripts when switching to an Office Focus mode.
  • Log system state transitions for productivity tracking and time management.
  • Enable context-sensitive responses from Openclaw Skills based on the user's current concentration level.

How Get Focus Mode Works

  1. The AI agent or user executes the shell script located in the skill directory.
  2. The script queries macOS system APIs to determine the current Focus state.
  3. The raw data is processed using the jq utility to ensure a clean, parseable string output.
  4. The name of the active Focus mode is returned to stdout for further processing by the agent or automation pipeline.

Get Focus Mode Setup

Ensure you have the necessary dependencies installed on your macOS system before running the skill.

# Install jq dependency via Homebrew if not already present
brew install jq

# Run the skill directly from the local directory
~/clawd/skills/get-focus-mode/get-focus-mode.sh

Get Focus Mode Data Schema & Taxonomy

The skill returns a simple string representing the current system state. Below are the common outputs:

Output Value Description
No Focus Focus mode is off and the system is in default state.
Office The user-defined Office focus is currently active.
Sleep The system-defined Sleep focus is active.
Do Not Disturb Manual or scheduled Do Not Disturb mode is active.

Get Focus Mode Advanced Features

  • Integration with local automation pipelines to sync AI agent behavior with system status.
  • Support for custom Focus modes defined within macOS System Settings.
  • Compatibility with larger Openclaw Skills sequences for complex environment sensing.
  • Low-latency execution suitable for frequent polling or trigger-based workflows.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*