context-restore

Restore the most recent WIP commit on the current branch with a mixed reset.

1|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/manastalukdar/ai-devstudio --skill context-restore-manastalukdar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-restore
Source: https://github.com/manastalukdar/ai-devstudio/tree/main/skills/context-restore
Command: npx skills add https://github.com/manastalukdar/ai-devstudio --skill context-restore-manastalukdar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill finds the most recent work-in-progress (WIP) commit on the current branch and unpacks it back into the working tree so you can resume exactly where you left off after a context-save.

Core Features & Use Cases

  • Find the latest WIP commit on the current branch and perform a controlled reset to restore the working tree while preserving changes.
  • Warn about uncommitted changes and provide guidance to save them before restoration.
  • Restore the WIP commit with a mixed reset and display a concise status to confirm what was restored.

Quick Start

Run /context-restore to restore the most recent work-in-progress commit on the current branch and resume where you left off.

Frequently Asked Questions about context-restore

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I restore a WIP commit in git to resume work?

To restore a WIP commit, run /context-restore to find the most recent work-in-progress commit on your current branch and perform a mixed reset. This unpacks saved changes back into the working tree so you can resume exactly where you left off.

What happens if I have uncommitted changes when restoring a WIP commit?

When uncommitted changes exist in your working tree, the restoration process detects them and warns you. It provides guidance to save those changes before proceeding with the WIP commit restoration to prevent losing your current work.

Does context-restore work across different git branches?

Yes, it supports resuming work across branches after a context-save. It implements branch detection to locate the most recent WIP commit on your current branch, ensuring you restore the correct saved context for that specific branch.

How does a mixed reset preserve my changes when restoring a git branch?

A mixed reset moves the branch pointer to the WIP commit while keeping all changes in the working tree rather than committing them. This preserves your modifications so you can continue working on them immediately after restoration.

Can I see what was restored after resuming a WIP commit?

Yes, after applying the mixed reset the tool displays a concise status output. This status confirms exactly what was restored from the WIP commit, helping you verify the working tree matches your previous context before continuing.

What is the best way to save and resume work-in-progress across git branches?

Use a context-save to commit your WIP state, then run /context-restore on the target branch. It detects the latest WIP commit, checks for uncommitted changes, and performs a controlled reset to restore your working tree exactly as you left it.