askill
opencode-apply-reconstituted-diffs

opencode-apply-reconstituted-diffsSafety 65Repository

Apply reconstructed diff patches safely and validate results

2 stars
1.2k downloads
Updated 2/24/2026

Package Files

Loading files...
SKILL.md

Skill: OpenCode Apply Reconstituted Diffs

Goal

Apply reconstructed diff patches safely and validate that the workspace is consistent afterward.

Use This Skill When

  • You have recovered patches from OpenCode sessions
  • The user wants diffs applied to reconstitute lost work
  • You need a controlled, auditable application of changes

Do Not Use This Skill When

  • The changes already exist in a branch or git history
  • The diffs are incomplete or untrusted

Inputs

  • Patch files or diff directories
  • Target repo root
  • Required test or build commands

Steps

  1. Create a clean working state (stash or branch as needed).
  2. Dry-run each patch with git apply --check.
  3. Apply patches in a deterministic order (oldest to newest).
  4. Resolve conflicts manually and re-run checks.
  5. Run tests or typechecks that cover changed areas.

Output

  • A summary of applied patches and any conflicts
  • Test results or failure notes

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

68/100Analyzed 3/2/2026

Solid skill for applying diff patches with clear structure and appropriate safety measures. Includes when/not-to-use guidance, step-by-step process, and validation steps. Penalized for being in agent-specific config folder (.opencode) suggesting internal-only context. Could improve with more specific command examples, error handling details, and rollback procedures. Tags and structured steps earn bonus points."

65
75
70
65
60

Metadata

Licenseunknown
Version-
Updated2/24/2026
Publisherriatzukiza

Tags

ci-cdtesting