Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计通过

chatmaskchatmask 分析

Agent Skill

chatmask 用于处理图像、截图、视觉识别或图片素材相关工作,适合在 OpenClaw 中需要让 Agent 分析图片、整理视觉素材或辅助图像流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,586

周安装

195

GitHub Stars

1

下载量

1,607
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:chatmask(chatmask 分析)
来源仓库:https://github.com/frankz2020/chatmask
安装命令:
openclaw skills install chatmask
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install chatmask

简介

对聊天截图进行像素化处理,隐藏用户名与头像等隐私信息。

  • 适合在 OpenClaw 中分享对话记录前保护他人隐私时使用。
  • 通过 clawhub 安装,支持主流通讯软件截图批量处理。
  • 安装前建议确认图片清晰度与马赛克区域覆盖完整性。chatmask 属于效率类 Skill,可作为该场景下的辅助能力补充。
  • 注意该技能仅做局部遮蔽,无法识别并自动定位所有敏感元素。

SKILL.md

name
chatmask
description
>-
Triggers
pixelate chat screenshot, blur names and avatars, anonymize chat,
metadata
{"openclaw": {"requires": {"bins": ["python3", "git"]}, "emoji": "🎭", "homepage": "https://github.com/frankz2020/chatmask"}}

ChatMask Skill

When the user sends chat screenshots and asks to pixelate or hide identity elements, follow the steps below in order: Setup → Workflow.

No external API key is required. This skill uses your existing AI capabilities to locate regions in the image, then delegates only the image manipulation to the local Python script.


Setup (run once, idempotent)

Run this block before the first job. Every step is guarded so re-running is safe.

# Default install path — override by setting CHAT_PIXELATE_PATH before calling the skill
CHAT_PIXELATE_PATH="${CHAT_PIXELATE_PATH:-$HOME/.openclaw/skills/chatmask}"

# 1. Clone repo and checkout the pinned, audited commit
#    Audited commit: 62b0d1132e8cad8455ef29f74a98da486ff102d4 (frankz2020/chatmask, v1.1.0)
PINNED_SHA="62b0d1132e8cad8455ef29f74a98da486ff102d4"
if [ ! -d "$CHAT_PIXELATE_PATH/.git" ]; then
  git clone https://github.com/frankz2020/chatmask.git "$CHAT_PIXELATE_PATH"
fi
# Enforce the pinned commit — prevents silent drift if the branch moves
(cd "$CHAT_PIXELATE_PATH" && git fetch --quiet origin && git checkout --quiet "$PINNED_SHA")

# 2. Create virtualenv if not already present
if [ ! -d "$CHAT_PIXELATE_PATH/.venv" ]; then
  python3 -m venv "$CHAT_PIXELATE_PATH/.venv" \
    || { apt-get install -y python3-venv && python3 -m venv "$CHAT_PIXELATE_PATH/.venv"; }
fi

# 3. Install / upgrade dependencies (Pillow, python-dotenv — no network calls at runtime)
"$CHAT_PIXELATE_PATH/.venv/bin/pip" install -q -r "$CHAT_PIXELATE_PATH/requirements.txt"

export CHAT_PIXELATE_PATH
PYTHON="$CHAT_PIXELATE_PATH/.venv/bin/python3"
What this installs: Pillow (image processing) and python-dotenv (.env loader for standalone use only). The requests package is not installed by the skill — it is only needed for standalone/non-skill mode and lives in requirements-standalone.txt. No network calls are made by the script at runtime.
Network behavior: The only outbound calls in Setup are git clone (one-time) and pip install (one-time). During Workflow, process.py makes no network calls when --bbox-json is supplied — all processing is local.

Workflow

Read Element Selection and Option Configuration to translate natural-language requests into the correct flags before running.

1. Prepare directories

JOB_ID="job_$(date +%s)"
OUT_DIR="/tmp/chat_pixelate_out_$JOB_ID"
mkdir -p "$OUT_DIR"

2. Process each image individually

Each image must be analysed and pixelated separately. Different screenshots have different element positions — passing one image's bounding boxes to another would leave sensitive regions unredacted. Repeat the following block for every image the user sent.

