{"id":"87cddbec-715e-4b9a-8fbe-cef9c354c101","shortId":"QAAVcg","kind":"skill","title":"worktree-clean","tagline":"Use when removing a git worktree and cleaning up its associated local branch from the main repository.","description":"worktree_path = $ARGUMENTS\n\nRemove a local worktree and delete its associated local branch. If no argument is provided, list worktrees and ask which to remove.\n\n## Local Only\n\nRemote branches carry invisible state — open MRs, CI pipelines, review comments, deployment triggers — and deleting one can auto-close an MR silently. The user owns remote-branch deletions.\n\n## When Removal Resists\n\n`git worktree remove` fails on unclean state; `git branch -d` fails on unmerged branches. Trivial leftovers (build artifacts, debug logs, already-pushed-or-merged work) justify forcing autonomously. Substantive uncommitted or unmerged work — describe what you found and let the user decide.\n\nRun `git worktree prune` after removal to clear stale internal references.","tags":["worktree","clean","dotclaude","jhostalek","agent-skills","ai-coding","anthropic","claude","claude-code","claude-code-skills","code-review","codex-cli"],"capabilities":["skill","source-jhostalek","skill-worktree-clean","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-clean","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 (758 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:17.968Z","embedding":null,"createdAt":"2026-05-18T13:20:35.074Z","updatedAt":"2026-05-18T19:13:17.968Z","lastSeenAt":"2026-05-18T19:13:17.968Z","tsv":"'alreadi':102 'already-pushed-or-merg':101 'argument':23,36 'artifact':98 'ask':42 'associ':14,31 'auto':66 'auto-clos':65 'autonom':109 'branch':16,33,49,76,89,94 'build':97 'carri':50 'ci':55 'clean':3,11 'clear':131 'close':67 'comment':58 'd':90 'debug':99 'decid':123 'delet':29,62,77 'deploy':59 'describ':115 'fail':84,91 'forc':108 'found':118 'git':8,81,88,125 'intern':133 'invis':51 'justifi':107 'leftov':96 'let':120 'list':39 'local':15,26,32,46 'log':100 'main':19 'merg':105 'mr':69 'mrs':54 'one':63 'open':53 'own':73 'path':22 'pipelin':56 'provid':38 'prune':127 'push':103 'refer':134 'remot':48,75 'remote-branch':74 'remov':6,24,45,79,83,129 'repositori':20 'resist':80 'review':57 'run':124 'silent':70 'skill' 'skill-worktree-clean' 'source-jhostalek' 'stale':132 'state':52,87 'substant':110 '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' 'trigger':60 'trivial':95 'unclean':86 'uncommit':111 'unmerg':93,113 'use':4 'user':72,122 'work':106,114 'worktre':2,9,21,27,40,82,126 'worktree-clean':1","prices":[{"id":"3695b558-b08b-4d16-833e-3769330760fe","listingId":"87cddbec-715e-4b9a-8fbe-cef9c354c101","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.074Z"}],"sources":[{"listingId":"87cddbec-715e-4b9a-8fbe-cef9c354c101","source":"github","sourceId":"JHostalek/dotclaude/worktree-clean","sourceUrl":"https://github.com/JHostalek/dotclaude/tree/main/skills/worktree-clean","isPrimary":false,"firstSeenAt":"2026-05-18T13:20:35.074Z","lastSeenAt":"2026-05-18T19:13:17.968Z"}],"details":{"listingId":"87cddbec-715e-4b9a-8fbe-cef9c354c101","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"JHostalek","slug":"worktree-clean","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":"0347abf7d75b49400abe6e1703a9e6b59f8d473e","skill_md_path":"skills/worktree-clean/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/JHostalek/dotclaude/tree/main/skills/worktree-clean"},"layout":"multi","source":"github","category":"dotclaude","frontmatter":{"name":"worktree-clean","description":"Use when removing a git worktree and cleaning up its associated local branch from the main repository."},"skills_sh_url":"https://skills.sh/JHostalek/dotclaude/worktree-clean"},"updatedAt":"2026-05-18T19:13:17.968Z"}}