← Back to Skills Marketplace
jcools1977

Context Resume

by John DeVere Cooley · GitHub ↗ · v1.0.0
darwinlinuxwin32 ⚠ suspicious
375
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install context-resume
Description
Reconstructs your full working context when you return to a task after an interruption — meeting, lunch, sleep, weekend, or three-week vacation. Not session...
README (SKILL.md)

Context Resume

"The average developer is interrupted every 11 minutes. It takes 23 minutes to fully resume deep work. Do the math — most developers never reach deep work at all."

What It Does

You close your laptop Friday evening mid-feature. Monday morning you open it. Your files are there. Your branch is there. Your terminal history is there.

But you aren't there. The mental model you had — which function you were about to write, which edge case you just discovered, which test was failing and why, which approach you'd decided on and which you'd rejected — that's gone.

Context Resume rebuilds your mental state from the artifacts you left behind.

What It Recovers

1. Where You Were

LAST SESSION ANALYSIS:
├── Branch: feature/checkout-v2
├── Last commit: "wip: tax calculation for multi-currency" (uncommitted changes present)
├── Modified files (uncommitted):
│   ├── src/checkout/tax.ts ......... +47 lines (function incomplete, ends mid-logic)
│   ├── src/checkout/tax.test.ts .... +12 lines (2 tests, 1 failing)
│   └── src/types/currency.ts ....... +3 lines (new type added)
├── Last meaningful edit: src/checkout/tax.ts:84 (3:47 PM Friday)
├── Git stash: 1 entry ("experimental: flat tax approach — didn't work")
└── Uncommitted deletions: none

2. What You Were Doing

ACTIVITY RECONSTRUCTION:
├── Primary task: Implementing multi-currency tax calculation
├── Current state: Mid-implementation
│   ├── calculateTax() is 60% complete (has happy path, missing edge cases)
│   ├── One test is passing (USD → USD, simple case)
│   ├── One test is FAILING: "should handle JPY zero-decimal currency"
│   │   └── Error: Expected 100, got 1.00 (decimal handling bug)
│   └── CurrencyType enum was just added but not yet used in calculateTax
├── Approach taken: Per-currency decimal precision lookup table
├── Approach rejected: Flat percentage (stashed, labeled "didn't work")
└── Likely next step: Fix decimal handling for zero-decimal currencies (JPY, KRW)

3. What You'd Decided

DECISION CONTEXT (reconstructed from commits, comments, and stash):
├── Decided FOR: Lookup table approach for currency decimals
│   └── Evidence: Current implementation uses this pattern
├── Decided AGAINST: Flat percentage approach
│   └── Evidence: Stashed with note "didn't work"
├── Open question: How to handle currencies not in the lookup table
│   └── Evidence: TODO comment on line 67: "// fallback for unknown currencies?"
└── Unresolved: Whether to round before or after tax application
    └── Evidence: Both orderings present in different test cases

4. What Was Blocking You

BLOCKERS DETECTED:
├── ACTIVE: JPY test failing (zero-decimal currency handling)
│   └── This was likely the last thing you were working on
├── PENDING: No test for rounding edge cases
│   └── TODO on line 72: "// test rounding: 33.33% of $10?"
└── EXTERNAL: None detected

How It Works

Phase 1: ARTIFACT COLLECTION
├── Git state: branch, commits, diff, stash, reflog
├── File state: modification times, partial edits, cursor bookmarks
├── Test state: last test run results, which tests are failing and why
├── Comment state: TODOs, FIXMEs, HACKs, and inline questions
├── Terminal state: recent commands (build, test, run attempts)
└── Time analysis: order of modifications, last-touch timestamps

Phase 2: NARRATIVE RECONSTRUCTION
├── From artifacts, reconstruct the story:
│   ├── What task were you working on? (branch name, commit messages)
│   ├── What approach did you take? (code pattern analysis)
│   ├── What did you reject? (stashes, reverted changes, deleted code in diff)
│   ├── What was working? (passing tests, committed code)
│   ├── What was broken? (failing tests, incomplete functions)
│   └── What were you about to do? (partial code, TODOs, cursor position)
├── Sequence the story chronologically
└── Identify the exact point of interruption

