git-worktree

git-worktree is a skill for Claude Code, Codex from J-Pster/Psters_AI_Workflow. It costs 28 tokens per session (269 once invoked), scanned A, original, MIT.

A Git feature for creating separate working folders from the same repository, each tied to its own branch. This lets different development tasks proceed in isolation without switching the main folder's branch.

In plain words
What is it for?
Use it to create, list, and remove isolated folders for parallel branch development, then follow a closing process when the work is complete.
Why use it?
Parallel work can cause branch switches and file changes to interfere with one another. Separate worktrees keep those tasks apart.

Skill for Claude CodeCodex

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/j-pster/psters_ai_workflow/git-worktree
Any agent
npx skills add J-Pster/Psters_AI_Workflow --skill git-worktree
Clone the repo
git clone --depth 1 https://github.com/J-Pster/Psters_AI_Workflow

Made for: Claude Code, Codex.

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 git-worktree

README.md
[![agentmods](https://agentmods.dev/badge/skills/j-pster/psters_ai_workflow/git-worktree.svg)](https://agentmods.dev/skills/j-pster/psters_ai_workflow/git-worktree)
Your own site
<a href="https://agentmods.dev/skills/j-pster/psters_ai_workflow/git-worktree"><img src="https://agentmods.dev/badge/skills/j-pster/psters_ai_workflow/git-worktree.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 269 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 $0.00028 $0.00269
Opus 5 $0.00014 $0.00134
Sonnet 5 $0.00006 $0.00054
Haiku 4.5 $0.00003 $0.00027

Measured 5d ago against content hash acbff2fa8308, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

git-worktree 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 5d 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.

plugins/psters-ai-workflow/skills/git-worktree/SKILL.md · 29 lines

What it actually says

Git Worktree

Create and use Git worktrees so multiple branches can be worked on in separate directories.

Commands (run from repo root):

  • List: git worktree list
  • Add: git worktree add <path> <branch> (e.g. git worktree add ../project-feat ../feature-branch)
  • Remove: git worktree remove <path> (after switching away and committing or discarding)

Use case: Run a separate agent or human in another branch in a different folder without touching the current branch. Each worktree has its own working directory but shares the same .git history.

Note: Repo root is the workspace root; backend/frontend/lambdas may be sibling folders or monorepo structure. Create worktrees from the repo that contains the branch you need.

Branch/worktree closure discipline

When implementation in a worktree is complete, use finishing-a-development-branch to close with a consistent decision flow:

  1. Merge locally
  2. Push and create PR
  3. Keep as-is
  4. Discard

This avoids dangling worktrees and branch confusion.

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. 5d ago First seen · 29 lines · 28 tokens per session scan A acbff2fa8308

Subscribe to this mod's changes

git-worktree is a skill published in the GitHub repository J-Pster/Psters_AI_Workflow (290 stars, last pushed 5mo ago), licensed MIT. It adds 28 tokens to every session and 269 once invoked, about $0.0001 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

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

development

开发语言能力索引。Python、Go、Rust、TypeScript、Java、C++、Shell。当用户提到编程、开发、代码、语言时路由到此。.

fengshao1227/ccg-workflow · 41 tokens

post-build-flow

Handles workflow verification and setup after build-workflow succeeds, or when the message contains workflow-verification-follow-up or workflow-setup-required. Load after direct builds, when verificationReadiness requires action, or on orchestrator verify/setup follow-up turns.

n8n-io/n8n · 53 tokens

n8n:human-like-code-review

Reviews a GitHub pull request like a thoughtful human reviewer and writes the feedback to a markdown file. Prioritizes context, architecture fit, solution complexity, bugs, security edge cases, and missing tests. Use when given a PR URL to review, or when the user says /human-like-code-review.

n8n-io/n8n · 70 tokens

n8n:create-pr

Creates GitHub pull requests with properly formatted titles that pass the check-pr-title CI validation. Use when creating PRs, submitting changes for review, or when the user says /pr or asks to create a pull request.

n8n-io/n8n · 50 tokens

n8n:reproduce-bug

Reproduce a bug from a Linear ticket with a failing test. Expects the full ticket context (title, description, comments) to be provided as input.

n8n-io/n8n · 41 tokens