evi-secret-guard

Block access to secret files and destructive commands in Claude Code.

Updated Jun 11, 2026
One-click install
npx skills add https://github.com/kolife01/evifarm --skill evi-secret-guard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: evi-secret-guard
Source: https://github.com/kolife01/evifarm/tree/main/skills/secret-guard
Command: npx skills add https://github.com/kolife01/evifarm --skill evi-secret-guard

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Prevents accidental exposure or deletion of secret files and destructive commands, enhancing system security.

Core Features & Use Cases

  • Prevent Secret File Access: Ensures .env and .credentials/ files are not read or modified.
  • Block Destructive Commands: Disallows harmful commands like rm -rf, git push --force, and git reset --hard origin.
  • Use Case: Ideal for any environment where maintaining data integrity and security is crucial, such as CI/CD pipelines or server management.

Quick Start

Set up the evi-secret-guard to protect your server by adding it to the PreToolUse hooks in your Claude Code project settings.

Frequently Asked Questions about evi-secret-guard

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

FAQPage Schema
How do I prevent accidental exposure of .env files during automated execution?

To prevent secret file exposure, you can use environment protection hooks that monitor tool calls and automatically block read or modification access to sensitive files like `.env` and `.credentials/`.

How do I block destructive commands like rm -rf in a CI/CD pipeline?

Blocking destructive commands in a CI/CD pipeline involves setting up PreToolUse hooks that filter tool calls against predefined patterns, disallowing operations like `rm -rf`, `git push --force`, and `git reset --hard origin`.

What is command blocking for environment protection?

Command blocking for environment protection is a mechanism that secures execution environments against potential data loss by intercepting tool calls and filtering out forbidden operations based on predefined patterns.

Does evi-secret-guard work with Claude Code project settings?

Yes, evi-secret-guard integrates with Claude Code by adding it to the PreToolUse hooks in your project settings to automatically monitor and filter forbidden tool calls.

How do I secure my server management environment against unauthorized access?

Securing a server management environment against unauthorized access requires implementing execution filters that prevent the reading of credential files and block destructive system commands.

What are the limitations of using predefined patterns for command blocking?

The limitation of using predefined patterns for command blocking is that filters only match explicitly defined signatures like `rm -rf` or specific file paths, meaning novel destructive commands outside these patterns may not be caught.