[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79QB0A3WPDAY9RZ1PBQ89RD":3,"skill-same:01M79QB0A3WPDAY9RZ1PBQ89RD":68},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":13,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M79QB0A3WPDAY9RZ1PBQ89RD","git-worktrees",null,"Use when working on multiple branches simultaneously, context switching without stashing, reviewing PRs while developing, testing in isolation, comparing implementations across branches, or resolving which commits actually belong to a cherry-pick request (by feature\u002FPR name, PR number, or SHA range) before running `git cherry-pick` - provides git worktree commands and workflow patterns for parallel development with multiple working directories, including verifying and confirming a cherry-pick's commit list. For creating the first worktree\u002Fbranch to begin a new piece of work (main-sync, branch-naming validation, worktree-vs-branch choice), see `starting-work` instead — this skill is reference material for ongoing multi-worktree management, not the entry point for starting new work.","AndreHahm\u002Fandres-cc-marketplace","AndreHahm","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F80748019?v=4","01M79N2VZJT9MAJ7K695C9VXQ4","01M79N2W06PFX8BSCQ592M8K8K",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FAndreHahm\u002Fandres-cc-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fgit-kit\u002Fskills\u002Fgit-worktrees\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: git-worktrees\ndescription: >-\n  Use when working on multiple branches simultaneously, context switching without stashing, reviewing PRs while developing, testing in isolation, comparing implementations across branches, or resolving which commits actually belong to a cherry-pick request (by feature\u002FPR name, PR number, or SHA range) before running `git cherry-pick` - provides git worktree commands and workflow patterns for parallel development with multiple working directories, including verifying and confirming a cherry-pick's commit list. For creating the first worktree\u002Fbranch to begin a new piece of work (main-sync, branch-naming validation, worktree-vs-branch choice), see `starting-work` instead — this skill is reference material for ongoing multi-worktree management, not the entry point for starting new work.\nallowed-tools: Bash(git worktree:*), Bash(git status:*), Bash(git diff:*), Bash(git checkout:*), Bash(git cherry-pick:*), Bash(git merge:*), Bash(git merge-base:*), Bash(git reset HEAD:*), Bash(git log:*), Bash(git rev-parse:*), Bash(git fetch:*), Bash(git restore:*), Bash(git stash:*), Bash(git branch -d:*), Bash(git branch --all --contains:*), Bash(git cat-file -e:*), Bash(git add:*), Bash(diff:*), Bash(gh pr list:*), Bash(gh pr view:*), Bash(gh api repos\u002F*\u002Fpulls\u002F*\u002Fcommits:*), Bash(gh api repos\u002F*\u002Fcompare\u002F*:*), Bash(npm install:*), Bash(yarn install:*), Bash(pnpm install:*), Bash(bun install:*), AskUserQuestion\n---\n\n# Git Worktrees\n\n## Overview\n\nGit worktrees enable checking out multiple branches simultaneously in separate directories, all sharing the same repository. Create a worktree instead of stashing changes or cloning separately.\n\n**Core principle:** One worktree per active branch. Switch contexts by changing directories, not branches.\n\n**Two different defaults, intentionally:** this skill's own examples below use sibling directories\n(`..\u002Fproject-feature`) for manual, ad-hoc worktree management — that default still applies here.\n`starting-work`'s *automated* flow uses a different default, `.claude\u002Fworktrees\u002F\u003Cdescription>` (or\n`.codex\u002Fworktrees\u002F` for a Codex CLI session), locked to the creating session — see that skill for why.\nNeither supersedes the other; they're two different use cases (manual vs. session-lifecycle-managed).\n\n**Hand-offs to `starting-work`\u002F`commit`\u002F`resolving-merge-conflicts` are prose-only, deliberately** —\nunlike `git-cleanup` (excluded via `disable-model-invocation: true`), those three are ordinary,\ndispatchable skills, and this plugin's convention elsewhere pairs a real hand-off with a matching\n`Skill(\u003Cname>)` grant. This skill stays prose-only instead: each hand-off happens mid-workflow at\na point this skill's own guided\u002Fmanual flow doesn't always reach identically (a full merge, a partial\npatch application, an experiment the user may discard), so the calling agent — not this skill — is better\nplaced to decide whether and when to actually dispatch the next skill, rather than this skill always\nauto-continuing into it.\n\n## When to Use\n\n- Working on multiple branches simultaneously, or switching context without stashing.\n- Reviewing a PR in its own worktree without disturbing current work, or comparing implementations\n  across branches side by side.\n- Testing or building in isolation while development continues elsewhere.\n- Resolving which commits actually belong to a cherry-pick request — by feature\u002Fskill name, PR number,\n  or explicit SHA range — before running `git cherry-pick` (see \"Resolving a Cherry-Pick Commit List\"\n  below).\n\n## When NOT to Use\n\n- **Starting a brand-new piece of work** (syncing main, validating a branch name, choosing worktree vs.\n  plain branch before the first commit) — that's `starting-work`'s job.\n- **Resolving the actual content of a merge\u002Fcherry-pick conflict** — `references\u002Fmerge-worktree.md`'s\n  Strategy D covers running `git merge --no-commit`\u002Fhandling a full branch merge between worktrees, but\n  its own conflict-resolution step is just \"resolve conflicts if any,\" with no per-type strategy. Once a\n  conflict needs that (imports\u002Ftests\u002Fconfig merging, generated-file regeneration, deleted-modified\n  backups, or the ambiguity-clarification loop), hand off to `resolving-merge-conflicts` for the actual\n  resolution — this skill still owns everything else about the worktree merge (strategy selection,\n  staging, cleanup).\n\n## Core Concepts\n\n| Concept | Description |\n|---------|-------------|\n| **Main worktree** | Original working directory from `git clone` or `git init` |\n| **Linked worktree** | Additional directories created with `git worktree add` |\n| **Shared `.git`** | All worktrees share same Git object database (no duplication) |\n| **Branch lock** | Each branch can only be checked out in ONE worktree at a time |\n| **Worktree metadata** | Administrative files in `.git\u002Fworktrees\u002F` tracking linked worktrees |\n\n## Quick Reference\n\n**Guarded actions, not this skill's job:** git-kit's guard hooks block raw `git worktree add -b`\u002F`-B`\n(new-branch creation — that's `starting-work`'s job), raw `git worktree remove --force`\u002F`-f` (discarding\nuncommitted work — that's `git-cleanup`'s job), and raw `git commit` (always `commit`'s job) unless run by\none of those allowlisted skills. This skill's own commands below are the ones that stay ungated: worktrees\nfor an *existing* branch, and a plain (non-force) `git worktree remove`, which git itself already refuses\non a dirty or locked worktree.\n\n| Task | Command |\n|------|---------|\n| Create worktree (existing branch) | `git worktree add \u003Cpath> \u003Cbranch>` |\n| Create worktree (new branch) | Not this skill's job — see `starting-work` |\n| Create detached worktree | `git worktree add --detach \u003Cpath> \u003Ccommit>` |\n| List all worktrees | `git worktree list` |\n| Remove worktree (clean state) | `git worktree remove \u003Cpath>` |\n| Force remove worktree (discards uncommitted changes) | Not this skill's job — see `git-cleanup` |\n| Move worktree | `git worktree move \u003Cold> \u003Cnew>` |\n| Lock worktree | `git worktree lock \u003Cpath>` |\n| Unlock worktree | `git worktree unlock \u003Cpath>` |\n| Prune stale worktrees | `git worktree prune` |\n| Repair worktree links | `git worktree repair` |\n| Compare files between worktrees | `diff ..\u002Fworktree-a\u002Ffile ..\u002Fworktree-b\u002Ffile` |\n| Get one file from another branch | `git checkout \u003Cbranch> -- \u003Cpath>` |\n| Get partial file changes | `git checkout -p \u003Cbranch> -- \u003Cpath>` |\n| Cherry-pick a commit | `git cherry-pick \u003Ccommit>` |\n| Cherry-pick without committing | `git cherry-pick --no-commit \u003Ccommit>` |\n| Merge without auto-commit | `git merge --no-commit \u003Cbranch>` |\n\n## Essential Commands\n\n### Create a Worktree\n\n```bash\n# Create worktree with existing branch\ngit worktree add ..\u002Ffeature-x feature-x\n\n# Create worktree with detached HEAD (for experiments)\ngit worktree add --detach ..\u002Fexperiment HEAD~5\n```\n\n**Need a worktree for a branch that doesn't exist yet** (new feature, hotfix, tracking a remote branch\nfor the first time)? That's `starting-work`'s job — it also syncs `main`, validates the branch name, and\nasks worktree-vs-plain-branch. git-kit's `git-guard-raw-branch-create.sh` hook hard-blocks a raw\n`git worktree add -b`\u002F`-B` from any skill not on its allowlist, this skill included.\n\n### List Worktrees\n\n```bash\n# Simple list\ngit worktree list\n\n# Verbose output with additional details\ngit worktree list -v\n\n# Machine-readable format (for scripting)\ngit worktree list --porcelain\n```\n\n**Example output:**\n\n```\n\u002Fhome\u002Fuser\u002Fproject           abc1234 [main]\n\u002Fhome\u002Fuser\u002Fproject-feature   def5678 [feature-x]\n\u002Fhome\u002Fuser\u002Fproject-hotfix    ghi9012 [hotfix-123]\n```\n\n### Remove a Worktree\n\n```bash\n# Remove worktree (working directory must be clean -- git itself refuses otherwise)\ngit worktree remove ..\u002Ffeature-x\n```\n\n**Need to discard uncommitted changes to force a removal?** Not this skill's job — `git-cleanup` has\n`disable-model-invocation: true`, so it can't be invoked here even indirectly; tell the user to run\n`\u002Fgit-cleanup` themselves. It gates `git worktree remove --force`\u002F`-f` behind explicit user confirmation\nbefore running it. git-kit's `git-guard-raw-destructive-cleanup.sh` hook hard-blocks the raw forced form from\nany skill not on its allowlist, this skill included.\n\n### Move a Worktree\n\n```bash\n# Relocate worktree to new path\ngit worktree move ..\u002Fold-path ..\u002Fnew-path\n```\n\n### Lock\u002FUnlock Worktrees\n\n```bash\n# Lock worktree (prevents pruning if on removable storage)\ngit worktree lock ..\u002Ffeature-x\ngit worktree lock --reason \"On USB drive\" ..\u002Ffeature-x\n\n# Unlock worktree\ngit worktree unlock ..\u002Ffeature-x\n```\n\n### Prune Stale Worktrees\n\n```bash\n# Remove stale worktree metadata (after manual directory deletion)\ngit worktree prune\n\n# Dry-run to see what would be pruned\ngit worktree prune --dry-run\n\n# Verbose output\ngit worktree prune -v\n```\n\n### Repair Worktrees\n\n```bash\n# Repair worktree links after moving directories manually\ngit worktree repair\n\n# Repair specific worktree\ngit worktree repair ..\u002Ffeature-x\n```\n\n## Workflow Patterns\n\n### Pattern 1: Feature + Hotfix in Parallel\n\nTo fix a bug while feature work is in progress:\n\n1. Use `starting-work` to create the hotfix worktree (new branch from `main`, e.g. `hotfix-456`) — this\n   is new work, not this skill's job.\n2. `cd` into the hotfix worktree, make the fix.\n3. Use the `commit` skill to commit — raw `git commit` is guarded.\n4. `git push origin hotfix-456`, then return to the feature worktree (`cd ..\u002Fproject`).\n5. Clean up the hotfix worktree when done: `git worktree remove ..\u002Fproject-hotfix` (plain removal, no\n   force needed once the fix is committed and pushed).\n\n### Pattern 2: PR Review While Working\n\nTo review a PR without affecting current work:\n\n```bash\n# Fetch PR branch and create worktree\ngit fetch origin pull\u002F123\u002Fhead:pr-123\ngit worktree add ..\u002Fproject-review pr-123\n\n# Review: run tests, inspect code\ncd ..\u002Fproject-review\n\n# Return to work, then clean up\ncd ..\u002Fproject\ngit worktree remove ..\u002Fproject-review\ngit branch -d pr-123\n```\n\n### Pattern 3: Compare Implementations\n\nTo compare code across branches side-by-side:\n\n```bash\n# Create worktrees for different versions\ngit worktree add ..\u002Fproject-v1 v1.0.0\ngit worktree add ..\u002Fproject-v2 v2.0.0\n\n# Diff, compare, or run both simultaneously\ndiff ..\u002Fproject-v1\u002Fsrc\u002Fmodule.js ..\u002Fproject-v2\u002Fsrc\u002Fmodule.js\n\n# Clean up\ngit worktree remove ..\u002Fproject-v1\ngit worktree remove ..\u002Fproject-v2\n```\n\n### Pattern 4: Long-Running Tasks\n\nTo run tests\u002Fbuilds in isolation while continuing development: create the worktree, then run the\nproject's own test\u002Fbuild command in it. That command (e.g. `npm test`, `pytest`, `make build`) is\nillustrative here, not something this skill's own `allowed-tools` grants — its scope is worktree\nmanagement, not running a project's test suite, so it isn't declared here even for a project that happens\nto use `npm`.\n\n```bash\n# Create worktree for CI-like testing\ngit worktree add ..\u002Fproject-test main\n\n# Continue development in main worktree\ncd ..\u002Fproject\n```\n\n### Pattern 5: Stable Reference\n\nTo maintain a clean main checkout for reference:\n\n```bash\n# Create permanent worktree for main branch\ngit worktree add ..\u002Fproject-main main\n\n# Lock to prevent accidental removal\ngit worktree lock --reason \"Reference checkout\" ..\u002Fproject-main\n```\n\n### Pattern 6: Selective Merging from Multiple Features\n\nTo combine specific changes from multiple feature branches:\n\n```bash\n# Create worktrees for each feature to review, then diff against main\ngit worktree add ..\u002Fproject-feature-1 feature-1\ngit worktree add ..\u002Fproject-feature-2 feature-2\ndiff ..\u002Fproject\u002Fsrc\u002Fmodule.js ..\u002Fproject-feature-1\u002Fsrc\u002Fmodule.js\ndiff ..\u002Fproject\u002Fsrc\u002Fmodule.js ..\u002Fproject-feature-2\u002Fsrc\u002Fmodule.js\n```\n\n```bash\n# From main worktree, selectively take changes (or cherry-pick specific commits instead)\ncd ..\u002Fproject\ngit checkout feature-1 -- src\u002FmoduleA.js src\u002Futils.js\ngit checkout feature-2 -- src\u002FmoduleB.js\ngit cherry-pick --no-commit abc1234  # from feature-1, if cherry-picking instead\n# Then use the `commit` skill to commit the combined result -- raw `git commit` is guarded.\n\n# Clean up\ngit worktree remove ..\u002Fproject-feature-1\ngit worktree remove ..\u002Fproject-feature-2\n```\n\n## Comparing and Merging Changes Between Worktrees\n\nSee `references\u002Fcompare-worktrees.md` for file-level comparison and `references\u002Fmerge-worktree.md` for single-file merge, cherry-picking, and selective multi-worktree merge techniques.\n\n## Resolving a Cherry-Pick Commit List\n\nBefore `references\u002Fmerge-worktree.md`'s Strategy C (cherry-picking a specific commit) runs, resolve\n*which* commits actually belong to the request — a feature name, a PR number, or a SHA range each need\ntheir own resolution-and-verification path before any `git cherry-pick` runs, converging on one\nuser-confirmed list. See `references\u002Fcherry-pick-resolution.md` for the full three-path procedure\n(including pagination, commit-list scoping, merge-commit detection, and shape validation for `\u003CN>`\u002F`\u003Csha>`)\n— never execute `git cherry-pick` straight off a guess or a hand-typed list.\n\n## Directory Structure Conventions\n\nOrganize worktrees predictably:\n\n```\n~\u002Fprojects\u002F\n  myproject\u002F              # Main worktree (main\u002Fmaster branch)\n  myproject-feature-x\u002F    # Feature branch worktree\n  myproject-hotfix\u002F       # Hotfix worktree\n  myproject-review\u002F       # Temporary PR review worktree\n```\n\n**Naming convention:** `\u003Cproject>-\u003Cpurpose>` or `\u003Cproject>-\u003Cbranch>`\n\n## Best Practices\n\n| Practice | Rationale |\n|----------|-----------|\n| **Use sibling directories** | Keep worktrees at same level as main project for easy navigation |\n| **Name by purpose** | `project-review` is clearer than `project-pr-123` |\n| **Clean up promptly** | Remove worktrees when done to avoid confusion |\n| **Lock remote worktrees** | Prevent pruning if worktree is on network\u002FUSB storage |\n| **Use `--detach` for experiments** | Avoid creating throwaway branches |\n| **Commit before removing** | Always commit or stash before `git worktree remove` |\n\n## Common Issues and Solutions\n\n### Issue: \"Branch is already checked out\"\n\n**Cause:** Attempting to checkout a branch that's active in another worktree.\n\n**Solution:**\n\n```bash\n# Find where the branch is checked out\ngit worktree list\n\n# Either work in that worktree or remove it first\ngit worktree remove ..\u002Fother-worktree\n```\n\n### Issue: Stale worktree after manual deletion\n\n**Cause:** Deleted worktree directory without using `git worktree remove`.\n\n**Solution:**\n\n```bash\n# Clean up stale metadata\ngit worktree prune\n```\n\n### Issue: Worktree moved manually\n\n**Cause:** Moved worktree directory without using `git worktree move`.\n\n**Solution:**\n\n```bash\n# Repair the worktree links\ngit worktree repair\n# Or specify the new path\ngit worktree repair \u002Fnew\u002Fpath\u002Fto\u002Fworktree\n```\n\n### Issue: Worktree on removed drive\n\n**Cause:** Worktree was on removable storage that's no longer connected.\n\n**Solution:**\n\n```bash\n# If temporary, lock it to prevent pruning\ngit worktree lock ..\u002Fusb-worktree\n\n# If permanent, prune it\ngit worktree prune\n```\n\n## Common Mistakes\n\n| Mistake | Fix |\n|---------|-----|\n| Using `rm -rf` to delete worktree | Always use `git worktree remove`, then `git worktree prune` if needed |\n| Forgetting branch is locked to worktree | Run `git worktree list` before checkout errors |\n| Not cleaning up temporary worktrees | Remove worktrees immediately after task completion |\n| Creating worktrees in nested locations | Use sibling directories (`..\u002Fproject-feature`) not subdirs |\n| Moving worktree directory manually | Use `git worktree move` or run `git worktree repair` after |\n\n## Agent Workflow Integration\n\nTo isolate parallel agent tasks: use `starting-work` to create the isolated task's worktree (new branch,\ne.g. `task-123`) — new-branch worktree creation is guarded and isn't this skill's job. `cd` into it, make\nchanges, run tests, `cd ..\u002Fproject` to return.\n\nTo experiment safely with detached HEAD:\n\n```bash\n# Create detached worktree (no branch to clean up)\ngit worktree add --detach ..\u002Fproject-experiment\ncd ..\u002Fproject-experiment\n# Experiment, then discard or commit to a new branch (via starting-work + commit)\n```\n\nIf the experiment is discarded and the worktree is clean, `git worktree remove ..\u002Fproject-experiment`\n(plain removal) is enough. If it needs to be discarded with uncommitted changes still present, that's a\nforced removal — tell the user to run `\u002Fgit-cleanup` themselves (it has `disable-model-invocation: true`,\nso it can't be invoked here even indirectly), which gates `--force` behind explicit confirmation; the raw\nform is guarded and isn't this skill's job.\n\n## Verification Checklist\n\nBefore using worktrees:\n\n- [ ] Understand that branches can only be checked out in one worktree\n- [ ] Know where worktrees will be created (use sibling directories)\n- [ ] Plan cleanup strategy for temporary worktrees\n\nWhen creating worktrees:\n\n- [ ] Use descriptive directory names\n- [ ] Verify branch is not already checked out elsewhere\n- [ ] Consider using `--detach` for experiments\n\nWhen removing worktrees:\n\n- [ ] Commit or stash any uncommitted changes\n- [ ] Use `git worktree remove`, not `rm -rf`\n- [ ] Run `git worktree prune` if directory was deleted manually\n\n## Testing & Validation\n\n**Verify this skill activates on:**\n- \"compare files between my worktrees\"\n- \"merge changes from the feature worktree into main\"\n- \"set up a worktree so I can review this PR without stashing\"\n- \"cherry-pick this commit from another worktree\"\n- \"cherry-pick the feature XY\" \u002F \"cherry-pick the feature XY shipped with PR #N\" \u002F \"cherry-pick\n  commit-SHAs abcdefg..hijklmn for feature XY\"\n\n**Verify it does NOT activate on:**\n- \"start a new branch for the auth refactor\" → `starting-work`\n- \"sync my current branch with main\" → `\u002Fgit-sync-branch`\n- \"I just merged, clean this up\" → `finishing-work`\n- \"resolve the conflicts from this worktree merge\" → `resolving-merge-conflicts`\n\n**Structural check:** `scripts\u002Fsmoke_test.py` — verifies frontmatter, referenced-file existence,\n`allowed-tools` grant usage, and step-header sequencing (including the \"Resolving a Cherry-Pick Commit\nList\" section's own numbered list). Re-run after any `SKILL.md` edit.\n\n**Eval evidence:** `evals\u002Fgit-worktrees\u002F` (iteration-1) — 3\u002F3 scenarios passed, covering all three\ncherry-pick resolution paths (feature-name ambiguity, PR-number resolution, SHA-range duplicate\ndetection). The six pre-existing quality gates below (install confirmation, strategy choice, cleanup\nrouting, new-branch routing, commit routing, read-only comparison) have no eval coverage yet.\n\n**Quality gates:**\n- [ ] Creating a worktree never runs the detected install command without an `AskUserQuestion`\n      confirmation first (`references\u002Fcreate-worktree.md` step 5e)\n- [ ] Merge strategies never execute without the user having chosen one — either through the guided\n      flow or an explicit request naming the strategy\n- [ ] Cleanup always uses plain `git worktree remove`, never `rm -rf` — a forced removal (discarding\n      uncommitted changes) always routes through `git-cleanup`, never a raw `--force`\u002F`-f` from this skill\n- [ ] New-branch worktree creation always routes through `starting-work`, never a raw `git worktree add -b`\n- [ ] New content assembled in the working tree is always committed via the `commit` skill, never a raw\n      `git commit` from this skill — replaying an already-committed change via `git cherry-pick`\u002F`git merge`\n      (their default, auto-committing form) is exempt, since it introduces no unscanned content\n- [ ] Comparisons stay read-only — `diff`\u002F`git diff` only, no file writes\n- [ ] A feature-name\u002FPR-number\u002FSHA-range cherry-pick request always resolves to one verified commit\n      list, shown back to the user for confirmation, before any `git cherry-pick` runs — never executed\n      straight off path 1's raw search results or an unverified path-3 SHA list\n- [ ] A PR-number cherry-pick request always resolves its commit list from GitHub's own record via\n      `gh api repos\u002F{owner}\u002F{repo}\u002Fpulls\u002F{n}\u002Fcommits --paginate --jq '.[].sha'` — never a hand-typed or\n      remembered list, and never an unpaginated call that could silently truncate a large PR\n- [ ] A PR-number cherry-pick request always flags any resolved commit with more than one parent before\n      Strategy C runs — `git cherry-pick` fails outright on a merge commit with no `-m \u003Cparent>`\n- [ ] A SHA\u002Frange cherry-pick request always verifies each candidate with `git cat-file -e \u003Csha>^{commit}`\n      (object exists) and `git branch --all --contains \u003Csha>` (reachable from some ref) before it's added\n      to the resolved list — never `git merge-base --is-ancestor` against `HEAD`\u002Fthe target, which would\n      wrongly reject a legitimate, not-yet-merged feature-branch commit\n- [ ] `\u003CN>` and `\u003Csha>` are always shape-validated (digits-only; `^[0-9a-fA-F]{7,40}$`) before being\n      interpolated into any command\n- [ ] The resolved commit list is always re-resolved immediately before the side-effecting\n      `git cherry-pick` runs, not just at confirmation time — per\n      `.claude\u002Frules\u002Frecheck-state-before-side-effecting-action.md`\n\n## Related Workflows\n\nDetailed step-by-step procedures for specific worktree operations are in `references\u002F`:\n\n- `references\u002Fcreate-worktree.md` — create and set up a worktree, with automatic dependency detection and confirmed (not automatic) installation\n- `references\u002Fcompare-worktrees.md` — compare files\u002Fdirectories between worktrees or branches\n- `references\u002Fcherry-pick-resolution.md` — the full three-path procedure for resolving *which* commits\n  belong to a cherry-pick request (feature name, PR number, or SHA range) before Strategy C runs\n- `references\u002Fmerge-worktree.md` — merge or selectively cherry-pick changes from a worktree into the current branch (Strategy C's actual execution; see `references\u002Fcherry-pick-resolution.md` above for determining *which* commits first)\n- `scripts\u002Fsmoke_test.py` — persisted structural smoke test; re-run after any `SKILL.md` edit\n","# Git Worktrees\n\n## Overview\n\nGit worktrees enable checking out multiple branches simultaneously in separate directories, all sharing the same repository. Create a worktree instead of stashing changes or cloning separately.\n\n**Core principle:** One worktree per active branch. Switch contexts by changing directories, not branches.\n\n**Two different defaults, intentionally:** this skill's own examples below use sibling directories\n(`..\u002Fproject-feature`) for manual, ad-hoc worktree management — that default still applies here.\n`starting-work`'s *automated* flow uses a different default, `.claude\u002Fworktrees\u002F\u003Cdescription>` (or\n`.codex\u002Fworktrees\u002F` for a Codex CLI session), locked to the creating session — see that skill for why.\nNeither supersedes the other; they're two different use cases (manual vs. session-lifecycle-managed).\n\n**Hand-offs to `starting-work`\u002F`commit`\u002F`resolving-merge-conflicts` are prose-only, deliberately** —\nunlike `git-cleanup` (excluded via `disable-model-invocation: true`), those three are ordinary,\ndispatchable skills, and this plugin's convention elsewhere pairs a real hand-off with a matching\n`Skill(\u003Cname>)` grant. This skill stays prose-only instead: each hand-off happens mid-workflow at\na point this skill's own guided\u002Fmanual flow doesn't always reach identically (a full merge, a partial\npatch application, an experiment the user may discard), so the calling agent — not this skill — is better\nplaced to decide whether and when to actually dispatch the next skill, rather than this skill always\nauto-continuing into it.\n\n## When to Use\n\n- Working on multiple branches simultaneously, or switching context without stashing.\n- Reviewing a PR in its own worktree without disturbing current work, or comparing implementations\n  across branches side by side.\n- Testing or building in isolation while development continues elsewhere.\n- Resolving which commits actually belong to a cherry-pick request — by feature\u002Fskill name, PR number,\n  or explicit SHA range — before running `git cherry-pick` (see \"Resolving a Cherry-Pick Commit List\"\n  below).\n\n## When NOT to Use\n\n- **Starting a brand-new piece of work** (syncing main, validating a branch name, choosing worktree vs.\n  plain branch before the first commit) — that's `starting-work`'s job.\n- **Resolving the actual content of a merge\u002Fcherry-pick conflict** — `references\u002Fmerge-worktree.md`'s\n  Strategy D covers running `git merge --no-commit`\u002Fhandling a full branch merge between worktrees, but\n  its own conflict-resolution step is just \"resolve conflicts if any,\" with no per-type strategy. Once a\n  conflict needs that (imports\u002Ftests\u002Fconfig merging, generated-file regeneration, deleted-modified\n  backups, or the ambiguity-clarification loop), hand off to `resolving-merge-conflicts` for the actual\n  resolution — this skill still owns everything else about the worktree merge (strategy selection,\n  staging, cleanup).\n\n## Core Concepts\n\n| Concept | Description |\n|---------|-------------|\n| **Main worktree** | Original working directory from `git clone` or `git init` |\n| **Linked worktree** | Additional directories created with `git worktree add` |\n| **Shared `.git`** | All worktrees share same Git object database (no duplication) |\n| **Branch lock** | Each branch can only be checked out in ONE worktree at a time |\n| **Worktree metadata** | Administrative files in `.git\u002Fworktrees\u002F` tracking linked worktrees |\n\n## Quick Reference\n\n**Guarded actions, not this skill's job:** git-kit's guard hooks block raw `git worktree add -b`\u002F`-B`\n(new-branch creation — that's `starting-work`'s job), raw `git worktree remove --force`\u002F`-f` (discarding\nuncommitted work — that's `git-cleanup`'s job), and raw `git commit` (always `commit`'s job) unless run by\none of those allowlisted skills. This skill's own commands below are the ones that stay ungated: worktrees\nfor an *existing* branch, and a plain (non-force) `git worktree remove`, which git itself already refuses\non a dirty or locked worktree.\n\n| Task | Command |\n|------|---------|\n| Create worktree (existing branch) | `git worktree add \u003Cpath> \u003Cbranch>` |\n| Create worktree (new branch) | Not this skill's job — see `starting-work` |\n| Create detached worktree | `git worktree add --detach \u003Cpath> \u003Ccommit>` |\n| List all worktrees | `git worktree list` |\n| Remove worktree (clean state) | `git worktree remove \u003Cpath>` |\n| Force remove worktree (discards uncommitted changes) | Not this skill's job — see `git-cleanup` |\n| Move worktree | `git worktree move \u003Cold> \u003Cnew>` |\n| Lock worktree | `git worktree lock \u003Cpath>` |\n| Unlock worktree | `git worktree unlock \u003Cpath>` |\n| Prune stale worktrees | `git worktree prune` |\n| Repair worktree links | `git worktree repair` |\n| Compare files between worktrees | `diff ..\u002Fworktree-a\u002Ffile ..\u002Fworktree-b\u002Ffile` |\n| Get one file from another branch | `git checkout \u003Cbranch> -- \u003Cpath>` |\n| Get partial file changes | `git checkout -p \u003Cbranch> -- \u003Cpath>` |\n| Cherry-pick a commit | `git cherry-pick \u003Ccommit>` |\n| Cherry-pick without committing | `git cherry-pick --no-commit \u003Ccommit>` |\n| Merge without auto-commit | `git merge --no-commit \u003Cbranch>` |\n\n## Essential Commands\n\n### Create a Worktree\n\n```bash\n# Create worktree with existing branch\ngit worktree add ..\u002Ffeature-x feature-x\n\n# Create worktree with detached HEAD (for experiments)\ngit worktree add --detach ..\u002Fexperiment HEAD~5\n```\n\n**Need a worktree for a branch that doesn't exist yet** (new feature, hotfix, tracking a remote branch\nfor the first time)? That's `starting-work`'s job — it also syncs `main`, validates the branch name, and\nasks worktree-vs-plain-branch. git-kit's `git-guard-raw-branch-create.sh` hook hard-blocks a raw\n`git worktree add -b`\u002F`-B` from any skill not on its allowlist, this skill included.\n\n### List Worktrees\n\n```bash\n# Simple list\ngit worktree list\n\n# Verbose output with additional details\ngit worktree list -v\n\n# Machine-readable format (for scripting)\ngit worktree list --porcelain\n```\n\n**Example output:**\n\n```\n\u002Fhome\u002Fuser\u002Fproject           abc1234 [main]\n\u002Fhome\u002Fuser\u002Fproject-feature   def5678 [feature-x]\n\u002Fhome\u002Fuser\u002Fproject-hotfix    ghi9012 [hotfix-123]\n```\n\n### Remove a Worktree\n\n```bash\n# Remove worktree (working directory must be clean -- git itself refuses otherwise)\ngit worktree remove ..\u002Ffeature-x\n```\n\n**Need to discard uncommitted changes to force a removal?** Not this skill's job — `git-cleanup` has\n`disable-model-invocation: true`, so it can't be invoked here even indirectly; tell the user to run\n`\u002Fgit-cleanup` themselves. It gates `git worktree remove --force`\u002F`-f` behind explicit user confirmation\nbefore running it. git-kit's `git-guard-raw-destructive-cleanup.sh` hook hard-blocks the raw forced form from\nany skill not on its allowlist, this skill included.\n\n### Move a Worktree\n\n```bash\n# Relocate worktree to new path\ngit worktree move ..\u002Fold-path ..\u002Fnew-path\n```\n\n### Lock\u002FUnlock Worktrees\n\n```bash\n# Lock worktree (prevents pruning if on removable storage)\ngit worktree lock ..\u002Ffeature-x\ngit worktree lock --reason \"On USB drive\" ..\u002Ffeature-x\n\n# Unlock worktree\ngit worktree unlock ..\u002Ffeature-x\n```\n\n### Prune Stale Worktrees\n\n```bash\n# Remove stale worktree metadata (after manual directory deletion)\ngit worktree prune\n\n# Dry-run to see what would be pruned\ngit worktree prune --dry-run\n\n# Verbose output\ngit worktree prune -v\n```\n\n### Repair Worktrees\n\n```bash\n# Repair worktree links after moving directories manually\ngit worktree repair\n\n# Repair specific worktree\ngit worktree repair ..\u002Ffeature-x\n```\n\n## Workflow Patterns\n\n### Pattern 1: Feature + Hotfix in Parallel\n\nTo fix a bug while feature work is in progress:\n\n1. Use `starting-work` to create the hotfix worktree (new branch from `main`, e.g. `hotfix-456`) — this\n   is new work, not this skill's job.\n2. `cd` into the hotfix worktree, make the fix.\n3. Use the `commit` skill to commit — raw `git commit` is guarded.\n4. `git push origin hotfix-456`, then return to the feature worktree (`cd ..\u002Fproject`).\n5. Clean up the hotfix worktree when done: `git worktree remove ..\u002Fproject-hotfix` (plain removal, no\n   force needed once the fix is committed and pushed).\n\n### Pattern 2: PR Review While Working\n\nTo review a PR without affecting current work:\n\n```bash\n# Fetch PR branch and create worktree\ngit fetch origin pull\u002F123\u002Fhead:pr-123\ngit worktree add ..\u002Fproject-review pr-123\n\n# Review: run tests, inspect code\ncd ..\u002Fproject-review\n\n# Return to work, then clean up\ncd ..\u002Fproject\ngit worktree remove ..\u002Fproject-review\ngit branch -d pr-123\n```\n\n### Pattern 3: Compare Implementations\n\nTo compare code across branches side-by-side:\n\n```bash\n# Create worktrees for different versions\ngit worktree add ..\u002Fproject-v1 v1.0.0\ngit worktree add ..\u002Fproject-v2 v2.0.0\n\n# Diff, compare, or run both simultaneously\ndiff ..\u002Fproject-v1\u002Fsrc\u002Fmodule.js ..\u002Fproject-v2\u002Fsrc\u002Fmodule.js\n\n# Clean up\ngit worktree remove ..\u002Fproject-v1\ngit worktree remove ..\u002Fproject-v2\n```\n\n### Pattern 4: Long-Running Tasks\n\nTo run tests\u002Fbuilds in isolation while continuing development: create the worktree, then run the\nproject's own test\u002Fbuild command in it. That command (e.g. `npm test`, `pytest`, `make build`) is\nillustrative here, not something this skill's own `allowed-tools` grants — its scope is worktree\nmanagement, not running a project's test suite, so it isn't declared here even for a project that happens\nto use `npm`.\n\n```bash\n# Create worktree for CI-like testing\ngit worktree add ..\u002Fproject-test main\n\n# Continue development in main worktree\ncd ..\u002Fproject\n```\n\n### Pattern 5: Stable Reference\n\nTo maintain a clean main checkout for reference:\n\n```bash\n# Create permanent worktree for main branch\ngit worktree add ..\u002Fproject-main main\n\n# Lock to prevent accidental removal\ngit worktree lock --reason \"Reference checkout\" ..\u002Fproject-main\n```\n\n### Pattern 6: Selective Merging from Multiple Features\n\nTo combine specific changes from multiple feature branches:\n\n```bash\n# Create worktrees for each feature to review, then diff against main\ngit worktree add ..\u002Fproject-feature-1 feature-1\ngit worktree add ..\u002Fproject-feature-2 feature-2\ndiff ..\u002Fproject\u002Fsrc\u002Fmodule.js ..\u002Fproject-feature-1\u002Fsrc\u002Fmodule.js\ndiff ..\u002Fproject\u002Fsrc\u002Fmodule.js ..\u002Fproject-feature-2\u002Fsrc\u002Fmodule.js\n```\n\n```bash\n# From main worktree, selectively take changes (or cherry-pick specific commits instead)\ncd ..\u002Fproject\ngit checkout feature-1 -- src\u002FmoduleA.js src\u002Futils.js\ngit checkout feature-2 -- src\u002FmoduleB.js\ngit cherry-pick --no-commit abc1234  # from feature-1, if cherry-picking instead\n# Then use the `commit` skill to commit the combined result -- raw `git commit` is guarded.\n\n# Clean up\ngit worktree remove ..\u002Fproject-feature-1\ngit worktree remove ..\u002Fproject-feature-2\n```\n\n## Comparing and Merging Changes Between Worktrees\n\nSee `references\u002Fcompare-worktrees.md` for file-level comparison and `references\u002Fmerge-worktree.md` for single-file merge, cherry-picking, and selective multi-worktree merge techniques.\n\n## Resolving a Cherry-Pick Commit List\n\nBefore `references\u002Fmerge-worktree.md`'s Strategy C (cherry-picking a specific commit) runs, resolve\n*which* commits actually belong to the request — a feature name, a PR number, or a SHA range each need\ntheir own resolution-and-verification path before any `git cherry-pick` runs, converging on one\nuser-confirmed list. See `references\u002Fcherry-pick-resolution.md` for the full three-path procedure\n(including pagination, commit-list scoping, merge-commit detection, and shape validation for `\u003CN>`\u002F`\u003Csha>`)\n— never execute `git cherry-pick` straight off a guess or a hand-typed list.\n\n## Directory Structure Conventions\n\nOrganize worktrees predictably:\n\n```\n~\u002Fprojects\u002F\n  myproject\u002F              # Main worktree (main\u002Fmaster branch)\n  myproject-feature-x\u002F    # Feature branch worktree\n  myproject-hotfix\u002F       # Hotfix worktree\n  myproject-review\u002F       # Temporary PR review worktree\n```\n\n**Naming convention:** `\u003Cproject>-\u003Cpurpose>` or `\u003Cproject>-\u003Cbranch>`\n\n## Best Practices\n\n| Practice | Rationale |\n|----------|-----------|\n| **Use sibling directories** | Keep worktrees at same level as main project for easy navigation |\n| **Name by purpose** | `project-review` is clearer than `project-pr-123` |\n| **Clean up promptly** | Remove worktrees when done to avoid confusion |\n| **Lock remote worktrees** | Prevent pruning if worktree is on network\u002FUSB storage |\n| **Use `--detach` for experiments** | Avoid creating throwaway branches |\n| **Commit before removing** | Always commit or stash before `git worktree remove` |\n\n## Common Issues and Solutions\n\n### Issue: \"Branch is already checked out\"\n\n**Cause:** Attempting to checkout a branch that's active in another worktree.\n\n**Solution:**\n\n```bash\n# Find where the branch is checked out\ngit worktree list\n\n# Either work in that worktree or remove it first\ngit worktree remove ..\u002Fother-worktree\n```\n\n### Issue: Stale worktree after manual deletion\n\n**Cause:** Deleted worktree directory without using `git worktree remove`.\n\n**Solution:**\n\n```bash\n# Clean up stale metadata\ngit worktree prune\n```\n\n### Issue: Worktree moved manually\n\n**Cause:** Moved worktree directory without using `git worktree move`.\n\n**Solution:**\n\n```bash\n# Repair the worktree links\ngit worktree repair\n# Or specify the new path\ngit worktree repair \u002Fnew\u002Fpath\u002Fto\u002Fworktree\n```\n\n### Issue: Worktree on removed drive\n\n**Cause:** Worktree was on removable storage that's no longer connected.\n\n**Solution:**\n\n```bash\n# If temporary, lock it to prevent pruning\ngit worktree lock ..\u002Fusb-worktree\n\n# If permanent, prune it\ngit worktree prune\n```\n\n## Common Mistakes\n\n| Mistake | Fix |\n|---------|-----|\n| Using `rm -rf` to delete worktree | Always use `git worktree remove`, then `git worktree prune` if needed |\n| Forgetting branch is locked to worktree | Run `git worktree list` before checkout errors |\n| Not cleaning up temporary worktrees | Remove worktrees immediately after task completion |\n| Creating worktrees in nested locations | Use sibling directories (`..\u002Fproject-feature`) not subdirs |\n| Moving worktree directory manually | Use `git worktree move` or run `git worktree repair` after |\n\n## Agent Workflow Integration\n\nTo isolate parallel agent tasks: use `starting-work` to create the isolated task's worktree (new branch,\ne.g. `task-123`) — new-branch worktree creation is guarded and isn't this skill's job. `cd` into it, make\nchanges, run tests, `cd ..\u002Fproject` to return.\n\nTo experiment safely with detached HEAD:\n\n```bash\n# Create detached worktree (no branch to clean up)\ngit worktree add --detach ..\u002Fproject-experiment\ncd ..\u002Fproject-experiment\n# Experiment, then discard or commit to a new branch (via starting-work + commit)\n```\n\nIf the experiment is discarded and the worktree is clean, `git worktree remove ..\u002Fproject-experiment`\n(plain removal) is enough. If it needs to be discarded with uncommitted changes still present, that's a\nforced removal — tell the user to run `\u002Fgit-cleanup` themselves (it has `disable-model-invocation: true`,\nso it can't be invoked here even indirectly), which gates `--force` behind explicit confirmation; the raw\nform is guarded and isn't this skill's job.\n\n## Verification Checklist\n\nBefore using worktrees:\n\n- [ ] Understand that branches can only be checked out in one worktree\n- [ ] Know where worktrees will be created (use sibling directories)\n- [ ] Plan cleanup strategy for temporary worktrees\n\nWhen creating worktrees:\n\n- [ ] Use descriptive directory names\n- [ ] Verify branch is not already checked out elsewhere\n- [ ] Consider using `--detach` for experiments\n\nWhen removing worktrees:\n\n- [ ] Commit or stash any uncommitted changes\n- [ ] Use `git worktree remove`, not `rm -rf`\n- [ ] Run `git worktree prune` if directory was deleted manually\n\n## Testing & Validation\n\n**Verify this skill activates on:**\n- \"compare files between my worktrees\"\n- \"merge changes from the feature worktree into main\"\n- \"set up a worktree so I can review this PR without stashing\"\n- \"cherry-pick this commit from another worktree\"\n- \"cherry-pick the feature XY\" \u002F \"cherry-pick the feature XY shipped with PR #N\" \u002F \"cherry-pick\n  commit-SHAs abcdefg..hijklmn for feature XY\"\n\n**Verify it does NOT activate on:**\n- \"start a new branch for the auth refactor\" → `starting-work`\n- \"sync my current branch with main\" → `\u002Fgit-sync-branch`\n- \"I just merged, clean this up\" → `finishing-work`\n- \"resolve the conflicts from this worktree merge\" → `resolving-merge-conflicts`\n\n**Structural check:** `scripts\u002Fsmoke_test.py` — verifies frontmatter, referenced-file existence,\n`allowed-tools` grant usage, and step-header sequencing (including the \"Resolving a Cherry-Pick Commit\nList\" section's own numbered list). Re-run after any `SKILL.md` edit.\n\n**Eval evidence:** `evals\u002Fgit-worktrees\u002F` (iteration-1) — 3\u002F3 scenarios passed, covering all three\ncherry-pick resolution paths (feature-name ambiguity, PR-number resolution, SHA-range duplicate\ndetection). The six pre-existing quality gates below (install confirmation, strategy choice, cleanup\nrouting, new-branch routing, commit routing, read-only comparison) have no eval coverage yet.\n\n**Quality gates:**\n- [ ] Creating a worktree never runs the detected install command without an `AskUserQuestion`\n      confirmation first (`references\u002Fcreate-worktree.md` step 5e)\n- [ ] Merge strategies never execute without the user having chosen one — either through the guided\n      flow or an explicit request naming the strategy\n- [ ] Cleanup always uses plain `git worktree remove`, never `rm -rf` — a forced removal (discarding\n      uncommitted changes) always routes through `git-cleanup`, never a raw `--force`\u002F`-f` from this skill\n- [ ] New-branch worktree creation always routes through `starting-work`, never a raw `git worktree add -b`\n- [ ] New content assembled in the working tree is always committed via the `commit` skill, never a raw\n      `git commit` from this skill — replaying an already-committed change via `git cherry-pick`\u002F`git merge`\n      (their default, auto-committing form) is exempt, since it introduces no unscanned content\n- [ ] Comparisons stay read-only — `diff`\u002F`git diff` only, no file writes\n- [ ] A feature-name\u002FPR-number\u002FSHA-range cherry-pick request always resolves to one verified commit\n      list, shown back to the user for confirmation, before any `git cherry-pick` runs — never executed\n      straight off path 1's raw search results or an unverified path-3 SHA list\n- [ ] A PR-number cherry-pick request always resolves its commit list from GitHub's own record via\n      `gh api repos\u002F{owner}\u002F{repo}\u002Fpulls\u002F{n}\u002Fcommits --paginate --jq '.[].sha'` — never a hand-typed or\n      remembered list, and never an unpaginated call that could silently truncate a large PR\n- [ ] A PR-number cherry-pick request always flags any resolved commit with more than one parent before\n      Strategy C runs — `git cherry-pick` fails outright on a merge commit with no `-m \u003Cparent>`\n- [ ] A SHA\u002Frange cherry-pick request always verifies each candidate with `git cat-file -e \u003Csha>^{commit}`\n      (object exists) and `git branch --all --contains \u003Csha>` (reachable from some ref) before it's added\n      to the resolved list — never `git merge-base --is-ancestor` against `HEAD`\u002Fthe target, which would\n      wrongly reject a legitimate, not-yet-merged feature-branch commit\n- [ ] `\u003CN>` and `\u003Csha>` are always shape-validated (digits-only; `^[0-9a-fA-F]{7,40}$`) before being\n      interpolated into any command\n- [ ] The resolved commit list is always re-resolved immediately before the side-effecting\n      `git cherry-pick` runs, not just at confirmation time — per\n      `.claude\u002Frules\u002Frecheck-state-before-side-effecting-action.md`\n\n## Related Workflows\n\nDetailed step-by-step procedures for specific worktree operations are in `references\u002F`:\n\n- `references\u002Fcreate-worktree.md` — create and set up a worktree, with automatic dependency detection and confirmed (not automatic) installation\n- `references\u002Fcompare-worktrees.md` — compare files\u002Fdirectories between worktrees or branches\n- `references\u002Fcherry-pick-resolution.md` — the full three-path procedure for resolving *which* commits\n  belong to a cherry-pick request (feature name, PR number, or SHA range) before Strategy C runs\n- `references\u002Fmerge-worktree.md` — merge or selectively cherry-pick changes from a worktree into the current branch (Strategy C's actual execution; see `references\u002Fcherry-pick-resolution.md` above for determining *which* commits first)\n- `scripts\u002Fsmoke_test.py` — persisted structural smoke test; re-run after any `SKILL.md` edit\n",{"name":5,"description":7,"allowed-tools":23},"Bash(git worktree:*), Bash(git status:*), Bash(git diff:*), Bash(git checkout:*), Bash(git cherry-pick:*), Bash(git merge:*), Bash(git merge-base:*), Bash(git reset HEAD:*), Bash(git log:*), Bash(git rev-parse:*), Bash(git fetch:*), Bash(git restore:*), Bash(git stash:*), Bash(git branch -d:*), Bash(git branch --all --contains:*), Bash(git cat-file -e:*), Bash(git add:*), Bash(diff:*), Bash(gh pr list:*), Bash(gh pr view:*), Bash(gh api repos\u002F*\u002Fpulls\u002F*\u002Fcommits:*), Bash(gh api repos\u002F*\u002Fcompare\u002F*:*), Bash(npm install:*), Bash(yarn install:*), Bash(pnpm install:*), Bash(bun install:*), AskUserQuestion","main","1bf12900cac6f28e346abd2912bdb78d306de723","plugins\u002Fgit-kit\u002Fskills\u002Fgit-worktrees","https:\u002F\u002Fgithub.com\u002FAndreHahm\u002Fandres-cc-marketplace","https:\u002F\u002Fgithub.com\u002FAndreHahm","2026-11-15 04:26:16",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add AndreHahm\u002Fandres-cc-marketplace --skill git-worktrees",{"tool":36,"command":37},"bunx","bunx skills add AndreHahm\u002Fandres-cc-marketplace --skill git-worktrees",{"tool":39,"command":40},"pnpm","pnpm dlx skills add AndreHahm\u002Fandres-cc-marketplace --skill git-worktrees","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAndreHahm\u002Fandres-cc-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fgit-kit\u002Fskills\u002Fgit-worktrees\u002FSKILL.md",true,[44,50,54,58,62],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"references\u002Fcherry-pick-resolution.md","REFERENCE","参考文档",7148,"https:\u002F\u002Fgithub.com\u002FAndreHahm\u002Fandres-cc-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fgit-kit\u002Fskills\u002Fgit-worktrees\u002Freferences\u002Fcherry-pick-resolution.md",{"path":51,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fcompare-worktrees.md",7997,"https:\u002F\u002Fgithub.com\u002FAndreHahm\u002Fandres-cc-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fgit-kit\u002Fskills\u002Fgit-worktrees\u002Freferences\u002Fcompare-worktrees.md",{"path":55,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fcreate-worktree.md",9072,"https:\u002F\u002Fgithub.com\u002FAndreHahm\u002Fandres-cc-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fgit-kit\u002Fskills\u002Fgit-worktrees\u002Freferences\u002Fcreate-worktree.md",{"path":59,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Fmerge-worktree.md",10142,"https:\u002F\u002Fgithub.com\u002FAndreHahm\u002Fandres-cc-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fgit-kit\u002Fskills\u002Fgit-worktrees\u002Freferences\u002Fmerge-worktree.md",{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"scripts\u002Fsmoke_test.py","SCRIPT","脚本",9993,"https:\u002F\u002Fgithub.com\u002FAndreHahm\u002Fandres-cc-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fgit-kit\u002Fskills\u002Fgit-worktrees\u002Fscripts\u002Fsmoke_test.py",[69,76,83,90,97,104],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M79R0K918Z0XDM74R0EY5H3P","demo","Fixture skill used by scripts.marketplace_ci sync tests.","https:\u002F\u002Fgithub.com\u002FAndreHahm\u002Fandres-cc-marketplace\u002Fblob\u002Fmain\u002Ftests\u002Fmarketplace_ci\u002Ffixtures\u002Fplugins\u002Fsample-kit\u002Fskills\u002Fdemo\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M79R08VMDJA2FPJKH3ZM309K","export-demo","Fixture skill used by scripts.marketplace_ci export tests.","https:\u002F\u002Fgithub.com\u002FAndreHahm\u002Fandres-cc-marketplace\u002Fblob\u002Fmain\u002Ftests\u002Fmarketplace_ci\u002Ffixtures\u002Fclaude\u002Fskills\u002Fexport-demo\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M79R042FS581DS2JNW5AZ1MK","work-to-development","Validate an accepted Linear Issue's readiness for implementation (criteria, dependencies, duplicate\u002Fexisting artifacts) and request governed branch\u002Fworktree creation through git-kit:starting-work — recording work-started Git\u002FGitHub evidence and a deliberate Linear Started transition only after Git identity is read back and verified. Use when asked to start work on a Linear issue, begin development for an accepted issue, or prepare an accepted issue for implementation. Never creates a branch directly — always delegates to git-kit.","https:\u002F\u002Fgithub.com\u002FAndreHahm\u002Fandres-cc-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fworkmanagement-kit\u002Fskills\u002Fwork-to-development\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":18},"01M79QZZD4EHB82P72P4N92BKT","work-linking","Create and maintain stable cross-system links and authority labels between Notion and Linear records, and detect\u002Frepair drift between them. Use when asked to link a Notion record to a Linear record, check for drift between Notion and Linear, or repair a broken\u002Fstale link. Repairs only the bounded non-authoritative copy or link — never chooses by newest timestamp, and never creates a reverse-write loop against either system's own authority.","https:\u002F\u002Fgithub.com\u002FAndreHahm\u002Fandres-cc-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fworkmanagement-kit\u002Fskills\u002Fwork-linking\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":18},"01M79QZVFA3GTVNZMJ51NESVSP","status-and-learning","Produce a dated, explicitly non-live Linear-to-Notion progress summary, or capture an outcome\u002Flearning after work completes. Use when asked to summarize progress to Notion, report portfolio status, or capture what was learned from a completed piece of work — not to disposition open follow-up items (see open-item-management for that). Never runs automatically or continuously — every summary is a deliberate, approved snapshot, not a live sync.","https:\u002F\u002Fgithub.com\u002FAndreHahm\u002Fandres-cc-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fworkmanagement-kit\u002Fskills\u002Fstatus-and-learning\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":18},"01M79QZNSKSABK7X2PT93X8QT5","repository-gates","Discover, delegate, record, and invalidate this repository's actual Git\u002FGitHub lifecycle gates (pre-commit, pre-push, PR required checks, Codex delta review, review requirements, merge rights) and the repository-policy provider profile that maps governed operations to git-kit. Use when asked what gates apply to this repository, to discover repository policy before starting Wave 2 work, or to check whether prior gate evidence is still valid after new commits. Discovery and delegation only — never executes a gate's own internal logic, and never invents a gate the repository doesn't actually define (in particular, never assumes a \"Review Changes\" gate exists).","https:\u002F\u002Fgithub.com\u002FAndreHahm\u002Fandres-cc-marketplace\u002Fblob\u002Fmain\u002Fplugins\u002Fworkmanagement-kit\u002Fskills\u002Frepository-gates\u002FSKILL.md",[],[]]