gstack-guard

Enforce destructive-command warnings and directory-scoped edit restrictions.

Updated May 19, 2026
One-click install
npx skills add https://github.com/anilveersingh1308/copilot-skills --skill gstack-guard-anilveersingh1308
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gstack-guard
Source: https://github.com/anilveersingh1308/copilot-skills/tree/main/.github/skills/gstack-guard
Command: npx skills add https://github.com/anilveersingh1308/copilot-skills --skill gstack-guard-anilveersingh1308

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents high-risk mistakes by combining warnings for destructive commands with strict edit boundaries so changes only occur within a chosen directory.

Core Features & Use Cases

  • Destructive command warnings: Warns before running dangerous operations such as rm -rf, DROP TABLE, and force-push when operating in guard mode.
  • Directory-scoped edit restrictions: Blocks file edits outside a user-selected path to reduce accidental damage during debugging or production work.
  • One-shot safety posture: Activates both protections together so you can work with a consistent “maximum safety” workflow.

Quick Start

Activate guard mode by telling the AI you want full safety mode and then provide the exact directory path to restrict edits.

Frequently Asked Questions about gstack-guard

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

FAQPage Schema
How do I prevent destructive commands like rm -rf or DROP TABLE during production debugging?

To prevent destructive commands during production debugging, you need a guard mode that intercepts operations like rm -rf, DROP TABLE, and force-push. This skill enforces warnings before executing dangerous commands to reduce the risk of accidental damage in live environments.

Can I restrict file edits to a specific directory subtree when doing live maintenance?

Yes, you can restrict file edits to a specific directory subtree during live maintenance. This skill enforces directory-scoped edit restrictions by storing your chosen boundary path, actively blocking any file modifications that occur outside that designated safe subtree.

What is the best way to set up a maximum safety workflow for production maintenance?

The best way to set up a maximum safety workflow is activating a one-shot safety posture that combines destructive-command warnings with strict directory-scoped edit restrictions. This ensures changes only occur within a chosen boundary during production maintenance.

How do I activate guard mode to block edits outside a chosen directory path?

To activate guard mode, tell the AI you want full safety mode and then provide the exact directory path to restrict edits. This triggers pre-tool hook checks wired to careful and freeze guard scripts, storing the chosen boundary to block external edits.

Does this directory restriction approach work without additional dependencies?

Yes, this directory restriction approach works without additional dependencies. It operates standalone by wiring pre-tool hook checks to internal careful and freeze guard scripts, enforcing both destructive-command warnings and edit boundaries without requiring external packages.