Agent skill

Deep Work

by borghei in borghei/Claude-Skills

Protect, design, and measure focused work — block defence, session structure, interruption budgets, and deep-work ratio.

MITAuto-check passedProductivity & Automation

Install Deep Work

skills CLI
$ npx skills add borghei/Claude-Skills --skill deep-work -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install borghei/Claude-Skills deep-work --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/borghei/Claude-Skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/personal-productivity/deep-work .claude/skills/deep-work && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
deep-work
GitHub stars
874
Token cost
~3.1k tokens
SKILL.md length
1,657 words
Files
9 (incl. scripts, references, assets)
Skills in repo
364
Repo updated
First seen
Licence
MIT

At a glance

Protect, design, and measure focused work — block defence, session structure, interruption budgets, and deep-work ratio.

  • Works in 5 steps: Export the calendar to JSON with date,… → Mark genuinely immovable events with… → Run the analyser with your role's target… → …
  • The calendar is fragmented
  • SKILL.md covers When to use this skill, Inputs the skill expects, Clarify First and Workflows, plus 3 more sections
  • Runs Python scripts from its folder; calls python3

What it does

Deep Work is an agent skill from borghei/Claude-Skills. Protect, design, and measure focused work — block defence, session structure, interruption budgets, and deep-work ratio. Use when the calendar is fragmented, focus blocks keep getting eaten, or output has stalled.

Its SKILL.md is about 3.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 11 other files, including scripts, reference files and assets (for example `assets/sample_calendar.json`, `assets/sample_calendar_manager_4weeks.json` and `assets/sample_sessions.json`).

It sits in Productivity & Automation, covering Focus and ADHD support. The repository describes itself as: 385 AI skills, 77 expert agents, and 900 stdlib Python tools for every team: engineering, PM, marketing, C-level, compliance, business ops, research, and a LinkedIn toolkit… The licence is MIT.

When your agent uses it

  • The calendar is fragmented
  • Focus blocks keep getting eaten
  • Output has stalled

Example prompts

  • “/deep-work”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Export the calendar to JSON with date, start, end, title.
  2. Mark genuinely immovable events with "fixed": true — the search skips them.
  3. Run the analyser with your role's target ratio.
  4. Read the per-day table: any day with a longest block under 90 minutes
  5. Make the one move it proposes. One move per week is politically sustainable;

What it can do on your machine

Read from SKILL.md and the folder at commit c9a1487. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Deep Work loads about 3.1k tokens when it runs, and up to ~12k if it reads all its reference files. Until then it costs about 56 tokens; SKILL.md has 1,657 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~56
When it runs · the whole SKILL.md, loaded when a task matches
~3.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~12k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from borghei/Claude-Skills at commit c9a1487, republished under its MIT licence (© borghei). 1,657 words, ~3,150 tokens.

Download SKILL.mdSave it as .claude/skills/deep-work/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.
name
deep-work
description
Protect, design, and measure focused work — block defence, session structure, interruption budgets, and deep-work ratio. Use when the calendar is fragmented, focus blocks keep getting eaten, or output has stalled.
license
MIT + Commons Clause
metadata.version
1.0.0
metadata.author
borghei
metadata.category
personal-productivity
metadata.domain
personal-effectiveness
metadata.updated
2026-07-21
metadata.tags
deep-work, focus, calendar, fragmentation, interruptions

Deep Work

Blocking time on a calendar is the easy half; making the time inside the block convert into output is the hard half. This skill covers both — measuring how badly meetings fragment your week, defending blocks against encroachment, and designing sessions so that protected time produces a finished artefact rather than a warm feeling.

When to use this skill

  • Your calendar looks manageable in total meeting hours but no real work gets done
  • Focus blocks exist but keep getting moved, split, or quietly cancelled
  • You need to argue for protected time and want fragmentation data rather than a preference
  • Sessions happen but produce fragments — nothing reaches a finished state
  • You want to know whether your deep-work practice is improving or decaying over months
  • A 30-minute meeting keeps landing in the middle of your only long block

