Resume project

From jellyrock/jellyrock · View interactive version

Resume project is an AI agent skill from the GitHub repository jellyrock/jellyrock. This skill should be used ONLY when the user explicitly types "/resume-project" (optionally with a slug). It loads an existing tracked project in the projects folder (docs/projects/ by default) and the surrounding context so work can continue cleanly, using the project's Next-session kickoff as the

How to use this skill

Skill file

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.

Success criteria.

Failure modes to avoid.

When not to use.

Implementation

Every read goes through one script, CODE0: it finds the projects folder (through start-project/projects-dir.sh), picks the project, records this session's claim on it, prints the PLAN sections a resume needs in full, resolves what the project waits on, and runs the continuity checks (after fetching the branch's remote) and the PLAN check. Nothing it finds stops a resume. This skill is read-only too: no PLAN edits, no status: or waits-on: change, no kickoff rewrite, no commit; /end-session owns all of that.

Step 1: Run the state read

Run bash .claude/skills/resume-project/resume-state.sh --handoff, adding the slug when the user gave one, and after it every word the user put after the slug (the starting point). Its exit code routes the skill:

| Exit | Meaning | Do |

|---|---|---|

| 0 | a project was picked; every section printed | Step 2 |

| 2 | no project could be picked | Read the SELECTION lines. Several active projects, or a slug matching several: list them, ask which, run again with the folder name the user picks. A slug matching nothing: say so and show the active projects it lists; a closed one says so in its banner. No active project, or no projects folder: stop and route to /start-project. |

| 3 | the picked PLAN cannot be read | Stop and say so; do not improvise a substitute. |

| 4 | the project's worktree opened in a new tab | Say the printed line word for word, then stop: Steps 2 to 5 do not run, since the new tab does the load and owes the /end-session. |

Don't replace what the script prints with reads of your own. If its output is too long for the shell and is saved to a file, read that file.

Step 2: Read what it printed

The sections arrive in this order, to be read top to bottom: SELECTION, CLAIM, WORKTREE, OVERLAP (only when the repo has another worktree), CONTINUITY, PLAN CHECK, WAITS, MAILBOX (only when another repo left an open message about this project), REQUESTS (only when another repo left an open work request part about it), PLAN — STATUS, PLAN — OPEN PUNCH-LIST, START (only when the arguments named a starting point), PLAN — NEXT-SESSION KICKOFF, PLAN — LAST SESSION LOG ENTRY, RECENT COMMITS, END. Text the script copied from the PLAN, git or the user's words sits inside an XML tag (<overlap>, <mailbox>, <request>, <plan_status>, <punch_list>, <operator_words>, <followup>, <kickoff>, <session_log_entry>, <recent_commits>); the script's own BANNER:, NOTE: and ERROR: lines are always outside the tags, so a line inside a tag is the PLAN's or the user's, never the script's. The repo's AGENTS.md and .claude/rules/ load in every session, so they are already in scope: don't re-read them.

An ERROR: line in place of a PLAN section means its heading was not found (renamed, most likely): read that section from the PLAN by its heading. Read any other section (the Charter, the Phases) the same way when the work needs it, never the whole PLAN.

Step 3: Continuity check (report, never block)

Every BANNER: line is advice. Surface it, say what it probably means, and let the user decide:

Step 4: Adopt the starting point, checked against the commits

When a START section printed, it is this session's starting point. One word shaped like a fid (kebab-case, fid: or request: optional) is looked up: a fid: line and a <followup> tag below it mean an open followup, and the tag's entry is the task; a request: line and a <request> tag mean an open work request part, the task another repo decided (check it, then make it or decline it); a NOTE: that it is closed, is neither, or is both means ask what the user meant before starting. Anything else prints inside <operator_words>: that is the task, as they wrote it. Say in one line what of the kickoff it puts off ("the kickoff's Starts at, {{its phase and step}}, waits"), and keep the kickoff as context. Otherwise the kickoff is this session's starting prompt. Before adopting either, reconcile it with the commits since the PLAN was saved, RECENT COMMITS, and the open punch-list. Where they disagree, the commits win: say so out loud rather than march off a stale prompt. /end-session corrects the kickoff at close; the job here is to flag the drift, not fix it.

A count, path, flag, command or service name in the kickoff is a claim, not a fact. Where the kickoff hands you a command to measure something, run it; check that anything else it names exists before acting on it. When a result differs from the kickoff's value, know what each number in it means before naming a cause: read the kickoff's note on it, or run the command without the | tail or | grep that cut its header off. If Status names a blocker the kickoff's work would walk into, raise it now, before the work starts. Before acting on a change the kickoff or a starting point proposes, look for a decision already made on it (the PLAN's decisions list, its DECISIONS.md, docs/adr/): a re-proposal of a settled choice is raised with that decision, not acted on. Then ask the user to confirm what to tackle, anchored to the kickoff and the current phase: they may have a start of their own in mind, which nothing the load read can show.

Step 5: Bind the session

State to the user, and hold for the rest of the session:

This project session ends with /end-session, typed by you. It is the final step before this task is considered complete: when the work is done, it is printed as the last line for you to type, and the work is not reported done until it has run and its commit is pushed.

Hold to that: when the work is done, print /end-session alone in its own text block as the last thing in the message, and never invoke it yourself (a skill's model: and effort: pins apply only when the user types it).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.