Agent skill

Worktrees

by GetStream in GetStream/stream-chat-react

Creates and manages git worktrees for isolated plan execution.

Custom licenceAuto-check passedDevelopment

Install Worktrees

skills CLI
$ npx skills add GetStream/stream-chat-react --skill worktrees -a claude-code

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

GitHub CLI
$ gh skill install GetStream/stream-chat-react 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/GetStream/stream-chat-react.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/worktrees .claude/skills/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
worktrees
GitHub stars
845
Token cost
~794 tokens
SKILL.md length
271 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
Custom licence

At a glance

Creates and manages git worktrees for isolated plan execution.

  • Setting up a worktree for a plan
  • SKILL.md covers Create Worktree for a Plan, Sync with Base Branch (Rebase,…, Preview Branch (from… and Lifecycle, plus 1 more section
  • Calls git and yarn
  • Syncing with base branch

What it does

Worktrees is an agent skill from GetStream/stream-chat-react. Creates and manages git worktrees for isolated plan execution. Use when setting up a worktree for a plan, syncing with base branch, rebasing, or cleaning up worktrees. Never modify the main repo for plan work—all work happens in the worktree.

Its SKILL.md is about 790 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 and React. The repository describes itself as: React Chat SDK ➜ Stream Chat 💬.

When your agent uses it

  • Setting up a worktree for a plan
  • Syncing with base branch
  • Cleaning up worktrees

Example prompts

  • “Use the worktrees skill to create and manages git worktrees for isolated plan execution”
  • “/worktrees”

What it can do on your machine

Read from SKILL.md and the folder at commit 73c613f. 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
    • yarn

    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 yarn, 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

Worktrees loads about 794 tokens when it runs. Until then it costs about 63 tokens; SKILL.md has 271 words of instructions outside code blocks.

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

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

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 271 words (~794 tokens).

“Rule: All plan work happens in a dedicated worktree. Never do plan tasks in the main repo checkout.”

— opening of SKILL.md by GetStream, Custom licence
name
worktrees

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .cursor/skills/worktrees of GetStream/stream-chat-react.

Open the folder on GitHubat commit 73c613f

Compare with similar skills

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.

Worktrees compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Worktrees this skillGetStream/stream-chat-react845—~794Automated safety check: PassCustom licence
Finishing a Development Branchobra/superpowers296k5 repos~1.9kAutomated safety check: PassMIT
Finishing A Development Branchfarm-fe/farm5.6k33 repos~1.8kAutomated safety check: PassMIT
Git Worktree Cleanuplobehub/lobehub83k—~2.8kAutomated safety check: PassCustom licence
Pre-Release PR Triagejamiepine/voicebox57k—~3.1kAutomated safety check: PassMIT
Ccmanager Configkbwo/ccmanager1.3k—~1.5kAutomated safety check: PassMIT

Similar skills

  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    296k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • A skill your agent uses when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for…

    5.6k GitHub starsUsed in 33 repos~1.8k tokens
    DevelopmentAuto-check passed
  • Git Worktree Cleanup

    lobehub/lobehub

    Audits stale Git worktrees and branches with a bundled script, classifies each one, and deletes only after you approve the exact candidates.

    83k GitHub stars~2.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Pre-Release PR Triage

    jamiepine/voicebox

    Sorts a backlog of open pull requests into must-merge, candidate, superseded and deferred, writes a triage doc and works the merge loop before a release.

    57k GitHub stars~3.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Ccmanager Config

    kbwo/ccmanager

    Set up, review, or repair a CCManager config — .ccmanager.json at a git repository root, or the global ~/.config/ccmanager/config.json.

    1.3k GitHub stars~1.5k tokensUpdated 10 days ago
    DevelopmentAuto-check passed
  • Openseo Release Notes

    VladSez/easy-invoice-pdf

    Cut an OpenSEO release — bump the version, draft user-facing release notes from commits since the last tag, run a review + subagent-verification pass, and open a "release: vX.X.X" PR.

    1.1k GitHub starsUsed in 2 repos~1.8k tokens
    DevelopmentAuto-check passed

More from GetStream/stream-chat-react

  • Make Plans

    GetStream/stream-chat-react

    Structures plan.md files for parallel, non-overlapping agent work.

    845 GitHub stars~764 tokensUpdated 2 days ago
    Auto-check passed
  • Accessibility

    GetStream/stream-chat-react

    Maintain WCAG-focused accessibility in stream-chat-react. An agent skill from GetStream/stream-chat-react.

    845 GitHub stars~5k tokensUpdated 2 days ago
    Auto-check passed
  • Dev Patterns

    GetStream/stream-chat-react

    Styling and structure conventions for stream-chat-react. An agent skill from GetStream/stream-chat-react.

    845 GitHub stars~748 tokensUpdated 2 days ago
    Auto-check passed
  • Ralph Protocol

    GetStream/stream-chat-react

    Collaboration protocol for Ralph loop (Plan → Act → Reflect → Refine).

    845 GitHub stars~949 tokensUpdated 2 days ago
    Auto-check passed

Works with

Categories

Questions about Worktrees

What does Worktrees do?

Creates and manages git worktrees for isolated plan execution. Worktrees is an agent skill from GetStream/stream-chat-react. Creates and manages git worktrees for isolated plan execution.

When should I use Worktrees?

Worktrees fits situations like: setting up a worktree for a plan; syncing with base branch; cleaning up worktrees.

How do I install Worktrees in Claude Code?

Run `npx skills add GetStream/stream-chat-react --skill worktrees -a claude-code`. Or copy the skill folder (.cursor/skills/worktrees in GetStream/stream-chat-react) into .claude/skills/worktrees in your project. Claude Code loads it when a task matches its description.

How do I install Worktrees in Codex?

Run `npx skills add GetStream/stream-chat-react --skill worktrees -a codex`. Or copy the skill folder (.cursor/skills/worktrees in GetStream/stream-chat-react) into .agents/skills/worktrees in your project. Codex loads it when a task matches its description.

Can I use 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 GetStream/stream-chat-react --skill 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/worktrees, .gemini/skills/worktrees, .github/skills/worktrees and .opencode/skills/worktrees in your project.

What does Worktrees need to run?

Going by SKILL.md and its folder, Worktrees needs the command-line tools its instructions call (git and yarn).

Does Worktrees access the network?

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

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

Worktrees has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Worktrees use?

About 794 tokens (SKILL.md is roughly 3.2k 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 Worktrees?

Skills that share tags, products or a category with Worktrees: Finishing a Development Branch (obra/superpowers, 296k stars), Finishing A Development Branch (farm-fe/farm, 5.6k stars), Git Worktree Cleanup (lobehub/lobehub, 83k stars) and Pre-Release PR Triage (jamiepine/voicebox, 57k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Worktrees?

GetStream (a GitHub organization) maintains it in GetStream/stream-chat-react, which has 845 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 5, 2026.

Source: GetStream/stream-chat-react on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.