Agent skill · Jesse Vincent (obra)

Using Git Worktrees skill for Claude Code, Codex and Cursor

Sets up an isolated git worktree before feature work so the main checkout stays clean.

Communityname: using-git-worktrees★ 305k (repo)pushed 2026-10-23MITSKILL.md on GitHubchecked 2026-11-07

What it does, in the publisher's words

Use 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 worktree fallback

The description field of the SKILL.md. The agent reads only this at startup and decides from it when to load the full skill.

Install Using Git Worktrees

The skills CLI copies the skill into the folder of each agent you pick (Claude Code, Codex, Cursor, Copilot, Gemini CLI, OpenCode, Windsurf...). Add -g for all projects. Needs Node.js 22.20+. docs

npx skills add obra/superpowers --skill using-git-worktrees

Works with

Claude Code, Claude.ai and Claude Desktop, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and other agents that read the open Agent Skills format.

What's in the SKILL.md

10 sections
  • Overview
  • Step 0: Detect Existing Isolation
  • Step 1: Create Isolated Workspace
  • 1a. Native Worktree Tools (preferred)
  • 1b. Git Worktree Fallback
  • Step 2: Project Setup
  • Step 3: Verify Clean Baseline
  • Report
  • Quick Reference
  • Common Rationalizations

Facts

Skill name
using-git-worktrees
Publisher
Jesse Vincent (obra) (community)
Repo
obra/superpowers
License
MIT
SKILL.md size
853 words, 163 lines
Repo stars
305k (as of 2026-10-24)
SKILL.md checked
2026-11-07

More skills from obra/superpowers

  • Brainstorming: Makes the agent clarify goals and explore options with you before building anything new.
  • Requesting Code Review: Has the agent get its finished work reviewed against requirements before merging.
  • Subagent-Driven Development: Executes a plan by handing each task to a fresh subagent with review between steps.
  • Systematic Debugging: A root-cause-first process for bugs and failing tests before any fix is attempted.
  • Test-Driven Development: Enforces a red-green-refactor loop: write a failing test first, then the code.
  • Verification Before Completion: Requires running checks and showing their output before claiming work is done.
  • Writing Plans: Turns a spec into a detailed, step-by-step implementation plan before coding starts.
  • Writing Skills: Method for writing and testing new skills so they trigger and behave reliably.

Related workflow & planning skills

FAQ

What does the using-git-worktrees skill do?+

Sets up an isolated git worktree before feature work so the main checkout stays clean. In its own SKILL.md, Jesse Vincent (obra) describes it as: "Use 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 worktree fallback"

How do I install the using-git-worktrees skill?+

Run npx skills add obra/superpowers --skill using-git-worktrees and pick your agents, or use the tab for your agent above. In Claude Code the skill ends up in ~/.claude/skills/using-git-worktrees/SKILL.md; in Codex and Cursor in .agents/skills/using-git-worktrees/.

Does Using Git Worktrees work in Codex, Cursor and Copilot, or only Claude?+

It's a standard SKILL.md, so any agent that reads the Agent Skills format can use it: Claude Code, the Claude apps, Codex, GitHub Copilot, Cursor, Gemini CLI, OpenCode, Windsurf and more.

Who maintains Using Git Worktrees?+

Jesse Vincent (obra) (a community project), in the obra/superpowers repo on GitHub, last pushed 2026-10-23. License: MIT.

Read a skill's SKILL.md and scripts before you install it: skills aren't verified by any agent vendor. Claude skills marketplace · How to install skills · MCP servers