guard

Warn against destructive commands and restrict edits to a specified directory.

Updated Jun 4, 2026
One-click install
npx skills add https://github.com/Manzueti/cyberdart --skill guard-manzueti
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: guard
Source: https://github.com/Manzueti/cyberdart/tree/main/guard
Command: npx skills add https://github.com/Manzueti/cyberdart --skill guard-manzueti

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill ensures safety by warning against destructive commands and restricting edits to specified directories, protecting against accidental damage or mistakes.

Core Features & Use Cases

  • Destructive Command Warnings: Alerts before running commands like 'rm -rf' or 'DROP TABLE'.
  • Directory-Scope Edits: Blocks edits outside a specified directory, enhancing security.
  • Use Case: When working on production systems or debugging live environments, use 'guard' to avoid accidental destructive actions and limit edits to a safe boundary.

Quick Start

Run 'guard' to activate safety mode. When prompted, specify the directory to restrict edits to.

Frequently Asked Questions about guard

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

FAQPage Schema
How do I prevent accidental destructive commands like rm -rf in a production environment?

To prevent accidental destructive commands in a production environment, you need a safety checking mechanism that warns before executing dangerous instructions like rm -rf or DROP TABLE. This prevents irreversible mistakes by ensuring only approved commands run.

What is the best way to restrict file edits to a specific directory?

The best way to restrict file edits to a specific directory is by implementing directory-scope edit restrictions that block modifications outside a specified boundary. This protects sensitive directories by ensuring changes only occur within approved limits.

How do I set up directory protection for live debugging sessions?

To set up directory protection for live debugging sessions, activate a safety mode and specify the directory to restrict edits to. This creates a safe boundary that prevents accidental damage while you debug live environments.

Can I get warnings before running database commands like DROP TABLE?

Yes, you can get warnings before running database commands like DROP TABLE by using a command checking mechanism. Safety checks alert you before destructive database commands execute, preventing accidental data loss in sensitive environments.

Does directory protection work for both file edits and command execution?

Directory protection works for both file edits and command execution by combining two safety mechanisms: blocking edits outside specified directories and warning against destructive commands. This provides comprehensive protection for sensitive directories.