Phase 3: CONTEXT BRIEFING
├── One-paragraph summary: "Here's where you left off"
├── Immediate next action: "You were about to..."
├── Active blockers: "This was stopping you..."
├── Open decisions: "You hadn't decided..."
└── Quick wins: "These are close to done..."

Phase 4: WARM-UP SUGGESTIONS
├── Recommend a re-entry point (easiest way back into flow)
├── Suggest running the failing test first (immediate feedback loop)
├── Flag anything that changed externally while you were away
│   └── (new commits on main, dependency updates, CI status)
└── Estimated time to full context recovery: X minutes

The Context Briefing

╔══════════════════════════════════════════════════════════════╗
║                    CONTEXT RESUME                           ║
║         Branch: feature/checkout-v2                         ║
║         Away since: Friday 3:47 PM (63 hours ago)           ║
╠══════════════════════════════════════════════════════════════╣
║                                                              ║
║  SUMMARY:                                                    ║
║  You were implementing multi-currency tax calculation.       ║
║  The USD path works. You hit a bug with zero-decimal         ║
║  currencies (JPY, KRW) — they don't use cents, so your      ║
║  decimal math produces wrong results. You were mid-fix       ║
║  when you stopped.                                           ║
║                                                              ║
║  RESUME POINT:                                               ║
║  → src/checkout/tax.ts:84 — Fix decimal precision for JPY   ║
║  → Run: npm test -- tax.test.ts (1 failing, 1 passing)      ║
║                                                              ║
║  YOUR DECISIONS SO FAR:                                      ║
║  ✓ Using per-currency precision lookup (not flat %)          ║
║  ✗ Rejected flat percentage (stashed, didn't handle edge     ║
║    cases)                                                    ║
║  ? Open: fallback for unknown currencies                     ║
║  ? Open: round before or after tax?                          ║
║                                                              ║
║  WHILE YOU WERE AWAY:                                        ║
║  ├── 3 commits landed on main (none touch checkout/)         ║
║  ├── CI: green on main                                       ║
║  └── No dependency updates                                   ║
║                                                              ║
║  WARM-UP:                                                    ║
║  1. Run the failing test (see the error fresh)               ║
║  2. Fix JPY decimal handling on line 84                      ║
║  3. Add the KRW test case (same pattern)                     ║
║  Estimated context recovery: ~5 minutes                      ║
╚══════════════════════════════════════════════════════════════╝

When to Invoke

  • Every morning. First thing. Before you touch code.
  • After any meeting longer than 30 minutes
  • When switching between branches/tasks
  • When picking up someone else's abandoned branch
  • After a vacation or time off
  • When a colleague asks "where did you leave off on X?"

The Cost of Not Resuming

Context Loss Time Wasted Risk
Forgot which approach you rejected 30-60 min re-exploring dead end Re-making a mistake you already made
Forgot which test was failing 10-20 min re-discovering the bug Thinking you introduced a new bug
Forgot the open design decision Hours of rework Choosing inconsistently with prior work
Forgot what changed externally Variable Building on stale assumptions
Complete context loss 1-4 hours Starting over on solved problems

Why It Matters

Context switching isn't just about closing and opening files. It's about loading a mental model — the web of decisions, discoveries, and intentions that make you productive in a specific area of code. Without that model, you're a tourist in your own codebase.

Context Resume doesn't save your session. It saves your understanding.

Zero external dependencies. Zero API calls. Pure git and filesystem analysis.

