Skip to content
Back to skills

Ask Uncommitted Deletes

ASecurity

Best effort, ask only. Asks a person before a shell command deletes or overwrites a file git holds no copy of: an untracked file, or a tracked file with uncommitted changes. Reads rm, git checkout and git restore of a path, git rm -f, and mv or cp onto a file; globs are expanded. Ignored files, clean tracked files and paths outside the repository pass. Misses: scripts, find -delete, redirections.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 5, 2026
ai-agentsshellgit

Works with

  • cli

Security analysis

A93/100
  • highPerforms destructive filesystem operations

Pro shows the line behind each finding and how to fix it

Scanned December 5, 2026

npx -y skills add open-coder-ai/chock-catalog --skill ask-uncommitted-deletes --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ask Uncommitted Deletes?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ask Uncommitted Deletes
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/open-coder-ai-ask-uncommitted-deletes/badge)](https://www.skillsdirectory.com/skills/open-coder-ai-ask-uncommitted-deletes)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ask-uncommitted-deletes
description: "Best effort, ask only. Asks a person before a shell command deletes or overwrites a file git holds no copy of: an untracked file, or a tracked file with uncommitted changes. Reads rm, git checkout and git restore of a path, git rm -f, and mv or cp onto a file; globs are expanded. Ignored files, clean tracked files and paths outside the repository pass. Misses: scripts, find -delete, redirections."
metadata:
  chock.artifact: rule
  chock.enforcement: advise
  chock.coverage_without_chock: advisory
---

# Ask Before Deleting Uncommitted Files

Best effort, ask only. Asks a person before a shell command deletes or overwrites a file git holds no copy of: an untracked file, or a tracked file with uncommitted changes. Reads rm, git checkout and git restore of a path, git rm -f, and mv or cp onto a file; globs are expanded. Ignored files, clean tracked files and paths outside the repository pass. Misses: scripts, find -delete, redirections.

```
ask_person: destroys(untracked|modified_tracked) via rm|git(checkout|restore path)|git rm -f|mv|cp onto; name(file, why); say(commit|stash|ask first)
pass: git_has_copy(clean_tracked)|ignored|outside_repo|restore --staged|clean -n|clean -X|rm -rf of safe dirs (block-destructive-commands owns); unreadable_target: ask only if repo has untracked|modified
```

This skill is advisory: the client reading it has no mechanism to enforce it. The same policy compiled by `chock` can refuse an agent's shell command before it runs. See https://github.com/open-coder-ai/chock

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.