Files
2025-11-30 08:40:52 +08:00

501 B

description
description
Add files or patterns to the protection blacklist

protect

Protect files from accidental edits by adding them to the blacklist.

Usage

/protect <pattern>
/protect list

Examples

# Protect environment files
/protect .env

# Protect entire directory
/protect secrets/

# Protect by extension
/protect *.key

# Show current protections
/protect list

Implementation

${CLAUDE_PLUGIN_ROOT}/scripts/manage_blacklist.py add {{pattern}}