Skip to content
Back to skills

Scrub Before Sharing

ASecurity

Pseudonymise ISO 20022 pacs/camt payment files before they are shared with a vendor, a colleague, a support ticket or an AI tool. Use when the user wants to anonymise, mask, redact, sanitise or scrub payment XML, or is about to share real payment data.

  • 39 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentsgo

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add Raafet57/Payment-intelligence-Plugin --skill scrub-before-sharing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Scrub Before Sharing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Scrub Before Sharing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/raafet57-scrub-before-sharing/badge)](https://www.skillsdirectory.com/skills/raafet57-scrub-before-sharing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: scrub-before-sharing
description: Pseudonymise ISO 20022 pacs/camt payment files before they are shared with a vendor, a colleague, a support ticket or an AI tool. Use when the user wants to anonymise, mask, redact, sanitise or scrub payment XML, or is about to share real payment data.
---

# Scrub payment data before sharing

The goal is for the **original data never to enter the conversation**.

1. Ask for the file path if you don't have it. **Do not open or read the original file.**
2. Pick an output path next to the original, such as `<name>.scrubbed.xml`. It must not already exist.
3. Call `scrub_payment_message` with `path` and `output_path`. Add `options` only if the user asks:
   - `preserveRemittance: true` keeps remittance text (it is masked by default).
   - `shiftDates: true` with `dateOffsetDays` moves dates.
   - `maskFiOtherIds: true` also masks proprietary FI ids.
4. Report back from the tool result only:
   - where the scrubbed file was written (`writtenTo`);
   - the per-type counts in `stats`;
   - a few `mapping` rows as examples. They hold masked previews, never originals.
5. Remind the user to spot-check the scrubbed file before sharing it. Scrubbing covers known party, account, identifier and reference fields, and free text in unexpected places can survive.

If the user pastes raw XML instead, call the tool with `xml` and return the scrubbed `output`. Suggest the file workflow next time.

## Boundaries

- The output is pseudonymised, not anonymised. If the recipient is outside the organisation, the user's data-protection rules still apply.
- Never overwrite the original. The tool refuses to, so don't try to work around it.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.