AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Resume

skill-maca0229-claude-context-resume-resume · by maca0229

Restore work context from a handoff file saved by another machine

No reviews yet
0 installs
12 views
0.0% view→install

Install

$ agentstack add skill-maca0229-claude-context-resume-resume

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No 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.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-maca0229-claude-context-resume-resume)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

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 →
Are you the author of Resume? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

The user just switched to this machine and wants to restore the work context from the previous machine.

Recovery priority:

  1. Current handoff.md has content → show it directly
  2. File is empty or cleared (contains # restored) → auto-fallback to the most recent handoff entry in git history, shown with note "(from history)"
  3. No git history either → tell the user no record was found

Task

  1. 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.).

  1. Pull latest content (if ~/.claude is 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 ``

  1. Read ~/.claude/handoff.md
  1. 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 /handoff yet."
  1. 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?"

  1. 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.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.