Agent skill

Using Git Worktrees

by julianromli in julianromli/opencode-template

A skill your agent uses when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory…

No licenceAuto-check passedAgent Workflows

Install Using Git Worktrees

skills CLI
$ npx skills add julianromli/opencode-template --skill using-git-worktrees -a claude-code

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

GitHub CLI
$ gh skill install julianromli/opencode-template 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/julianromli/opencode-template.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skill/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
144
Used in
27 other repos
Token cost
~1.4k tokens
SKILL.md length
402 words
Files
1
Skills in repo
16
Repo updated
First seen
Licence
None found

At a glance

A skill your agent uses when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory…

  • Works in 8 steps: Check Existing Directories → Check CLAUDE.md → Ask User → …
  • Starting feature work that needs isolation from current workspace
  • SKILL.md covers Overview, Directory Selection Process, Safety Verification and Creation Steps, plus 5 more sections
  • Calls git, npm and cargo

What it does

Using Git Worktrees is an agent skill from julianromli/opencode-template. Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification

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. The repository describes itself as: OpenCode CLI Template by @faizntfd.

When your agent uses it

  • Starting feature work that needs isolation from current workspace
  • Before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification

Example prompts

  • “/using-git-worktrees”

Requirements

  • Python 3
  • Node.js

Workflow steps

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

  1. Check Existing Directories
  2. Check CLAUDE.md
  3. Ask User
  4. Detect Project Name
  5. Create Worktree
  6. Run Project Setup
  7. Verify Clean Baseline
  8. Report Location

What it can do on your machine

Read from SKILL.md and the folder at commit 37ceab2. 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
    • cargo
    • pytest
    • go

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

Always · name and description, kept in context so the agent knows when to use it
~56
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

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

“Git worktrees create isolated workspaces sharing the same repository, allowing work on multiple branches simultaneously without switching.”

— opening of SKILL.md by julianromli
name
using-git-worktrees

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skill/using-git-worktrees of julianromli/opencode-template.

Open the folder on GitHubat commit 37ceab2

Used in 27 other repositories

We found 39 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 27 other GitHub owners. This page covers the copy in julianromli/opencode-template, which our catalogue first saw on October 7, 2026.

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 skilljulianromli/opencode-template14427 repos~1.4kAutomated safety check: PassNone
Orca CLIstablyai/orca87k2 repos~593Automated safety check: PassMIT
Using Git Worktreesfarm-fe/farm5.6k13 repos~2kAutomated safety check: PassMIT
Agent of Empires Session Manageragent-of-empires/agent-of-empires3.3k—~2.1kAutomated safety check: PassMIT
Agent Manager Fleet TUIYoanWai/agent-manager572—~1kAutomated safety check: PassApache-2.0
Agtx Task Sweepfynnfluegge/agtx1.7k—~1.7kAutomated safety check: PassApache-2.0

Similar skills

  • Orca CLI

    stablyai/orca

    Operate Orca-managed worktrees, folder contexts, terminals, repos, automations, artifacts, skill sharing, worktree comments, and Orca's embedded browser…

    87k GitHub starsUsed in 2 repos~593 tokens
    Agent WorkflowsAuto-check passed
  • 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
  • Agent of Empires Session Manager

    agent-of-empires/agent-of-empires

    Starts, monitors and organizes coding agent sessions that run in tmux through the aoe command, including groups, profiles and worktree-based parallel work.

    3.3k GitHub stars~2.1k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Agent Manager Fleet TUI

    YoanWai/agent-manager

    Runs several coding-agent CLIs as real tmux sessions in one terminal UI, color-coded by whether each is working, waiting, idle or blocked.

    572 GitHub stars~1k tokensUpdated today
    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

More from julianromli/opencode-template

All 16 skills in this repo
  • Ralph

    julianromli/opencode-template

    Autonomous agent loop for completing features. An agent skill from julianromli/opencode-template.

    144 GitHub starsUsed in 1 repo~1.1k tokens
    Auto-check passed
  • Rsc Data Optimizer

    julianromli/opencode-template

    Optimize Next.js App Router data fetching by converting slow client-side fetching to fast server-side fetching using React Server Components (RSC).

    144 GitHub starsUsed in 1 repo~805 tokens
    Auto-check passed
  • Shadcn Management

    julianromli/opencode-template

    Manage shadcn/ui components using MCP tools. An agent skill from julianromli/opencode-template.

    144 GitHub starsUsed in 1 repo~733 tokens
    Auto-check passed
  • Frontend UI Animator

    julianromli/opencode-template

    Analyze and implement purposeful UI animations for Next.js + Tailwind + React projects.

    144 GitHub stars~1.2k tokensUpdated 8 mo ago
    Auto-check passed
  • Agents Md Generator

    julianromli/opencode-template

    Generate hierarchical AGENTS.md structures for codebases. An agent skill from julianromli/opencode-template.

    144 GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check: notes
  • Product Management

    julianromli/opencode-template

    Assist with core product management activities including writing PRDs, analyzing features, synthesizing user research, planning roadmaps, and communicating product decisions.

    144 GitHub starsUsed in 1 repo~3.4k tokens
    Auto-check passed

Questions about Using Git Worktrees

What does Using Git Worktrees do?

A skill your agent uses when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory…. Using Git Worktrees is an agent skill from julianromli/opencode-template.

When should I use Using Git Worktrees?

Using Git Worktrees fits situations like: starting feature work that needs isolation from current workspace; before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification.

How do I install Using Git Worktrees in Claude Code?

Run `npx skills add julianromli/opencode-template --skill using-git-worktrees -a claude-code`. Or copy the skill folder (skill/using-git-worktrees in julianromli/opencode-template) 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 julianromli/opencode-template --skill using-git-worktrees -a codex`. Or copy the skill folder (skill/using-git-worktrees in julianromli/opencode-template) 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 julianromli/opencode-template --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?

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

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

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

How many tokens does Using Git Worktrees use?

About 1.4k tokens (SKILL.md is roughly 5.6k 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: Orca CLI (stablyai/orca, 87k stars), Using Git Worktrees (farm-fe/farm, 5.6k stars), Agent of Empires Session Manager (agent-of-empires/agent-of-empires, 3.3k stars) and Agent Manager Fleet TUI (YoanWai/agent-manager, 572 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?

julianromli (a GitHub user) maintains it in julianromli/opencode-template, which has 144 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on February 3, 2026.

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