Auto-Ship Dirty Repos
Automatically detects uncommitted changes in local repository clones and migrates them to pull requests via temporary worktrees.
The ship_dirty_canonical skill solves the problem of orphaned edits made by AI agents in canonical workspace clones where direct commits are restricted. It identifies 'dirty' repositories, rescues uncommitted work by moving it to a dedicated Git worktree, pushes the changes to a new branch, and opens a GitHub pull request. This ensures that agent-generated code is preserved, visible to CI pipelines, and that the primary workspace remains clean for routine synchronization workflows.
Key Features
01Automatic branch creation and GitHub PR generation with customizable labels
02Safe migration of changes to isolated Git worktrees
032 GitHub stars
04Atomic restoration of canonical repositories to a clean state post-success
05Automated detection of uncommitted files across multiple repositories
06Dry-run mode for auditing pending changes without execution
Use Cases
01Automating periodic workspace cleanup via build-loop cron jobs
02Rescuing agent-generated code edits from restricted canonical environments
03Ensuring local modifications are captured and pushed to CI before deployment