focus-guard
Suppress notifications, close distractions, and protect a work session from interruption, with a single command or one-click routine.
- License 许可
- MIT
- 最近更新
- 2026-11-09
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- focus-guard
- risk
- medium
- source
- openclawskills.net
- aliases
- [ "do-not-disturb", "dnd", "focus-mode", "distraction-shield", "quiet" ]
- enabled
- true
- version
- 1.0.0
- category
- adhd_and_productivity
- keywords
- [ "focus", "distraction", "notification", "dnd", "quiet", "interrupt", "shield", "block" ]
- metadata
- { "openclaw": { "requires": { "env": [], "bins": [] }, "primaryEnv": null } }
- triggers
- [ "I need to focus", "Turn off notifications", "Stop the distractions", "Focus mode", "I'm getting pulled away" ]
- description
- Suppress notifications, close distractions, and protect a work session from interruption, with a single command or one-click routine.
- required_tools
- [ "os-notifications", "browser" ]
03 SKILL.md 正文
Focus Guard
Purpose
Eliminate the digital distractions that break a deep-work session, using one reversible command. The skill is intentionally idempotent: it does not change what the user is working on, only what is competing for attention.
When to Use
- A time block has just started (see
time-blocking) - The user reports being pulled into Slack / email / tabs
- A focus session needs to survive the next 25 to 90 minutes
When NOT to Use
- The user is on-call or handling an active incident (notifications must stay on)
- The user has an upcoming meeting in the next 10 minutes
Capabilities
- Enable OS-level Do Not Disturb / Focus mode for a defined window
- Mute or snooze Slack, email, and notification centers
- Close, hide, or park distracting browser tabs (optional, with confirmation)
- Start a focus timer (Pomodoro or custom)
- Schedule automatic re-enable of notifications when the block ends
- Reverse all of the above with a single restore command
Inputs
- The desired focus duration (default: 50 min on, 10 min off)
- Which surfaces to mute (OS, Slack, email, browser) — sensible defaults supplied
- Whitelist of allowed interruptions (e.g. on-call pager)
Workflow
- Confirm the window ("Guard for 50 minutes? y/n").
- Capture current state so it can be restored (DND off / on, Slack status, etc.).
- Apply the guard to each requested surface in order: OS → chat → email → browser.
- Start a timer with a visible countdown.
- On timer end (or
restorecommand), reverse every change in reverse order. - Report what was changed so the user can audit.
Tools
- macOS:
shortcuts run "Focus Mode",osascript - Windows:
Focus Assistvia PowerShell,FocusSessionWinRT API - Linux:
dunstctl set-paused,gsettings,mako - Slack:
slack-cli status set, or direct API call - Browser:
chrome --profile-directory=...or a session manager
Examples
User: "Guard for 90 minutes, just work apps." Response: "OK. DND on, Slack paused, email snoozed. Work apps left alone. Timer set to 90 min. I'll restore everything at 11:42."
User: "End my focus session." Response: "Restored. DND off, Slack back, email reloaded 4 new messages."
Safety
- Never disable emergency or on-call surfaces unless explicitly listed as muted
- Always provide a single-command restore
- Do not change password or authentication state
- Surface a visible indicator (menu bar icon, status message) while guard is active
Source
Auto-generated from openclawskills.net description.
Pairs Well With
time-blocking(trigger guard at block start)adhd-task-breakdown(chunk source)unlazy(the first minute of a block)
04 同仓库更多 Skills
dei-assessment
Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.
dei-action-plan
Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.
culture-fit-assessment
Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.
cowork-to-code-bridge
Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.
counter-offer-response
Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.
continuous-feedback-system
Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.