CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

git-worktree-clean

This skill guides cleanup of stale Git worktrees, protecting designated branches and checking disk usage while distinguishing merged from unmerged branches. It provides dry-run, automatic, and interactive modes, with optional remote-branch deletion and reminders to clean up corresponding database branches. It recommends previewing potentially destructive cleanup and running the process weekly.

Quality

66%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

Fix and improve this skill with Tessl

tessl review fix ./examples/skills/git-worktree-clean/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Scored by GLM 5.3

Content

53%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body is well-structured with concrete commands and a clear default-safe process, but key code blocks are incomplete pseudocode and the destructive batch workflow lacks verification/feedback loops after removal. Redundant report examples and tables also cost token efficiency.

Suggestions

Complete the worktree-discovery parsing loop with real porcelain-output parsing so the core snippet is executable end to end.

Add post-removal validation (e.g., re-run git worktree list, git worktree prune, confirm branch deletion) so the destructive batch flow has an explicit verification checkpoint.

Consolidate the Flags table and Quick Reference table, and shorten one of the two full sample reports, to cut duplicated content.

DimensionReasoningScore

Conciseness

Sections are mostly command-first and efficient, but the two full sample reports and a Quick Reference table that duplicates the Flags table are unnecessary padding that could be trimmed.

3 / 5

Actionability

Concrete git commands appear throughout, but foundational snippets are pseudocode: the discovery loop body is only comments ("# Parse worktree path and branch"), the dry-run loop references unset $BRANCH/$SIZE variables, and interactive mode stops at "# Wait for user decision per worktree".

3 / 5

Workflow Clarity

The 7-step process is clearly sequenced with pre-flight checks (protected branches, merge-base, dry-run preview), but as a destructive batch operation it lacks post-removal verification and error-recovery feedback loops, which caps workflow clarity at 3 per the rubric.

3 / 5

Progressive Disclosure

With no bundle files, the single SKILL.md is well-organized into clear sections with tables and cross-links to sibling skills; minor gap is that the long sample-report templates could be split into a reference file as the skill grows.

4 / 5

Total

13

/

20

Passed

Description

66%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

The description is specific and domain-distinct with concrete named actions, but it omits any "when to use" trigger phrasing, relying on a separate when_to_use field instead. Folding trigger guidance into the description and adding synonyms like "remove" or "prune" would raise it.

Suggestions

Append a trigger clause to the description itself, e.g. "Use when the user wants to clean up, remove, or prune stale or merged git worktrees."

Add natural synonym terms (remove, delete, prune worktrees) so the description matches how users actually phrase the request.

Differentiate from /git-worktree-remove by stating this skill's batch/suite role (batch cleanup with disk-usage reporting) in the description.

DimensionReasoningScore

Specificity

"Clean up stale git worktrees", "merged branch detection", and "disk usage report" name three concrete actions, matching the several-specific-actions anchor with minor gaps (interactive unmerged handling and remote branch deletion are unmentioned).

4 / 5

Completeness

The description gives a clear "what" but contains no "Use when..." clause — trigger guidance lives only in the separate when_to_use frontmatter key, which per the rubric caps completeness at 3.

3 / 5

Trigger Term Quality

Natural terms like "clean up", "stale", "git worktrees", and "merged branch" are present, but common variations users would say ("remove/delete worktrees", "prune") are missing, so coverage is good rather than comprehensive.

4 / 5

Distinctiveness Conflict Risk

"git worktrees" is a clear niche, but as one of four sibling worktree skills (notably overlapping /git-worktree-remove, whose scope is also cleanup/removal) there is minor conflict risk with a closely related skill.

4 / 5

Total

15

/

20

Passed

Validation

87%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 14 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

relative_links

Relative link issues: 3 suspicious

Warning

Total

14

/

16

Passed

Repository

FlorianBruniaux/claude-code-ultimate-guide

Path

examples/skills/git-worktree-clean/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.