opencode-apply-reconstituted-diffs

Apply reconstructed patch files to a repository and validate workspace consistency.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables safe application of reconstructed patch diffs to a repository and validates the workspace integrity after changes.

Core Features & Use Cases

  • Deterministic patch application order (oldest to newest) to preserve history.
  • Dry-run validation with git apply --check to catch conflicts before applying changes.
  • Auditable results and post-application test validation to ensure consistency.

Quick Start

Apply the provided patch files to a clean working tree and verify the repository state.

Frequently Asked Questions about opencode-apply-reconstituted-diffs

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

FAQPage Schema
How do I apply reconstructed git patch files in a specific order?

To apply reconstructed git patch files safely, enforce a deterministic patch ordering from oldest to newest. This chronological sequence preserves repository history and prevents unexpected conflicts during workspace reconstitution.

How does a dry-run check work before applying a diff patch?

A dry-run check uses git apply --check to simulate patch application and catch conflicts before modifying files. This pre-application validation identifies potential issues across diverse repo layouts without altering the actual working tree.

What's the best way to verify workspace consistency after applying patches?

The best way to verify workspace consistency after applying patches is running post-application test validation. Executing configured test commands ensures repository state remains reproducible and auditable after diff application.

Do I need a clean git working tree to apply reconstructed diffs?

Yes, you need a clean git working tree to apply reconstructed diffs safely. A clean repository state ensures deterministic patch application and accurate post-application validation without interference from uncommitted local changes.

Can manual conflict resolution be enforced during patch application?

Yes, manual conflict resolution can be enforced when automated patch application fails. This approach requires human intervention to resolve inconsistencies, ensuring auditable results and maintaining workspace integrity across diverse repo layouts.

Why does patch application fail on a reconstructed diff file?

Patch application fails on a reconstructed diff file when the target repository state does not match the patch context. Pre-application dry-runs using git apply --check detect these mismatches before attempting actual file modifications.