git-worktree-workflow

git-worktree-workflow is a skill for Claude Code, Codex from GabsFranke/claude-code-github-agent. It costs 82 tokens per session (2,192 once invoked), scanned A, original, MIT.

A guide to working safely and consistently in Git worktrees, which are separate working folders linked to one Git repository.

In plain words
What is it for?
Use it when starting work in a new worktree, editing files, running quality checks, committing or pushing changes, or using GitHub tools.
Why use it?
It helps agents handle files, commits, pushes, checks, and GitHub work correctly in a worktree-based setup.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions subagents.

Good fit Use it when starting work in a new worktree, editing files, running quality checks, committing or pushing changes, or using GitHub tools.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gabsfranke/claude-code-github-agent/git-worktree-workflow
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 GabsFranke/claude-code-github-agent --skill git-worktree-workflow
Clone the repo
git clone --depth 1 https://github.com/GabsFranke/claude-code-github-agent

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/gabsfranke/claude-code-github-agent/git-worktree-workflow/github.svg)](https://agentmods.dev/skills/gabsfranke/claude-code-github-agent/git-worktree-workflow)
Your own site
<a href="https://agentmods.dev/skills/gabsfranke/claude-code-github-agent/git-worktree-workflow"><img src="https://agentmods.dev/badge/skills/gabsfranke/claude-code-github-agent/git-worktree-workflow/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for git-worktree-workflow

Your own site · 80×15
<a href="https://agentmods.dev/skills/gabsfranke/claude-code-github-agent/git-worktree-workflow"><img src="https://agentmods.dev/badge/skills/gabsfranke/claude-code-github-agent/git-worktree-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,192 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.00082 $0.02192
Opus 5.5 $0.00033 $0.00877
Sonnet 5.5 $0.00016 $0.00438
Haiku 4.5 $0.00008 $0.00219

Measured 1mo ago against content hash ea4caf42333b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-worktree-workflow 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 1mo 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.

skills/git-worktree-workflow/SKILL.md · 353 lines

How it starts

The opening of the file, as written. The whole thing — 353 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Git Worktree Workflow Skill

This skill provides essential knowledge for agents working in isolated git worktrees. Use this to understand your workspace and how to work with files and git.

Your Workspace Environment

CRITICAL: You Are Already in a Git Worktree

DO NOT clone the repository! You are already working in an isolated git worktree.

  • Your current directory IS the repository
  • All files are already available locally
  • Git credentials are pre-configured
  • The repository is ready for you to work

What is a Git Worktree?

A worktree is an isolated working directory linked to a shared git repository. Multiple worktrees can exist simultaneously without interfering with each other.

Key characteristics:

  • Isolated file system (your changes don't affect other jobs)
  • Shared git history (commits are visible across worktrees)
  • Pre-configured credentials (git push works automatically)

Check Your Current State

# Check if you're on a branch or in detached HEAD
git status

# If on a branch, see which one
git branch --show-current

# See recent commits
git log -1 --oneline

File Operations

Reading and Analyzing Files

Use these tools to explore the codebase:

  • Read - Read file contents
  • List - List directory contents
  • Search - Search for files by name
  • Grep - Search for text patterns in files
  • Bash - Run shell commands for complex operations
# Find all Python test files
find tests/ -name "test_*.py"

# Search for specific error patterns
grep -r "import requests" src/

# Check current directory
pwd
ls -la

Modifying Files

Use these tools to implement fixes:

  • Write - Create new files or overwrite existing ones
  • Edit - Make targeted changes to existing files
  • Bash - Run commands that modify files (formatters, etc.)
# Run auto-formatters (use virtual environment)
.venv/bin/black src/
.venv/bin/isort src/
.venv/bin/ruff check --fix .

# Run tests locally (use virtual environment)
.venv/bin/python -m pytest tests/
npm test

Read the full file on GitHub · 353 lines

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. 1mo ago First seen · 353 lines · 82 tokens per session scan A ea4caf42333b

Subscribe to this mod's changes

git-worktree-workflow is a skill published in the GitHub repository GabsFranke/claude-code-github-agent (5 stars, last pushed 26d ago), licensed MIT. It adds 82 tokens to every session and 2,192 once invoked, about $0.0003 per session on Opus 5.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-31.