guard

Warn before destructive bash commands and restrict file edits to safe directories.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/BaGyun0107/harness-starterkit --skill guard-bagyun0107
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: guard
Source: https://github.com/BaGyun0107/harness-starterkit/tree/main/.agents/skills/gstack-guard
Command: npx skills add https://github.com/BaGyun0107/harness-starterkit --skill guard-bagyun0107

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents accidental or malicious destructive operations and unauthorized file modifications in critical systems.

Core Features & Use Cases

  • Destructive Command Warnings: Intervenes before executing dangerous commands like rm -rf, DROP TABLE, or force-push, alerting the user to potential risks.
  • Directory-Scoped Edits: Restricts file modifications to user-specified safe directories, preventing accidental changes outside designated areas.
  • Use Case: Safeguarding production environments during maintenance or debugging by enforcing strict command and edit boundaries.

Quick Start

Use the guard skill to activate full safety mode which warns about destructive commands and restricts file edits within a chosen directory boundary.

Frequently Asked Questions about guard

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

FAQPage Schema
How do I prevent accidental execution of destructive bash commands like rm -rf?

To prevent accidental execution of destructive bash commands, this tool intervenes before running dangerous operations like rm -rf or DROP TABLE to alert you to potential risks. It provides comprehensive warnings for dangerous operations.

What is the best way to restrict file edits to specific directories?

The best way to restrict file edits to specific directories is by enforcing directory-scoped boundaries. This prevents accidental or malicious modifications outside your designated safe directories.

Can I safeguard my production environment during maintenance and debugging?

Yes, you can safeguard production environments during maintenance or debugging by activating full safety mode. This enforces strict command and edit boundaries to prevent system damage.

Does this system protection warn before executing database commands like DROP TABLE?

Yes, this system protection warns before executing database commands like DROP TABLE. It intervenes before running dangerous commands to alert you to potential risks.

How do I activate full safety mode for file restriction and destructive command warnings?

To activate full safety mode for file restriction and destructive command warnings, use the guard skill. This enables warnings for dangerous commands and restricts file edits within your chosen directory boundary.