Skill / SKILL.md

Guarding Destructive Operations

wdm0006/python-skills

Add and review preconditions on operations that delete, overwrite, rewrite history, or resolve a caller-supplied name to a filesystem path — refusing instead of warning, placing the guard ahead of the first mutation, structural classification rather than string-prefix matching, name validation plus resolved-path containment as two independent checks, why a guard on the destructive path is invisible to the dry-run, and mutation-testing each half separately. Use when writing or reviewing a `--rebuild`/`--reset`/`--purge` command, a bulk delete, a history rewrite, an `rm -rf`-shaped step, or any code that turns an argument into a file path.
3 views 121 repository stars 0 commentsUpdated Nov 28, 2026
Overview

Add and review preconditions on operations that delete, overwrite, rewrite history, or resolve a caller-supplied name to a filesystem path — refusing instead of warning, placing the guard ahead of the first mutation, structural classification rather than string-prefix matching, name validation plus resolved-path containment as two independent checks, why a guard on the destructive path is invisible to the dry-run, and mutation-testing each half separately. Use when writing or reviewing a `--rebuild`/`--reset`/`--purge` command, a bulk delete, a history rewrite, an `rm -rf`-shaped step, or any code that turns an argument into a file path.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/wdm0006/python-skills' skill-source

Use the complete skill-source/skills/common/destructive-operations directory with your client’s skill installer.

  • skills/common/destructive-operations

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/common/destructive-operations

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
Source & validation
Source status
Awaiting source check
Format validation
Needs source review
Checked at
Pending source check
Content SHA-256
862e2f3ef3b6c6a844489d48d1e19db3865a011238eb30f4eb74b1ec4fa409f5
Format validation findings
  • Declared name does not match the source directory.
Agent Skills specification
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills