by xiaYuTian11
数据面具 Data Maskit — 专为大模型打造的本地隐私脱敏网关(请求自动打码,回复流式还原;支持 Cursor / Claude Code / Codex / Pi 等任意可配 Base URL 工具)
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
# Add to your Claude Code skills
git clone https://github.com/xiaYuTian11/maskitLast scanned: 9/12/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-09-12T08:23:58.503Z",
"npmAuditRan": true,
"pipAuditRan": false,
"promptInjectionRan": true
}See how maskit compares with popular alternatives.
当你在使用 Cursor、Claude Code、Codex、Pi、OpenCode、ChatGPT 或任意 AI 编程助手 时,代码中的高危敏感信息往往在不知不觉中被发送到外部模型服务商:
sk-proj-...、ghp_...、云厂商 AccessKey、JWT Token、PEM 私钥证书;mysql://root:Pass123@192.168.1.50:3306/db)、私有 IP 地址(10.x / 172.16.x / 192.168.x);.docx / .doc)、Excel(.xlsx / .xls)、PPT(.pptx)等文件中的内部数据。Maskit 的使命:在你的开发终端与外部 AI 服务之间架设一道透明的“本地隐私防护网关”——请求出网前在本地自动打码成结构化占位符,模型回答时毫秒级流式无感还原成原文!
| 阶段 | 内容样例 | 实际效果说明 |
|---|---|---|
| 你的实际输入 | 排查数据库:mysql://root:Pass123@192.168.1.50:3306/db,联系人李四 13800138000 |
包含高危数据库密码与真实联系电话 |
| 大模型收到的内容 | 排查数据库:{{CONNSTR_zkpmqx}},联系人{{TERM_fnqtsw}} {{PHONE_bcdfgh}} |
敏感信息全被替换,外部大模型完全看不到真实数据 |
| 模型生成的回答 | 建议检查 {{CONNSTR_zkpmqx}} 的网络连通性,并让 {{TERM_fnqtsw}} 核对账号权限 |
模型围绕占位符正常理解、推理与作答 |
| 你最终看到的输出 | 建议检查 mysql://root:Pass123@192.168.1.50:3306/db 的网络连通性,并让 李四 核对账号权限 |
本地毫秒级无感还原,开发体验完全不受影响! |
XMLHttpRequest 的请求与流式响应(XHR 响应还原目前覆盖 DeepSeek 网页版),其余站点保持原生行为零干预;.docx / .doc)、Excel(.xlsx / .xls)、PowerPoint(.pptx)等文件时在本地自动解析并打码出网;DeepSeek 等尚未适配的站点,上传文件本体不脱敏(原样透传),扩展会在弹窗中明确提示「附件内容不脱敏」——请勿把含敏感数据的文件传给这些站点;text/event-stream 流式响应,逐事件增量还原下发;thinking)块带上游签名、改写正文会让签名校验失败并使该会话永久 400,因此网关只在正文/工具参数里还原,思考轨迹保留占位符形态,同时对带签名的思考块整块不做脱敏(这类块的数量会在事件详情里如实上报,不静默)。其它无签名约束的推理通道照常还原。18701 对应 OpenAI、18703 对应 Anthropic),只需在工具中将 base_url 改为本地端口,无需向操作系统安装自签名 CA 根证书;maskit-placeholders),支持在控制台一键下载与复制命令,支持 Agent Skills 宿主、AGENTS.md / rules 及剪贴板精简提示;引导 Claude Code / Cursor / Codex 等助手在看到占位符时逐字使用,不编造、不拆分、不替换模拟数据、不无谓拒答。rm -rf /、mkfs、DROP DATABASE、fork 炸弹等命令,落库到「高风险操作时间线」;默认不改写、不阻断(响应字节零变化),需要时可切到「改写为无害占位说明」或「阻断」,并可自定义规则与白名单。仅覆盖明文形态(写成 a=rm; $a 或放进脚本再执行会漏)——这是安全网,不是保险柜。Write/Edit 的参数(即将要写进文件的内容)也在该通道内,所以「往 .sql 迁移文件里写 DROP TABLE users」同样会命中;浏览器扩展链路(ChatGPT / Claude 网页版)不经过命令拦截;切到「阻断」时只停止下发已勾选通道的后续内容,未勾选的通道照常下发,非流式响应整包换成 503。| 控制台概览 (Dashboard) | 客户端多端口管理 (Clients) |
|---|---|
![]() |
![]() |
| 实时拦截日志 (Logs) | 敏感词库与正则 (Words) |
![]() |
![]() |
| 数据统计与成本看板 (Stats) | 安全审计中心 (Audit) |
![]() |
![]() |
接入极简:在你的任意工具中,只需把 API Base URL 改为 Maskit 对应的本地端口即可!
默认端口映射:OpenAI 协议
http://127.0.0.1:18701/v1| DeepSeek 协议http://127.0.0.1:18702/v1| Anthropic 协议http://127.0.0.1:18703(可自由添加修改)
打开 Cursor → Settings → Models:
http://127.0.0.1:18701/v1http://127.0.0.1:18703export ANTHROPIC_BASE_URL="http://127.0.0.1:18703"
claude
通过环境变量指定本地代理端口即可无感打码:
# Linux / macOS
export OPENAI_BASE_URL="http://127.0.0.1:18701/v1"
export OPENAI_API_KEY="your-api-key"
# Windows PowerShell
$env:OPENAI_BASE_URL = "http://127.0.0.1:18701/v1"
$env:OPENAI_API_KEY = "your-api-key"
from openai import OpenAI
client = OpenAI(
base_url="http://127.0.0.1:18701/v1",
api_key="your-api-key"
)
# 正常调用,全链路自动本地打码与流式还原
response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "排查数据库连接:mysql://root:Pass123@192.168.1.100:3306"}]
)
print(response.choices[0].message.content)
https://api.your-relay.com);18709);/v1/chat/completions 等),直接按需勾选即可;http://127.0.0.1:18709/v1 即可正常使用!网页版 AI 无法配置 API Base URL,可通过 Maskit 专属浏览器扩展实现全自动打码与还原:
Maskit_<版本>_extension.zip 并解压,在 Chrome/Edge 打开 chrome://extensions → 开启「开发者模式」→ 点击「加载已解压的扩展程序」选择解压目录(源码用户可直接加载 extension/ 目录);chatgpt.com、claude.ai、deepseek.com 三站已内置授权、无需手动添加;其余 14 个预设站点在扩展设置中一键授权添加(未实测的会标注),也支持自定义站点。💡 状态与排查要点:
- 文件与附件脱敏:ChatGPT / Claude 站点的网页端附件直传与 Office 文档脱敏(
.docx/.xlsx/.pptx及转码.doc/.xls)已适配,无需人工预先编辑;DeepSeek 等未适配站点上传的文件本体不脱敏,扩展会弹窗提示;- 扩展图标弹窗清晰显示当前状态:绿色(正常脱敏)、黄色(引擎未启动,明文直通=不脱敏但不断网)、红色(令牌无效或开关关闭,同样直通不脱敏);
- 引擎不可用或令牌失效时扩展默认明文直通(这是「绝不断网」的设计取舍);若要求「宁可请求失败也不放行明文」,可在设置中开启「引擎不可用时阻断」;
- 扩展流量事件在控制台「事件日志」中同步记录,可按入口维度(代理链路 / 浏览器扩展)一键筛选。
前往 GitHub Releases 发布页面 下载对应平台的最新安装包:
Maskit_<版本>_x64-setup.exe,双击安装运行,系统托盘右键即可启停,支持全自动数字签名(Minisign)无缝在线更新;Maskit_<版本>_aarch64.dmg,双击打开后将 Maskit.app 拖入“应用程序(Applications)”文件夹。
💡 macOS 首次打开提示:若打开时提示“无法打开,因为 Apple 无法检查其是否包含恶意软件”,只需在访达中右键点击 Maskit 选择「打开」,或在终端执行命令移除隔离属性即可正常运行:
xattr -cr /Applications/Maskit.app
无需下载源码,直接拉取 GitHub 官方预构建的多架构镜像(原生支持 linux/amd64 与 linux/arm64),内嵌完整 Web 控制台:
docker run -d \
--name maskit \
--restart unless-stopped \
-p 127.0.0.1:5801:5801 \
-p 127.0.0.1:18701:18701 \
-v maskit_data:/data \
-e MASKIT_PANEL_TOKEN="YourSecretToken123456" \
ghcr.io/xiayutian11/maskit:latest
💡 端口映射与网络访问说明:
5801:Web 控制台端口(必开),用于查看仪表盘、管理规则与客户端配置;18701起:大模型反代端口(按需开启)。例如默认 18701 对应 OpenAI、18702 对应 DeepSeek。用几个客户端就开几个端口(如仅用一个就只映射 18701,用三个就-p 127.0.0.1:18701-18703:18701-18703),不要盲目映射一大排无用端口;- 访问地址绑定:若服务器前置有 Nginx 或仅供本机访问,推荐绑定 `-p 127
maskit is an open-source data processing skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by xiaYuTian11. 数据面具 Data Maskit — 专为大模型打造的本地隐私脱敏网关(请求自动打码,回复流式还原;支持 Cursor / Claude Code / Codex / Pi 等任意可配 Base URL 工具). It has 295 GitHub stars.
Yes. maskit passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/xiaYuTian11/maskit" and add it to your Claude Code skills directory (see the Installation section above).
maskit is primarily written in Python. It is open-source under xiaYuTian11 on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other Data Processing skills you can browse and compare side by side. Open the Data Processing category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh maskit against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars