SKILL.md
6.0 KB查看排版效果| 1 | --- |
| 2 | name: deep-work |
| 3 | description: Use when someone wants to plan a deep work day, time-block their calendar or task list, budget or cut shallow work, protect focus hours, track deep-work sessions and streaks, run an end-of-day shutdown ritual, or says "/deep-work" or "/time-block". Classifies tasks deep vs shallow, builds an energy-first time-blocked schedule that refuses deep demand past the 4-hour ceiling, batches shallow work into at most two windows, and logs focus sessions against a weekly target. |
| 4 | argument-hint: "[today's task list]" |
| 5 | license: MIT |
| 6 | metadata: |
| 7 | version: 1.0.0 |
| 8 | build_pattern: "Path-B method skill — Cal Newport time-block discipline preserved + deterministic scheduling scripts added" |
| 9 | distinct_from: "andreessen 3x5 card (picks WHAT to do today; deep-work plans WHEN and HOW with attention protected); project-management capacity planning (team capacity; this is one person's attention)" |
| 10 | --- |
| 11 | |
| 12 | # Deep Work — Time-Block the Day, Budget the Shallow |
| 13 | |
| 14 | > **Portability:** Reasoning-led skill with 3 stdlib Python scripts. No external APIs, no LLM calls in scripts. Works in Claude Code CLI and Claude.ai web. The scripts fix the arithmetic; you keep the judgment. |
| 15 | |
| 16 | ## What this does |
| 17 | |
| 18 | A calendar full of reactions is not a plan. This skill turns a raw task list into a day where |
| 19 | attention is the protected resource: deep tasks get the earliest hours in blocks of at least 90 |
| 20 | minutes, shallow work is batched into at most two windows, buffers absorb attention residue, and the |
| 21 | schedule flatly refuses more than 4 hours of deep demand — the trained daily ceiling. A local ledger |
| 22 | of focus sessions keeps the weekly deep-hours target measured, not felt. |
| 23 | |
| 24 | ## Step 1 — Classify and budget the shallow |
| 25 | |
| 26 | Ask for today's task list with rough minutes per task (or take it from `$ARGUMENTS`). The auditor |
| 27 | classifies each task deep vs shallow (keyword heuristics; an explicit `:deep`/`:shallow` suffix always |
| 28 | wins), computes the shallow share against the budget, and prints the forcing question for every |
| 29 | shallow item — *how long would it take to train a smart recent graduate to do this?* |
| 30 | |
| 31 | ```bash |
| 32 | python scripts/shallow_work_auditor.py \ |
| 33 | --task "Write investor update:60" --task "Email triage:45" \ |
| 34 | --task "Analyze churn cohort:90:deep" --budget 50 |
| 35 | ``` |
| 36 | |
| 37 | `OVER-BUDGET` (exit 2) means cut, batch, or delegate before any schedule is built. |
| 38 | |
| 39 | ## Step 2 — Block the day |
| 40 | |
| 41 | Feed the surviving tasks to the planner with the day's hard start and hard end (fixed-schedule |
| 42 | productivity: the end time does not move). Deep first and earliest, 10-minute buffers, shallow in |
| 43 | two batches (late morning + end of day), an optional fixed lunch: |
| 44 | |
| 45 | ```bash |
| 46 | python scripts/time_block_planner.py --start 08:30 --end 17:00 --lunch 12:30 \ |
| 47 | --task "Write product spec:120:deep" --task "Email sweep:30:shallow" |
| 48 | ``` |
| 49 | |
| 50 | Two refusals, both exit 2: deep demand past the 4-hour cap (the planner names what to defer), and shallow overflow past `--end` (the planner names what to drop — the day never silently extends). |
| 51 | |
| 52 | ## Step 3 — Log the session, keep the streak |
| 53 | |
| 54 | After each real focus block, log it. `status` shows this week's deep hours against the target (default 15); `streak` counts consecutive days with at least one session: |
| 55 | |
| 56 | ```bash |
| 57 | python scripts/focus_session_logger.py log --minutes 90 --label "Write product spec" |
| 58 | python scripts/focus_session_logger.py status --target 15 |
| 59 | ``` |
| 60 | |
| 61 | ## Step 4 — Shutdown ritual |
| 62 | |
| 63 | End the day with the shutdown checklist (`assets/shutdown_checklist.md`): capture every open loop, glance at tomorrow, say the closing phrase. An incompletely closed day steals tomorrow's first block. |
| 64 | |
| 65 | ## Scripts |
| 66 | |
| 67 | | Script | Role | |
| 68 | |---|---| |
| 69 | | `scripts/shallow_work_auditor.py` | Deep/shallow classification + shallow share vs budget → WITHIN-BUDGET / OVER-BUDGET (exit 2) + the recent-graduate forcing question per shallow item. | |
| 70 | | `scripts/time_block_planner.py` | Energy-first schedule: deep blocks ≥90 min earliest, 4-hour deep cap (refuses, exit 2), ≤2 shallow batches, 10-min buffers, fixed lunch, overflow refusal. | |
| 71 | | `scripts/focus_session_logger.py` | JSON ledger of focus sessions: `log` / `status` (weekly hours vs target) / `streak`; atomic writes. | |
| 72 | |
| 73 | ## References |
| 74 | |
| 75 | - [`references/deep_work_canon.md`](references/deep_work_canon.md) — deep vs shallow, the deep work hypothesis, the 4-hour ceiling, attention residue (6 sources) |
| 76 | - [`references/time_blocking_method.md`](references/time_blocking_method.md) — plan every minute, block sizes, buffers, guilt-free revision, fixed-schedule productivity (6 sources) |
| 77 | - [`references/shallow_work_budget.md`](references/shallow_work_budget.md) — the 30-50% band, saying no, batching, the recent-graduate heuristic, why the shutdown ritual works (6 sources) |
| 78 | |
| 79 | ## Assets |
| 80 | |
| 81 | - [`assets/example_time_block_plan.md`](assets/example_time_block_plan.md) — a full worked day (audit → plan → mid-day revision → shutdown) |
| 82 | - [`assets/shutdown_checklist.md`](assets/shutdown_checklist.md) — end-of-day shutdown ritual template |
| 83 | |
| 84 | ## Rules |
| 85 | |
| 86 | - **Depth first, earliest.** Deep blocks take the best hours; shallow work gets what is left, never the reverse. |
| 87 | - **Respect the refusals.** More than 4 deep hours is fake depth; overflow past the hard stop is a broken budget, not extra output. |
| 88 | - **Batch, never sprinkle.** Shallow work lives in at most two windows; a sprinkled inbox costs a full refocus each time. |
| 89 | - **Revise, don't abandon.** A broken block means redraw the rest of the day, not "the plan failed." |
| 90 | - **Close the day.** No shutdown ritual, no evening — open loops steal tomorrow's first block. |
| 91 | |
| 92 | ## Distinct From (don't reach for the wrong skill) |
| 93 | |
| 94 | - **`productivity/andreessen`** — the 3x5 card picks WHAT matters today. Deep-work plans WHEN and HOW, with attention protected. Run the card first, then block the day here. |
| 95 | - **`project-management` capacity planning** — team-level capacity and sprint math. This is one person's attention across one day and one week. |
| 96 | |
| 97 | --- |
| 98 | |
| 99 | **Version:** 1.0.0 |
| 100 | **Build pattern:** Path-B method skill — Newport discipline preserved + deterministic scheduling scripts added. |
文件内容是平台检查时读出的文本,只供查看。平台不会运行包里的任何脚本或程序。

