opencode-recover-project

Locate OpenCode session artifacts and reconstruct diffs into the working tree.

6|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/open-hax/opencode-skills --skill opencode-recover-project
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opencode-recover-project
Source: https://github.com/open-hax/opencode-skills/tree/main/.opencode/skills/opencode-recover-project
Command: npx skills add https://github.com/open-hax/opencode-skills --skill opencode-recover-project

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Recovering a project after loss of OpenCode sessions, snapshots, or reconstituter outputs can be laborious and error-prone. This skill automates locating artifacts and reconstructing changes into your working tree.

Core Features & Use Cases

  • Locate session artifacts and reconstruct diffs into the working tree.
  • Reconstitute past work to rebuild branches or features from conversation history.
  • Validate and apply recovered patches with normalization and conflict resolution.

Quick Start

Run this skill to locate session artifacts and apply recovered patches to your working tree.

Frequently Asked Questions about opencode-recover-project

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

FAQPage Schema
How do I recover lost project state from OpenCode sessions?

Recovering lost project state from OpenCode sessions involves locating session artifacts and reconstructing diffs into the working tree. The process identifies relevant sessions, exports patches, normalizes diffs, applies changes, and validates the recovered workspace.

How can I rebuild a branch from conversation history after losing my work?

Rebuilding a branch from conversation history requires reconstituting past work from session outputs. You extract patches from the recovered conversation data and apply them to your working directory to restore the feature or branch state.

What is the best way to apply recovered patches with diff normalization?

Applying recovered patches with diff normalization involves exporting patch files from session artifacts, normalizing the diff formats to resolve conflicts, and validating the workspace state after applying the changes to ensure successful recovery.

Do I need version-control snapshots to restore my working tree?

You do not need explicit version-control snapshots to restore your working tree. You can reconstruct project state from OpenCode session artifacts and reconstituter outputs by locating the relevant session data and applying the generated diffs directly.

Can I validate my workspace after recovering changes from session artifacts?

Validating your workspace after recovering changes from session artifacts is a required step in the restoration process. After applying normalized diffs to reconstruct the project state, the skill validates the recovered workspace to ensure data integrity.

Why does diff normalization matter when restoring lost work from sessions?

Diff normalization matters when restoring lost work from sessions because raw session artifacts may contain formatting inconsistencies. Normalizing diffs ensures patches apply cleanly to the working tree, preventing conflicts and ensuring accurate project state reconstruction.