Files
gh-moinsen-dev-claude-code-…/commands/protect.md
2025-11-30 08:40:52 +08:00

37 lines
501 B
Markdown

---
description: Add files or patterns to the protection blacklist
---
# protect
Protect files from accidental edits by adding them to the blacklist.
## Usage
```bash
/protect <pattern>
/protect list
```
## Examples
```bash
# Protect environment files
/protect .env
# Protect entire directory
/protect secrets/
# Protect by extension
/protect *.key
# Show current protections
/protect list
```
## Implementation
```bash
${CLAUDE_PLUGIN_ROOT}/scripts/manage_blacklist.py add {{pattern}}
```