Usage Guidance
This skill's purpose is reasonable, but the runtime instructions are very broad and could cause the agent to read sensitive local artifacts (shell history, editor state, test outputs) and probe external services (CI, remote git) without constraints. Before installing or enabling it: - Confirm what files/paths the skill will read (workspace root only? will it access ~/, ~/.bash_history, IDE settings?). Ask the author for a precise whitelist and explicit exclusions for secrets (e.g., ~/.aws, ~/.git-credentials, .env files). - Ensure the agent runs with least privilege: restrict filesystem scope to the project directory and disable access to home directory/history unless explicitly needed. - Prevent outbound network egress or require explicit approval for remote checks (CI, remote branches, dependency registries). Ask whether summaries are stored locally or transmitted externally. - Test the skill on a non-sensitive repository first to verify behavior and outputs. - If you cannot confirm the above, treat the skill as high-risk and avoid enabling autonomous invocation. If you want, I can produce a short list of precise questions to send to the skill author or a sandbox test plan to exercise the skill safely.
Capability Analysis
Type: OpenClaw Skill Name: context-resume Version: 1.0.0 The skill is classified as suspicious due to its broad access requirements to local system artifacts, including potentially sensitive terminal history files (e.g., .bash_history) and arbitrary file contents, as described in SKILL.md under 'Phase 1: ARTIFACT COLLECTION'. Additionally, the skill's output includes recommendations for command execution (e.g., 'Run: npm test'), which, if automatically executed by the OpenClaw agent without proper sandboxing or user confirmation, could pose a remote code execution risk. While the skill explicitly states 'Zero external dependencies. Zero API calls.', mitigating direct exfiltration, the extensive local data access and command execution capabilities represent significant vulnerabilities if the agent or platform were to be exploited.
Capability Assessment
Purpose & Capability
The declared purpose (rebuild a developer's mental state from repo and local artifacts) aligns with the actions described in SKILL.md (git state, modified files, tests, TODOs, terminal state). However, doing this legitimately requires broad local access (repo, editor/IDE state, shell history, test outputs). The skill declares no required binaries or credentials (fine for an instruction-only skill) but does not explicitly state which files/paths it will read or what external checks it will perform.
Instruction Scope
SKILL.md instructs collecting many potentially sensitive artifacts: terminal/command history, cursor/bookmark positions (IDE/editor state), last test run results, modification times, stashes, and checking external changes (new commits on main, CI status, dependency updates). These are described at a high level with no explicit whitelist/blacklist, no guidance about excluding secrets, and no explanation of whether or how collected data is stored or transmitted. The instructions are therefore broad and grant the agent considerable discretion to read sensitive files.
Install Mechanism
This is an instruction-only skill with no install spec and no code files — lowest install risk (nothing is downloaded or written at install time).
Credentials
The skill requests no environment variables, credentials, or config paths, which is appropriate on paper. However, the artifacts it asks to collect (shell history, editor state, test output) commonly contain secrets (API keys in commands, tokens in local files). The absence of declared credentials does not eliminate risk because sensitive data may still be read from the user's file system.
Persistence & Privilege
always:false (not force-included) and no install persistence are good. The default ability for the agent to invoke the skill autonomously (disable-model-invocation:false) is normal for skills, but combined with the skill's broad, under-constrained instructions it increases potential impact (wider blast radius) if the agent is given file/network access without restrictions.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install context-resume
  3. After installation, invoke the skill by name or use /context-resume
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release
Metadata
Slug context-resume
Version 1.0.0
License
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Context Resume?

Reconstructs your full working context when you return to a task after an interruption — meeting, lunch, sleep, weekend, or three-week vacation. Not session... It is an AI Agent Skill for Claude Code / OpenClaw, with 375 downloads so far.

How do I install Context Resume?

Run "/install context-resume" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Context Resume free?

Yes, Context Resume is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Context Resume support?

Context Resume is cross-platform and runs anywhere OpenClaw / Claude Code is available (darwin, linux, win32).

Who created Context Resume?

It is built and maintained by John DeVere Cooley (@jcools1977); the current version is v1.0.0.

💬 Comments