Agent skill

Using Git Worktrees

by 6BNBN in 6BNBN/FlowPilot

A skill your agent uses when starting feature work that should be isolated from the current checkout, especially in git repositories where a separate worktree would reduce risk.

MITAuto-check passedDevelopment

Install Using Git Worktrees

skills CLI
$ npx skills add 6BNBN/FlowPilot --skill using-git-worktrees -a claude-code

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

GitHub CLI
$ gh skill install 6BNBN/FlowPilot using-git-worktrees --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/6BNBN/FlowPilot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/'兼容codex@cursor一键安装技能/cursor一键安装技能/skills/using-git-worktrees' .claude/skills/using-git-worktrees && 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
GitHub stars
134
Token cost
~205 tokens
SKILL.md length
86 words
Files
1
Skills in repo
21
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when starting feature work that should be isolated from the current checkout, especially in git repositories where a separate worktree would reduce risk.

  • Starting feature work that should be isolated from the current checkout
  • SKILL.md covers Goal, When To Use and Rules
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Especially in git repositories where a separate worktree would reduce risk

What it does

Using Git Worktrees is an agent skill from 6BNBN/FlowPilot. Use when starting feature work that should be isolated from the current checkout, especially in git repositories where a separate worktree would reduce risk.

Its SKILL.md is about 210 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 Development, covering Git worktrees. It works with Git. The repository describes itself as: 一句需求,自动拆任务、并行多代理写码、断点恢复、验证收尾。FlowPilot 让 Claude Code / Codex / Cursor / snow-cli 进入真正的自动开发流程。 The licence is MIT.

When your agent uses it

  • Starting feature work that should be isolated from the current checkout
  • Especially in git repositories where a separate worktree would reduce risk

Example prompts

  • “/using-git-worktrees”

What it can do on your machine

Read from SKILL.md and the folder at commit 57b1d49. 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

    No scripts in the folder and no shell commands in SKILL.md.

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

  • Network

    No URLs in SKILL.md.

    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 loads about 205 tokens when it runs. Until then it costs about 44 tokens; SKILL.md has 86 words of instructions outside code blocks.

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

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 6BNBN/FlowPilot at commit 57b1d49, republished under its MIT licence (© 6BNBN). 86 words, ~205 tokens.