Inputs the skill expects

  • A calendar export as JSON — date, start, end, title, optional fixed flag
  • Your working-window hours (defaults to 09:00-17:00)
  • Your role, which sets a realistic deep-work ratio target (40-60% IC, 20-30% manager)
  • A session log with date and actual_min, ideally interruptions and artefact
  • Your current weekly deep-work target in minutes, set from logged history rather than aspiration

Clarify First

Before generating, confirm these inputs. If any is unknown or vague, ASK — do not assume:

  • Role and realistic target ratio — the 0.40 default is an IC figure and will flag every manager's calendar as failing, which is noise not signal
  • Which meetings are genuinely immovable — the fixed flag determines whether a reschedule proposal is actionable or fantasy
  • Working-window hours — a 9-5 window on someone who works 07:00-15:00 produces meaningless ratios
  • Whether the goal is diagnosis or advocacy — arguing for protected time leads with recovery cost; personal tuning leads with block length

Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the artifact.

Workflows

Workflow 1 — Diagnose calendar fragmentation and get a reschedule

Run weekly against the coming week, before it fills up.

  1. Export the calendar to JSON with date, start, end, title.
  2. Mark genuinely immovable events with "fixed": true — the search skips them.
  3. Run the analyser with your role's target ratio.
  4. Read the per-day table: any day with a longest block under 90 minutes produced no substantive individual work, whatever your output log says.
  5. Make the one move it proposes. One move per week is politically sustainable; a wholesale calendar rewrite is not.
bash
python3 personal-productivity/deep-work/scripts/calendar_fragmentation.py \
  --input personal-productivity/deep-work/assets/sample_calendar.json \
  --target 0.40

For a manager's calendar with a longer working window and a role-appropriate target — the same file scored at the 0.40 IC default reads as failing on 14 of 20 days, which is target miscalibration rather than a real finding:

bash
python3 personal-productivity/deep-work/scripts/calendar_fragmentation.py \
  --input personal-productivity/deep-work/assets/sample_calendar_manager_4weeks.json \
  --day-start 08:00 --day-end 18:00 --min-block 90 --target 0.25
Workflow 2 — Track whether the practice is improving

Monthly, not weekly. Weekly volume is noisy enough that reacting to it produces thrashing.

  1. Log each session at close-out using assets/session-log-template.md.
  2. Run the analyser with a weekly target set from your own logged history.
  3. Read the trend line — a change over 10% between the first and second half of the period is real; anything less is noise.
  4. Read the findings, which name specific structural failures rather than general encouragement.
  5. Fix exactly one thing. Volume, block length, and defence are three different problems; working all three at once teaches you nothing about which mattered.
bash
python3 personal-productivity/deep-work/scripts/session_log_analyzer.py \
  --input personal-productivity/deep-work/assets/sample_sessions.json \
  --weekly-target 600
Workflow 3 — Make the case for protected time

When you need a manager or team to concede structural change.

  1. Export two to four weeks of calendar history and run the fragmentation tool.
  2. Lead with the recovery cost figure, not the meeting-hours figure. "Meetings take 9 hours a week" invites a debate about which meetings matter; "fragmentation costs another 6 hours a week in re-immersion, on top of the meetings" reframes it as waste.
  3. Show the count of days with zero viable blocks.
  4. Propose the specific single move the tool identifies — concrete, small, and reversible asks get agreed; general ones get sympathy.
  5. Re-run after four weeks and report the delta. The follow-up measurement is what turns a one-off concession into a standing arrangement.
bash
mkdir -p build
python3 personal-productivity/deep-work/scripts/calendar_fragmentation.py \
  --input personal-productivity/deep-work/assets/sample_calendar_manager_4weeks.json \
  --target 0.40 --format json > build/fragmentation.json

Decision frameworks

