跳到正文
TakoAPI
返回技能列表

messageguard

由 andrewandrewsen 提供

CLI Utilities
248下载量由 clawskills.sh 提供
2浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

**Purpose**: MessageGuard filters outgoing text to prevent secret leaks and sensitive data exposure.

描述

该技能的功能

MessageGuard scans outgoing messages for sensitive data patterns before they are sent. It supports three response modes: masking matched content, blocking the message entirely, or generating a warning. Built-in patterns cover common secrets like API keys, AWS credentials, and JWTs, with support for custom regex patterns.

Catches secret leaks at the point of sending rather than after the fact, with no third-party dependencies required.

何时使用

  • Blocking API keys from being pasted into shared chat logs
  • Masking JWT tokens before sending debug output to teammates
  • Warning when AWS credentials appear in outgoing messages
  • Logging credential detections for compliance audits
  • Enforcing secret hygiene in automated messaging pipelines

示例工作流

输入

User asks: send this debug log to the team channel

智能体
  1. 1

    Intercepts the outgoing message before delivery

  2. 2

    Runs the content against configured regex patterns

  3. 3

    Detects an AWS access key pattern match

  4. 4

    Applies the configured mode action (mask, block, or warn)

  5. 5

    Writes a structured JSON detection entry to the configured log path

输出

Message is blocked or masked and the detection is recorded in the log file

安装

clawhub install andrewandrewsen/messageguard

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接