gs:guard

Warn before destructive commands and restrict file edits to a specified directory.

34|6|Updated Apr 19, 2026
One-click install
npx skills add https://github.com/thanh-abaii/gstack-windows-port --skill gs-guard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gs:guard
Source: https://github.com/thanh-abaii/gstack-windows-port/tree/main/skills/gstack-guard
Command: npx skills add https://github.com/thanh-abaii/gstack-windows-port --skill gs-guard

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill ensures safety by providing warnings for destructive commands and restricting edits to a specific directory.

Core Features & Use Cases

  • Destructive Command Warnings: Alerts before executing commands like 'rm -rf', 'DROP TABLE', 'force-push', etc.
  • Directory-Scope Edits: Blocks edits outside a specified directory.
  • Use Case: Ideal for environments where maximum safety is crucial, such as production systems or during debugging.

Quick Start

Enter the directory you want to guard and activate the skill.

Frequently Asked Questions about gs:guard

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

FAQPage Schema
How do I prevent accidental destructive commands in my coding environment?

To prevent destructive commands, this Skill intercepts operations like 'rm -rf' and 'DROP TABLE', issuing warnings before execution. It safeguards your coding environment by alerting you prior to running potentially harmful system commands.

Can I restrict file edits to a specific directory for safety?

Yes, you can restrict file edits to a specific directory. The Skill enforces directory-scope protection by actively blocking any file modifications attempted outside your designated working folder.

Does this directory protection work for Windows 11 development environments?

Yes, this directory protection works for Windows 11 development environments. It is explicitly designed to ensure safety during system maintenance and development work on Windows 11 platforms.

What destructive commands trigger a warning before execution?

Destructive commands that trigger a warning include 'rm -rf', 'DROP TABLE', and 'force-push'. The Skill detects these high-risk operations and prompts you before allowing them to execute.

How do I activate guard mode for a specific project folder?

To activate guard mode, enter the specific directory you want to protect and activate the Skill. It immediately applies directory-scoped edits and destructive command warnings to that environment.

When should I use a coding environment guard mode?

You should use a coding environment guard mode when maximum safety is crucial, such as working on production systems or debugging critical issues. It prevents accidental data loss from destructive commands.