Block length vs usable output
BlockWarmup shareVerdict
25 min~70%Pre-defined execution only. Not deep work.
45 min~40%Marginal — works only when resuming something touched hours ago
90 min~20%[PROVEN] Minimum viable block. Warmup amortises; one real problem gets solved
120 min~15%The default target — depth without quality decay
180 min~10%Excellent for absorbing work; needs a real break after
240+ min~8%Diminishing returns; split it

Problem-state reload costs 15-20 minutes and is paid on every re-entry. This is why five 30-minute gaps are not equivalent to one 150-minute block — the gaps yield close to zero.

Interruption budget

Each interruption costs roughly 23 minutes of degraded output, not the duration of the interruption. [PROVEN]

Interruptions/hourEffective outputVerdict
0~100%The block is real
0.5~80%Acceptable — the practical target
1.0~60%Ceiling. Above this, blocked but not defended
2.0~30%Shallow work in a room labelled deep work
3+~10%Move the slot; this one cannot be defended

Set the budget one step below your measured rate, never at zero — zero is unachievable in most roles and failing it immediately kills the practice. Define the consequence in advance: exceeding the budget means reschedule the block, not push through. Pushing through teaches you that protected time yields shallow work, which is the belief you are trying to disprove.

Role-calibrated targets
RoleDeep-work ratioDaily sustainable
IC — engineer, writer, analyst, designer40-60%2-4 h
Senior IC / tech lead30-40%2-3 h
Team manager20-30%1-2 h, two blocks a week
Director+10-20%Defended pockets
On-call rotation0-10%Do not schedule deep work into a rotation

Most people sustain 3-4 hours of genuine deep work per day as an upper bound. Beyond that the work continues but the quality does not, and the deficit shows up as needing to redo it.

Show full SKILL.md (662 more words)Show less
Session design rules [PROVEN]
RuleWhy
Pre-commit the artefact the night beforeDeciding inside the block burns your freshest attention on a decision you could make while tired
One session, one artefact — not one projectTwo artefacts means paying warmup twice and finishing neither
Stop mid-thought at close-outAn unfinished sentence halves tomorrow's warmup; finishing cleanly feels better and costs more
No 2-minute tasks inside the blockThe 2-minute rule is a processing-mode rule; here it costs the task plus 23 minutes of re-entry
Place blocks at a day boundaryA midday block has two exposed edges and collects meetings on both

Anti-Patterns

Blocking Time Without Defending It

Mistake: Putting recurring "Focus time" on the calendar, then moving or shortening it whenever anyone asks. Why it happens: The block is self-imposed, so it feels like the one commitment with no external cost to breaking. Each individual concession is genuinely reasonable. Instead: Name the block after the actual work (Migration RFC — drafting), set it busy rather than free, and place it at a day boundary so it has one exposed edge instead of two. When it must move, move it the same day — "sometime this week" means never. Track how often you move it; a block that relocates weekly is not a block, it is a preference.

Conceding the 30-Minute Wedge

Mistake: Accepting a short meeting into the middle of a long block because giving up 30 minutes seems like a small concession. Why it happens: The arithmetic of block splitting is invisible. Losing 30 minutes from 120 looks like a 25% cost. Instead: Recognise that it costs the whole block — two 45-minute halves are both under the viable threshold, so the real loss is 120 minutes, not 30. Counter with placement rather than refusal: "Can we put it against the 11:00 meeting so the morning stays whole?" Scheduling people have one slot to fill and no visibility into what they are displacing; naming the cost converts an invisible loss into a visible tradeoff, and most people adjust.

Deciding What to Work On Inside the Block

Mistake: Arriving at a protected block and spending the first 20 minutes choosing what to do with it. Why it happens: The block was defended as generic focus time rather than committed to a specific artefact, so the decision has nowhere else to live. Instead: Write one line the night before: "Tomorrow 09:30-11:30 I will work on <artefact> until <observable state>." If you cannot name an observable done-state, the work is not ready for a deep block — it needs a planning pass first, which is itself a legitimate and much shorter session.

Measuring Hours Blocked Instead of Work Done

