safety-guard

Block destructive commands and restrict file edits to specified directories.

Updated Mar 15, 2026
One-click install
npx skills add https://github.com/abhishekdutta18/blogspro --skill safety-guard-abhishekdutta18
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: safety-guard
Source: https://github.com/abhishekdutta18/blogspro/tree/main/.claude/skills/safety-guard
Command: npx skills add https://github.com/abhishekdutta18/blogspro --skill safety-guard-abhishekdutta18

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a safety layer to prevent destructive commands and unauthorized modifications when working on production systems or with autonomous agents, ensuring system stability and security.

Core Features & Use Cases

  • Destructive Command Interception: Warns users before executing harmful commands like 'rm -rf' or 'DROP TABLE'.
  • File Edit Lockdown: Locks file system changes outside specified directories to prevent accidental or malicious edits.
  • Maximum Safety Mode: Combines command interception and directory locking for sensitive operations, especially in automated workflows.
  • Use Case: During a deployment, a developer activates the guard mode to prevent any accidental data loss or system modification while updating critical components.

Quick Start

To activate careful command protections, specify a safe directory with the freeze mode, or combine protections, then disable with 'off'.

Frequently Asked Questions about safety-guard

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent destructive commands like rm -rf during automated deployments?

To prevent destructive commands during automated deployments, you need a safety protocol that intercepts harmful instructions like 'rm -rf' or 'DROP TABLE' before execution. This Skill enforces strict command scanning to warn users and block accidental data loss or system modification.

Can I lock down file edits outside a specific directory in autonomous workflows?

Yes, you can lock down file edits outside a specific directory in autonomous workflows. This Skill implements directory restrictions that lock the file system changes outside your specified safe directories, preventing accidental or malicious edits during sensitive operations.

What is the best way to restrict file modifications during autonomous tasks?

The best way to restrict file modifications during autonomous tasks is activating maximum safety mode. This combines destructive command interception with directory locking, enforcing strict scanning to prevent data loss, security breaches, and accidental damage across development environments.

How do I disable the file edit lockdown after completing a deployment?

To disable the file edit lockdown after completing a deployment, you use the 'off' command. This deactivates the safety protocol, restoring standard command execution and removing the directory restrictions previously applied during your sensitive operations.

Does this command interception protocol work for manual operations or only autonomous agents?

This command interception protocol works for both manual operations and autonomous agents. It implements a safety layer that blocks destructive commands and restricts file edits across all operational states, enhancing system security and operational integrity.

When should I not use a destructive command blocking protocol?

You should not use a destructive command blocking protocol when your workflow requires executing unrestricted system modifications or database drops without warnings. The strict command scanning and directory restrictions will intercept these operations, potentially interrupting necessary automated tasks.