guard

Warn on destructive commands and restrict edits to a directory.

4|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/Kit4Some/Oh-my-ClaudeClaw --skill guard-kit4some
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: guard
Source: https://github.com/Kit4Some/Oh-my-ClaudeClaw/tree/main/skills/guard
Command: npx skills add https://github.com/Kit4Some/Oh-my-ClaudeClaw --skill guard-kit4some

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guard mode unifies destructive-command warnings and edit-scope restrictions to prevent accidental damage during AI-assisted sessions.

Core Features & Use Cases

  • Destructive command warnings via /careful to prevent execution of dangerous commands.
  • Edit scope restriction via /freeze to confine edits to a specific directory.
  • Combined activation with optional directory targeting for freeze, with session-scoped guard rails and action logging.

Quick Start

Invoke /guard to enable both safety layers for the current session.

Frequently Asked Questions about guard

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

FAQPage Schema
How do I restrict AI edits to a specific directory and warn against destructive commands?

You can restrict AI edits and warn against destructive commands by enabling a combined guard mode that applies pre-check hooks and edit-scope restrictions to confine changes to a specific directory.

What is the best way to prevent accidental damage during AI-assisted coding sessions?

Preventing accidental damage during AI-assisted sessions requires activating safety layers that warn before executing dangerous commands and constrain edits to an allowed directory using state management and pre-check hooks.

How do I activate both careful warnings and freeze restrictions at the same time?

To activate both careful warnings and freeze restrictions simultaneously, invoke a single guard command that enables destructive-command warnings and edit-scope limitations with optional directory targeting for the current session.

How does edit-scope freezing work with pre-check hooks in AI workflows?

Edit-scope freezing works by applying pre-check hooks that intercept actions, logging them for traceability, and blocking any modifications outside the specifically targeted directory during the AI session.

Can I target a specific directory when enabling edit restrictions for AI agents?

Yes, when enabling edit restrictions you can optionally target a specific directory, ensuring all AI-assisted modifications are confined exclusively to that path while logging actions for traceability.