Mistake: Tracking calendar time reserved for deep work and treating a full-looking week as a successful one. Why it happens: Blocked hours are trivially countable; actual focus is not. The metric that is easy to collect displaces the one that matters. Instead: Log actual_min, interruptions, and the single artefact per session, then run session_log_analyzer.py. Plan-vs-actual drift over 20% and interruption rates above 1.0/hour are the two numbers that predict whether the habit survives — and both are invisible if you only count what the calendar reserved.

Files

FilePurpose
scripts/calendar_fragmentation.pyPer-day longest block, context-switch count, deep-work ratio vs target, plus a searched single-meeting reschedule proposal
scripts/session_log_analyzer.pyWeekly volume rollup, session-length distribution, interruption rate, plan-vs-actual drift, single-artefact adherence, and trend detection
references/focus-block-design.mdBlock-length economics, daily ceilings, four-part session structure, placement by chronotype, interruption budgeting, diagnostic table
references/defending-focus-time.mdEncroachment patterns, calendar mechanics ranked by social cost, decline scripts, self-encroachment, role-calibrated targets, making the data case
assets/session-log-template.mdPre-commitment prompt, session-entry schema, close-out checklist, monthly review table
assets/sample_calendar.jsonFive-day IC calendar with one heavily fragmented day, so the reschedule search has something to find
assets/sample_calendar_manager_4weeks.json104 events over 20 working days of a meeting-dense manager calendar — drives the role-calibrated target example and the four-week advocacy export
assets/sample_sessions.jsonFour weeks of sessions with a visible improving trend and two failed sessions, exercising every finding

© borghei, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 8 other files (scripts, references, assets) in personal-productivity/deep-work of borghei/Claude-Skills.

  • SKILL.md
  • assets/sample_calendar.json
  • assets/sample_calendar_manager_4weeks.json
  • assets/sample_sessions.json
  • assets/session-log-template.md
  • references/defending-focus-time.md
  • references/focus-block-design.md
  • scripts/calendar_fragmentation.py
  • scripts/session_log_analyzer.py

Open the folder on GitHubat commit c9a1487

Compare with similar skills

Deep Work next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Deep Work compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Deep Work this skillborghei/Claude-Skills874—~3.1kAutomated safety check: PassMIT
I Have AdhdTanStack/ai3.2k5 repos~1.8kAutomated safety check: PassMIT
Attention Kindalexgreensh/attention-span1.3k—~2kAutomated safety check: PassAGPL-3.0
Remind Meshaheer-00/claude-adhd104—~1.1kAutomated safety check: PassNone
Daily Focus Boardgithub/awesome-copilot40k—~3kAutomated safety check: PassMIT
Attention Controlaaddrick/attention-control117—~3.6kAutomated safety check: PassMIT

Similar skills

  • I Have Adhd

    TanStack/ai

    A skill your agent uses when the user invokes /i-have-adhd, says they have ADHD, or asks for ADHD-friendly output.

    3.2k GitHub starsUsed in 5 repos~1.8k tokens
    Productivity & AutomationAuto-check passed
  • Attention Kind

    alexgreensh/attention-span

    Answer in the ADHD-friendly Attention-kind style for the rest of this chat.

    1.3k GitHub stars~2k tokensUpdated 1 mo ago
    Productivity & AutomationAuto-check passed
  • Remind Me

    shaheer-00/claude-adhd

    Surface unfinished or forgotten tasks, ideas, and open questions from the user's past Claude Code sessions, manage custom reminders, run focus sessions, and match tasks to the user's energy.

    104 GitHub stars~1.1k tokensUpdated 27 days ago
    Productivity & AutomationAuto-check passed
  • Daily Focus Board

    github/awesome-copilot

    Official

    Builds a warm, browser-based daily focus board the user updates by talking to their agent, with Eisenhower priorities, a brain-dump box and kind not-today carryover.

    40k GitHub stars~3k tokensUpdated yesterday
    Productivity & AutomationAuto-check passed
  • Attention Control

    aaddrick/attention-control

    Shape output for a reader with ADHD, then write each sentence in controlled English: action first, one word one meaning, active voice, simple tenses, state restated every turn.

    117 GitHub stars~3.6k tokensUpdated 1 mo ago
    Productivity & AutomationAuto-check passed
  • Fable Fable

    mrtooher/fable-mode

    Run fable-mode execution discipline on Claude Fable 5.1 — the top of the escalation ladder and the strongest staged run available.

    870 GitHub stars~1.1k tokensUpdated 1 mo ago
    Productivity & AutomationAuto-check passed

