privacy-mask CLAUDE.md

Repository instructions for a local image-privacy tool that finds sensitive information in images using text recognition and pattern rules, then hides it before the image is shared.

In plain words
What is it for?
Use them when building, testing, changing detection rules, running GitHub commands, or publishing the Python package to PyPI through a GitHub release.
Why use it?
They keep development, testing, GitHub account use, and package publishing consistent. They also document where detection rules, masking settings, tests, and plugin files live.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/fullstackcrew-alpha/privacy-mask/claude-md
Clone the repo
git clone --depth 1 https://github.com/fullstackcrew-alpha/privacy-mask
Per session 783 This file is loaded in full into every session.
When invoked 783 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00783 $0.00783
Opus 5 $0.00392 $0.00392
Sonnet 5 $0.00157 $0.00157
Haiku 4.5 $0.00078 $0.00078

Measured 3d ago against content hash 3288ac97d0f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

privacy-mask CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.

privacy-mask

Local image privacy masking tool — detect and redact sensitive info via OCR + regex before images leave your machine.

Build & Test

pip install -e .
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 python -m pytest tests/ -v

Project Structure

  • mask_engine/ — core library (OCR, detection, masking, CLI)
  • mask_engine/data/config.json — 47 regex detection rules + masking/OCR settings
  • tests/test_detector.py — detection rule tests (208+), each rule has positive and negative cases
  • SKILL.md — agentskills.io standard skill definition
  • .claude-plugin/ / hooks/ / scripts/ — Claude Code plugin structure

GitHub Operations

This repo belongs to fullstackcrew-alpha. Before any gh command (push, PR, topics, releases, etc.), switch to the correct account:

gh auth switch -u fullstackcrew-alpha

Switch back after if needed: gh auth switch -u haowu77

PyPI Publish

PyPI 发布通过 GitHub Release 自动完成(CI workflow .github/workflows/publish.yml):

gh auth switch -u fullstackcrew-alpha
gh release create v<version> --title "v<version> — 描述" --notes "changelog"
  • Token 存在 GitHub repo secrets (PYPI_API_TOKEN),不需要本地凭证
  • 不要twine upload 本地发布,直接创建 Release 即可
  • Release 会自动触发 build → check → publish 流程

ClawHub Publish

clawhub whoami                # verify logged in as fullstackcrew-alpha
clawhub publish . --version <semver> --tags "privacy,pii,masking,redaction,security,ocr,screenshot,sensitive-data,data-protection,offline,local,claude-code,api-keys,secrets" --changelog "description"
  • --version is required (valid semver)
  • --tags is critical for discoverability — ClawHub uses vector search, so without semantic tags the skill won't appear in search results
  • .clawhubignore controls which files are included
  • SKILL.md frontmatter provides metadata

Version sync checklist

When bumping versions, update all four locations:

  1. pyproject.toml version field
  2. mask_engine/__init__.py __version__
  3. SKILL.md frontmatter version field
  4. marketplace.json version field

Read the full file on GitHub · 74 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 74 lines · 783 tokens per session scan A 3288ac97d0f9

Subscribe to this mod's changes

privacy-mask CLAUDE.md is an instructions file published in the GitHub repository fullstackcrew-alpha/privacy-mask (11 stars, last pushed 5mo ago), licensed MIT. It adds 783 tokens to every session, about $0.0039 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.