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.
توقف واطلب التأكيد قبل التثبيت.
راجع الخطة واحصل على موافقة صريحة من المستخدم قبل تغيير الملفات.
التثبيت باستخدام Agent لدي
انسخ هذا الطلب إلى Agent لديك. يتضمن صفحة Skill المعتمدة وملف manifest.
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 عرض خطته وطلب أي تأكيد تفرضه سياسة الأمان.
موارد مهيّأة لـ Agents
استخدم هذه الروابط عندما يحتاج AI Agent أو crawler أو script إلى سياق نظيف بدلًا من قراءة الصفحة كاملة.
اختبرها
جارٍ استخدام "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 الأدلة من دون أن تقرر ما إذا كانت هذه المهارة آمنة.
نسخ رابط التقرير
https://skillstore.io/skills/haoranyu-clean-closed-issue-worktrees/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportشارة Markdown
[](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/1اقتباس BibTeX
@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
حداثة الصيانة
٣٠/٨/٢٠٢٦
الاستخدام
1 تنزيلات · 1 مشاهدات
بنية الملفات