Edit and publish ~/code repositories through owned worktrees, enumerated staging, and safe-push; preserve main checkouts, pins, and peer work; keep disc images and extracted game files out of Git trees.
Installs into .claude/skills of the current project.
Are you the author of Repo Safety?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tompassarelli-repo-safety)
---
name: repo-safety
description: >-
Edit and publish ~/code repositories through owned worktrees, enumerated staging, and safe-push; preserve main checkouts, pins, and peer work; keep disc images and extracted game files out of Git trees.
grounded: 2026-10-09
written: 2026-10-13
metadata:
kind: playbook
---
# Repository safety
- Edit `~/code/<project>/worktrees/<slug>` and preserve main/pins; use [notes](references/notes.md) for creation, rescue and retirement.
- Keep build output inside its worktree, including Rust target directories, or one explicit temporary target.
- Keep ISO/disc images and proprietary extracted game files outside Git trees, and never read values from them for project behaviour (`game-ip`).
- Stage named paths, finish commit hooks, publish separately through `safe-push --to main` and fast-forward clean main; chain a landing after its check with `&&`, never `;`.
- Retire a worktree only as its owner/accountable parent after its work settles; preserve unknown ownership and live consumers.
- Before starting an issue, check `lane-gc --unlanded` for an existing branch referencing it and continue that instead of starting over; an owner who abandons a lane deletes it in the same turn. The hourly `lane-gc` timer retires landed, clean, idle lanes.
- lane-gc flags unlanded lanes and branches idle 24 h and, at 72 h, archives clean ones as archive/<container>/<lane>/<tip> tags and retires them; continue or land work before then. It retires landed-elsewhere, superseded (every named issue closed) and stale-dirty lanes the same way, archive tag first.
- Signal owned processes by exact PID or unique scoped pattern.
- Resolve guard denials through the sanctioned route and preserve secret/private-data/destructive/live-consumer boundaries.