mitools-desensitize for Openclaw

A regex-powered data desensitization tool designed to automatically identify and mask sensitive information within text and log files.

bianchengyy
v1.0.0
Mar 21, 2026
1
746
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install mitools-desensitize

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install mitools-desensitize using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is mitools-desensitize?

mitools-desensitize is a powerful utility within the Openclaw Skills collection focused on data privacy and security. It leverages advanced regular expressions to identify various types of Personally Identifiable Information (PII) and replaces them with masked versions or pseudo-data, ensuring that sensitive information is never exposed in logs, test environments, or shared documents.

The skill provides a robust framework for handling diverse data types including Chinese names, ID cards, bank details, and IP addresses. By integrating this into your workflow, you can automate compliance with data protection standards while maintaining the structural integrity of your datasets for testing and analysis purposes.

mitools-desensitize Use Cases

  • Log Desensitization: Automatically clean production logs to remove sensitive user data before analysis.
  • Data Sharing: Prepare datasets for third-party collaboration by masking confidential identifiers.
  • Test Data Generation: Create realistic but safe testing environments using desensitized production data.
  • Document Processing: Scrub sensitive PII from internal documents and reports before distribution.

How mitools-desensitize Works

  1. Input Scanning: The skill receives text or a file path as input and scans the content using predefined regex patterns.
  2. Pattern Matching: It identifies specific entities such as phone numbers, emails, or bank cards based on the Openclaw Skills logic.
  3. Masking Execution: The identified strings are processed according to specific rules (e.g., keeping only the first and last digits of a phone number).
  4. Mapping Generation: For reversible workflows, it creates a mapping between the original and masked values.
  5. Output Delivery: The tool returns the desensitized text or saves the cleaned file to the specified location.

mitools-desensitize Setup

To get started with this skill in your environment, ensure you have python3 installed and follow these steps:

# Install the skill dependencies
# (Assuming standard Openclaw Skills installation pattern)
pip install mitools-desensitize

# The tool will generate a default configuration file on first run
# desensitize_config.json

mitools-desensitize Data Schema & Taxonomy

The skill manages its operations through a structured JSON configuration and optional mapping files:

File Description
desensitize_config.json Main configuration file defining active masking levels and custom regex rules.
wildcard_rules A section within the config for custom wildcard-based replacement logic.
mapping JSON An optional JSON structure used for the 'restore' function to revert masked data.

mitools-desensitize Advanced Features

  • Multi-level Masking: Configure specific levels to determine which data types should be prioritized during a scan.
  • Custom Regex Support: Add your own proprietary data patterns via the custom_rules section in the config.
  • Reversible Data Restore: Use a JSON mapping table to revert desensitized text back to its original state for authorized users.
  • Wildcard Replacement: Flexible wildcard support for complex string patterns that don't fit standard PII categories.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*