guard

Blocks out-of-scope file edits and warns on destructive commands.

3|14|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/cegit27/moodle-proctor --skill guard-cegit27
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: guard
Source: https://github.com/cegit27/moodle-proctor/tree/main/.claude/skills/gstack/guard
Command: npx skills add https://github.com/cegit27/moodle-proctor --skill guard-cegit27

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the risk of accidental data loss, system outages, and unintended code changes when working on production or live systems, which can occur from unplanned destructive commands or edits outside of a safe working directory.

Core Features & Use Cases

  • Destructive command warnings: Alerts you before executing high-risk commands like rm -rf, DROP TABLE, or git force-push, with the option to override if the action is intentional.
  • Directory-scoped edit restrictions: Blocks all file edits outside a user-specified safe directory, preventing accidental modifications to unrelated parts of the codebase.
  • Use Case: Ideal for debugging live exam proctoring infrastructure or making changes to critical production systems where even small unintended edits could disrupt active student exams or delete sensitive proctoring data.

Quick Start

Activate guard mode and set the edit boundary to your project's root directory to enable both destructive command warnings and out-of-scope edit blocking immediately.

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 or git force-push in production?

To prevent destructive commands in production, you use real-time command pattern matching that warns before executing high-risk actions like rm -rf or git force-push. You receive an alert and can override if the action is intentional.

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

The best way to restrict file edits to a specific directory is by enforcing directory boundary rules. This blocks all file modifications outside your user-specified safe directory, preventing accidental changes to unrelated codebase parts.

Can I get warnings before executing DROP TABLE statements during live database maintenance?

Yes, you can get warnings before executing DROP TABLE statements. The system matches destructive command patterns and alerts you before running high-risk database operations, allowing you to cancel or intentionally override the action.

How do I set up workflow guardrails for debugging live production infrastructure?

You set up workflow guardrails by activating a safe mode and defining an edit boundary at your project root directory. This immediately enables destructive command warnings and blocks out-of-scope file edits for live system maintenance.

Does directory-scoped edit protection block all modifications outside the working directory?

Yes, directory-scoped edit protection blocks all file edits outside the specified safe directory. This layered safety guardrail prevents unintended modifications to unrelated parts of the codebase during critical operations.

When should I use edit scoping and command warnings for code safety?

You should use edit scoping and command warnings for code safety when working on critical or production systems. It is essential for live infrastructure debugging and sensitive codebase changes where unintended modifications could cause outages or data loss.