context-switch-budget
GitHub分析日历碎片化程度,统计上下文切换次数。通过合并同类任务、重新排列日程以消除零散间隙,并提供拒绝新干扰的话术,从而保护深度工作时间,提升专注力与产出效率。
触发场景
安装
npx skills add mohitagw15856/pm-claude-skills --skill context-switch-budget -g -y
SKILL.md
Frontmatter
{
"name": "context-switch-budget",
"description": "Treat context switches as the budget line they are — the switch census (how fragmented the week really is), the batching moves that consolidate scattered same-kind work, the calendar defrag that turns Swiss cheese into slabs, and the switch-cost line for saying no. Use when asked my day is fragmented to death, count my context switches, batch my meetings and reviews, or defend against calendar Swiss cheese. Produces the fragmentation census, the batching plan, the defrag moves, and the protective phrases."
}
Context Switch Budget Skill
The calendar shows eight meetings totaling four hours and calls the other four "free" — but fifteen-minute gaps between meetings are free the way confetti is paper: technically yes, usable no. Each switch costs re-entry time (the mind reloads the last context for 10–20 minutes), and a day of eight switches can contain zero real work while looking half-empty. The budget discipline: census the week's actual switches (the number shocks reliably), batch the same-kind work (meetings to meeting-blocks, reviews to review-hours, chat to email-triage-system-style windows), defrag the calendar (consolidate the gaps into slabs worth having), and price new fragmentation at the door.
What This Skill Produces
- The switch census — the week's transitions counted and typed (meeting↔work, task↔task, interrupt-driven), with the fragmentation map
- The batching plan — same-kind work consolidated: the meeting corridors, the review hour, the comms windows
- The defrag moves — the specific reschedules that convert cheese-holes into slabs (deep-work-blocking receives them)
- The door pricing — the phrases that protect the defragged shape ("Tuesday corridor?" as the default counter-offer)
Required Inputs
Ask for these if not provided:
- A real week's calendar — last week, as it actually ran (including the unscheduled interruptions the user remembers); the census works on evidence
- The work's kinds — what recurs: meetings, reviews, writing, admin, comms; batching needs the categories named
- The movable vs. fixed — which meetings the user controls or can counter-propose (recurring-meeting-pruner verdicts feed this), and the team's collaboration-hours constraints
- The interrupt sources — what punches through ad hoc (chat, drive-bys, "quick calls") — each gets a batching destination or a boundary
Framework: The Budget Rules
- Census first — the number is the intervention: count last week's switches (every transition between unlike work counts; every meeting-to-meeting gap under 30 minutes counts as a lost slab). The typical knowledge-week runs 30–50; seeing "41 switches, longest unbroken stretch: 52 minutes" reframes the problem from "I'm unproductive" to "my week is structurally incapable of depth" — which is true, and fixable.
- Batch by kind, on a rhythm: meetings compress into corridors (Tue/Thu afternoons — the counter-offer default) · reviews/approvals into a daily half-hour · comms into 2–3 windows · admin into one Friday hour. Same-kind work shares context; batching converts eight reloads into one.
- Defrag the residue: the gaps that remain after batching get consolidated — the two 45-minute holes become one 90-minute slab by moving one meeting ("could we do 2pm instead of 3?"— movers rarely mind, they just never think to ask). Slabs go to the deep-work design; the census re-runs in two weeks to verify the shape held.
- Interrupts get destinations, not resistance: the chat that punches through routes to the comms windows (with the office-hours-design never-waits line honored) · drive-bys get the warm deferral ("in the middle of a thing — grab me at 3?") · the genuinely-urgent keeps its lane, defined. Fighting interrupts case-by-case loses; routing them by class holds.
- Price fragmentation at the door: every incoming meeting request gets the corridor counter-offer by default ("Could this land Tuesday PM? I batch meetings there") — most acceptors don't care where, so the asker's shape wins by initiative. The switch-cost line, for when justification helps: "a 3pm call splits my only deep block — the 10am corridor keeps me sharp for it anyway."
Output Format
Switch Budget: [name] — last week: [N] switches, longest slab: [T]
The Census
[Switches by type · the fragmentation map (the week's shape drawn) · the shock number stated plainly]
The Batching Plan
| Work kind | Batch destination | Cadence |
|---|---|---|
| [Meeting corridors · review hour · comms windows · admin hour] |
The Defrag Moves
[The specific reschedules → the slabs created → assigned to (deep-work blocks)]
Door Pricing
[The corridor counter-offer, verbatim · the interrupt routing by class · the re-census date (T+2 weeks)]
Quality Checks
- The census counted a real week, including sub-30-minute gaps as losses
- Every recurring work-kind has a batch destination
- Defrag moves are specific reschedules, not aspirations
- Interrupt classes route somewhere legitimate
- The re-census is scheduled to verify the shape held
Anti-Patterns
- Do not read gap-time as free time — confetti isn't paper you can write on
- Do not fight interrupts individually — route classes; case-by-case is whack-a-mole with your attention
- Do not accept meeting times passively — the counter-offer wins by default because nobody else is playing
- Do not batch into your peak hours — corridors go on the energy map's shoulders; peaks are for slabs
- Do not defrag once — calendars re-fragment on schedule; the re-census is the maintenance
版本历史
- 471c606 当前 2026-07-22 14:02


