Claude Blocker
Description
Block distracting websites unless [Claude Code](https://claude.ai/claude-code) is actively running inference.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Claude Blocker
Block distracting websites unless [Claude Code](https://claude.ai/claude-code) is actively running inference.
**The premise is simple:** if Claude is working, you should be too. When Claude stops, your distractions come back.
How It Works
┌─────────────────┐ hooks ┌─────────────────┐ websocket ┌─────────────────┐
│ Claude Code │ ─────────────► │ Blocker Server │ ◄─────────────► │ Chrome Extension│
│ (terminal) │ │ (localhost) │ │ (browser) │
└─────────────────┘ └─────────────────┘ └─────────────────┘
│ │ │
│ UserPromptSubmit │ tracks sessions │ blocks sites
│ PreToolUse │ broadcasts state │ shows modal
│ Stop │ │ bypass button
└───────────────────────────────────┴───────────────────────────────────┘
- Claude Code hooks notify the server when you submit a prompt or when Claude finishes
- Blocker server tracks all Claude Code sessions and their working/idle states
- Chrome extension blocks configured sites when no session is actively working
Quick Start
1. Install the server
npx claude-blocker --setup
This installs the Claude Code hooks and starts the server. The hooks are configured in `~/.claude/settings.json`.
2. Install the Chrome extension
- Download from Chrome Web Store (coming soon)
- Or load unpacked from
packages/extension/dist
3. Configure blocked sites
Click the extension icon → Settings to add sites you want blocked when Claude is idle.
Default blocked sites: `x.com`, `youtube.com`
Server CLI
# Start with auto-setup (recommended for first run)
npx claude-blocker --setup
# Start on custom port
...
Related Skills
Awesome Go
A curated list of awesome Go frameworks, libraries and software
Development next.js
| The React Framework | 138360 | 1503 | 1 |
Development sharing-skills
skill for guidance.
Development root-cause-tracing
Use when errors occur deep in execution and you need to trace back to find the original trigger.
Development Template Skill
Minimal skeleton for a new skill project structure.
Development Third-party Notices
THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THI
Development