Push a claude-vm guest worktree's committed changes to the remote, for a given run id (or the most recent run). Pushes only with explicit approval; never force-pushes.
Install
npx skillscat add thevoskamps/claude-plugins-marketplace/claude-vm-apply-remote Install via the SkillsCat registry.
claude-vm-apply-remote
Push the changes a claude-vm guest committed (in its persistent
worktree) to the remote. Use this when you want the guest's work to
land on a remote branch directly, without first mirroring it onto the
local source.
This skill pushes to the remote, so pushing requires explicit
approval — show the commits and target
branch, ask, and wait for a clear yes before pushing. Never
force-push.
How runs are located
Same as /claude-vm-diff: each run writes$CLAUDE_VM_RUNS_DIR/<runid>/run.meta recording run_id, repo_src,repo_mount, worktree, and copy_back, and this repo's runs are the
ones whose repo_src names it. The run dir persists after the guest
exits (clone mode).bin/claude-vm-cleanup never removes a run's worktree/ orrun.meta, so a run it has reaped is still found.
Inputs
<runid>(optional): the run to push. Defaults to the most
recent run of this repo, selected the way/claude-vm-diff
selects it.<repo>(optional): the source repo root. Defaults to the
current repo.<branch>(optional): the remote branch to push to. When
omitted, derive a descriptive branch name (e.g.claude-vm/<runid>); do not push to the default branch
implicitly.
Steps
Resolve the run dir and read
run.meta(see/claude-vm-diff). If
no recorded run exists, report and stop.Confirm
repo_mountisclone— the worktree (a--no-hardlinks
clone of the source) carries the guest's commits and its ownoriginpointing at the source. For aliverun there is no
separate worktree; report and stop.Show what would be pushed:
git -C "<worktree>" --no-pager log --oneline "<base>..HEAD" git -C "<worktree>" --no-pager diff --stat "<base>..HEAD"If the worktree has uncommitted changes, the guest's work was not
committed — report that and stop (there is nothing to push). The
user can commit inside the worktree, or apply locally and commit
there.Get explicit approval for the push, naming the target remote and
branch. Wait for a clear "yes" / "push".Push the worktree's branch to the remote. The worktree's
originis
the local source; to reach the true upstream, add/resolve the source
repo'soriginremote URL and push there, e.g.:upstream="$(git -C "<repo_src>" remote get-url origin)" git -C "<worktree>" push "$upstream" "HEAD:<branch>"Use a normal (non-force) push. If the remote rejects it
(non-fast-forward), report the rejection and stop — do not
force-push.Report the pushed branch and, if applicable, suggest opening a PR.
Notes
- This skill only pushes committed work. If the guest's changes are
uncommitted in the worktree, commit them (inside the worktree) or use/claude-vm-apply-localfirst. - Never force-push. A rejected push is surfaced to the user, who
decides how to reconcile.