/howells-skills:salvagefrom howells-skills
Resolves git conflicts from merge, rebase, cherry-pick, revert, or stash. Recovers work from detached HEADs, worktrees, unpushed branches, and stashes with safe deletion of merged/pushed content only.
Ships in howells-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
No one's work is lost in git. Two jobs:
--abort, reset --hard, checkout ., git clean, stash drop and worktree remove --force discard work recorded nowhere; a force push can overwrite someone else's. Do them only when asked, or abort an operation you started by mistake before resolving anything.git push <remote> <sha>:refs/heads/salvage/<name>, no --force, never the default branch.Rescue in this order:
gc takes it.git stash clear from gone.Every worktree, branch and stash lands in one. Anything you cannot place is in flight.
python3 scripts/census.py <repo> --output <new-private-file>.json (see Script). It covers worktrees, branches (upstream, local ahead/behind), stashes and reflog-only commits. It does not fetch or judge merged; that is Proving "safe".git branch salvage/<name> <sha>.git stash branch; it can drop the stash and leave changes uncommitted. Instead: git worktree add -b <recovery-branch> <path> <stash-sha>^1, then git stash apply --index <stash-sha> there, commit, and check the staged and untracked files all came across. Leave the stash in the list.git worktree remove <path> (never --force; if it refuses, the tree is not safe), then git branch -d, or -D only for a squash merge proven under Proving "safe". Never drop a stash, delete a remote branch, or run git clean, git gc, git reflog expire or git worktree prune unless asked for that exact item.Your host's session list shows only your host. Absence from it says nothing about a Codex or Claude session elsewhere. The cross-host evidence is the filesystem: directory and index mtimes, .git/worktrees/<name>/locked, a process or dev server running inside the tree. Touched in the last day means occupied. If peers are reachable, ask them which paths they own; that beats inference. When unsure, leave it: a stale worktree costs disk, a deleted live one costs someone their afternoon.
git worktree remove deletes ignored files even when git status is clean. Run git ls-files --others --ignored --exclude-standard in each checkout before calling it safe.
node_modules, .next, dist) only when the inputs are preserved and nothing in them was edited by hand..env.local, local databases, certificates, scratch work. Copy them privately and check the copy before removing the source.An unnamed salvage/ branch gets deleted next month by whoever tidies up. For each at-risk item, look up any ticket ID in the branch name and report its title and status; an open ticket means the work is still wanted. With no ticket, summarise the commits in one line ("three commits, adds the facet-filter timeout guard"). If the default branch has superseded it, cite the replacing commit.
main. Fetch without pruning, then git merge-base --is-ancestor <tip> <remote>/<default>. If the remote cannot be reached, nothing is removed.git cherry and patch-ids mislead too. Ask the forge for the merged PR's head, match it to the current branch tip, and confirm the merge landed on the pushed default branch; commits after that head are unmerged. If equivalence cannot be shown, keep the branch.scripts/census.py is read-only and takes --help. The path is relative to this skill's directory, beside SKILL.md. It needs git, python3 and lsof. --output must be a new file outside every scanned repo. --exclude PATH skips a protected path. A non-zero exit means the census is incomplete; if process observation is the only error, carry on and treat every worktree as occupied. Its output is coverage, not a safe-to-delete verdict.
Lead with the number of items rescued, or say nothing was at risk.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub howells/skills --plugin howells-skills33 skills in this plugin
/armatureTurn a web app that scrolls like a document into an app shell with fixed chrome and panes that scroll on their own. Use when headers, toolbars or filters scroll out of view. Not for visual polish (`chiaroscuro`) or small-screen layout (`reflow`)./ask-howellsRoute a situation to the skills in this collection and the command to type. Not for doing the work./blenderInspect, edit and render Blender scenes and films through the Blender MCP or headless CLI. Not for Remotion films (`rostrum`)./browseDrive the user's real Chromium browser (logins, tabs, extensions) via the browse MCP: logged-in/JS sites, forms, screenshots, recordings, HAR capture, and 2FA/payment handoffs. Not for QA (`fieldtest`) or native Mac apps (`computer-use`)./chiaroscuroDesign, build, polish or critique web UI in Tailwind v4. Use when an interface should look gorgeous, looks generic or unfinished, or feels off. Not for design options (`maquette`), app shells (`armature`), screen sizes (`reflow`), Paper (`paste-up`) or QA (`fieldtest`)./componentizeConsolidate duplicated UI into shared components, split god files or extract packages. Not for redesign (`chiaroscuro`), typography (`typecase`), structural review (`fettle`) or behaviour-preserving cleanup (`unslop`).