CtrlK
BlogDocsLog inGet started
Tessl Logo

nv-worktree-cleanup

Audits git worktrees and removes the ones that are safe to delete — merged into the base branch (including squash-merges via `gh`), missing on disk, or explicitly confirmed by the user — then deletes the associated local branches and runs `git worktree prune`. Use when the user asks to clean up worktrees, prune worktrees, list stale worktrees, remove merged worktrees or branches, or reclaim disk space from old checkouts.

80

Quality

100%

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

SKILL.md
Quality
Evals
Security

Quality

Content

100%

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

An excellent destructive-operations skill: executable commands, a well-sequenced workflow with explicit validation and a consolidated approval gate, and tight organization without concept filler. The only nit is that the squash-merge/-D rationale is restated several times, which could be consolidated once and referenced.

Suggestions

Consolidate the squash-merge/-D rationale (currently restated in the classification table, step 5, the anti-patterns, and the example) into one canonical explanation and reference it, to shave redundant tokens.

The worked example session largely re-traces the workflow steps; consider trimming it to the non-obvious decisions (squash `-D`, missing→prune) to reduce length without losing clarity.

DimensionReasoningScore

Conciseness

Lean and assumes Claude's git competence — it never explains what a worktree is or how `gh` works, and every section drives action. It is not a 2 because there is no concept teaching or padding; the only redundancy is the squash-merge/-D rationale, which recurs because it is a gotcha encountered at distinct decision points.

3 / 3

Actionability

Provides copy-paste-ready, executable commands throughout — `git worktree list --porcelain`, `git merge-base --is-ancestor`, `gh pr list --state merged --head <branch> --json number`, `git worktree remove`, `git branch -d/-D`, `git worktree prune` — plus a concrete classification table and worked example labels.

3 / 3

Workflow Clarity

A clearly sequenced 6-step workflow (enumerate → base branch → classify → consolidate approval → execute → finalize) with validation checkpoints appropriate to a destructive batch operation: `git fetch --prune origin` first, safe-delete defaults, a single consolidated `AskQuestion` gate, and a final report of removed/skipped/failed entries.

3 / 3

Progressive Disclosure

No bundle files exist, so there are no broken or deeply nested references; the body is well-organized into Hard rules, Workflow, Anti-patterns, and Example session. For a single cohesive destructive-ops task, forcing an external split would be artificial, so the self-contained, clearly sectioned structure earns the top anchor.

3 / 3

Total

12

/

12

Passed

Description

100%

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 strong, third-person description that states concrete capabilities and provides an explicit, natural-language trigger clause. It neither over-claims nor pads with fluff, and its scope is distinct enough to avoid conflicting with sibling skills.

DimensionReasoningScore

Specificity

Lists multiple concrete actions — 'Audits git worktrees and removes the ones that are safe to delete', 'deletes the associated local branches', 'runs git worktree prune' — and names three specific safety conditions (merged, missing, confirmed), matching the 'lists multiple specific concrete actions' anchor.

3 / 3

Completeness

Explicitly answers both what (audit + safe removal + branch deletion + prune, including squash-merge handling) and when (an explicit 'Use when...' trigger clause), matching the top anchor.

3 / 3

Trigger Term Quality

The 'Use when' clause covers natural phrasings users would actually say: 'clean up worktrees, prune worktrees, list stale worktrees, remove merged worktrees or branches, or reclaim disk space from old checkouts' — strong coverage with common variations.

3 / 3

Distinctiveness Conflict Risk

Occupies a clear niche (git worktree lifecycle cleanup) with distinct, specific triggers unlikely to fire for unrelated skills; would not conflict with general git or branch skills.

3 / 3

Total

12

/

12

Passed

Validation

100%

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

Validation16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository
novuhq/novu
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.