cas-bigdatalab/piflow/data-masking

Claude Code and agent skill by cas-bigdatalab/piflow

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

'数据脱敏工具。对结构化数据中的敏感字段进行字符遮蔽脱敏,保留字段位置并用遮蔽字符替换手机号、身份证、姓名、邮箱、银行卡等内容。

Install

npx vskill@latest install cas-bigdatalab/piflow/data-masking

SKILL.md

The same SKILL.md was published earlier as majiayu000/claude-skill-registry/data-masking.

Data Masking 数据脱敏 Skill

功能概述

本 skill 用于对结构化数据中的敏感信息进行脱敏处理,使用字符遮蔽模式(如 138****5678)。 如需用假数据替换敏感信息,请使用 data_faker。

触发条件

当用户请求以下任务时,应使用此 skill:

  • 数据脱敏
  • 隐私保护
  • 敏感信息处理
  • 数据匿名化
  • PII(个人可识别信息)处理

核心参数说明

必需参数
  • --input:输入文件路径
  • --output:输出文件路径
  • --masking_rules:脱敏规则,格式为 字段名:脱敏类型
可选参数
  • --mask_char:脱敏替换字符,默认 *

输入文件格式

支持 CSV、TSV、Excel 等结构化数据。

使用方法

bash
python scripts/run_data_masking.py \
--input data.csv \
--output masked.csv \
--masking_rules "phone:phone,idcard:idcard,name:name"
bash
python scripts/run_data_masking.py \
--input data.csv \
--output masked.csv \
--masking_rules "email:email" \
--mask_char "#"

输出示例

[OK] Data masking completed!
Input file: data.csv
Output file: masked.csv
Total rows: 1000
Masking rules applied:
- phone: phone (1000 values masked)
- idcard: idcard (1000 values masked)
- name: name (1000 values masked)
Mode: mask (char: *)

脱敏效果示例

原始值脱敏后
13812345678138****5678
110101199001011234110101********1234
张三张*
test@example.comte**@example.com
user@example.comus**@example.com

环境要求

bash
pip install pandas openpyxl

注意事项

  1. 脱敏规则格式必须正确:字段名:脱敏类型
  2. 字段名必须存在于数据中
  3. 脱敏后的数据不可逆,请备份原始数据
  4. 建议在测试环境验证脱敏效果后再处理生产数据

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/cas-bigdatalab/piflow/data-masking/badge)](https://verified-skill.com/skills/cas-bigdatalab/piflow/data-masking)

Something wrong with this skill or its page? Tell us.