CtrlK
BlogDocsLog inGet started
Tessl Logo

1k-worktree-clean

Use when the user wants to audit local git worktrees against origin/x, choose by number or A, and decide whether stale worktree directories, already-merged worktrees, or no-delta worktrees can be cleaned up. Triggers on "worktree clean", "worktree 合并到 x", "检测哪些 worktree 已进 x".

68

Quality

84%

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

81%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.

Highly actionable content with an exemplary safety-sequenced workflow for a destructive batch operation — explicit confirmation gates, fallbacks, and recovery loops throughout. The main costs are token redundancy between the Rules and Steps sections and a lengthy inline interpretation section that pushes the file past overview length.

Suggestions

Deduplicate the Rules section against Steps 2, 4, and 5 (fetch origin/x, cleanup-candidate surfacing, confirmation before deletion are each stated twice) — keep Rules for invariants only and let the steps carry the procedure.

Move "How To Interpret The Result" into a reference file (e.g. references/result-codes.md) and keep only the summary table inline, trimming SKILL.md toward overview length.

Tighten long multi-clause sentences such as the MERGED_TO_ORIGIN_X_BY_PATCH_ID paragraph into short per-code bullet points.

DimensionReasoningScore

Conciseness

Mostly operational with no explanation of concepts Claude already knows, but the "Rules" section substantially duplicates instructions restated in Steps 2, 4, and 5 (fetch origin/x, cleanup candidates, confirmation before deletion), and "How To Interpret The Result" contains dense multi-clause sentences that could be tightened. Not 4 because the duplication is more than minor trimming; not 2 because there is no generic padding or tutoring.

3 / 5

Actionability

Every step gives copy-paste-ready commands with all selection variants ("check 1", "check 1,3", "check A"), exact removal commands ("rtk git worktree remove <path>", "rtk proxy rm -rf <path>"), and the exact user-facing reply phrases to append. The referenced script exists with matching list/check/cleanup-candidates subcommands. Matches the fully-executable anchor.

5 / 5

Workflow Clarity

A clear 5-step sequence with explicit validation checkpoints and feedback loops appropriate to a destructive batch operation: always fetch before checking, dirty state reported separately, explicit user confirmation gate before any deletion ("Never auto-delete anything before the user explicitly confirms"), NEEDS_MANUAL_REVIEW fallback instead of guessing, and sandbox-blocked → request approval → rerun recovery. The destructive-operation cap does not apply because verification is thorough.

5 / 5

Progressive Disclosure

Good structure: the SKILL.md workflow points to a single real one-level-deep bundle script (scripts/1k-worktree-clean.sh, verified to exist with the referenced subcommands), and sections are clearly headed. Not 5 because the skill is ~130 lines with the entire result-code interpretation ("How To Interpret The Result") and output contract inlined — material that could live in a reference file at this length; not 3 because references are real, clearly signaled, and nothing is buried.

4 / 5

Total

17

/

20

Passed

Description

87%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 strong description: concrete capabilities, explicit bilingual trigger phrases, and clear what/when structure in third person. Its only weaknesses are a few missing natural trigger variations ("worktree cleanup", "删除 worktree") and slightly incomplete coverage of the surfaced metadata in the capability list.

DimensionReasoningScore

Specificity

Lists several concrete actions — "audit local git worktrees against origin/x", "choose by number or A", "decide whether stale worktree directories, already-merged worktrees, or no-delta worktrees can be cleaned up" — with only minor gaps (PR-status surfacing and the merged-check method are not mentioned, and "choose by number or A" is interaction detail rather than a capability). Not 5 because coverage is not fully comprehensive; not 3 because it goes well beyond naming 1-2 actions.

4 / 5

Completeness

Explicitly answers both: what it does ("audit local git worktrees against origin/x ... decide whether ... can be cleaned up") and when to use it ("Use when the user wants to" plus concrete "Triggers on" phrases). Matches the 5 anchor: both what and when with concrete trigger phrases; third-person voice is used throughout.

5 / 5

Trigger Term Quality

Explicit triggers "worktree clean", "worktree 合并到 x", "检测哪些 worktree 已进 x" are natural phrases a user would say, in both English and Chinese. Not 5 because common variations like "worktree cleanup", "remove/delete worktree", or "清理 worktree" are missing; not 3 because coverage is clearly better than a single generic keyword.

4 / 5

Distinctiveness Conflict Risk

Clear niche — auditing local worktrees against a specific remote branch origin/x for cleanup decisions — with distinct trigger phrases, so overlap with adjacent git skills (e.g. worktree creation or general branch management) is minimal. Not 4 because no closely related skill would plausibly capture these specific triggers.

5 / 5

Total

18

/

20

Passed

Validation

93%

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

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

allowed_tools_field

'allowed-tools' contains unusual tool name(s)

Warning

Total

15

/

16

Passed

Repository
OneKeyHQ/app-monorepo
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.