Install
openclaw skills install privacy-guardProtects sensitive files (contracts, transaction data, personal/customer privacy) by performing deep content inspection for text and binary formats (PDF, DOCX, XLSX) before any read, search, or send operation.
openclaw skills install privacy-guardThis skill is designed to protect sensitive files on the user's local system, preventing them from being inadvertently sent to remote servers or external APIs. It performs deep content inspection across various file formats.
该技能用于保护用户本地系统中的敏感文件,避免这些文件被意外发送到远程服务器或外部 API。它支持对多种文件格式进行深度内容检查。
upload, send, read_file, file tool actions), you MUST first scan the target file for sensitive information using the provided scan_file.py script. This is a non-negotiable step.scan_file.py script returns an output starting with BLOCK:, you MUST immediately and unconditionally stop the current task. You are strictly forbidden from proceeding with the operation or attempting to bypass this restriction. Inform the user clearly about the detected sensitive content and the cessation of the operation.PASS: result from this skill.The skill performs deep content scanning for the following formats:
.txt, .csv, .md, .json, .xml, .log, .py, .js, .html.pdf, .docx.xlsxThe skill monitors for the following four categories of sensitive information:
Install required dependencies once before running scans:
python3 -m pip install -r {baseDir}/requirements.txt
Optional helper:
bash {baseDir}/scripts/install_deps.sh
Before processing any file path, call the built-in scanning script using a relative path from the skill's base directory:
python3 {baseDir}/scripts/scan_file.py <file_path>
If the output starts with BLOCK::
If the output starts with PASS::
Scenario: User requests "Send this contract to my boss"
python3 {baseDir}/scripts/scan_file.py ./contract.pdf.BLOCK: Sensitive keyword '合同' found in content (Category: Contract/Agreement)., stop and inform the user.