Install
$ agentstack add skill-maca0229-claude-context-resume-resume ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
The user just switched to this machine and wants to restore the work context from the previous machine.
Recovery priority:
- Current
handoff.mdhas content → show it directly - File is empty or cleared (contains
# restored) → auto-fallback to the most recent handoff entry in git history, shown with note "(from history)" - No git history either → tell the user no record was found
Task
- Get the real current time first — do not rely on system-provided dates:
``bash date "+%Y-%m-%d %H:%M:%S %Z" `` Use this timestamp for all time-based judgments (deadlines, how many days ago, etc.).
- Pull latest content (if
~/.claudeis a git repo):
``bash if git -C ~/.claude rev-parse --git-dir > /dev/null 2>&1; then cd ~/.claude && git pull 2>/dev/null fi ``
- Read
~/.claude/handoff.md
- If the file does not exist, is empty, or only contains
# restored, fall back to git history:
``bash git -C ~/.claude log --oneline -- handoff.md 2>/dev/null | grep "handoff: save" | head -1 | awk '{print $1}' ` Use the resulting commit hash to retrieve the content: `bash git -C ~/.claude show {commit_hash}:handoff.md 2>/dev/null ``
- If content is found, display it normally but append (from history) after the snapshot title
- If git history has nothing either, tell the user: "No handoff record found. The other machine may not have run
/handoffyet."
- If the file exists and has content, present it to the user:
Last session snapshot ({updated time})
Show each section. Use the real timestamp from step 1 to accurately evaluate any time references in the snapshot (past/future/how many days away). Then ask: "Want to pick up from 'Next steps', or is there something else on your mind?"
- After restoring, clear the handoff file to avoid stale data on next
/resume:
``bash echo "# restored" > ~/.claude/handoff.md if git -C ~/.claude rev-parse --git-dir > /dev/null 2>&1; then cd ~/.claude && git add handoff.md && git commit -m "resume: clear handoff" && git push 2>/dev/null fi ``
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: maca0229
- Source: maca0229/claude-context-resume
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.