privacy-mask: Instructions file for Claude Code

CLAUDE.md

privacy-mask CLAUDE.md is an instructions file for Claude Code from fullstackcrew-alpha/privacy-mask. It costs 783 tokens per session, scanned A, original, MIT.

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 for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions .claude-plugin; mentions Claude Code.

This is fullstackcrew-alpha/privacy-mask's own configuration. It tells Claude Code how to work on privacy-mask itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything privacy-mask configures →

Reuse

Borrowing it

Nothing to install: this file belongs to fullstackcrew-alpha/privacy-mask. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/fullstackcrew-alpha/privacy-mask/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/fullstackcrew-alpha/privacy-mask

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for privacy-mask CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/fullstackcrew-alpha/privacy-mask/claude-md/github.svg)](https://agentmods.dev/instructions/fullstackcrew-alpha/privacy-mask/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/fullstackcrew-alpha/privacy-mask/claude-md"><img src="https://agentmods.dev/badge/instructions/fullstackcrew-alpha/privacy-mask/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for privacy-mask CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/fullstackcrew-alpha/privacy-mask/claude-md"><img src="https://agentmods.dev/badge/instructions/fullstackcrew-alpha/privacy-mask/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00783 $0.00783
Opus 5.5 $0.00313 $0.00313
Sonnet 5.5 $0.00157 $0.00157
Haiku 4.5 $0.00078 $0.00078

Measured 1mo ago against content hash 3288ac97d0f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (12 stars, last pushed 7mo ago), licensed MIT. It adds 783 tokens to every session, about $0.0031 per session on Opus 5.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.

Related

Other instructions, from other repositories