More from borghei/Claude-Skills

All 364 skills in this repo
  • Agents In The Team

    borghei/Claude-Skills

    Run delivery when AI coding and ops agents take tickets. An agent skill from borghei/Claude-Skills.

    874 GitHub stars~4.2k tokensUpdated yesterday
    Auto-check passed
  • AI Content Disclosure

    borghei/Claude-Skills

    Check AI-generated marketing content and reviews for required disclosures under the EU AI Act, FTC rules and platform AI-label policies.

    874 GitHub stars~3.4k tokensUpdated yesterday
    Auto-check passed
  • AI Prototyping

    borghei/Claude-Skills

    Idea to AI-generated prototype to customer validation to engineering handoff.

    874 GitHub stars~3.6k tokensUpdated yesterday
    Auto-check passed
  • Analytics Engineer

    borghei/Claude-Skills

    Analytics engineering across data modeling, dbt, transformation, and semantic layers.

    874 GitHub stars~3.4k tokensUpdated yesterday
    Auto-check passed
  • Ansoff Matrix

    borghei/Claude-Skills

    Ansoff Matrix — 4-quadrant framework for growth options: market penetration, market/product development, and diversification.

    874 GitHub stars~2.2k tokensUpdated yesterday
    Auto-check passed
  • Brainstorm Okrs

    borghei/Claude-Skills

    OKR brainstorming and validation using the Radical Focus framework — outcome objectives, measurable key results, counter-metrics.

    874 GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed

Questions about Deep Work

What does Deep Work do?

Protect, design, and measure focused work — block defence, session structure, interruption budgets, and deep-work ratio. Deep Work is an agent skill from borghei/Claude-Skills. Protect, design, and measure focused work — block defence, session structure, interruption budgets, and deep-work ratio.

When should I use Deep Work?

Deep Work fits situations like: the calendar is fragmented; focus blocks keep getting eaten; output has stalled.

How do I install Deep Work in Claude Code?

Run `npx skills add borghei/Claude-Skills --skill deep-work -a claude-code`. Or copy the skill folder (personal-productivity/deep-work in borghei/Claude-Skills) into .claude/skills/deep-work in your project. Claude Code loads it when a task matches its description.

How do I install Deep Work in Codex?

Run `npx skills add borghei/Claude-Skills --skill deep-work -a codex`. Or copy the skill folder (personal-productivity/deep-work in borghei/Claude-Skills) into .agents/skills/deep-work in your project. Codex loads it when a task matches its description.

Can I use Deep Work in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add borghei/Claude-Skills --skill deep-work -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/deep-work, .gemini/skills/deep-work, .github/skills/deep-work and .opencode/skills/deep-work in your project.

What does Deep Work need to run?

Going by SKILL.md and its folder, Deep Work needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Deep Work access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Deep Work safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Deep Work use?

Deep Work is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Deep Work use?

About 3.1k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 8.4k tokens, read only when the agent opens those files.

What are the alternatives to Deep Work?

Skills that share tags, products or a category with Deep Work: I Have Adhd (TanStack/ai, 3.2k stars), Attention Kind (alexgreensh/attention-span, 1.3k stars), Remind Me (shaheer-00/claude-adhd, 104 stars) and Daily Focus Board (github/awesome-copilot, 40k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Deep Work?

borghei (a GitHub user) maintains it in borghei/Claude-Skills, which has 874 GitHub stars. The repository holds 364 skills in this directory. The repository was last updated on October 7, 2026.

Source: borghei/Claude-Skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.