guard

Monitor Bash commands for destructive actions and restrict edits to a specified directory.

Updated Jun 9, 2026
One-click install
npx skills add https://github.com/ericdahl-dev/coauthor-cleaner --skill guard-ericdahl-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: guard
Source: https://github.com/ericdahl-dev/coauthor-cleaner/tree/main/.claude/skills/gstack/guard
Command: npx skills add https://github.com/ericdahl-dev/coauthor-cleaner --skill guard-ericdahl-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Bash, and includes scripts (resource) components.

What problem does it solve?

Ensures codebase integrity by warning against destructive commands and restricting edits to a specified directory.

Core Features & Use Cases

  • Destructive Command Warnings: Previews potential destructive commands like rm -rf before execution.
  • Directory-Specific Restrictions: Allows editing only within a chosen directory to maintain system safety.
  • Use Case: Use this skill when working on production systems to minimize risks and mistakes.

Quick Start

Enable full safety mode and select a directory to protect with the command 'coauthor-cleaner /guard [directory-path]'.

Frequently Asked Questions about guard

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

FAQPage Schema
How do I prevent destructive commands from damaging my production codebase?

To prevent destructive commands from damaging your production codebase, you can use tools that preview commands like rm -rf before execution. This provides a warning mechanism to minimize risks and mistakes during development workflows.

What is directory restriction in software development workflows?

Directory restriction in software development workflows is a safety mechanism that allows editing only within a specified directory. This enforces codebase integrity by preventing unauthorized modifications outside the protected path.

Can I restrict code edits to a specific directory using Bash scripts?

Yes, you can restrict code edits to a specific directory using Bash scripts. By configuring directory-specific restrictions, the system enforces editing limits and maintains system safety within your chosen path.

Does the guard skill require any specific dependencies to check destructive commands?

Yes, the guard skill requires Bash as a dependency to check destructive commands. It relies on Bash scripts to perform pre-execution command checking and enforce directory-specific editing restrictions.

What is the best way to warn against destructive shell commands in development?

The best way to warn against destructive shell commands in development is implementing pre-execution command checking. This approach previews potential destructive commands before they run, maximizing safety and preventing accidental codebase destruction.