plan-week · git:20260920.bc4b65b · 2026-09-20 · sha256 48518a48ba5fe417

plan-week git:20260920.bc4b65bA

Immutable. This exact content never changes and is served at /api/v1/blob/48518a48ba5fe417.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_m2wpisvdx34er42f/48518a48ba5fe41765eb95b4b33735ac816797e303961b5bafdc4caae00406d9.json

Then /plugin install plan-week@markdownregistry-m2wpisvdx34er42f in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.

---
name: plan-week
description: Plan or replan the week across Things, both calendars (Fastmail personal, Superhuman work), and Linear. Use for /plan-week or when the user asks to plan, replan, or clean up their week or day schedule.
---

# Plan week

Distribute Things tasks across the coming days using real calendar constraints. Apply the changes, then report the final layout as a table.

## Gather (all before deciding)

1. Things: `things list today --json`, `things list upcoming --json`, `things list anytime --json`, `things list inbox --json`. Group by `activationDate`. Items with no activation date and repeating templates (Owsianka, Sport, Weekly Review) are off limits.
2. Personal calendar: Fastmail MCP `search_events({ after, before })` for the horizon (today through Sunday next week).
3. Work calendar: Superhuman MCP `query_email_and_calendar` / `get_availability` for the same horizon.
4. Linear: issues assigned to Oskar in started/unstarted states, for context in notes only.

## Rules

- Calendar wins. A day with travel, a gala, a conference, or an all-day block gets no deep work. `[No Work Time]` days (usually Sundays) get no work tasks at all.
- Per weekday budget: 1-2 deep-work tasks plus about 3 quick ones. Do not stack more.
- Overdue tasks and client-facing items (a client is waiting) go to the earliest workday.
- Phone-call tasks (doctors, offices, insurance) go Mon-Fri, morning slots.
- Personal errands prefer Saturday; nothing on `[No Work Time]` days.
- Respect existing deadlines. Known bug: `things add --deadline` lands one day early; setting `due date` via AppleScript is exact.
- Tasks that pair with an event (like "Przełożyć ortodontę" before the wizyta) must land before that event.
- Backlog with no week slot goes to Someday, never deleted.
- Do not touch tasks completed or in progress, and do not reorder within a day.

## Mechanics

- Reschedule via AppleScript, flat statements only (handlers break `schedule`):
  `tell application "Things3" to schedule (item 1 of (to dos of list "Upcoming" whose name is "X")) for ((current date) + N * days)`
- Move to Someday: `move (item 1 of (...)) to list "Someday"`.
- Duplicate names exist (Fryzjer): scope the query to the list you mean and iterate matches by index.
- Verify after applying: `things list upcoming --json` grouped by date.

## Report

Table: day | tasks (deep work first). Then one line each for: what moved to Someday, calendar conflicts found, deadlines at risk (deadline within the horizon but task scheduled late). Mention nothing else.