[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72DSXD6QQ136V61ZQZF72DG":3,"skill-same:01M72DSXD6QQ136V61ZQZF72DG":52},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":13,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M72DSXD6QQ136V61ZQZF72DG","worktree-guide",null,"Interactive guide for parallel development with Ghostty, git worktrees, and Lazygit. Use when setting up multi-task workflows or learning the worktree system.","Sansar35\u002Fclaude-agent","Sansar35","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F145020281?v=4","01M724CQ2SCC86MGNSD87D0D4K","01M724CQ3965G9WJ3QXE3AJ5YY",1,"MIT","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fworktree-guide\u002FSKILL.md",[],[],"2026-11-10 18:39:20",false,"---\nname: worktree-guide\ndescription: Interactive guide for parallel development with Ghostty, git worktrees, and Lazygit. Use when setting up multi-task workflows or learning the worktree system.\nlicense: MIT\nmetadata:\n  author: claude-code-templates\n  version: \"1.0\"\n---\n\nGuide the user through parallel development workflows using Ghostty terminal panels, git worktrees, and Lazygit. This is both a teaching experience and a practical reference.\n\n---\n\n## Preflight\n\nBefore starting, detect the user's environment:\n\n```bash\ngit rev-parse --is-inside-work-tree 2>&1 && echo \"GIT_OK\" || echo \"NOT_GIT\"\n```\n\n**If not a git repo:**\n> This isn't a git repository. Navigate to a git project first, then come back to `\u002Fworktree-guide`.\n\nCheck if we're in a worktree or main repo:\n```bash\ngit worktree list\npwd\n```\n\nNote the context for later guidance.\n\n---\n\n## Phase 1: Welcome & Context Detection\n\nDisplay based on environment:\n\n**If in main repo:**\n```\n## Worktree Parallel Development Guide\n\nWelcome! I'll guide you through setting up and using parallel worktrees for multi-task development.\n\n┌─────────────────────────────────────────────────────────────┐\n│  Ghostty Terminal                                           │\n│  ┌──────────────────────┬──────────────────────┐           │\n│  │                      │                      │           │\n│  │   Claude (Task 1)    │   Claude (Task 2)    │           │\n│  │   claude\u002Flogin-page   │   claude\u002Ffix-auth-bug │           │\n│  │                      │                      │           │\n│  ├──────────────────────┴──────────────────────┤           │\n│  │              Lazygit (monitoring)           │           │\n│  └─────────────────────────────────────────────┘           │\n└─────────────────────────────────────────────────────────────┘\n\n**Your workflow:**\n1. Create worktrees → `\u002Fworktree-init`\n2. Open Ghostty panels → `Cmd+D` \u002F `Cmd+Shift+D`\n3. Run Claude in each panel → `cd \u003Cworktree> && claude`\n4. Deliver when done → `\u002Fworktree-deliver`\n5. Clean up → `\u002Fworktree-cleanup`\n\nWhat would you like to do?\n```\n\nUse AskUserQuestion:\n- \"Learn the full workflow\" — Start from Phase 2\n- \"Just show keybindings\" — Jump to Quick Reference\n- \"Create worktrees now\" — Suggest `\u002Fworktree-init`\n- \"Something else\" — Ask what they need\n\n**If already in a worktree:**\n```\n## Worktree Status\n\nYou're already inside a worktree! Let me check your status.\n```\n\nThen run the equivalent of `\u002Fworktree-check` and provide contextual guidance.\n\n---\n\n## Phase 2: Ghostty Essentials\n\n**EXPLAIN:**\n```\n## Ghostty Panel Management\n\nGhostty's panel system is perfect for parallel development. Here are the essential keybindings:\n```\n\n**SHOW:**\n```\n┌─────────────────────────────────────────────────────────────┐\n│                    GHOSTTY KEYBINDINGS                      │\n├─────────────────────────────────────────────────────────────┤\n│                                                             │\n│  SPLITTING                                                  │\n│  ─────────                                                  │\n│  Cmd+D           Split panel to the right                   │\n│  Cmd+Shift+D     Split panel below                          │\n│                                                             │\n│  NAVIGATION                                                 │\n│  ─────────                                                  │\n│  Cmd+Alt+←\u002F→\u002F↑\u002F↓ Move focus between panels                  │\n│  Cmd+[\u002F]         Cycle through panels                       │\n│                                                             │\n│  SIZING                                                     │\n│  ─────────                                                  │\n│  Cmd+Shift+E     Equalize all panel sizes                   │\n│  Cmd+Shift+F     Toggle zoom (fullscreen current panel)     │\n│                                                             │\n│  CLOSING                                                    │\n│  ─────────                                                  │\n│  Cmd+W           Close current panel                        │\n│                                                             │\n└─────────────────────────────────────────────────────────────┘\n\n**Pro tip:** Use Cmd+Shift+F to zoom into a panel when you need focus, then press it again to return to the multi-panel view.\n```\n\n**PAUSE** - \"Ready to learn about Lazygit? (Or skip to workflow)\"\n\n---\n\n## Phase 3: Lazygit Essentials\n\n**EXPLAIN:**\n```\n## Lazygit for Monitoring Worktrees\n\nLazygit gives you a visual overview of all your worktrees and their changes. Run it from your main repo to monitor everything.\n```\n\n**SHOW:**\n```\n┌─────────────────────────────────────────────────────────────┐\n│                    LAZYGIT KEYBINDINGS                      │\n├─────────────────────────────────────────────────────────────┤\n│                                                             │\n│  WORKTREES (navigate to Worktrees panel)                    │\n│  ─────────                                                  │\n│  w              Switch to worktree panel (or create new)    │\n│  Enter          Switch to selected worktree                 │\n│  n              Create new worktree                         │\n│  d              Delete worktree (with confirmation)         │\n│                                                             │\n│  FILES & STAGING                                            │\n│  ─────────                                                  │\n│  Space          Stage\u002Funstage file                          │\n│  a              Stage all files                             │\n│  Enter          View file diff (with Delta highlighting)    │\n│                                                             │\n│  COMMITS                                                    │\n│  ─────────                                                  │\n│  c              Commit staged changes                       │\n│  C              Commit with editor                          │\n│  A              Amend last commit                           │\n│                                                             │\n│  SYNC                                                       │\n│  ─────────                                                  │\n│  P              Push                                        │\n│  p              Pull                                        │\n│  f              Fetch                                       │\n│                                                             │\n│  GENERAL                                                    │\n│  ─────────                                                  │\n│  ?              Help (context-sensitive)                    │\n│  q              Quit \u002F go back                              │\n│  Tab            Switch panels                               │\n│                                                             │\n└─────────────────────────────────────────────────────────────┘\n\n**Monitoring workflow:**\n1. Open lazygit in the main repo (or a dedicated Ghostty panel)\n2. Press `w` to see all worktrees\n3. Use Enter to dive into any worktree's changes\n4. Press `q` to go back to the worktree list\n```\n\n**PAUSE** - \"Ready for the full workflow walkthrough?\"\n\n---\n\n## Phase 4: Complete Workflow (Guided)\n\n**EXPLAIN:**\n```\n## Full Parallel Development Workflow\n\nLet me walk you through the complete cycle. We'll go step by step.\n```\n\n### Step 4.1: Create Worktrees\n\n**EXPLAIN:**\n```\n### Step 1: Create Worktrees\n\nFirst, define the tasks you want to work on in parallel. The `\u002Fworktree-init` command creates a worktree for each task.\n```\n\n**DO:** Show example command:\n```\nExample usage:\n\n\u002Fworktree-init add user authentication | fix login bug | improve dashboard performance\n\nThis creates:\n├── ..\u002Fworktrees\u002F\u003Crepo>\u002Fclaude-add-user-authentication\u002F\n├── ..\u002Fworktrees\u002F\u003Crepo>\u002Fclaude-fix-login-bug\u002F\n└── ..\u002Fworktrees\u002F\u003Crepo>\u002Fclaude-improve-dashboard-performance\u002F\n```\n\n### Step 4.2: Open Ghostty Panels\n\n**EXPLAIN:**\n```\n### Step 2: Open Ghostty Panels\n\nNow split your terminal into panels—one for each task, plus optionally one for Lazygit monitoring.\n```\n\n**DO:**\n```\n1. Press Cmd+D to split right (first worktree)\n2. Press Cmd+D again (second worktree)\n3. Optionally press Cmd+Shift+D on any panel for Lazygit below\n\nResulting layout:\n┌──────────┬──────────┬──────────┐\n│ Task 1   │ Task 2   │ Task 3   │\n│ claude   │ claude   │ claude   │\n├──────────┴──────────┴──────────┤\n│           lazygit              │\n└────────────────────────────────┘\n```\n\n### Step 4.3: Work in Each Panel\n\n**EXPLAIN:**\n```\n### Step 3: Work Independently\n\nIn each panel:\n1. cd to the worktree path (from the commands output)\n2. Run `claude` to start a Claude session\n3. Use `\u002Fworktree-check` anytime to verify which task you're working on\n4. Work normally—Claude doesn't know about other panels\n```\n\n### Step 4.4: Deliver Completed Work\n\n**EXPLAIN:**\n```\n### Step 4: Deliver When Done\n\nWhen you finish a task in any panel, use `\u002Fworktree-deliver` to:\n1. Review your changes\n2. Create a commit\n3. Push to remote\n4. Create a pull request\n```\n\n### Step 4.5: Clean Up\n\n**EXPLAIN:**\n```\n### Step 5: Clean Up After Merging\n\nAfter your PRs are merged on GitHub:\n1. Go back to the main repo (not a worktree)\n2. Run `\u002Fworktree-cleanup --all`\n3. It removes merged worktrees and branches\n```\n\n---\n\n## Phase 5: Troubleshooting\n\n**SHOW:**\n```\n## Troubleshooting\n\n### \"I'm not sure which worktree I'm in\"\n\nRun `\u002Fworktree-check` — it shows your branch, task, and status.\n\nAlternatively:\n$ git branch --show-current    # Shows claude\u002F\u003Cname>\n$ pwd                          # Shows the worktree path\n\n---\n\n### \"I have uncommitted changes and want to switch tasks\"\n\n**Option 1:** Commit work-in-progress\n$ git add . && git commit -m \"wip: progress on feature\"\n\n**Option 2:** Stash changes (temporary)\n$ git stash push -m \"wip: parking changes\"\n\nThen in the other panel, continue working. Come back later with:\n$ git stash pop\n\n---\n\n### \"I accidentally started working in the wrong worktree\"\n\n1. Stash your changes: `git stash push -m \"work done in wrong place\"`\n2. Navigate to the correct worktree\n3. Apply the stash: `git stash pop`\n\n---\n\n### \"My worktree has merge conflicts\"\n\n1. Run `git fetch origin` to get latest\n2. Run `git rebase origin\u002Fmain` (or merge if you prefer)\n3. Resolve conflicts in your editor\n4. `git add .` then `git rebase --continue`\n\n---\n\n### \"I want to abandon a worktree\"\n\nFrom the main repo:\n$ git worktree remove ..\u002Fworktrees\u002Frepo\u002Fclaude-\u003Cname> --force\n$ git branch -D claude\u002F\u003Cname>\n\nNote: Force is needed if there are uncommitted changes.\n\n---\n\n### \"\u002Fworktree-deliver failed on push\"\n\nUsually means the remote branch doesn't exist yet or there's a conflict.\n\nTry:\n$ git push -u origin HEAD\n\nIf there's a conflict with remote, pull first:\n$ git pull --rebase origin claude\u002F\u003Cname>\n\n---\n\n### \"The worktree path doesn't exist anymore\"\n\nThe worktree was probably deleted manually. Clean up the git state:\n$ git worktree prune\n```\n\n---\n\n## Phase 6: Quick Reference Card\n\n**SHOW:**\n```\n┌─────────────────────────────────────────────────────────────────────────────┐\n│                         WORKTREE QUICK REFERENCE                            │\n├─────────────────────────────────────────────────────────────────────────────┤\n│                                                                             │\n│  COMMANDS                                                                   │\n│  ─────────                                                                  │\n│  \u002Fworktree-init \u003Ctask1> | \u003Ctask2>    Create worktrees for parallel tasks    │\n│  \u002Fworktree-check                     Show current worktree status & task    │\n│  \u002Fworktree-deliver                   Commit, push, and create PR            │\n│  \u002Fworktree-cleanup --all             Remove merged worktrees and branches   │\n│  \u002Fworktree-cleanup --dry-run         Preview what would be cleaned up       │\n│                                                                             │\n│  GHOSTTY                                                                    │\n│  ─────────                                                                  │\n│  Cmd+D              Split right     │  Cmd+Shift+E    Equalize panels      │\n│  Cmd+Shift+D        Split down      │  Cmd+Shift+F    Zoom toggle          │\n│  Cmd+Alt+Arrows     Navigate        │  Cmd+W          Close panel          │\n│                                                                             │\n│  LAZYGIT                                                                    │\n│  ─────────                                                                  │\n│  w                  Worktrees panel │  Space          Stage\u002Funstage        │\n│  Enter              View diff       │  c              Commit               │\n│  P                  Push            │  ?              Help                 │\n│                                                                             │\n│  GIT (manual)                                                               │\n│  ─────────                                                                  │\n│  git worktree list                   List all worktrees                     │\n│  git worktree add -b claude\u002Fname path Create worktree manually               │\n│  git worktree remove path            Remove a worktree                      │\n│  git worktree prune                  Clean up stale worktree refs           │\n│                                                                             │\n│  WORKFLOW                                                                   │\n│  ─────────                                                                  │\n│  1. \u002Fworktree-init tasks...          Create worktrees                       │\n│  2. Cmd+D (split panels)             Open Ghostty panels                    │\n│  3. cd \u003Cpath> && claude              Start Claude in each                   │\n│  4. \u002Fworktree-deliver                PR when done                           │\n│  5. \u002Fworktree-cleanup                Clean up after merge                   │\n│                                                                             │\n└─────────────────────────────────────────────────────────────────────────────┘\n```\n\n---\n\n## Guardrails\n\n- **Never execute destructive commands** without confirmation (worktree remove, branch delete)\n- **Always verify location** before suggesting worktree operations\n- **If user seems lost**, offer `\u002Fworktree-check` first\n- **Never force-delete** branches that aren't merged\n- **Don't assume tools are installed** — check for lazygit availability if suggesting it\n- **Respect user's pace** — don't rush through sections if they want to practice\n- **Keep the reference card available** — offer to show it whenever relevant\n","Guide the user through parallel development workflows using Ghostty terminal panels, git worktrees, and Lazygit. This is both a teaching experience and a practical reference.\n\n---\n\n## Preflight\n\nBefore starting, detect the user's environment:\n\n```bash\ngit rev-parse --is-inside-work-tree 2>&1 && echo \"GIT_OK\" || echo \"NOT_GIT\"\n```\n\n**If not a git repo:**\n> This isn't a git repository. Navigate to a git project first, then come back to `\u002Fworktree-guide`.\n\nCheck if we're in a worktree or main repo:\n```bash\ngit worktree list\npwd\n```\n\nNote the context for later guidance.\n\n---\n\n## Phase 1: Welcome & Context Detection\n\nDisplay based on environment:\n\n**If in main repo:**\n```\n## Worktree Parallel Development Guide\n\nWelcome! I'll guide you through setting up and using parallel worktrees for multi-task development.\n\n┌─────────────────────────────────────────────────────────────┐\n│  Ghostty Terminal                                           │\n│  ┌──────────────────────┬──────────────────────┐           │\n│  │                      │                      │           │\n│  │   Claude (Task 1)    │   Claude (Task 2)    │           │\n│  │   claude\u002Flogin-page   │   claude\u002Ffix-auth-bug │           │\n│  │                      │                      │           │\n│  ├──────────────────────┴──────────────────────┤           │\n│  │              Lazygit (monitoring)           │           │\n│  └─────────────────────────────────────────────┘           │\n└─────────────────────────────────────────────────────────────┘\n\n**Your workflow:**\n1. Create worktrees → `\u002Fworktree-init`\n2. Open Ghostty panels → `Cmd+D` \u002F `Cmd+Shift+D`\n3. Run Claude in each panel → `cd \u003Cworktree> && claude`\n4. Deliver when done → `\u002Fworktree-deliver`\n5. Clean up → `\u002Fworktree-cleanup`\n\nWhat would you like to do?\n```\n\nUse AskUserQuestion:\n- \"Learn the full workflow\" — Start from Phase 2\n- \"Just show keybindings\" — Jump to Quick Reference\n- \"Create worktrees now\" — Suggest `\u002Fworktree-init`\n- \"Something else\" — Ask what they need\n\n**If already in a worktree:**\n```\n## Worktree Status\n\nYou're already inside a worktree! Let me check your status.\n```\n\nThen run the equivalent of `\u002Fworktree-check` and provide contextual guidance.\n\n---\n\n## Phase 2: Ghostty Essentials\n\n**EXPLAIN:**\n```\n## Ghostty Panel Management\n\nGhostty's panel system is perfect for parallel development. Here are the essential keybindings:\n```\n\n**SHOW:**\n```\n┌─────────────────────────────────────────────────────────────┐\n│                    GHOSTTY KEYBINDINGS                      │\n├─────────────────────────────────────────────────────────────┤\n│                                                             │\n│  SPLITTING                                                  │\n│  ─────────                                                  │\n│  Cmd+D           Split panel to the right                   │\n│  Cmd+Shift+D     Split panel below                          │\n│                                                             │\n│  NAVIGATION                                                 │\n│  ─────────                                                  │\n│  Cmd+Alt+←\u002F→\u002F↑\u002F↓ Move focus between panels                  │\n│  Cmd+[\u002F]         Cycle through panels                       │\n│                                                             │\n│  SIZING                                                     │\n│  ─────────                                                  │\n│  Cmd+Shift+E     Equalize all panel sizes                   │\n│  Cmd+Shift+F     Toggle zoom (fullscreen current panel)     │\n│                                                             │\n│  CLOSING                                                    │\n│  ─────────                                                  │\n│  Cmd+W           Close current panel                        │\n│                                                             │\n└─────────────────────────────────────────────────────────────┘\n\n**Pro tip:** Use Cmd+Shift+F to zoom into a panel when you need focus, then press it again to return to the multi-panel view.\n```\n\n**PAUSE** - \"Ready to learn about Lazygit? (Or skip to workflow)\"\n\n---\n\n## Phase 3: Lazygit Essentials\n\n**EXPLAIN:**\n```\n## Lazygit for Monitoring Worktrees\n\nLazygit gives you a visual overview of all your worktrees and their changes. Run it from your main repo to monitor everything.\n```\n\n**SHOW:**\n```\n┌─────────────────────────────────────────────────────────────┐\n│                    LAZYGIT KEYBINDINGS                      │\n├─────────────────────────────────────────────────────────────┤\n│                                                             │\n│  WORKTREES (navigate to Worktrees panel)                    │\n│  ─────────                                                  │\n│  w              Switch to worktree panel (or create new)    │\n│  Enter          Switch to selected worktree                 │\n│  n              Create new worktree                         │\n│  d              Delete worktree (with confirmation)         │\n│                                                             │\n│  FILES & STAGING                                            │\n│  ─────────                                                  │\n│  Space          Stage\u002Funstage file                          │\n│  a              Stage all files                             │\n│  Enter          View file diff (with Delta highlighting)    │\n│                                                             │\n│  COMMITS                                                    │\n│  ─────────                                                  │\n│  c              Commit staged changes                       │\n│  C              Commit with editor                          │\n│  A              Amend last commit                           │\n│                                                             │\n│  SYNC                                                       │\n│  ─────────                                                  │\n│  P              Push                                        │\n│  p              Pull                                        │\n│  f              Fetch                                       │\n│                                                             │\n│  GENERAL                                                    │\n│  ─────────                                                  │\n│  ?              Help (context-sensitive)                    │\n│  q              Quit \u002F go back                              │\n│  Tab            Switch panels                               │\n│                                                             │\n└─────────────────────────────────────────────────────────────┘\n\n**Monitoring workflow:**\n1. Open lazygit in the main repo (or a dedicated Ghostty panel)\n2. Press `w` to see all worktrees\n3. Use Enter to dive into any worktree's changes\n4. Press `q` to go back to the worktree list\n```\n\n**PAUSE** - \"Ready for the full workflow walkthrough?\"\n\n---\n\n## Phase 4: Complete Workflow (Guided)\n\n**EXPLAIN:**\n```\n## Full Parallel Development Workflow\n\nLet me walk you through the complete cycle. We'll go step by step.\n```\n\n### Step 4.1: Create Worktrees\n\n**EXPLAIN:**\n```\n### Step 1: Create Worktrees\n\nFirst, define the tasks you want to work on in parallel. The `\u002Fworktree-init` command creates a worktree for each task.\n```\n\n**DO:** Show example command:\n```\nExample usage:\n\n\u002Fworktree-init add user authentication | fix login bug | improve dashboard performance\n\nThis creates:\n├── ..\u002Fworktrees\u002F\u003Crepo>\u002Fclaude-add-user-authentication\u002F\n├── ..\u002Fworktrees\u002F\u003Crepo>\u002Fclaude-fix-login-bug\u002F\n└── ..\u002Fworktrees\u002F\u003Crepo>\u002Fclaude-improve-dashboard-performance\u002F\n```\n\n### Step 4.2: Open Ghostty Panels\n\n**EXPLAIN:**\n```\n### Step 2: Open Ghostty Panels\n\nNow split your terminal into panels—one for each task, plus optionally one for Lazygit monitoring.\n```\n\n**DO:**\n```\n1. Press Cmd+D to split right (first worktree)\n2. Press Cmd+D again (second worktree)\n3. Optionally press Cmd+Shift+D on any panel for Lazygit below\n\nResulting layout:\n┌──────────┬──────────┬──────────┐\n│ Task 1   │ Task 2   │ Task 3   │\n│ claude   │ claude   │ claude   │\n├──────────┴──────────┴──────────┤\n│           lazygit              │\n└────────────────────────────────┘\n```\n\n### Step 4.3: Work in Each Panel\n\n**EXPLAIN:**\n```\n### Step 3: Work Independently\n\nIn each panel:\n1. cd to the worktree path (from the commands output)\n2. Run `claude` to start a Claude session\n3. Use `\u002Fworktree-check` anytime to verify which task you're working on\n4. Work normally—Claude doesn't know about other panels\n```\n\n### Step 4.4: Deliver Completed Work\n\n**EXPLAIN:**\n```\n### Step 4: Deliver When Done\n\nWhen you finish a task in any panel, use `\u002Fworktree-deliver` to:\n1. Review your changes\n2. Create a commit\n3. Push to remote\n4. Create a pull request\n```\n\n### Step 4.5: Clean Up\n\n**EXPLAIN:**\n```\n### Step 5: Clean Up After Merging\n\nAfter your PRs are merged on GitHub:\n1. Go back to the main repo (not a worktree)\n2. Run `\u002Fworktree-cleanup --all`\n3. It removes merged worktrees and branches\n```\n\n---\n\n## Phase 5: Troubleshooting\n\n**SHOW:**\n```\n## Troubleshooting\n\n### \"I'm not sure which worktree I'm in\"\n\nRun `\u002Fworktree-check` — it shows your branch, task, and status.\n\nAlternatively:\n$ git branch --show-current    # Shows claude\u002F\u003Cname>\n$ pwd                          # Shows the worktree path\n\n---\n\n### \"I have uncommitted changes and want to switch tasks\"\n\n**Option 1:** Commit work-in-progress\n$ git add . && git commit -m \"wip: progress on feature\"\n\n**Option 2:** Stash changes (temporary)\n$ git stash push -m \"wip: parking changes\"\n\nThen in the other panel, continue working. Come back later with:\n$ git stash pop\n\n---\n\n### \"I accidentally started working in the wrong worktree\"\n\n1. Stash your changes: `git stash push -m \"work done in wrong place\"`\n2. Navigate to the correct worktree\n3. Apply the stash: `git stash pop`\n\n---\n\n### \"My worktree has merge conflicts\"\n\n1. Run `git fetch origin` to get latest\n2. Run `git rebase origin\u002Fmain` (or merge if you prefer)\n3. Resolve conflicts in your editor\n4. `git add .` then `git rebase --continue`\n\n---\n\n### \"I want to abandon a worktree\"\n\nFrom the main repo:\n$ git worktree remove ..\u002Fworktrees\u002Frepo\u002Fclaude-\u003Cname> --force\n$ git branch -D claude\u002F\u003Cname>\n\nNote: Force is needed if there are uncommitted changes.\n\n---\n\n### \"\u002Fworktree-deliver failed on push\"\n\nUsually means the remote branch doesn't exist yet or there's a conflict.\n\nTry:\n$ git push -u origin HEAD\n\nIf there's a conflict with remote, pull first:\n$ git pull --rebase origin claude\u002F\u003Cname>\n\n---\n\n### \"The worktree path doesn't exist anymore\"\n\nThe worktree was probably deleted manually. Clean up the git state:\n$ git worktree prune\n```\n\n---\n\n## Phase 6: Quick Reference Card\n\n**SHOW:**\n```\n┌─────────────────────────────────────────────────────────────────────────────┐\n│                         WORKTREE QUICK REFERENCE                            │\n├─────────────────────────────────────────────────────────────────────────────┤\n│                                                                             │\n│  COMMANDS                                                                   │\n│  ─────────                                                                  │\n│  \u002Fworktree-init \u003Ctask1> | \u003Ctask2>    Create worktrees for parallel tasks    │\n│  \u002Fworktree-check                     Show current worktree status & task    │\n│  \u002Fworktree-deliver                   Commit, push, and create PR            │\n│  \u002Fworktree-cleanup --all             Remove merged worktrees and branches   │\n│  \u002Fworktree-cleanup --dry-run         Preview what would be cleaned up       │\n│                                                                             │\n│  GHOSTTY                                                                    │\n│  ─────────                                                                  │\n│  Cmd+D              Split right     │  Cmd+Shift+E    Equalize panels      │\n│  Cmd+Shift+D        Split down      │  Cmd+Shift+F    Zoom toggle          │\n│  Cmd+Alt+Arrows     Navigate        │  Cmd+W          Close panel          │\n│                                                                             │\n│  LAZYGIT                                                                    │\n│  ─────────                                                                  │\n│  w                  Worktrees panel │  Space          Stage\u002Funstage        │\n│  Enter              View diff       │  c              Commit               │\n│  P                  Push            │  ?              Help                 │\n│                                                                             │\n│  GIT (manual)                                                               │\n│  ─────────                                                                  │\n│  git worktree list                   List all worktrees                     │\n│  git worktree add -b claude\u002Fname path Create worktree manually               │\n│  git worktree remove path            Remove a worktree                      │\n│  git worktree prune                  Clean up stale worktree refs           │\n│                                                                             │\n│  WORKFLOW                                                                   │\n│  ─────────                                                                  │\n│  1. \u002Fworktree-init tasks...          Create worktrees                       │\n│  2. Cmd+D (split panels)             Open Ghostty panels                    │\n│  3. cd \u003Cpath> && claude              Start Claude in each                   │\n│  4. \u002Fworktree-deliver                PR when done                           │\n│  5. \u002Fworktree-cleanup                Clean up after merge                   │\n│                                                                             │\n└─────────────────────────────────────────────────────────────────────────────┘\n```\n\n---\n\n## Guardrails\n\n- **Never execute destructive commands** without confirmation (worktree remove, branch delete)\n- **Always verify location** before suggesting worktree operations\n- **If user seems lost**, offer `\u002Fworktree-check` first\n- **Never force-delete** branches that aren't merged\n- **Don't assume tools are installed** — check for lazygit availability if suggesting it\n- **Respect user's pace** — don't rush through sections if they want to practice\n- **Keep the reference card available** — offer to show it whenever relevant\n",{"name":5,"license":14,"metadata":23,"description":7},{"author":24,"version":25},"claude-code-templates","1.0","main","d046d088ce5a79a083f0abc0fe1b7ded73bc5b1f","claude-config\u002Fskills\u002Fworktree-guide","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent","https:\u002F\u002Fgithub.com\u002FSansar35","2026-05-10 16:04:53",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add Sansar35\u002Fclaude-agent --skill worktree-guide",{"tool":38,"command":39},"bunx","bunx skills add Sansar35\u002Fclaude-agent --skill worktree-guide",{"tool":41,"command":42},"pnpm","pnpm dlx skills add Sansar35\u002Fclaude-agent --skill worktree-guide","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fworktree-guide\u002FSKILL.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},".skill-source.json","REFERENCE","参考文档",387,"https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fworktree-guide\u002F.skill-source.json",[53,60,67,74,81,89],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M72DVAN1JYEA302MT0C5MGD6","zustand-store-ts","Create Zustand stores following established patterns with proper TypeScript types and middleware.","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fzustand-store-ts\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M72DV8J5NBRRM4RPDFRV95N7","zod-validation-expert","Expert in Zod — TypeScript-first schema validation. Covers parsing, custom errors, refinements, type inference, and integration with React Hook Form, Next.js, and tRPC.","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fzod-validation-expert\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M72DV5EMHW0BHP9BZ167MDCB","zinc-database","Access ZINC (230M+ purchasable compounds). Search by ZINC ID\u002FSMILES, similarity searches, 3D-ready structures for docking, analog discovery, for virtual screening and drug discovery.","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fzinc-database\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M72DV216QY0E693ZPEVQ0DBS","zarr-python","Chunked N-D arrays for cloud storage. Compressed arrays, parallel I\u002FO, S3\u002FGCS integration, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":85,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M72DTXQREMCRKA8NHCVKHN4W","zapier-workflows","Manage and trigger pre-built Zapier workflows and MCP tool orchestration. Use when user mentions workflows, Zaps, automations, daily digest, research, search, lead tracking, expenses, or asks to \"run\" any process. Also handles Perplexity-based research and Google Sheets data tracking.","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fzapier-workflows\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fzapier-workflows\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":18},"01M72DTT17TBSJ0Y8J2XZ4C9TZ","zapier-make-patterns","No-code automation democratizes workflow building. Zapier and Make (formerly Integromat) let non-developers automate business processes without writing code. But no-code doesn't mean no-complexity - these platforms have their own patterns, pitfalls, and breaking points.  This skill covers when to use which platform, how to build reliable automations, and when to graduate to code-based solutions. Key insight: Zapier optimizes for simplicity and integrations (7000+ apps), Make optimizes for power","https:\u002F\u002Fgithub.com\u002FSansar35\u002Fclaude-agent\u002Fblob\u002Fmain\u002Fclaude-config\u002Fskills\u002Fzapier-make-patterns\u002FSKILL.md",[],[]]