vibing-worktree-run

vibing-worktree-run is a skill for Claude Code, Codex from shabaraba/vibing.nvim. It costs 89 tokens per session (738 once invoked), scanned A, original, MIT.

A workflow for running the code in a separate Git worktree, which is an independent checkout of a branch, without merging or changing its history.

In plain words
What is it for?
Running a worktree's tests, development server, build, or command-line program for a quick real-world check.
Why use it?
It lets you test or preview a branch as it is, even when you are not ready to merge it. It also checks whether the project needs a special setup before running.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Part of the vibing-nvim plugin — 12 skills, 1 agent shipped together

Good fit Running a worktree's tests, development server, build, or command-line program for a quick real-world check.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shabaraba/vibing.nvim/vibing-worktree-run
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add shabaraba/vibing.nvim --skill vibing-worktree-run
Clone the repo
git clone --depth 1 https://github.com/shabaraba/vibing.nvim

Made for: Claude Code, Codex.

Or install vibing-nvim, the plugin that ships this one along with the rest of its 12 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vibing-worktree-run

README.md
[![agentmods](https://agentmods.dev/badge/skills/shabaraba/vibing.nvim/vibing-worktree-run.svg)](https://agentmods.dev/skills/shabaraba/vibing.nvim/vibing-worktree-run)
Your own site
<a href="https://agentmods.dev/skills/shabaraba/vibing.nvim/vibing-worktree-run"><img src="https://agentmods.dev/badge/skills/shabaraba/vibing.nvim/vibing-worktree-run.svg" alt="Measured on agentmods" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 738 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00089 $0.00738
Opus 5 $0.00044 $0.00369
Sonnet 5 $0.00018 $0.00148
Haiku 4.5 $0.00009 $0.00074

Measured 8d ago against content hash ad3749eecbd8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

vibing-worktree-run scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude-plugin/skills/vibing-worktree-run/SKILL.md · 42 lines

What it actually says

vibing-worktree-run

Merging or rebasing is out of scope here, and so is judging whether the result is correct — the goal is only to get a worktree branch's code into a state where it can actually be executed, temporarily, without touching git history. The right technique depends on whether this project's tooling requires the repo to live at one fixed absolute path; investigate that once per project and remember the answer instead of re-deriving it every time.

  1. Read .vibing/system-prompt.md at the git root (vibing.nvim auto-creates it, empty, the first time a project chat is opened — it's gitignored and local-only, so don't expect it in git status or try to commit it). Look for a ## Worktree run method section.
    • If present: follow the documented method exactly and skip straight to running it — do not re-investigate.
    • If absent (or the file doesn't exist yet): continue to step 2.
  2. Investigate what this project actually needs, cheapest option first:
    1. Default — no path-swap needed. A worktree is a fully independent, working checkout. Try running the project's normal command (test suite, dev server, build, CLI invocation, whatever the project normally uses) directly from inside the worktree directory. This is sufficient for the large majority of projects.
    2. Fixed-path dependency. Only reach for this if 2.1 provably doesn't work because some tool hardcodes an absolute path to the repo root (an editor plugin manager's dir = config, a daemon watching one fixed path, a docker-compose bind mount, etc.). Decide between two techniques based on whether that tool resolves symlinks to their real path:
      • Symlink swap (fast, non-destructive; silently wrong for tools that resolve to the canonical/real path): make the fixed path a symlink once, repoint it at the worktree to run, repoint it back at the main checkout when done.
      • Checkout swap (slower, but always correct regardless of tool internals): temporarily git worktree remove <path> (only when clean — never --force), git checkout <branch> in the main directory, run it, git checkout back to the original branch, then git worktree add <path> <branch> to restore the worktree. When genuinely unsure which technique the project's tooling needs, ask the user rather than guessing.
  3. Record the decided method under a ## Worktree run method heading in .vibing/system-prompt.md (Edit to append, or Write if the file is still empty) so future turns and sessions reuse it without re-investigating. Keep the note short and concrete — the actual command(s) to run, not prose about the investigation that produced it.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 42 lines · 89 tokens per session scan A ad3749eecbd8

Subscribe to this mod's changes

vibing-worktree-run is a skill published in the GitHub repository shabaraba/vibing.nvim (13 stars, last pushed today), licensed MIT. It adds 89 tokens to every session and 738 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.