guard

Warn before destructive commands and enforce directory-scoped edit boundaries.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guard mode provides dual protection by warning before destructive commands and enforcing a directory-based edit boundary to prevent accidental changes.

Core Features & Use Cases

  • Destructive-command warnings that alert before risky operations (rm -rf, DROP TABLE, etc.)
  • Directory-scoped edit boundaries that block changes outside a specified path
  • Safe maintenance workflows during prod debugging or sensitive configurations, ensuring compliance with change-management policies

Quick Start

Enable guard mode and 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 bash scripting?

To prevent accidental destructive commands in bash scripting, guard mode warns before risky operations like rm -rf or DROP TABLE, requiring explicit confirmation before execution.

Can I restrict file edits to a specific directory during production maintenance?

Yes, you can restrict file edits to a specific directory by enforcing a directory-scoped edit boundary, which blocks any changes attempted outside your approved path.

What is an edit boundary and how does it protect local development workflows?

An edit boundary is a directory-scoped restriction that blocks file changes outside a specified path, protecting local development workflows by preventing accidental modifications to unauthorized directories.

How do I set up safe maintenance workflows for sensitive production configurations?

To set up safe maintenance workflows for sensitive production configurations, enable guard mode to enforce directory boundaries and require confirmation for destructive actions, ensuring compliance with change-management policies.

Does this destructive warning system work with database operations like DROP TABLE?

Yes, the destructive warning system works with database operations like DROP TABLE by alerting you before executing risky commands and prompting for explicit confirmation to proceed.