Agent skill

Git Worktree Setup

by k8zdev in k8zdev/k8z

Automate git worktree creation and copy private files (not tracked in git) to new workdirs.

No licenceAuto-check passedDevelopment

Install Git Worktree Setup

skills CLI
$ npx skills add k8zdev/k8z --skill git-worktree-setup -a claude-code

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

GitHub CLI
$ gh skill install k8zdev/k8z git-worktree-setup --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/k8zdev/k8z.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/git-worktree-setup .claude/skills/git-worktree-setup && 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
git-worktree-setup
GitHub stars
155
Token cost
~930 tokens
SKILL.md length
350 words
Files
3 (incl. scripts, references)
Skills in repo
1
Repo updated
First seen
Licence
None found

At a glance

Automate git worktree creation and copy private files (not tracked in git) to new workdirs.

  • Works in 2 steps: Creates the worktree in worktree/… → Copies all files listed in…
  • Creating a new git worktree for this Flutter project that requires untracked private files like secrets.dart
  • SKILL.md covers Overview, Quick Start, Managing Private Files and Worktree Management, plus 3 more sections
  • Runs Shell scripts from its folder; calls git

What it does

Git Worktree Setup is an agent skill from k8zdev/k8z. Automate git worktree creation and copy private files (not tracked in git) to new workdirs. Use when creating a new git worktree for this Flutter project that requires untracked private files like secrets.dart, Firebase configs, etc.

Its SKILL.md is about 930 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including scripts and reference files (for example `references/manifest.md` and `scripts/setup_worktree.sh`).

It sits in Development, covering Git worktrees. It works with Git, Firebase, Kubernetes and Flutter. The repository describes itself as: A lightweight, modern mobile and desktop application for manage kubernetes. Easily for use fast, secure.

When your agent uses it

  • Creating a new git worktree for this Flutter project that requires untracked private files like secrets.dart
  • Firebase configs

Example prompts

  • “/git-worktree-setup”

Requirements

  • A Bash shell

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Creates the worktree in worktree/ directory (if it doesn't exist)
  2. Copies all files listed in references/manifest.md from the main repo (always runs)

What it can do on your machine

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

    Ships 1 file in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • git

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

  • Network

    No URLs in SKILL.md. Its commands use git, 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

Git Worktree Setup loads about 930 tokens when it runs, and up to ~1.1k if it reads all its reference files. Until then it costs about 63 tokens; SKILL.md has 350 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
~930
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.1k

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); the scripts in this folder are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 350 words (~930 tokens).

“Automates the creation of git worktrees and copies untracked private files to the new work directory. This skill handles the setup process for worktrees that require development-only files not committed to git (e.g., API keys, Firebase configs).”

— opening of SKILL.md by k8zdev
name
git-worktree-setup

Read the full SKILL.md on GitHub

Files

SKILL.md and 2 other files (scripts, references) in .claude/skills/git-worktree-setup of k8zdev/k8z.

  • SKILL.md
  • references/manifest.md
  • scripts/setup_worktree.sh

Open the folder on GitHubat commit 4764956

Compare with similar skills

Git Worktree Setup 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.

Git Worktree Setup compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Git Worktree Setup this skillk8zdev/k8z155—~930Automated safety check: PassNone
Git Worktree Precommit Hook Flutter Failuredivinevideo/divine-mobile265—~1kAutomated safety check: PassMPL-2.0
Mori Agent Bridgevaayne/mori303—~1.7kAutomated safety check: PassMIT
Releasevaayne/mori303—~1.2kAutomated safety check: PassMIT
Commitmanhpham90vn/Deskhub133—~978Automated safety check: PassMIT
Grix Code Reviewaskie/grix153—~799Automated safety check: PassCustom licence

Similar skills

  • Fix git pre-commit hook failures in Flutter projects when using git worktrees.

    265 GitHub stars~1k tokensUpdated today
    DevelopmentAuto-check passed
  • Use Mori CLI to enable agent-to-agent communication and coordination across Mori-managed panes.

    303 GitHub stars~1.7k tokensUpdated 2 mo ago
    DevelopmentAuto-check passed
  • Release

    vaayne/mori

    Release workflow for Mori macOS workspace terminal and MoriRemote iOS app.

    303 GitHub stars~1.2k tokensUpdated 2 mo ago
    MobileAuto-check passed
  • Commit

    manhpham90vn/Deskhub

    Write a Deskhub commit message. An agent skill from manhpham90vn/Deskhub.

    133 GitHub stars~978 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Audit Grix diffs and pull requests for correctness, regressions, security, lifecycle safety, and cross-component contract consistency.

    153 GitHub stars~799 tokensUpdated 6 days ago
    DevelopmentAuto-check passed
  • Changelog Generator

    Eslzzyl/Pixiv-SwiftUI

    Generate user-facing changelogs from git history between two versions.

    111 GitHub stars~940 tokensUpdated today
    DevelopmentAuto-check passed

Questions about Git Worktree Setup

What does Git Worktree Setup do?

Automate git worktree creation and copy private files (not tracked in git) to new workdirs. Git Worktree Setup is an agent skill from k8zdev/k8z. Automate git worktree creation and copy private files (not tracked in git) to new workdirs.

When should I use Git Worktree Setup?

Git Worktree Setup fits situations like: creating a new git worktree for this Flutter project that requires untracked private files like secrets.dart; firebase configs.

How do I install Git Worktree Setup in Claude Code?

Run `npx skills add k8zdev/k8z --skill git-worktree-setup -a claude-code`. Or copy the skill folder (.claude/skills/git-worktree-setup in k8zdev/k8z) into .claude/skills/git-worktree-setup in your project. Claude Code loads it when a task matches its description.

How do I install Git Worktree Setup in Codex?

Run `npx skills add k8zdev/k8z --skill git-worktree-setup -a codex`. Or copy the skill folder (.claude/skills/git-worktree-setup in k8zdev/k8z) into .agents/skills/git-worktree-setup in your project. Codex loads it when a task matches its description.

Can I use Git Worktree Setup 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 k8zdev/k8z --skill git-worktree-setup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/git-worktree-setup, .gemini/skills/git-worktree-setup, .github/skills/git-worktree-setup and .opencode/skills/git-worktree-setup in your project.

What does Git Worktree Setup need to run?

Going by SKILL.md and its folder, Git Worktree Setup needs a shell for the scripts in its folder and the command-line tools its instructions call (git). Our summary lists: A Bash shell.

Does Git Worktree Setup 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 Git Worktree Setup 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Git Worktree Setup use?

No licence was found for Git Worktree Setup or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Git Worktree Setup use?

About 930 tokens (SKILL.md is roughly 3.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 206 tokens, read only when the agent opens those files.

What are the alternatives to Git Worktree Setup?

Skills that share tags, products or a category with Git Worktree Setup: Git Worktree Precommit Hook Flutter Failure (divinevideo/divine-mobile, 265 stars), Mori Agent Bridge (vaayne/mori, 303 stars), Release (vaayne/mori, 303 stars) and Commit (manhpham90vn/Deskhub, 133 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Git Worktree Setup?

k8zdev (a GitHub organization) maintains it in k8zdev/k8z, which has 155 GitHub stars. The repository was last updated on July 3, 2026.

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