Context Restore
Steps
- List saved contexts for the current branch:
If the user asked for a specific branch or "all branches", read thegit rev-parse --abbrev-ref HEAD ls -t .agent-context/*.md 2>/dev/nullbranch:frontmatter of each file instead of relying onlsorder. - If there are none, say so plainly — don't invent a summary.
- If there's exactly one, read it. If there are several, show a short numbered list (date, title, branch) and ask which one, defaulting to the most recent for the current branch.
- Read the chosen file. Cross-check it against current reality before trusting it:
Flag anything the saved file claims that no longer matches (e.g. a "remaining work" item that's already been committed, or a file listed as modified that's now clean).git status --short git diff --stat git log --oneline -10 - Give a short welcome-back summary: what was being worked on, key decisions (treat these as settled — don't silently re-litigate them, but say so explicitly if you think one should be reconsidered), and the next concrete step from "Remaining work".
- Continue the task from there — this skill's job ends once the user has full context back.