Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

anth-data-handling

Skill by jeremylongshore

Implements PII redaction, audit logging, and data handling patterns for calls to the Claude API. It is aimed at developers who need GDPR or CCPA compliance when sending sensitive data to Claude.

  • Score 77
  • 3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install anth-data-handling

Built from the published package, never by AI.

git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/anth-data-handling ~/.claude/skills/anth-data-handling

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install anth-data-handling in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill gives guidance and Python code for handling personal data when calling the Claude API. Before a request is sent, a regex-based function replaces SSNs, email addresses, phone numbers, and card numbers with placeholders. A restore function then puts the original values back into Claude's response. The skill also wraps API calls with audit logging that records request metadata and token counts but never message content.

The skill includes a data handling checklist, an error handling table, and an output format for a redacted data-handling receipt. It states Anthropic's data policies, such as API inputs not being used for training and a 30-day default retention period. It is intended for developers and compliance owners who handle sensitive data, PHI, or personal data under GDPR or CCPA and want to use Claude.

Written from the project's SKILL.md and checked against it.

What it can do

  • PII redactionReplaces SSNs, emails, phone numbers, and card numbers with placeholders before the API call.
  • Response restorationRestores redacted values in Claude's response using a redaction map.
  • Audit loggingWraps Claude API calls and logs request metadata, token counts, and stop reason without message content.
  • Data handling checklistLists steps such as redaction, audit logs, retention settings, HIPAA BAA, and deletion procedures.
  • Synthetic fixture testingDescribes validating the pipeline with synthetic data and checking that no raw PII is sent or logged.
  • Data handling receiptDefines a redacted receipt with purpose, policy version, token counts, retention deadline, and deletion result.

What you need

  • Python
  • Anthropic API key
  • Anthropic SDK for Python
  • Secret manager for the API credential
  • Approved Anthropic workspace

Try asking

  • Redact emails and phone numbers from this text before sending it to Claude.
  • Add audit logging to my Claude API calls without logging message content.
  • Write a data handling receipt for a synthetic fixture test run.

Good to know

  • Redaction uses regular expressions, which cover only SSN, email, phone, and card patterns.
  • The skill says to use synthetic fixtures and not real customer records during validation.
  • Zero-day retention requires an agreement with Anthropic, according to the skill.

Security check

B
  • Allowed to use Write, Edit without limitsIn SKILL.md

Checked automatically: skills/.curated/anth-data-handling/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadWriteEditGrep

Alternatives to anth-data-handling

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

anth-data-handling: common questions

Does Anthropic use API data to train models?

The skill states that API inputs and outputs are not used for model training because the API is commercial. It lists a 30-day default retention period, with zero-day retention available by agreement.

Which types of PII does the redaction function handle?

The example redact_pii function covers SSNs, email addresses, phone numbers, and card-like numbers. Other PII types are not covered by the code shown.

Does the audit logging store prompts or responses?

No. The skill says logs must never contain message content or PII, and the logging code records only metadata such as model, token counts, and request ID.

How do I install anth-data-handling?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is anth-data-handling free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is anth-data-handling safe to use?

It scores 77 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.

What are alternatives to anth-data-handling?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

anth-data-handling Install

Add to stack

Loading.