Privacy token remover

From cas-bigdatalab/piflow · View interactive version

Privacy token remover is an AI agent skill from the GitHub repository cas-bigdatalab/piflow. 隐私标识移除工具。读取结构化文本数据,按用户选择的类别删除或替换邮箱、IPv4 地址、电话号码等文本中的隐私标识。 当用户提到移除邮箱、清洗 IP、替换电话、从文本里剔除隐私 token 等需求时使用此 skill。 它只处理文本中的 token 清理,不做字段级遮蔽,也不负责图片脱敏、音频脱敏、结构化字段加密或假数据生成。

How to use this skill

Skill file

Privacy Token Remover 隐私标识清理 Skill

功能概述

按用户指定类别移除或替换文本中的隐私标识:

所有类别默认关闭,需要用户显式用开关开启。

触发条件

核心参数说明

必需参数

可选参数

输入文件格式

支持 CSV、TSV、XLS、XLSX、SAV 格式的结构化数据。

不支持的文件格式会直接报错拒绝,不会自动猜测格式;如需处理其他格式,请先转换为以上支持格式后再使用本 skill。

使用方法

# 只移除邮箱
python scripts/run_privacy_token_remover.py \
  --input_path data.csv \
  --remove_email \
  --output_path cleaned.csv \
  --replace_token "[REMOVED]"

# 同时移除邮箱和IP
python scripts/run_privacy_token_remover.py \
  --input_path data.csv \
  --remove_email --remove_ip \
  --output_path cleaned.csv

输出示例

输入 Contact alice@example.com from 192.168.1.10

使用 --remove_email --remove_ip --replace_token "[HIDDEN]" 后输出:

Contact [HIDDEN] from [HIDDEN]

环境要求

使用项目 Python 环境运行,依赖 pandas 和共享 data_io 读写工具。

注意事项

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.