Why per-image? --bbox-json is scoped to a single image. process.py enforces this: it exits with an error if more than one image is present in the input directory when --bbox-json is used.

For each image <filename.png>:

2a. Copy the image into its own input directory

# Use a fresh single-image input dir for each file
IMG_FILE="<filename.png>"   # replace with the actual filename
IN_DIR="/tmp/chat_pixelate_in_${JOB_ID}_${IMG_FILE%.*}"
mkdir -p "$IN_DIR"
cp "$HOME/.openclaw/media/inbound/$IMG_FILE" "$IN_DIR/"

2b. Analyse the image with your vision capabilities

Use the prompt below on $IN_DIR/$IMG_FILE and capture the JSON output. The schema uses normalized coordinates (0-1000) where (0,0) is top-left and (1000,1000) is bottom-right, in y_min, x_min, y_max, x_max order.

You are a privacy specialist analyzing a chat/messaging app screenshot.
The app could be WeChat, WhatsApp, Telegram, iMessage, Slack, Discord, LINE,
KakaoTalk, or any other messaging application. The UI may be in English,
Chinese, or any other language. Identify the requested elements by their
visual layout and position, not by app-specific labels.

YOUR TASK:
Locate ALL occurrences of the following elements and return their bounding boxes:
1. chat_names   — The text title in the top navigation/header bar (conversation
                   name, group name, channel title, back-button contact name).
2. profile_pics — Circular or rounded avatar images next to message bubbles,
                   in the header, or on the participants list. Each distinct
                   avatar occurrence is its own region.
3. display_names — Text username/nickname labels directly next to or above
                   message bubbles (sender names, distinct from the header title).

RULES:
- Return ONLY the elements listed above.
- Each element occurrence must be its own region.
- Cover the full visible area with a small amount of padding.
- If an element type is not visible, return an empty list for that key.
- Use normalized coordinates (0-1000) where (0,0) is top-left and (1000,1000) is bottom-right.
- Coordinate order: y_min, x_min, y_max, x_max (top, left, bottom, right).
- All values must be integers between 0 and 1000.

Respond ONLY with a JSON object using this exact schema (no extra text outside the JSON):
{
  "chat_names":    [{"y_min": int, "x_min": int, "y_max": int, "x_max": int}],
  "profile_pics":  [{"y_min": int, "x_min": int, "y_max": int, "x_max": int}],
  "display_names": [{"y_min": int, "x_min": int, "y_max": int, "x_max": int}]
}

Omit keys for elements the user did not request (see Element Selection below).

2c. Run pixelation for this image

Pass the JSON from 2b via --bbox-json. No API key is read or written.

BBOX='<JSON output from 2b>'
"$PYTHON" "$CHAT_PIXELATE_PATH/process.py" \
    "$IN_DIR" \
    "$OUT_DIR" \
    --bbox-json "$BBOX" \
    [OPTIONS]   # see Element Selection and Option Configuration below

Repeat steps 2a–2c for every image before proceeding.

3. Return results to user

ls "$OUT_DIR/"*_pixelated.png

Attach or share all processed images from $OUT_DIR/.


Element Selection

Translate the user's intent to --elements. Default (no flag) pixelates all three.

User says (EN / 中文)--elements flag
all / default / 全部 / 默认 / 全部打码*(omit flag — default: all three)*
chat name only / 只隐藏聊天名称--elements chat_name
profile pics only / 只隐藏头像--elements profile_pic
display names only / 只隐藏昵称 / 只隐藏用户名--elements display_name
avatars and display names / 隐藏头像和昵称--elements profile_pic,display_name
chat name and avatars / 隐藏聊天名称和头像--elements chat_name,profile_pic
chat name and display names / 隐藏聊天名称和昵称--elements chat_name,display_name

When not all three elements are requested, omit the unused keys from the bounding-box JSON prompt in step 2 to reduce noise.

Element definitions:

  • chat_name: Title text in the top navigation bar (group name, contact name, channel title)
  • profile_pic: Circular/rounded avatar images next to message bubbles
  • display_name: Text username/nickname labels next to or above message bubbles

