agentsclimarketplace

Context restorer

Skill aarshsharma2803-stack/optimusprime/skills/context-restorer

The session state protocol for AI coding. Hook-level scope enforcement, cross-session memory, contradiction detection, and predictive context - Claude is stateless, your project isn't.

Install
npx -y skills add aarshsharma2803-stack/optimusprime --skill context-restorer

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Activates when user pastes a session snapshot or references prior session context at the start of a new session. Trigger on: content starting with "# OPTIMUSPRIME SESSION SNAPSHOT"; multi-line content containing "## Goal", "## Changed", and "## Decisions" sections together; explicit phrases "restore context", "continue from last session", "here is my snapshot", "pick up where we left off", "resume session", "load context", "here's the snapshot", "context from last time". Also triggers on content starting with "GOAL:", "Generated:", "CAPTURED:" that looks like a structured session summary. Does NOT trigger on normal task descriptions without these snapshot markers.

SKILL.md

1.4 KB, as published. Nobody here has run it

Read silently (walk up from cwd to find .optimusprime/):

  1. .optimusprime/session-snapshot.md — goal, changed files, key decisions, next action
  2. .optimusprime/decisions.md — last 10 non-empty lines
  3. .optimusprime/contract.json — scope contract
  4. .optimusprime/attempts.md — last 5 lines (if file exists)

If .optimusprime/ not found: synthesize context from the pasted snapshot content only.

Output exactly one line:

Context restored — [goal]. [N] decisions on record. Continuing from: [Next Action field].

Then proceed immediately to the task. No listing of files read. No asking for confirmation. No preamble. One line, then work.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.