← ClaudeAtlas

resumelisted

Read the latest handoff doc back into a fresh session so you can continue work after /clear instead of /compact. Use at the start of a new session, after the user runs /clear, or when the user says "resume", "pick up where we left off", "continue from the handoff", or names a handoff file or issue to load.
MrToAster13/mrtoaster13-plugins · ★ 0 · Data & Documents · score 72
Install: claude install-skill MrToAster13/mrtoaster13-plugins
# Resume Load a handoff doc into this fresh session and re-establish the plan. This is the second half of the clear-instead-of-compact loop: the handoff skill wrote the state, the user ran `/clear`, and now you rebuild context from disk — cleanly, without the cruft of the old session. ## Steps 1. **Find the handoff.** - **Resolve the same root the handoff skill used**, so you read from where it wrote: in a git repo `root="$(git rev-parse --show-toplevel)"`, otherwise `root="$(pwd)"`. The handoff folder is `"$root/docs/handoffs/"`. - **If the user pointed at something specific, honor it.** Treat a bare number, a slug, or an `*.md` name as a handoff *file* under `$root/docs/handoffs/`. Only treat it as a GitHub issue when they clearly mean one — the word "issue", a `#N`, or a GitHub URL — and only then, after confirming `gh` is installed and authed (`gh auth status`); read it with `gh issue view <n>`. If `gh` isn't available, fall back to the local file it links to. - **Otherwise take the latest by number.** Consider only names matching `^[0-9]+-`, parse the leading integer, and take the numeric maximum — not a lexicographic sort, which would rank `7-foo.md` above `010-foo.md`: ```bash ls "$root/docs/handoffs/" 2>/dev/null | grep -E '^[0-9]+-' | sort -t- -k1,1n | tail -1 ``` - **If nothing matches** (`$root/docs/handoffs/` is missing, or holds no `NNN-*.md` — a lone `.gitkeep` doesn't count), say so and ask what to resume from. Don't guess or inven