CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

git-worktree-clean

Clean up stale git worktrees with merged branch detection and disk usage report

Quality

69%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

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

Quality

Content

61%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 skill is well-structured and mostly concise, with a sound process outline and protective defaults, but key code blocks are pseudocode with broken variable scoping, and the destructive batch workflow lacks verification and error-recovery checkpoints. Fixing the discovery/interactive blocks and adding validation would raise both actionability and workflow clarity.

Suggestions

Replace the comment-only porcelain parsing loop with real code that populates $WORKTREES (parse 'worktree <path>' and 'branch <ref>' lines), so downstream blocks are executable.

Add explicit validation and error recovery: check `git worktree remove` exit status, handle dirty/untracked worktrees (fallback to --force or ask), verify with `git worktree list` after cleanup, and confirm before deleting remote branches instead of suppressing errors with 2>/dev/null.

Implement the interactive mode prompt (e.g., `read -r ANSWER` handling [r]emove/[k]eep/[s]kip) instead of the "# Wait for user decision" placeholder.

DimensionReasoningScore

Conciseness

The body is dominated by dense, purposeful code blocks and avoids explaining concepts Claude already knows. Minor trimming opportunities exist: flag effects appear in both the Flags table and the Quick reference table, plus a Usage section, and two full example reports could be shortened.

4 / 5

Actionability

The classification, auto-mode, and disk-usage blocks give concrete commands, but the worktree discovery block is pseudocode ("# Parse worktree path and branch" with an empty loop), $WORKTREES is never populated, the dry-run loop references $BRANCH/$SIZE outside their scope, and interactive mode has no actual input mechanism. It is more than high-level hints (not 2) but not mostly-executable (not 4).

3 / 5

Workflow Clarity

A clear 7-step Process sequence with pre-removal checks (protected branches, merge-base --is-ancestor, --dry-run preview), but this destructive batch workflow lacks post-removal verification and error recovery (e.g., what to do when git worktree remove fails on dirty worktrees), and auto mode silently deletes remote branches with errors suppressed. The missing validation/verification cap applies.

3 / 5

Progressive Disclosure

A single-file skill with well-labeled sections and one-level links to sibling suite commands, with no nested reference chains. Minor gaps: project-specific neonctl DB-branch material is inlined without explanation, and the linked command files are outside the bundle, so it is not the clean, fully-split 5.

4 / 5

Total

14

/

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.

A specific, domain-grounded description with good trigger terms and a clear niche. Its main weakness is the absence of an explicit "Use when..." trigger clause, which caps completeness, and minor overlap risk with sibling worktree-removal skills.

Suggestions

Append a "Use when..." clause to the description, e.g. "Use when cleaning up stale or merged worktrees, reclaiming disk space, or pruning old branches after merges."

Include natural synonyms users might say, such as "prune", "remove old worktrees", or "reclaim disk space", to broaden trigger coverage.

Differentiate from /git-worktree-remove by emphasizing the batch/safe-cleanup angle (e.g. "batch cleanup with merged-branch detection") in the description itself.

DimensionReasoningScore

Specificity

"Clean up stale git worktrees", "merged branch detection", and "disk usage report" list three concrete actions in a named domain. It falls short of 5 because coverage has gaps (interactive unmerged handling, flags, DB branch cleanup are not mentioned).

4 / 5

Completeness

The description clearly answers "what" (cleanup with merged-branch detection and disk usage reporting) but contains no "Use when..." clause or equivalent trigger guidance, which caps completeness at 3 per the rubric guidelines. The separate frontmatter when_to_use field does not appear in the description itself.

3 / 5

Trigger Term Quality

Natural phrases like "stale git worktrees", "merged branch", and "disk usage" match what users would say. A few natural synonyms ("prune", "remove", "old worktrees") are missing, so it is not a 5.

4 / 5

Distinctiveness Conflict Risk

"Clean up stale git worktrees with merged branch detection" carves a clear niche, but it overlaps with the closely related /git-worktree-remove skill in the same suite. Mostly distinct with minor overlap risk, fitting the 4 anchor better than the minimal-conflict 5 anchor.

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: 4 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.