Resume Project
Contract
Goal. Pick up an existing tracked project and bind the session to its lifecycle, loading enough context that work continues cold without re-reading everything by hand. The skill selects the project, reads the parts of its PLAN.md a resume needs, runs a continuity check that the prior session ended cleanly, and adopts the PLAN's "Next-session kickoff" as the effective starting prompt, or the starting point the user named after the slug. The work is read-and-orient (selecting, loading, sanity-checking, and reconciling the kickoff against the commits), and one tested script does the reading. It is read-only by contract: its own steps load and present state, then yield to the working session; it never changes the project, and the one thing it writes is this session's claim on the project, outside the repo. In the repo's main checkout, when the project has a worktree, it opens that worktree's window instead, with the command typed in for the user to send, so the session runs with the worktree's instructions and skills; bringing a clean worktree up to date before that window opens is the one exception to read-only, and it moves a checkout, never project state. It does fetch the branch's remote first (remote-tracking refs only, under a timeout), since a checkout behind its remote would load an old PLAN and kickoff without a word.
Inputs. The arguments are an optional project slug, then optionally where to start. With a slug, the skill picks the project whose folder is YYYY-MM-{{slug}}. The folder's whole name picks that folder alone, which also tells apart two projects that share a slug. Without one, it reads each project's status: and auto-selects when exactly one is active, asks when several are, and stops (routing to /start-project) when none are. Anything after the slug is this session's starting point in place of the kickoff's: an open followup's fid (as /focus hands off a pinned item a project tracks), an open work request part's id (as a part about the project is routed), or the user's own words. The skill expects the project's PLAN.md to carry a current Status section and a "Next-session kickoff."
Outputs.
- From the main checkout, when the project has a worktree and someone is watching: the worktree's window with
/resume-projecttyped in and unsent, and this tab finished, holding no claim; a clean worktree with no commits of its own moves up to its remote's default branch first. When the window cannot open, the load below, with the reason and what to type. - The selected project's context loaded into the session: its Status, open punch-list, Next-session kickoff and last session-log entry read in full, what it waits on resolved, and any starting point from the arguments; any other PLAN section read by its heading when the work needs it, never the whole file; recent commits surfaced. The repo's root instructions and working-norms rules are already in scope.
- This session recorded as the project's holder, with a warning when another live session already holds it.
- A continuity report, compared with the freshly fetched remote: any anomalies from the check (a dirty working tree, files another worktree of the repo has also changed, a checkout behind its remote, a branch behind the default branch, commits never pushed, commits made since the PLAN was last saved (those naming the project mean the last session did not close), an unexpected branch, a PLAN whose kickoff contradicts its Status) surfaced as warnings for the user to weigh.
- The starting point confirmed with the user: the one the arguments named, else the kickoff's, anchored to the current phase.
- The session-binding statement surfaced (this session must end with
/end-session).
Success criteria.
- The right project is selected: an explicit slug is honored; a single active project is auto-picked; multiple actives prompt a choice; zero actives stop and redirect to
/start-project; a slug matching nothing says so and lists the active projects. - The continuity check runs and reports: it never blocks. A dirty tree, a checkout behind its remote, a branch behind the default branch, unpushed commits, work since the PLAN was saved, a surprising branch, another live session on the project, or a PLAN that contradicts itself is surfaced as a warning the user decides on, not a refusal to load.
- A starting point the user gave wins over the kickoff's, and the skill says in one line what of the kickoff it puts off.
- A project still waiting on something unmet is said to be waiting before any work starts; one whose every wait is met is said to be unblocked.
- Documented facts (paths, flags, service names, counts) are treated as possibly stale and verified against the live repo before they're acted on.
- When the kickoff has drifted from recent commits, the commits win and the drift is flagged (it gets corrected when
/end-sessionrewrites the kickoff). - The session is explicitly bound to end with
/end-session.
Failure modes to avoid.
- Carrying on after a handoff. Once the new tab is open, a load here would run on the main checkout's instructions and hold a claim the new tab then warns about. Say the
opened:line and stop. - Blocking on a continuity anomaly. The check is advisory. Surface the dirty tree or the unclosed session, ask whether to proceed, and let the user decide; do not refuse to load the project.
- Reading the whole PLAN. A long-running project's PLAN passes 100KB, mostly session log and old detail; a whole read costs tens of thousands of tokens or is cut off. Read the sections the resume needs, and any other one by its heading.
- Trusting stale documentation as fact. PLAN narrative and docs can lag reality. A path, flag, service name or count read from the PLAN is a hypothesis to verify against the current repo, not ground truth; when the kickoff hands you a command to measure something, run it.
- Adopting a drifted kickoff verbatim. If recent commits show the kickoff is out of date, say so and trust the commits; don't march the session off a stale prompt.
- Mutating project state during the load. No edits, no commits, no kickoff rewrites, no
waits-on:change: that's/end-session's job. This skill loads and presents (its claim is kept outside the repo), then yields. - Starting at the kickoff when the user named a start. Words after the slug are where this session begins; the kickoff is context for them, not a competing plan.
- Treating another session's claim as a stop. It is a warning: say which tab holds the project and how long it has been idle, and let the user decide. Two sessions closing one PLAN overwrite each other's close, which is what the warning is for.
- Skipping the session binding. If the close discipline isn't surfaced, the resumed session can drift into an un-closed state and its work never gets written back to the PLAN.
When not to use.
- No tracked project applies: you want a breadth briefing across all state surfaces. That's
/catchup(whole cursor + all active projects + recent commits), not/resume-project(depth on one project). - You're starting new tracked work. That's
/start-project;/resume-projectloads what already exists. - You're mid-task in a session that already loaded the project. Re-running the full load is noise; keep working.
- The user merely opened the repo or mentioned past work without asking to resume. Do not auto-invoke: this skill runs only on an explicit
/resume-project.