{"id":"fb8e4ae0-52e5-486d-bfdb-e2841e097c7f","shortId":"FUXR5R","kind":"skill","title":"worktree","tagline":"Use when starting new feature work that should happen in an isolated git worktree on its own branch.","description":"input = $ARGUMENTS\n\n## Branch Name\n\nDerive from user input (ask if missing). Default format: `<type>/<kebab-description>` using conventional commit types (`feat` when ambiguous). **Check `git branch` first** — if the repo uses a different convention (e.g., `feature/JIRA-123-desc`), match it.\n\nShow the derived name before proceeding.\n\n## Worktree Location\n\n- `{repo_root}/.claude/worktrees/{branch_slug}` where `branch_slug` replaces `/` with `-`\n- `repo_root` = `git rev-parse --show-toplevel`\n- Ensure `.claude/worktrees/` exists and is in `.gitignore`\n\n## Base Branch\n\nBranch from the latest remote default, not from `HEAD` — `HEAD` can be stale or on an unrelated branch, silently seeding the worktree with the wrong history.\n\n1. Detect default: `git symbolic-ref refs/remotes/origin/HEAD | sed 's|refs/remotes/origin/||'` (fallback: try `main`, then `master`)\n2. Fetch: `git fetch origin {default_branch}`\n3. Create: `git worktree add -b {branch} {directory} origin/{default_branch}`\n\nIf the branch already exists: `git worktree add {directory} {branch}` (no `-b`).\n\nAfter creation, symlink gitignored files so the worktree runs without a reinstall:\n```\nbash ~/.claude/skills/worktree/scripts/symlink-gitignored.sh {repo_root} {directory}\n```\n\n## Output\n\nShow: worktree path, `claude --cwd {directory}` command, reminder to use `/worktree-clean` when done, and `git worktree list`.","tags":["worktree","dotclaude","jhostalek","agent-skills","ai-coding","anthropic","claude","claude-code","claude-code-skills","code-review","codex-cli","cursor"],"capabilities":["skill","source-jhostalek","skill-worktree","topic-agent-skills","topic-ai-coding","topic-anthropic","topic-claude","topic-claude-code","topic-claude-code-skills","topic-code-review","topic-codex-cli","topic-cursor","topic-developer-tools","topic-git-workflow","topic-multi-agent"],"categories":["dotclaude"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/JHostalek/dotclaude/worktree","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add JHostalek/dotclaude","source_repo":"https://github.com/JHostalek/dotclaude","install_from":"skills.sh"}},"qualityScore":"0.454","qualityRationale":"deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (1,387 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T19:13:18.216Z","embedding":null,"createdAt":"2026-05-18T13:20:35.159Z","updatedAt":"2026-05-18T19:13:18.216Z","lastSeenAt":"2026-05-18T19:13:18.216Z","tsv":"'/.claude/skills/worktree/scripts/symlink-gitignored.sh':176 '/.claude/worktrees':65 '/worktree-clean':191 '1':117 '2':133 '3':140 'add':144,158 'alreadi':154 'ambigu':39 'argument':21 'ask':28 'b':145,162 'base':89 'bash':175 'branch':19,22,42,66,69,90,91,108,139,146,150,153,160 'check':40 'claud':184 'claude/worktrees':83 'command':187 'commit':35 'convent':34,50 'creat':141 'creation':164 'cwd':185 'default':31,96,119,138,149 'deriv':24,57 'detect':118 'differ':49 'directori':147,159,179,186 'done':193 'e.g':51 'ensur':82 'exist':84,155 'fallback':128 'feat':37 'featur':6 'feature/jira-123-desc':52 'fetch':134,136 'file':167 'first':43 'format':32 'git':14,41,75,120,135,142,156,195 'gitignor':88,166 'happen':10 'head':99,100 'histori':116 'input':20,27 'isol':13 'latest':94 'list':197 'locat':62 'main':130 'master':132 'match':53 'miss':30 'name':23,58 'new':5 'origin':137,148 'output':180 'pars':78 'path':183 'proceed':60 'ref':123 'refs/remotes/origin':127 'refs/remotes/origin/head':124 'reinstal':174 'remind':188 'remot':95 'replac':71 'repo':46,63,73,177 'rev':77 'rev-pars':76 'root':64,74,178 'run':171 'sed':125 'seed':110 'show':55,80,181 'show-toplevel':79 'silent':109 'skill' 'skill-worktree' 'slug':67,70 'source-jhostalek' 'stale':103 'start':4 'symbol':122 'symbolic-ref':121 'symlink':165 'topic-agent-skills' 'topic-ai-coding' 'topic-anthropic' 'topic-claude' 'topic-claude-code' 'topic-claude-code-skills' 'topic-code-review' 'topic-codex-cli' 'topic-cursor' 'topic-developer-tools' 'topic-git-workflow' 'topic-multi-agent' 'toplevel':81 'tri':129 'type':36 'unrel':107 'use':2,33,47,190 'user':26 'without':172 'work':7 'worktre':1,15,61,112,143,157,170,182,196 'wrong':115","prices":[{"id":"8c19710a-0197-4315-b304-a94baf3350b6","listingId":"fb8e4ae0-52e5-486d-bfdb-e2841e097c7f","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"JHostalek","category":"dotclaude","install_from":"skills.sh"},"createdAt":"2026-05-18T13:20:35.159Z"}],"sources":[{"listingId":"fb8e4ae0-52e5-486d-bfdb-e2841e097c7f","source":"github","sourceId":"JHostalek/dotclaude/worktree","sourceUrl":"https://github.com/JHostalek/dotclaude/tree/main/skills/worktree","isPrimary":false,"firstSeenAt":"2026-05-18T13:20:35.159Z","lastSeenAt":"2026-05-18T19:13:18.216Z"}],"details":{"listingId":"fb8e4ae0-52e5-486d-bfdb-e2841e097c7f","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"JHostalek","slug":"worktree","github":{"repo":"JHostalek/dotclaude","stars":8,"topics":["agent-skills","ai-coding","anthropic","claude","claude-code","claude-code-skills","code-review","codex-cli","cursor","developer-tools","git-workflow","multi-agent","prompt-engineering","skill-md"],"license":"cc0-1.0","html_url":"https://github.com/JHostalek/dotclaude","pushed_at":"2026-05-17T15:07:41Z","description":"Agent skills for agentic coding tools. Extremely opinionated. Updated (almost) daily.","skill_md_sha":"4b5ffbad5f77e8f40d3fb3e21e09c4b44726ae55","skill_md_path":"skills/worktree/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/JHostalek/dotclaude/tree/main/skills/worktree"},"layout":"multi","source":"github","category":"dotclaude","frontmatter":{"name":"worktree","description":"Use when starting new feature work that should happen in an isolated git worktree on its own branch."},"skills_sh_url":"https://skills.sh/JHostalek/dotclaude/worktree"},"updatedAt":"2026-05-18T19:13:18.216Z"}}