One-click install
npx skills add https://github.com/Houseofmvps/ultraship --skill guard-houseofmvps
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: guard
Source: https://github.com/Houseofmvps/ultraship/tree/main/skills/guard
Command: npx skills add https://github.com/Houseofmvps/ultraship --skill guard-houseofmvps

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Accidental execution of destructive commands like recursive file deletion, database drops, or force git pushes can cause irreversible data loss and system damage, especially when working on critical production systems or sensitive codebases.

Core Features & Use Cases

  • Destructive Command Blocking: Intercepts and blocks high-risk bash commands including rm -rf, DROP TABLE, git push --force, git reset --hard, kubectl delete, and docker system prune before they execute.
  • Optional Directory Freeze: Restricts all file edits to a user-specified directory, preventing unintended modifications to files outside the allowed scope.
  • Explicit Override Support: Allows intentional execution of blocked commands when the user provides explicit confirmation, balancing safety with flexibility.
  • Use Case: When deploying to a production environment, Guard prevents accidental force-pushes to the main branch, and when working on a sensitive payment processing module, it blocks edits to any files outside the src/payments/ directory.

Quick Start

Instruct Claude to activate Guard and freeze all file edits to the src/api/ directory to prevent accidental changes to unrelated parts of the codebase.

Frequently Asked Questions about guard

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

FAQPage Schema
How do I prevent accidental execution of destructive bash commands like rm -rf or git push --force?

Block destructive bash commands by intercepting high-risk operations like recursive file deletion, database drops, and force git pushes before execution to prevent irreversible data loss.

Can I restrict file edits to a specific directory to protect critical codebase sections?

Yes, you can restrict file edits to a specific directory by applying a directory freeze, which prevents unintended modifications to any files outside the allowed scope during development.

How do I block destructive git commands and kubectl delete operations during production deployments?

Apply deployment safety guardrails to intercept and block high-risk bash commands including git reset --hard and kubectl delete, requiring explicit user confirmation to override blocked operations.

Does enforcing edit restrictions require explicit confirmation to override blocked operations?

Yes, overriding blocked operations requires explicit user confirmation, balancing safety with flexibility when intentionally executing destructive commands or bypassing directory edit restrictions.

What is the best way to prevent accidental data loss from docker system prune on critical systems?

Use command-blocking guardrails to intercept container resource pruning like docker system prune, preventing accidental data loss by requiring explicit confirmation before execution on critical systems.

When should I use command-blocking guardrails for accident prevention in development workflows?

Use command-blocking guardrails in development workflows when working on critical production systems or sensitive codebases where unintended changes can cause irreversible data loss or service outages.