/hal-skills:sync-local-repos [all | this]from HAL Skills
Pulls the default branch of every repo in your workspace from origin and rebases the current branch onto it. Supports syncing all repos or just the current one.
Ships in HAL Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Use AskUserQuestion in Claude Code or request_user_input in Codex when available to ask the user anything below.
Pick the folder to sync from the session's working directory. The repo's main checkout is git rev-parse --path-format=absolute --git-common-dir without the trailing /.git.
this: the main checkout, so only that repo is synced.all or no argument, working directory not inside a git repo: the working directory, whose repos sit directly inside it.all or no argument, working directory inside a repo: the folder holding the main checkout and its sibling repos, normally the main checkout's parent. When that folder holds no other repo, the repo is probably linked into the real folder by a symlink: find it with find ~ -maxdepth 3 -lname <main checkout> 2>/dev/null and use the symlink's folder. When neither gives a folder of sibling repos, ask the user which folder to sync.Run scripts/sync_local_repos.py from this skill's folder with that folder and the working directory:
python3 ${CLAUDE_SKILL_DIR}/scripts/sync_local_repos.py "<folder>" "<working directory>"
It fast-forwards each main checkout's default branch (pull --ff-only when checked out, fetch origin <def>:<def> otherwise), then rebases the branch at the working directory onto origin/<def>. Done when it exits: 0 means every step succeeded, 1 means a FAIL repo line or a STOP line.
Settle each FAIL and STOP line:
FAIL on a repo: report the git error; a checkout whose default branch diverged from origin needs the user's call.STOP <upstream> has N commits <branch> lacks: someone pushed work to the branch that this checkout does not have. Report the listed commits and ask the user before pulling them in. A remote that only holds the same commits rebased, or an older copy of them, does not stop the script: it adopts or rebases past them on its own.STOP uncommitted changes, STOP merge commits, STOP conflict: report the files or commits listed and ask the user how to proceed. A conflict was already aborted, so the branch is unchanged.A rebased branch that was already pushed needs a force-push. Ask the user first, then push with a lease on the tip the remote holds, so a teammate's newer push makes it fail:
git push --force-with-lease=<branch>:<old tip> origin <branch>
When nothing needs the user, report one line: Synced <folder>: all N repos ok on their default branch, plus ; rebased <branch> onto origin/<def> when the branch moved. Otherwise lead with what needs the user (each FAIL and STOP, a tree check asking for review, a pending force-push), then the repos that moved, the branch's old and new tip, and whether anything was pushed. Never list checks that passed.
What SKILL.md sets; muted values are Claude Code's defaults
13 skills in this plugin
/audit-agent-settingsUse when auditing Claude Code or Codex settings and env vars against the latest docs to suggest tailored changes/best-practicesUse when about to choose, configure, or refine a tool, library, config format, API pattern, or project setup, or before proposing a design or fix of your own — research current guidance, pitfalls, and prior art for the problem it solves first; already knowing an approach, or assuming no prior art exists, is not an exemption. Also use when the user asks about best practices, gotchas, or recommended patterns/blindspotUse when the user asks for a blindspot pass or to find their unknown unknowns, or signals unfamiliarity with a domain, tool, or codebase area ("never used X", "first time doing Y", "no idea where to start", "don't know what I don't know") before working there. Maps the areas their request leaves unnamed, purpose and shape before mechanics, shows how people usually answer each and why, and asks which to explore next, so unknown unknowns become known unknowns they can prompt with. Recommendations on a tool already chosen belong to best-practices/commitUse when making any git commit. Pass the failure, false claim, or risk the changes fix as the argument; for an addition or a filled gap, pass what it adds — never an invented why./differenceCompare A vs B, weigh pros and cons of A, B, C, ..., or explain the nuance between sentences — a quick answer from what the model already knows/fuck-over-engineeringUse when the user asks what could be deleted or reduced to simplify a codebase, says "simplify", "over-engineered", or wants a repo-, folder-, or file-wide audit for over-engineering — hunts dead code, reinvented stdlib, needless dependencies, and single-implementation abstractions, reports ranked cuts, applies only the picks. Not a diff review and not a bug huntnpx claudepluginhub vinta/hal-9000 --plugin hal-skillsOther plugins' skills for the same job