Package Exports
- git-worktree-skill
- git-worktree-skill/install.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (git-worktree-skill) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Git Worktree Skill
Interactive installer for Git Worktree Management skill. Works with 14+ AI coding assistants.
Quick Install
npx git-worktree-skillOr clone and run locally:
git clone https://github.com/youruser/git-worktree-skill
cd git-worktree-skill
npm install
npm startSupported AI Agents
| Agent | Key | File Location |
|---|---|---|
| Claude Code | claude-code |
~/.claude/commands/git-worktree.md |
| GitHub Copilot | github-copilot |
.github/instructions/git-worktree.instructions.md |
| Copilot CLI | copilot-cli |
~/.config/gh-copilot/instructions.md |
| Cursor | cursor |
.cursorrules or ~/.cursor/rules/ |
| Windsurf | windsurf |
.windsurfrules or .windsurf/rules/ |
| Gemini CLI | gemini-cli |
GEMINI.md |
| Cline | cline |
.clinerules or .cline/rules/ |
| Continue | continue |
.continuerules or .continue/rules/ |
| Zed | zed |
.rules or ~/.config/zed/rules/ |
| Aider | aider |
.aider/conventions.md |
| OpenCode | opencode |
AGENTS.md |
| Roo Code | roo-code |
.roo/rules/ |
| Codex CLI | codex |
AGENTS.md |
CLI Options
# Interactive installation (select agents with arrow keys)
npx git-worktree-skill
# Non-interactive install for specific agents
npx git-worktree-skill --install claude-code,cursor,windsurf
# Install with global paths preference
npx git-worktree-skill --install claude-code --global
# Install with project paths preference
npx git-worktree-skill --install cursor,cline --project
# Show help
npx git-worktree-skill --help
# List supported agents
npx git-worktree-skill --list
# Show documentation links
npx git-worktree-skill --docsInteractive Mode
When run without --install, the installer provides an interactive experience:
- Select agents - Use spacebar to toggle, enter to confirm
- Choose paths - Pick global or project-level installation
- Handle conflicts - Append, overwrite, or skip existing files
- View summary - See all installed locations
What Gets Installed
The skill provides your AI assistant with:
- Quick reference for all worktree commands
- Step-by-step workflows for common scenarios
- Troubleshooting guide for common issues
- Interactive guidance protocol for helping users
- Environment setup templates (Node.js, Python)
Example Usage
After installation, ask your AI assistant:
- "Help me create a worktree for a new feature"
- "List my current worktrees"
- "How do I switch between worktrees?"
- "Clean up my old worktrees"
- "What are the benefits of worktrees vs stashing?"
Manual Installation
If you prefer manual installation, copy the contents of GIT-WORKTREE-PROMPT.md to the appropriate location for your AI agent.
Files
| File | Purpose |
|---|---|
install.mjs |
Interactive installer script |
GIT-WORKTREE-PROMPT.md |
The skill content |
package.json |
Node.js package configuration |
License
MIT