guard-mode

Community

Warn before destructive actions and lock edits.

Authorcropsgg
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Safety mode: warn on destructive commands and optionally restrict edits to one directory to prevent catastrophic changes in shared repos.

Core Features & Use Cases

  • Warn before destroy: rm -rf, DROP TABLE, force-push, hard reset, kubectl delete, etc.
  • Freeze optional: when a directory is provided, block edits outside it for the session.
  • Override with confirmation: explicit user consent required to proceed.
  • Git safety: warn before force-push to main, and before --no-verify or amend, with guidance to revert when possible.

Quick Start

Activate guard mode and test a destructive command to verify warnings and edit boundaries.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: guard-mode
Download link: https://github.com/cropsgg/skills/archive/main.zip#guard-mode

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.