data-minimizer

data-minimizer — 把文本里的手机号/邮箱/证件号/长号/指定人名一键打码后交给 AI,输出脱敏文本+脱敏报告;支持 --names 自定义人名、--json。 适用场景:当需要给AI前脱敏器能力时使用本技能;触发词:data-minimizer。

Install

openclaw skills install @zhaoxinghua09-cell/data-minimizer

凡自治之物 · LGD 治理学 · 创造术家族 | 评测协议:见平台质量门禁规范

English

When to use

Before sending text containing phone numbers, emails, ID numbers or long digit strings to an external AI model. When document processing involves privacy compliance and named entities must be anonymized. When the workflow needs both the cleaned text and a masking report for audit.

Usage

Run python data_minimizer.py --input_text <text> --output_format json. --names takes a custom name list (e.g. ['Zhang San']); --json enables structured output.

Flow

  1. Prepare the raw text; confirm it contains sensitive info to protect.
  2. Configure params; add --names for custom-name masking.
  3. Run the script; it scans for sensitive data.
  4. On completion, replace detected items with masks and generate the report.
  5. Read the final output; JSON mode returns a structured result for downstream use.

Evidence & safety

  • Evidence: TBD. Version: 1.0.1. Security: no independent scan (TBD).

中文

何时用

当您需要将包含手机号、邮箱、证件号或长号码的文本发送给外部 AI 模型前;当文档处理流程涉及隐私合规,需对指定人名及敏感标识进行匿名化处理时;当您希望在工作流中同时获取脱敏后的干净文本及详细的脱敏报告记录以备审计。

用法

执行命令:python data_minimizer.py --input_text <待处理内容> --output_format json。支持参数说明:--names 用于传入需要脱敏的自定义人名列表(如 ['张三']),--json 用于启用 JSON 结构化输出模式以返回报告数据。

流程

  1. 准备待处理的原始文本内容,确认其中包含需保护的敏感信息。
  2. 根据需求配置参数,若涉及特定人名脱敏请添加 --names 列表。
  3. 在终端执行命令启动脚本,系统将读取输入并开始扫描敏感数据。
  4. 等待处理完成,系统自动将识别到的敏感项进行掩码替换并生成报告。
  5. 获取最终输出,若开启了 JSON 模式则直接获得结构化结果用于后续调用。

证据与安全声明

  • 证据:TBD(暂无评测/徽章链接;产生后在此更新实际链接)
  • 版本:1.0.1
  • 安全:未做独立安全扫描(TBD),结论待补;补全前不作推荐背书。