local-state-preservation

Installation
SKILL.md

Local State Preservation

Use this skill before repo sync, branch switching, imports, cleanup, archive moves, or any operation that could overwrite, move, publish, or invalidate local-only work.

Required Result

Produce a preservation packet before mutating the repo:

  • Dirty-state inventory: branch, HEAD, upstream, tracked changes, untracked files, ignored files, stashes, worktrees, nearby clones, and private paths.
  • Preservation artifacts: patch files, archives, manifests, reports, or checksum files with SHA-256, size, source paths, and destination path.
  • Explicit non-touch decisions for stashes and private paths.
  • A validation report that passes scripts/validate_local_state_preservation.py.

The machine-readable report follows assets/preservation-report-contract.json. Use templates/output.md for the human closeout and assets/preservation-template.md for the JSON shape.

Procedure

1. Establish Baseline

Installs
1
GitHub Stars
2
First Seen
Jun 18, 2026