vibing-worktree-attach

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

A way to attach the current vibing.nvim chat to an existing Git worktree. A worktree is a separate folder connected to the same Git repository, useful for working on another branch in isolation.

In plain words
What is it for?
Listing available worktrees and switching the chat to an existing worktree for a feature, fix, or other branch.
Why use it?
It lets you continue the conversation in the code folder you choose without creating another worktree. This helps keep the chat and the intended branch aligned.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

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

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.

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

Made for: Claude Code.

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-attach

README.md
[![agentmods](https://agentmods.dev/badge/skills/shabaraba/vibing.nvim/vibing-worktree-attach.svg)](https://agentmods.dev/skills/shabaraba/vibing.nvim/vibing-worktree-attach)
Your own site
<a href="https://agentmods.dev/skills/shabaraba/vibing.nvim/vibing-worktree-attach"><img src="https://agentmods.dev/badge/skills/shabaraba/vibing.nvim/vibing-worktree-attach.svg" alt="Measured on agentmods" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 335 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00077 $0.00335
Opus 5 $0.00039 $0.00168
Sonnet 5 $0.00015 $0.00067
Haiku 4.5 $0.00008 $0.00034

Measured 6d ago against content hash 0f1105f1115b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

vibing-worktree-attach 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 6d 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-attach/SKILL.md · 28 lines

What it actually says

vibing-worktree-attach

Git worktrees provide isolated working directories for parallel development. This skill points this chat's own working_dir frontmatter at an already-existing worktree — it never creates one (see the vibing-worktree-create skill for that) and never runs git worktree add.

Attach — "what worktrees are there? — let's go into the auth one"

Works the same whether this is a brand-new chat's first exchange or mid-conversation in an existing one.

  1. Surface candidates (see the vibing-worktree-list skill):

    git worktree list --porcelain
    
  2. Once the user picks one, follow steps 3-5 of the vibing-worktree-create skill to point this chat's own working_dir frontmatter at the chosen worktree's path via the vibing-nvim MCP tools — the worktree already exists, so there's no git worktree add step to run first, and there's no new chat buffer to open (the current conversation continues, and its next turn already runs in the chosen worktree).

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. 6d ago First seen · 28 lines · 77 tokens per session scan A 0f1105f1115b

Subscribe to this mod's changes

vibing-worktree-attach is a skill published in the GitHub repository shabaraba/vibing.nvim (13 stars, last pushed today), licensed MIT. It adds 77 tokens to every session and 335 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.

Related

Other skills, from other repositories

add-sponsor

Add, move or remove a sponsor logo in the README and on the install page. Use when a GitHub sponsor reaches the Team or Company tier, when a sponsorship lapses, or when a sponsor sends a new logo asset.

agarwalvishal/claude-chat-exporter · 50 tokens

deep-context

Build deep codebase understanding using Capsule context, progressive-reader, and specialist agents instead of overwhelming main context. Triggers on: don't have context, understand codebase, learn about, need background. Implements progressive context building.

arpitnath/claude-capsule-kit · 47 tokens

code-review

Pre-commit code review using code-reviewer agent for bug detection, security analysis, and quality assurance. Manual invocation only. Use before git commits to catch issues early. Blocks commits on REQUESTCHANGES verdict.

arpitnath/claude-capsule-kit · 45 tokens

debug

Systematic debugging using error-detective and debugger agents instead of manual investigation. Triggers automatically on: error, bug, broken, failing, exception, stack trace, test failure. Orchestrates RCA-first approach with parallel agent investigation.

arpitnath/claude-capsule-kit · 50 tokens

task-router

Decision matrix for choosing optimal approach to any task. Helps Claude decide when to delegate to sub-agents vs. working directly. Use when starting a new task or unsure of best approach.

arpitnath/claude-capsule-kit · 43 tokens

workflow

Systematic task orchestration for complex multi-step tasks. Triggers automatically when detecting: complex task, multi-step work, coordinate, orchestrate, break down. Guides through Understand → Strategy → Plan → Execute → Verify phases for comprehensive systematic approach.

arpitnath/claude-capsule-kit · 51 tokens