Load Epic Context
Prime the session with an Epic's current state at minimum token cost: refresh
the machine-managed data via scripts, then read only the aggregates —
summary.md, history, repo state — never the individual item files.
Steps
Confirm the Epic (a monday.com group title mapped in
<scrum-context>'smondayEpics); ask if ambiguous.Refresh stale data. Read
<epicFolder>/.pm/repo/repo-state.json(lastSyncAt) and the newestsavedAtin.pm/backlog/items/(one file is enough). If either is older than 60 minutes — or missing — run:node "${CLAUDE_PLUGIN_ROOT}/scripts/monday/save-all.mjs" "<groupName>" node "${CLAUDE_PLUGIN_ROOT}/scripts/repo/sync-repo.mjs" "<groupName>"Skip
sync-repo.mjswhen the Epic has norepoconfigured (it exits 2 with a usage error in that case — not a failure of this skill). If either script reports a legacy.snapshots/layout, runnode "${CLAUDE_PLUGIN_ROOT}/scripts/setup/migrate-epic-layout.mjs" "<groupName>"once, then retry.Load the aggregates — and only these:
.pm/summary.md— the maintained Epic summary (may not exist yet)..pm/backlog/progress-history.json— last entry for totals/points/status mix; fall back to thesave-all.mjssummary JSON from step 2..pm/repo/repo-state.json,branch-diff.json, and the tail ofcommits.jsonl(last ~20 lines) — epic branch, ahead/behind, recent activity. Do not readitems/*.jsonone by one; that is the cost this layout exists to avoid. Open an individual item only if the user asks about it.
Brief the user (concise): Epic goal (from
summary.md, else one line fromprd/prd.md), backlog counts by status and total points, the epic branch and its ahead/behind vs the default branch, notable recent commits, and anything that obviously needs attention. Then ask what to work on — the context is now loaded for whatever follows (progress reports, audits, refinement, spikes…).Maintain
summary.md. If it is missing, or the briefing contradicts it (e.g. status mix or epic branch changed materially), offer to (re)write it: ~1 page — Epic goal, current state, key decisions, open risks — saved to.pm/summary.md. Keep it a summary, not a log; it is the cheap first-read for the next session and for the scheduled routine.
Failure modes
MONDAY_TOKENmissing →save-all.mjsexits 1; point to the plugin README.- Epic not in
mondayEpics→ runsetup-scrum-contextor ask for the folder. - No
repoconfigured for the Epic → load backlog context only and say the repo view is unavailable; offersetup-scrum-contextto add it. - Legacy
.snapshots/guard fires → runmigrate-epic-layout.mjs(step 2).