synthesis-repo-guard

Installation
SKILL.md

Synthesis Repo Guard

The Problem

AI coding assistants create and modify files during a session. When the session ends — whether by completion, timeout, or the user closing the window — uncommitted or unpushed changes are stranded on that machine. For anyone who works across multiple machines, this breaks the sync chain. The work exists locally but never reaches GitHub, so the next machine starts from stale state.

No AI tool reliably commits and pushes before session end. Instructions, memory, and good intentions are not enforcement. The solution must be external to the AI.

The Solution

A standalone Python script (repo_sync_check.py) that scans a workspace for git repositories and reports any that have unsynced state. It has zero AI dependencies — it uses only Python stdlib and the git CLI. It works as:

  • A terminal command you run manually
  • A session-end hook for any AI coding tool
  • A scheduled check via cron or launchd
  • A CI/CD gate

The script is the single source of truth. Everything else is a trigger.

Related skills
Installs
3
GitHub Stars
6
First Seen
Apr 15, 2026