← ClaudeAtlas

admin_gitlisted

Admin-only Git procedure for the repository root — identify main, fast-forward safely, commit fork engine pins, merge only approved PRs, and preserve every foreign worktree. Use before Admin performs Git maintenance or an authorized merge.
jedbjorn/subfloor · ★ 28 · Code & Development · score 78
Install: claude install-skill jedbjorn/subfloor
# admin_git — maintain the repository root Admin owns the root checkout and its `main` branch. Use this procedure for a specific update, reconciliation, or approved merge; it is not a standing cleanup pass. The FnB merge gate and the preservation rule remain in force. ## Orient before writing ```bash git rev-parse --show-toplevel git branch --show-current git status --short --branch git worktree list ``` Proceed only when the top level matches the repository named by the boot document and the root checkout is on `main`. A dirty root, detached head, or diverged main is a decision boundary: show the exact state to the FnB before changing it. Every other worktree belongs to its shell. Never switch its branch, stash, reset, clean, move, or remove it. When the FnB explicitly asks for repository- wide cleanup, load `git_cleanup`; otherwise leave foreign worktrees untouched. ## Fast-forward main ```bash git fetch origin main git pull --ff-only origin main ``` Success leaves `main` clean and at the fetched remote head. If `--ff-only` refuses, stop and report the local/remote commits; never create a merge bubble or reset main to make the command pass. ## Commit a fork engine pin In a tracking fork, `.super-coder/` is a materialized dependency and remains gitignored. After `self_update` succeeds, stage only the durable public update: ```bash git add .sc-state/engine.ref git status --short git commit -m "chore: update super-coder engine pin" ``` Add the root `sc` dispatcher