·safe-worktree
</>

safe-worktree

Safely remove issue worktrees and branches with policy-aware fallbacks. Use for post-merge cleanup or abandoned issue cleanup when branch/worktree deletion commands may be blocked. Aggressively protects main/master and other integration branches, and when local branch-deletion safeguards are missing, proactively offer to install lightweight protection hooks first.

4Installs·0Trend·@robertmsale

Installation

$npx skills add https://github.com/robertmsale/.codex --skill safe-worktree

How to Install safe-worktree

Quickly install safe-worktree AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/robertmsale/.codex --skill safe-worktree
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: robertmsale/.codex.

SKILL.md

View raw

Overview Use this skill to clean up issue worktrees and branches without risking main/master or the active integration branch.

This workflow is built for Codex command-policy environments where commands like git branch -d or git push origin --delete may be rejected.

Branch Protection Baseline Before cleanup, check whether the repo already enforces local branch-deletion safeguards (for example, protected branch hooks in core.hooksPath).

Safely remove issue worktrees and branches with policy-aware fallbacks. Use for post-merge cleanup or abandoned issue cleanup when branch/worktree deletion commands may be blocked. Aggressively protects main/master and other integration branches, and when local branch-deletion safeguards are missing, proactively offer to install lightweight protection hooks first. Source: robertmsale/.codex.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/robertmsale/.codex --skill safe-worktree
Category
</>Dev Tools
Verified
First Seen
2026-02-25
Updated
2026-03-10

Browse more skills from robertmsale/.codex

Quick answers

What is safe-worktree?

Safely remove issue worktrees and branches with policy-aware fallbacks. Use for post-merge cleanup or abandoned issue cleanup when branch/worktree deletion commands may be blocked. Aggressively protects main/master and other integration branches, and when local branch-deletion safeguards are missing, proactively offer to install lightweight protection hooks first. Source: robertmsale/.codex.

How do I install safe-worktree?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/robertmsale/.codex --skill safe-worktree Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

https://github.com/robertmsale/.codex

Details

Category
</>Dev Tools
Source
skills.sh
First Seen
2026-02-25