AI agent skill
Git Worktrees
Run parallel agent sessions in git worktrees so long jobs do not block the main checkout and diffs stay reviewable.
·
When to use this skill
Use Git Worktrees when two agent tasks would otherwise fight over the same working tree, or when you want a throwaway branch the main checkout never sees.
When not to use it
Skip it for a 5-minute edit on the current branch. Skip it if the repo does not use git.
How to install
- Personal install: create ~/.claude/skills/using-git-worktrees/SKILL.md (and any bundled scripts) so Claude Code, Claude Desktop, and compatible agents can load it in every project.
- Project install: commit the same folder at .claude/skills/using-git-worktrees/ so teammates get the skill with the repo.
- Restart the agent session after copying files so it re-scans the skills directory, then ask for the task in words that match the skill description.
What this skill does
Worktrees let an agent work on a branch in another directory. That is the practical way to run two Claude Code jobs without repeated stashing.
Intended uses
- Investigate a bug while a feature branch is dirty
- Give a subagent its own checkout
- Compare two implementations side by side
Related skills
Related skills in this directory, for comparison before you install another skill.
coding
Test-Driven Development
Force a coding agent to write a failing test first, then the minimum implementation, then refactor — so it cannot claim done without a red-green loop.
coding
Systematic Debugging
A root-cause debugging loop for coding agents: reproduce, isolate, hypothesize, then change one thing — instead of shotgun patches.
coding
Skill Creator
Scaffold a new AI agent skill from a plain-language job description: folder, SKILL.md frontmatter, trigger description, and a first draft of the instructions.
coding
Act as a Patient, Non-Technical Android Studio Guide
A reusable prompt for asking an AI assistant to work as Act as a Patient, Non-Technical Android Studio Guide.