Agent skill

Using Git Worktrees Lite

by hashgraph-online in hashgraph-online/awesome-codex-plugins

A skill your agent uses when creating an isolated git worktree from the current branch for parallel development and only a build/compile check is required (no tests)

Apache-2.0Auto-check passedAgent Workflows

Install Using Git Worktrees Lite

skills CLI
$ npx skills add hashgraph-online/awesome-codex-plugins --skill using-git-worktrees-lite -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install hashgraph-online/awesome-codex-plugins using-git-worktrees-lite --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/hashgraph-online/awesome-codex-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/yyykf/spellbook-skills/skills/using-git-worktrees-lite .claude/skills/using-git-worktrees-lite && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
using-git-worktrees-lite
GitHub stars
1.2k
Token cost
~1.4k tokens
SKILL.md length
543 words
Files
1
Skills in repo
736
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses when creating an isolated git worktree from the current branch for parallel development and only a build/compile check is required (no tests)

  • Works in 9 steps: Normalize to Repo Root (Avoid CWD… → Capture Base Branch (Merge Target) → Select Worktree Directory → …
  • Creating an isolated git worktree from the current branch for parallel development and only a build/compile check is required (no tests)
  • SKILL.md covers Overview, The Process, Quick Reference and Common Mistakes, plus 3 more sections
  • Calls git and npm

What it does

Using Git Worktrees Lite is an agent skill from hashgraph-online/awesome-codex-plugins. Use when creating an isolated git worktree from the current branch for parallel development and only a build/compile check is required (no tests)

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Git worktrees. It works with Git. The repository describes itself as: A curated list of awesome OpenAI Codex / ChatGPT plugins, skills, and resources. The 1 Codex Marketplace. See live plugins at: https://hol.org/plugins/best-codex-plugins. The licence is Apache-2.0.

When your agent uses it

  • Creating an isolated git worktree from the current branch for parallel development and only a build/compile check is required (no tests)
  • Tasks that involve Git worktrees

Example prompts

  • “/using-git-worktrees-lite”

Requirements

  • Python 3
  • Node.js

Workflow steps

9 steps, taken from the step headings in SKILL.md.

  1. Normalize to Repo Root (Avoid CWD Pitfalls)
  2. Capture Base Branch (Merge Target)
  3. Select Worktree Directory
  4. Verify Directory is Ignored (Project-Local Only)
  5. Create Worktree From Base Branch
  6. Run Project Setup (Auto-detect)
  7. Build/Compile Check (No Tests)
  8. Report Result
  9. Return to Repo Root (Important)

What it can do on your machine

Read from SKILL.md and the folder at commit 16b4156. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git and npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Using Git Worktrees Lite loads about 1.4k tokens when it runs. Until then it costs about 43 tokens; SKILL.md has 543 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~43
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from hashgraph-online/awesome-codex-plugins at commit 16b4156, republished under its Apache-2.0 licence (© hashgraph-online). 543 words, ~1,443 tokens.

Download SKILL.mdSave it as .claude/skills/using-git-worktrees-lite/SKILL.md (or your agent's skills folder).
name
using-git-worktrees-lite
description
Use when creating an isolated git worktree from the current branch for parallel development and only a build/compile check is required (no tests)

Using Git Worktrees Lite

Overview

Create an isolated worktree from the current branch with a build/compile check instead of running tests.

Core principle: Confirm base branch + safe worktree directory + compile-only verification.

Announce at start: "I'm using the using-git-worktrees-lite skill to set up an isolated workspace."

The Process

Step 0: Normalize to Repo Root (Avoid CWD Pitfalls)

Worktrees are very sensitive to your current working directory (CWD) when you use relative paths like .worktrees/....

Always capture the repo root and ensure you are operating from there before creating worktrees:

bash
repo_root=$(git rev-parse --show-toplevel)
cd "$repo_root"
Step 1: Capture Base Branch (Merge Target)
bash
base_branch=$(git branch --show-current)

Confirm with the user that this is the branch to merge back into. Do not assume main or master.

Step 2: Select Worktree Directory

Follow this priority order:

bash
ls -d .worktrees 2>/dev/null
ls -d worktrees 2>/dev/null

If neither exists, check AGENTS.md for a preferred location. If still unknown, ask the user.

Step 3: Verify Directory is Ignored (Project-Local Only)
bash
git check-ignore -q .worktrees 2>/dev/null || git check-ignore -q worktrees 2>/dev/null

If not ignored, add the directory to .gitignore and commit. If you cannot commit now, stop and ask.

Step 4: Create Worktree From Base Branch

Use a naming convention to preserve the base branch in the worktree branch name:

<base-branch>__wt__<worktree-branch>

Example:

feature/auth__wt__login
bash
# Example: git worktree add .worktrees/feature-auth__wt__login -b feature-auth__wt__login "$base_branch"
git worktree add "$path" -b "$branch_name" "$base_branch"
cd "$path"
Step 5: Run Project Setup (Auto-detect)
bash
# Node.js
if [ -f package.json ]; then npm install; fi

# Rust
if [ -f Cargo.toml ]; then cargo fetch; fi

# Python
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f pyproject.toml ]; then poetry install; fi

# Go
if [ -f go.mod ]; then go mod download; fi

# Java (Maven)
# No dependency install step needed here
Step 6: Build/Compile Check (No Tests)
  1. Check AGENTS.md for project build/compile commands. If present, follow it.
  2. Otherwise use default build/compile commands:
bash
# Node.js (requires build script)
if [ -f package.json ]; then npm run -s build; fi

# Rust
if [ -f Cargo.toml ]; then cargo build; fi

# Go
if [ -f go.mod ]; then go build ./...; fi

# Python
if [ -f pyproject.toml ] || [ -f requirements.txt ]; then python -m compileall .; fi

# Java (Maven)
if [ -f pom.xml ]; then mvn -q clean compile; fi

If no build command is available (e.g., no npm build script), ask the user for the correct command.

If the build fails, report the failure and ask whether to proceed or investigate.

Step 7: Report Result
Worktree ready at <path>
Base branch: <base-branch>
Build/compile: <result>
Step 8: Return to Repo Root (Important)

Unless the user explicitly asks you to stay in the worktree to debug, return to the repo root at the end.

This prevents follow-up commands from accidentally running in the last worktree (and prevents creating nested worktrees due to relative paths).

bash
cd "$repo_root"

Quick Reference

StepAction
Base branchUse current branch, confirm with user
DirectoryPrefer .worktrees/, then worktrees/, else ask
Safetygit check-ignore for project-local directories
BuildFollow AGENTS.md or defaults; no tests
CWDNormalize to repo root; return at end
MergeMerge from the base-branch worktree, not the worktree branch
Show full SKILL.md (194 more words)Show less

Common Mistakes

Assuming main/master as base branch

  • Problem: Merges into the wrong branch
  • Fix: Capture and confirm current branch as base

Skipping ignore verification

  • Problem: Worktree files show up in git status
  • Fix: git check-ignore before creating worktree

Running tests instead of compile-only

  • Problem: Violates the lite workflow
  • Fix: Only run build/compile checks

Skipping build because no obvious command

  • Problem: Misses required compilation verification
  • Fix: Ask for the project-specific build command

Merging from the worktree branch directory

  • Problem: Base branch is already checked out elsewhere; merge fails
  • Fix: Merge from the base-branch worktree directory

Staying in the last worktree directory

  • Problem: Follow-up tasks run in the wrong directory; relative worktree paths can create nested worktrees
  • Fix: Always cd "$repo_root" after setup/build unless debugging is needed

Rationalization Table

ExcuseReality
"I'll just merge this into main later"Base branch is the current branch; confirm it now
"Tests are easier than a build"Lite workflow requires build/compile only
"No build command, so I'll skip it"Ask for the correct build command

Red Flags

  • "I'll just merge this back to main"
  • "Tests are faster than figuring out the build"
  • "No need to confirm the base branch"

Example

bash
base_branch=$(git branch --show-current)
# Confirm base_branch with user
repo_root=$(git rev-parse --show-toplevel)
cd "$repo_root"
mkdir -p .worktrees
path=.worktrees/feature-x
branch_name=feature-x

git worktree add "$path" -b "$branch_name" "$base_branch"
cd "$path"

npm install
npm run -s build

cd "$repo_root"

© hashgraph-online, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/yyykf/spellbook-skills/skills/using-git-worktrees-lite of hashgraph-online/awesome-codex-plugins.

Open the folder on GitHubat commit 16b4156

Compare with similar skills

Using Git Worktrees Lite next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Using Git Worktrees Lite compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Using Git Worktrees Lite this skillhashgraph-online/awesome-codex-plugins1.2k—~1.4kAutomated safety check: PassApache-2.0
Using Git Worktreesfarm-fe/farm5.6k13 repos~2kAutomated safety check: PassMIT
Agtx Task Sweepfynnfluegge/agtx1.7k—~1.7kAutomated safety check: PassApache-2.0
PRP Workstream OrchestratorWirasm/prp2.3k—~3.5kAutomated safety check: PassMIT
Squad Agent Collaboration Patternsmicrosoft/waza1.4k4 repos~500Automated safety check: PassMIT
Vspawnvlinx-io/VelaTerm259—~2.5kAutomated safety check: PassMIT

Similar skills

  • A skill your agent uses when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git…

    5.6k GitHub starsUsed in 13 repos~2k tokens
    Agent WorkflowsAuto-check passed
  • Agtx Task Sweep

    fynnfluegge/agtx

    Breaks a conversation's results into feature-level tasks and pushes them to the agtx kanban board, where each task gets its own worktree and agent session.

    1.7k GitHub stars~1.7k tokensUpdated 5 days ago
    Agent WorkflowsAuto-check passed
  • Coordinates several PRP workstreams in isolated Git worktrees from one session, verifying proof, holding merge gates and sequencing the merges.

    2.3k GitHub stars~3.5k tokensUpdated 5 days ago
    Agent WorkflowsAuto-check passed
  • Official

    Shared collaboration rules for a team of squad agents covering worktree awareness, writing decisions to an inbox, cross-agent requests and reviewer lockout.

    1.4k GitHub starsUsed in 4 repos~500 tokens
    Agent WorkflowsAuto-check passed
  • Vspawn

    vlinx-io/VelaTerm

    Explicitly spawn a standalone child session under the current vlx-term session, passing the task in as its first message (mirrors spawntask).

    259 GitHub stars~2.5k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Guides decisions for agents working in an aweb team: when to check shared state, claim tasks, take locks, read team roles and instructions, and open separate worktrees.

    115 GitHub stars~4k tokensUpdated today
    Agent WorkflowsAuto-check passed

More from hashgraph-online/awesome-codex-plugins

All 736 skills in this repo
  • Anime Reaction Gif

    hashgraph-online/awesome-codex-plugins

    Create original anime-style reaction stickers as looping GIFs and MP4 previews, using generated character pose sheets and timed key poses.

    1.2k GitHub stars~922 tokensUpdated yesterday
    Auto-check passed
  • Calibredb

    hashgraph-online/awesome-codex-plugins

    Manage and query Calibre libraries with the calibredb CLI (local paths or Calibre Content server URLs).

    1.2k GitHub stars~1k tokensUpdated yesterday
    Auto-check passed
  • Rust API Test Harness

    hashgraph-online/awesome-codex-plugins

    A skill your agent uses when adding, changing, testing, or debugging Rust HTTP APIs and services, especially when Codex needs black-box integration tests, random-port app startup, real database test…

    1.2k GitHub stars~1.7k tokensUpdated yesterday
    Auto-check passed
  • Art

    hashgraph-online/awesome-codex-plugins

    Make a studio's game look like something at build time — a cover from a real frame of the game (free), painted covers, backdrops, textures and character plates from image models through the…

    1.2k GitHub stars~2.4k tokensUpdated yesterday
    Auto-check passed
  • Calle

    hashgraph-online/awesome-codex-plugins

    Use CALL-E from Codex through the calle CLI. An agent skill from hashgraph-online/awesome-codex-plugins.

    1.2k GitHub stars~2.9k tokensUpdated yesterday
    Auto-check passed
  • Game Balance Economy

    hashgraph-online/awesome-codex-plugins

    Balance game difficulty, resources, rewards, probability, progression, economies, and dominant strategies.

    1.2k GitHub stars~618 tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Using Git Worktrees Lite

What does Using Git Worktrees Lite do?

A skill your agent uses when creating an isolated git worktree from the current branch for parallel development and only a build/compile check is required (no tests). Using Git Worktrees Lite is an agent skill from hashgraph-online/awesome-codex-plugins.

When should I use Using Git Worktrees Lite?

Using Git Worktrees Lite fits situations like: creating an isolated git worktree from the current branch for parallel development and only a build/compile check is required (no tests); tasks that involve Git worktrees.

How do I install Using Git Worktrees Lite in Claude Code?

Run `npx skills add hashgraph-online/awesome-codex-plugins --skill using-git-worktrees-lite -a claude-code`. Or copy the skill folder (plugins/yyykf/spellbook-skills/skills/using-git-worktrees-lite in hashgraph-online/awesome-codex-plugins) into .claude/skills/using-git-worktrees-lite in your project. Claude Code loads it when a task matches its description.

How do I install Using Git Worktrees Lite in Codex?

Run `npx skills add hashgraph-online/awesome-codex-plugins --skill using-git-worktrees-lite -a codex`. Or copy the skill folder (plugins/yyykf/spellbook-skills/skills/using-git-worktrees-lite in hashgraph-online/awesome-codex-plugins) into .agents/skills/using-git-worktrees-lite in your project. Codex loads it when a task matches its description.

Can I use Using Git Worktrees Lite in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add hashgraph-online/awesome-codex-plugins --skill using-git-worktrees-lite -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/using-git-worktrees-lite, .gemini/skills/using-git-worktrees-lite, .github/skills/using-git-worktrees-lite and .opencode/skills/using-git-worktrees-lite in your project.

What does Using Git Worktrees Lite need to run?

Going by SKILL.md and its folder, Using Git Worktrees Lite needs the command-line tools its instructions call (git and npm). Our summary lists: Python 3; Node.js.

Does Using Git Worktrees Lite access the network?

SKILL.md contains no URLs. Its commands use git and npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Using Git Worktrees Lite safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Using Git Worktrees Lite use?

Using Git Worktrees Lite is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Using Git Worktrees Lite use?

About 1.4k tokens (SKILL.md is roughly 5.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Using Git Worktrees Lite?

Skills that share tags, products or a category with Using Git Worktrees Lite: Using Git Worktrees (farm-fe/farm, 5.6k stars), Agtx Task Sweep (fynnfluegge/agtx, 1.7k stars), PRP Workstream Orchestrator (Wirasm/prp, 2.3k stars) and Squad Agent Collaboration Patterns (microsoft/waza, 1.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Using Git Worktrees Lite?

hashgraph-online (a GitHub organization) maintains it in hashgraph-online/awesome-codex-plugins, which has 1,232 GitHub stars. The repository holds 736 skills in this directory. The repository was last updated on October 6, 2026.

Source: hashgraph-online/awesome-codex-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.