← 返回
未分类 中文

Artifact Redactor

Public OpenClaw skill for redacting private paths, secret-like strings, private URLs, and common PII from Markdown, JSON, logs, and other text artifacts befo...
公共 OpenClaw技能,用于在发布前从 Markdown、JSON、日志等文本中删除私有路径、密钥类字符串、私有 URL 及常见 PII。
zack-dev-cm zack-dev-cm 来源
未分类 clawhub v1.0.7 1 版本 100000 Key: 无需
★ 0
Stars
📥 486
下载
💾 1
安装
1
版本
#artifacts#latest#openclaw#privacy#redaction

概述

Artifact Redactor

Goal

Take a directory or file full of text artifacts and produce a safer share bundle:

  • one scan of obvious sensitive text patterns
  • one redacted output directory for supported text files
  • one structural check of the redacted output plus a manual-review decision for skipped files
  • one markdown report that explains what was found, what was redacted, and what still needs manual review

This skill is for text artifacts such as Markdown, JSON, logs, YAML, CSV, shell output, and similar files.

It does not claim to sanitize screenshots, PDFs, or other binary files.

It requires Python 3.9+.

Use This Skill When

  • a bug bundle, browser trace, experiment report, or release note needs to be shared outside the immediate team
  • logs or manifests contain private paths, local URLs, token-like strings, email addresses, or phone numbers
  • you want a safer public issue attachment without rewriting the artifact by hand
  • you need a clear manual-review list for files the automatic pass did not rewrite

Quick Start

  1. Scan the source artifacts.
    • Use python3 {baseDir}/scripts/scan_sensitive_text.py --root --out .
    • Point --root at either one file or a directory.
  1. Write a redacted copy.
    • Use python3 {baseDir}/scripts/redact_artifacts.py --root --out-dir --out .
    • This writes only supported text files into the output tree.
    • Binary or unsupported files are skipped and called out for manual review.
  1. Check the output.
    • Use python3 {baseDir}/scripts/check_redaction_output.py --root --redaction --out .
    • The check returns share-ready only when no supported-text findings remain and no skipped files still require manual review.
    • If skipped files exist, expect manual-review-required rather than a full-clear result.
  1. Render the report.
    • Use python3 {baseDir}/scripts/render_redaction_report.py --scan --redaction --check --out .
    • Share the report with the redacted output directory instead of the raw artifacts.

Operating Rules

Safety rules

  • Keep the promise narrow: supported text files only.
  • Treat screenshots, videos, PDFs, and other binary files as manual-review items.
  • Prefer preserving public context when safe. Public URLs may stay, but query strings and fragments should be removed.
  • Replace sensitive values with stable placeholders instead of deleting surrounding context.

Review rules

  • Re-scan the redacted output before sharing it.
  • If the output check returns fix-required or manual-review-required, do not present the full bundle as cleared.
  • Manual-review lists are part of the deliverable, not optional cleanup.

Bundled Scripts

  • scripts/scan_sensitive_text.py
  • Scan files for obvious sensitive text patterns and emit JSON findings.
  • scripts/redact_artifacts.py
  • Write a redacted copy of supported text files into a separate output directory.
  • scripts/check_redaction_output.py
  • Re-scan the redacted output and emit share-ready, manual-review-required, or fix-required.
  • scripts/render_redaction_report.py
  • Render a concise markdown summary from the scan, redaction, and check JSON outputs.

版本历史

共 1 个版本

  • v1.0.7 当前
    2026-05-03 06:53 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 32,164
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装后可防止您和您的用户受到提示注入、数据泄露及恶意行为的侵害。
★ 116 📥 31,114
it-ops-security

Free Ride - Unlimited free AI

shaivpidadi
管理OpenClaw的OpenRouter免费AI模型,自动按质量排名模型,配置速率限制备用方案,并更新opencla...
★ 473 📥 79,106