CtrlK
BlogDocsLog inGet started
Tessl Logo

close-github-worktree-done

在用户显式 @ 本 skill 或明确下达「关闭 worktree 并完成需求」类指令时:将指定分支关联的 GitHub Issue 关闭(可选并确认),移除本地 git worktree 目录与本地分支(不删除远程分支)。 必须在 master 分支上执行。用户可指定要关闭的分支名;若未指定,列出所有 worktree 供用户选择。 不得因仅提及 GitHub、issue、worktree、git 等词而自动套用;须以用户主动调用本工作流为准。

73

Quality

92%

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

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

A tight, highly actionable destructive-operation workflow with strong sequencing, validation checkpoints, and user-consent gates at every risky step. The only real issues are minor repetition of safety reminders and a Step 4 fallback that depends on scripts from a different skill directory that are not part of this bundle.

DimensionReasoningScore

Conciseness

The body is dense and operational, assuming Claude knows git (no concept tutorials), but the safety line '本步骤不删除远程分支;不执行 git push --delete' is repeated three times across Steps 2, 3, and 5, and some rationale prose could be trimmed. Efficient with minor over-explanation, so 4 rather than 5.

4 / 5

Actionability

Guidance is fully executable throughout: concrete commands ('git worktree remove [--force] "<TARGET_ROOT>"', 'git branch -d', 'git -C "<TARGET_ROOT>" status --porcelain', 'git branch --merged master'), complete MCP call blocks with owner/repo/issue_number arguments, and platform-specific script invocations. Copy-paste ready with the common cases covered.

5 / 5

Workflow Clarity

Steps 0–5 are clearly sequenced with an explicit ordering rationale ('须先确认本地存在可移除的 worktree…再操作 GitHub Issue'), and the destructive operations are surrounded by validation checkpoints: master-branch check, TARGET_ROOT≠MAIN_ROOT guard, dirty-worktree consent, fetch/merge sync plus 'git branch --merged' confirmation via AskQuestion, issue-state read before closing, and '-d' refusal handling. Because validation and feedback loops (abort on fetch failure, user decides on MCP failure) are explicit, the destructive-operation cap at 3 does not apply.

5 / 5

Progressive Disclosure

A single well-organized file with clear sections and no nested references, appropriate for a ~150-line workflow. It falls short of 5 because 方式 B in Step 4 references scripts under '.cursor/skills/github-worktree/scripts/' that are not part of this bundle (no references/, scripts/, or assets/ directories exist), an external dependency that is neither bundled nor clearly signaled as belonging to another skill.

4 / 5

Total

18

/

20

Passed

Description

92%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 highly specific, explicit description that clearly states what the skill does, when it applies (explicit invocation only), and what it deliberately will not do (no remote branch deletion, no auto-trigger on keyword mentions). Trigger synonym coverage is the only weak point.

DimensionReasoningScore

Specificity

The description lists multiple concrete actions — '将指定分支关联的 GitHub Issue 关闭(可选并确认),移除本地 git worktree 目录与本地分支(不删除远程分支)' — plus explicit constraints ('必须在 master 分支上执行', branch selection fallback), giving comprehensive coverage of the skill's scope. It is not a 4 because there are no minor gaps: every capability of the workflow is named.

5 / 5

Completeness

Both 'what' (close the linked GitHub issue, remove the local worktree, delete the local branch) and 'when' are answered explicitly with concrete trigger phrasing: '在用户显式 @ 本 skill 或明确下达「关闭 worktree 并完成需求」类指令时…须以用户主动调用本工作流为准'. Not a 4, because the 'when' clause is explicit and specific rather than merely present.

5 / 5

Trigger Term Quality

Natural trigger phrasing is present ('关闭 worktree 并完成需求', GitHub, issue, worktree, git, 分支), matching how a user would invoke this. It falls short of the 5 anchor because common synonyms and variations (e.g. 清理/删除 worktree, close issue, 删除本地分支) are not covered.

4 / 5

Distinctiveness Conflict Risk

The description carves out a clear niche and actively guards against false triggers — '不得因仅提及 GitHub、issue、worktree、git 等词而自动套用' — so conflict with other git/GitHub skills is minimal. Not a 4, because the negative trigger guard makes overlap risk essentially explicit and controlled.

5 / 5

Total

19

/

20

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.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository
TencentBlueKing/bk-ci
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.