Option Configuration

User says (EN / 中文)Flag
soft blur / mist effect / 模糊效果 / 雾化(默认)--pixel-mode A *(default)*
block / mosaic / pixelate blocks / 马赛克 / 方块效果--pixel-mode B

Full Example (copy-paste ready)

Two images processed, each with its own per-image bounding-box analysis:

# (Assumes Setup block has already run and exported CHAT_PIXELATE_PATH and PYTHON)

JOB_ID="job_$(date +%s)"
OUT_DIR="/tmp/chat_pixelate_out_$JOB_ID"
mkdir -p "$OUT_DIR"

# --- Image 1: screenshot_a.png ---
IN_A="/tmp/chat_pixelate_in_${JOB_ID}_a"
mkdir -p "$IN_A"
cp "$HOME/.openclaw/media/inbound/screenshot_a.png" "$IN_A/"
# (analyse screenshot_a.png with your vision model, capture JSON as BBOX_A)
BBOX_A='{"chat_names":[{"y_min":20,"x_min":100,"y_max":80,"x_max":900}],"profile_pics":[{"y_min":150,"x_min":10,"y_max":220,"x_max":80}],"display_names":[{"y_min":160,"x_min":90,"y_max":190,"x_max":350}]}'
"$PYTHON" "$CHAT_PIXELATE_PATH/process.py" "$IN_A" "$OUT_DIR" --bbox-json "$BBOX_A"

# --- Image 2: screenshot_b.png --- (analyse separately; elements at different positions)
IN_B="/tmp/chat_pixelate_in_${JOB_ID}_b"
mkdir -p "$IN_B"
cp "$HOME/.openclaw/media/inbound/screenshot_b.png" "$IN_B/"
# (analyse screenshot_b.png with your vision model, capture JSON as BBOX_B)
BBOX_B='{"chat_names":[{"y_min":10,"x_min":200,"y_max":70,"x_max":800}],"profile_pics":[],"display_names":[{"y_min":200,"x_min":60,"y_max":240,"x_max":400}]}'
"$PYTHON" "$CHAT_PIXELATE_PATH/process.py" "$IN_B" "$OUT_DIR" --bbox-json "$BBOX_B"

echo "=== Output images ==="
ls "$OUT_DIR/"*_pixelated.png

More examples

# Only blur profile pics for one image — omit unused keys from JSON
IN_IMG="/tmp/chat_pixelate_in_${JOB_ID}_img"
mkdir -p "$IN_IMG"
cp "$HOME/.openclaw/media/inbound/chat.png" "$IN_IMG/"
BBOX='{"profile_pics":[{"y_min":150,"x_min":10,"y_max":220,"x_max":80}]}'
"$PYTHON" "$CHAT_PIXELATE_PATH/process.py" "$IN_IMG" "$OUT_DIR" \
    --elements profile_pic \
    --bbox-json "$BBOX"

# Hide chat name and display names, block mosaic style
BBOX='{"chat_names":[{"y_min":0,"x_min":100,"y_max":60,"x_max":900}],"display_names":[{"y_min":160,"x_min":90,"y_max":190,"x_max":350}]}'
"$PYTHON" "$CHAT_PIXELATE_PATH/process.py" "$IN_IMG" "$OUT_DIR" \
    --elements chat_name,display_name \
    --pixel-mode B \
    --bbox-json "$BBOX"

Troubleshooting

SymptomCauseFix
--bbox-json ... but N images were foundMultiple images in input dir with --bbox-jsonUse a separate $IN_DIR per image and run process.py once per image
python3 -m venv failsMissing venv moduleRun apt-get install -y python3-venv then re-run Setup
git clone failsNo git installed or no networkRun apt-get install -y git or check network connectivity
No images found in input directoryCopy step failedCheck ls $IN_DIR/ and confirm the filename is exact
Image copied unchanged with SKIPPED in summaryJSON parse failureCheck printed warning; verify the bbox JSON is valid
Wrong regions pixelatedBounding boxes were inaccurateRe-analyse the image and adjust coordinates; try --pixel-mode B

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

79.83%
按下载量换算1,283

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills