safety-guard

Intercept destructive commands and enforce directory locks during production operations.

2|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/nextc/nextc-claude --skill safety-guard-nextc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: safety-guard
Source: https://github.com/nextc/nextc-claude/tree/main/nextc-ecc/skills/safety-guard
Command: npx skills add https://github.com/nextc/nextc-claude --skill safety-guard-nextc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents destructive operations on production systems and during autonomous agent sessions by enforcing safety guardrails and limiting risky actions.

Core Features & Use Cases

  • Careful Mode: intercepts destructive commands before execution and prompts for confirmation.
  • Freeze Mode: locks edits to a defined subset of the project to prevent inadvertent changes.
  • Guard Mode: combines careful and freeze protections to maximize safety during fully autonomous runs.

Quick Start

Enable safety-guard in an autonomous session and attempt a destructive command to see the protection in action.

Frequently Asked Questions about safety-guard

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

FAQPage Schema
How do I prevent destructive bash commands during autonomous agent runs?

Preventing destructive bash commands during autonomous agent runs requires intercepting commands before execution. Safety-guard intercepts risky bash operations and prompts for confirmation to halt inadvertent destructive actions.

What are the best ways to lock directory edits during production maintenance?

Locking directory edits during production maintenance is achieved by defining a project subset and restricting modifications. Freeze mode locks edits to a defined subset of the project to prevent inadvertent changes to critical files.

How does audit logging work for blocked destructive commands?

Audit logging for blocked destructive commands records intercepted actions for later review. Safety-guard logs blocked actions during autonomous sessions and production maintenance to provide an audit trail of prevented destructive operations.

Can I use safety guardrails for fully automated deployments?

Safety guardrails can be used for fully automated deployments by combining protections. Guard mode combines careful command interception and freeze directory locks to maximize safety during fully autonomous runs and deployments.

What is the difference between careful mode and freeze mode for protecting production systems?

The difference between careful and freeze mode lies in their protective scope. Careful mode intercepts destructive commands and prompts for confirmation, while freeze mode locks edits to a defined project subset to prevent inadvertent file changes.

Do I need to configure directory locks before running autonomous agents on production systems?

Configuring directory locks before running autonomous agents on production systems is recommended to prevent inadvertent changes. Freeze mode enforces directory locks to guard critical files and configurations during automated agent sessions.