clean-closed-issue-worktrees
Clean Closed-Issue Git Worktrees Safely
Completed issue worktrees consume disk space and leave stale Git registrations. This skill audits candidates and removes only explicitly confirmed targets after safety checks.
安装前请停下并请求确认。
请审查安装计划,并在更改文件前获得用户明确同意。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "clean-closed-issue-worktrees" from https://skillstore.io/skills/haoranyu-clean-closed-issue-worktrees.md and its manifest at https://skillstore.io/api/skills/haoranyu-clean-closed-issue-worktrees/manifest. Verify the artifact. Stop and obtain explicit user consent before installing or changing files.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“clean-closed-issue-worktrees”。 Scan my repository and find worktrees linked to closed issues.
预期结果:
- Recommended: /workspace/project-1459, issue 1459 closed, clean, inactive, and retained by a remote branch.
- Keep: /workspace/project-1510, issue 1510 remains open.
- Needs review: /workspace/project-1402 contains an unapproved ignored environment file.
正在使用“clean-closed-issue-worktrees”。 Prepare cleanup for the two recommended worktrees and retain branches.
预期结果:
Prepared a two-target plan that retains both branches. Review the exact paths and confirmation identifier before execution.
正在使用“clean-closed-issue-worktrees”。 Remove the confirmed targets.
预期结果:
Removed both confirmed worktrees, retained their branches, deleted the temporary plan, and reported the estimated reclaimed space.
安全审计
高风险The static findings are false positives caused by documentation examples, Markdown backticks, safety glob names, and argument-vector subprocess calls. However, execute accepts an editable plan without authenticating its origin and omits several create-plan policy checks, enabling bypass of approval safeguards.
已确认安全问题 (1)
风险因素
🌐 网络访问 (4)
⚙️ 外部命令 (26)
📁 文件系统访问 (6)
🔑 环境变量 (1)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/haoranyu-clean-closed-issue-worktrees/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/haoranyu-clean-closed-issue-worktrees?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/haoranyu-clean-closed-issue-worktrees?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/haoranyu-clean-closed-issue-worktrees/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/haoranyu-clean-closed-issue-worktrees.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
haoranyu. (2026). clean-closed-issue-worktrees security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/haoranyu-clean-closed-issue-worktrees/audits/1BibTeX 引用
@techreport{haoranyu-haoranyu-clean-closed-issue-worktrees-2026,
author = {haoranyu},
title = {clean-closed-issue-worktrees security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/haoranyu-clean-closed-issue-worktrees/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "clean-closed-issue-worktrees security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "haoranyu"
date-released: "2026-08-30"
url: "https://skillstore.io/skills/haoranyu-clean-closed-issue-worktrees/audits/1"
identifiers:
- type: other
value: "skillstore:haoranyu-clean-closed-issue-worktrees:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
Reclaim Developer Disk Space
Audit old feature worktrees, review exact candidates, and remove approved directories while keeping local branches.
Maintain Shared Build Hosts
Find completed issue worktrees while preserving active, dirty, locked, or uncertain environments.
Close Repository Maintenance Cycles
Verify GitHub or GitLab completion evidence before cleaning branches and worktree registrations.
试试这些提示
Scan the repository at [repository path]. Show every worktree and do not remove anything.
Match worktrees in [repository path] to closed items from [GitHub or GitLab URL]. Recommend safe candidates and explain every exclusion.
Prepare a cleanup plan for [exact paths]. Keep branches, show ignored-path risks, and ask for confirmation before creating the plan.
Audit [repository path] against [baseline]. Propose backup branches for orphan commits and safe branch deletion only after ancestry verification.
最佳实践
- Run the inventory from outside every possible removal target.
- Verify each issue or change through an authoritative provider route immediately before execution.
- Keep branches by default and review sensitive or unknown ignored paths explicitly.
避免
- Do not treat a scan request as approval to remove worktrees.
- Do not infer issue identity from directory numbers or title similarity alone.
- Do not use forced worktree or branch deletion commands.
常见问题
Does this skill remove worktrees during a scan?
Does it support GitHub and GitLab?
Will it delete local branches?
How are ignored files handled?
Can it clean active or dirty worktrees?
What happens when execution fails?
开发者详情
作者
haoranyu许可证
MIT
Skillstore 修订
r1
版本提示
作者未声明版本。
引用
fc3130f4d3c7bcbf7ce69176507137d35adfc0d8
维护新鲜度
2026/8/30
使用量
1 次下载 · 1 次浏览
文件结构