Download SKILL.mdSave it as .claude/skills/using-git-worktrees/SKILL.md (or your agent's skills folder).
name
using-git-worktrees
description
Use when starting feature work that should be isolated from the current checkout, especially in git repositories where a separate worktree would reduce risk.

Using Git Worktrees

Goal

Create an isolated workspace for risky or long-running changes without disturbing the current checkout.

When To Use

  • large feature work
  • risky refactors
  • parallel efforts on different branches
  • keeping the current workspace stable while another branch is explored

Rules

  • Only use this in git repositories.
  • Confirm the target location before creating a new worktree if project conventions are unclear.
  • Make sure the worktree path will not be accidentally committed.
  • After creating the worktree, run the project's normal setup before making claims about readiness.

© 6BNBN, MIT. 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 兼容codex@cursor一键安装技能/cursor一键安装技能/skills/using-git-worktrees of 6BNBN/FlowPilot.

Open the folder on GitHubat commit 57b1d49

Compare with similar skills

Using Git Worktrees 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 compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Using Git Worktrees this skill6BNBN/FlowPilot134—~205Automated safety check: PassMIT
Build Px4 macOSPX4/PX4-Autopilot13k—~1.1kAutomated safety check: PassBSD-3-Clause
WorktreeAgentsMesh/AgentsMesh2.4k—~553Automated safety check: NotesCustom licence
Git Worktree IsolationjnMetaCode/superpowers-zh8.3k1 repos~982Automated safety check: PassMIT
Cursor Composer Task DelegateChachamaru127/claude-code-harness3.2k—~4.4kAutomated safety check: NotesMIT
Git Worktree Setupk8zdev/k8z155—~930Automated safety check: PassNone

Similar skills

  • Build Px4 macOS

    PX4/PX4-Autopilot

    Build PX4 board firmware on macOS in the px4-dev Docker container, including git worktrees, and stage commit-labeled artifacts without flashing hardware.

    13k GitHub stars~1.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Worktree

    AgentsMesh/AgentsMesh

    Creates or reuses an isolated AgentsMesh Git worktree from a verified base branch, preserves existing changes, and optionally starts the worktree-scoped development environment.

    2.4k GitHub stars~553 tokensUpdated 15 days ago
    DevelopmentAuto-check: notes
  • Git Worktree Isolation

    jnMetaCode/superpowers-zh

    Sets up an isolated workspace before feature work or plan execution, preferring native worktree tools and falling back to git worktree, with instructions in Chinese.

    8.3k GitHub starsUsed in 1 repo~982 tokens
    DevelopmentAuto-check passed
  • Cursor Composer Task Delegate

    Chachamaru127/claude-code-harness

    Hands one implementation task to Cursor Composer in an isolated git worktree, then reviews its diff and cherry-picks the result into the main branch.

    3.2k GitHub stars~4.4k tokensUpdated 3 days ago
    DevelopmentAuto-check: notes
  • Automate git worktree creation and copy private files (not tracked in git) to new workdirs.

    155 GitHub stars~930 tokensUpdated 3 mo ago
    DevelopmentAuto-check passed
  • New Feature

    michaelshimeles/skills

    Start a new task in an isolated Git worktree branched from origin/main so multiple agents can work on the same repo in parallel without conflicts.

    1.3k GitHub starsUsed in 1 repo~699 tokens
    DevelopmentAuto-check passed

More from 6BNBN/FlowPilot

All 21 skills in this repo
  • Playwright

    6BNBN/FlowPilot

    A skill your agent uses when the task requires automating a real browser from the terminal in Cursor, including navigation, form filling, snapshots, screenshots, data extraction, and UI-flow…

    134 GitHub stars~1k tokensUpdated 6 mo ago
    Auto-check passed
  • Code Review

    6BNBN/FlowPilot

    A skill your agent uses when the user asks to review a pull request or diff with a structured Codex CLI workflow using parallel review passes and filtered actionable findings.

    134 GitHub stars~624 tokensUpdated 6 mo ago
    Auto-check passed
  • A skill your agent uses when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies.

    134 GitHub starsUsed in 1 repo~301 tokens
    Auto-check passed
  • Feature Dev

    6BNBN/FlowPilot

    A skill your agent uses when the user asks to build a new feature and wants a structured Codex CLI workflow with discovery, clarifying questions, architecture comparison, implementation, and review.

    134 GitHub stars~823 tokensUpdated 6 mo ago
    Auto-check passed
  • Writing Skills

    6BNBN/FlowPilot

    A skill your agent uses when creating, editing, or validating Cursor custom skills, especially when deciding where they should live, how they should be named, and how to describe when they apply.

    134 GitHub stars~322 tokensUpdated 6 mo ago
    Auto-check passed
  • Code Review

    6BNBN/FlowPilot

    A skill your agent uses when the user asks for a code review of local files, a workspace, a branch diff, or a pull request.

    134 GitHub stars~465 tokensUpdated 6 mo ago
    Auto-check passed

Works with

Questions about Using Git Worktrees

What does Using Git Worktrees do?

A skill your agent uses when starting feature work that should be isolated from the current checkout, especially in git repositories where a separate worktree would reduce risk. Using Git Worktrees is an agent skill from 6BNBN/FlowPilot. Use when starting feature work that should be isolated from the current checkout, especially in git repositories where a separate worktree would reduce risk.

When should I use Using Git Worktrees?

Using Git Worktrees fits situations like: starting feature work that should be isolated from the current checkout; especially in git repositories where a separate worktree would reduce risk.

How do I install Using Git Worktrees in Claude Code?

Run `npx skills add 6BNBN/FlowPilot --skill using-git-worktrees -a claude-code`. Or copy the skill folder (兼容codex@cursor一键安装技能/cursor一键安装技能/skills/using-git-worktrees in 6BNBN/FlowPilot) into .claude/skills/using-git-worktrees in your project. Claude Code loads it when a task matches its description.

How do I install Using Git Worktrees in Codex?

Run `npx skills add 6BNBN/FlowPilot --skill using-git-worktrees -a codex`. Or copy the skill folder (兼容codex@cursor一键安装技能/cursor一键安装技能/skills/using-git-worktrees in 6BNBN/FlowPilot) into .agents/skills/using-git-worktrees in your project. Codex loads it when a task matches its description.

Can I use Using Git Worktrees 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 6BNBN/FlowPilot --skill using-git-worktrees -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, .gemini/skills/using-git-worktrees, .github/skills/using-git-worktrees and .opencode/skills/using-git-worktrees in your project.

What does Using Git Worktrees need to run?

SKILL.md names no scripts, command-line tools or credentials: Using Git Worktrees is instructions for the agent only.

Does Using Git Worktrees access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Using Git Worktrees 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 use?

Using Git Worktrees is published under the MIT 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 use?

About 205 tokens (SKILL.md is roughly 820 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?

Skills that share tags, products or a category with Using Git Worktrees: Build Px4 macOS (PX4/PX4-Autopilot, 13k stars), Worktree (AgentsMesh/AgentsMesh, 2.4k stars), Git Worktree Isolation (jnMetaCode/superpowers-zh, 8.3k stars) and Cursor Composer Task Delegate (Chachamaru127/claude-code-harness, 3.2k 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?

6BNBN (a GitHub user) maintains it in 6BNBN/FlowPilot, which has 134 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on March 13, 2026.

Source: 6BNBN/FlowPilot on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.