Local Image and Text Desensitization Tool
Paste the following prompt into your AI chat to install this skill:
Install @user_cf24022c/image-text-desensitization in your AI assistant by following https://skillhub.cn/install/skillhub.md.
About this skill
Problem
Ops, data cleaning, and agent workflows often contain sensitive values such as phone numbers, national ID numbers, bank card numbers, and email addresses in logs, chat text, JSON payloads, and screenshots. Sharing or storing them without review can leak personal data, while manual redaction is slow and easily misses structured fields or text embedded in images.
How It Works
This skill runs local desensitization for text, JSON, and images. For text, it recognizes common types including phone numbers, ID numbers, bank cards, and emails, covering 9 listed categories. For JSON, it identifies sensitive fields and processes them. For images, it uses OCR to find sensitive text and blurs the corresponding regions. It also selects a processing mode based on image size, which helps balance small and large inputs.
The skill can initialize desensitization rules for a new agent. On first import, it creates ./基础设定/DESENSITIZE_RULES.md for global rules and updates ./MEMORY.md with desensitization settings. After image desensitization, the original image is deleted by default, while requests explicitly asking not to desensitize are skipped.
Boundaries
The core flow needs Python 3.6+ and standard-library modules such as re, json, base64, and os. Image OCR and face detection are optional extensions that may require easyocr or opencv-python-headless. Text and JSON desensitization can run more lightweight, but image desensitization depends on the OCR environment. Because original images are removed, use it only where irreversible cleanup is acceptable, and add custom rules for business-specific fields rather than assuming it recognizes all internal sensitive data.
Use Cases
- Customer support teams redact phone numbers, emails, and bank card fields from chat records before archiving conversations
- Data engineers identify and replace sensitive fields in logs or JSON datasets before exporting them into downstream systems
- Operations staff process user-provided system screenshots by using OCR to locate sensitive text, blur the regions, and remove originals
- Agent builders enable default desensitization rules so new agent sessions generate global configuration and memory rules automatically
Best For
- Customer support operations owners who need to replace phone numbers, emails, and bank card values in archived tickets with safe placeholders
- Platform engineers cleaning logs who need to batch-process sensitive values such as ID numbers and bank cards before analytics ingestion
- Operations and security staff handling user screenshots who need OCR-based detection and region blurring for sensitive text
- Application developers building agent privacy policies who want desensitization rules injected and maintained automatically for new agents
Related Skills
Detects AI-generated images from Stable Diffusion, Midjourney, and GPT-4o via Tencent Cloud image moderation and returns risk scores.
A log analysis tool combining deterministic rules and AI reasoning, with error severity levels, keyword filtering, real-time monitoring, webhook alerts, batch directory analysis, and path, SSRF, and XSS protections.
Comprehensive network engineering skill covering fault troubleshooting, technical consulting, and architecture design across routing and switching, wireless, security, cloud computing, and optical transport.
A Windows-only read-only storage scanner that finds large directories, grades risks, and opens an interactive local HTML report with one-click cleanup for safe green items.