Index of every page on this site: llms.txt
All skills
fajarhide avatar

/no-leaky-data

@dc7ebb1
Run it yourself

Use when output shows tokens like [email: k3f9a01c27b4], when working with customer, user or personal data (emails, phone numbers, national IDs, card numbers, internal hosts or client names), or when a prompt was held for holding personal data.

Use this Skill: https://skilld.dev/gh/fajarhide/no-leaky/no-leaky-data

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈65 tokens for metadata: the name and description. ≈864 when used: this file.

Description uses 3.3% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈260 characters, or 3.3%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

no-leaky-data

Everything you see is sent to your provider. Personal data in tool output (emails, phone numbers, card numbers, IP addresses, AWS account IDs, IBANs, national IDs such as nik, npwp, ssn, nino, aadhaar, cpf, steuerid, dni, insee, cf, bsn, sin, nric and curp, and the client names the user listed) reaches you as tokens. Every token has the shape [<kind>: k<12 hex>] and works the same way, whatever its kind:

customer 4411 <[email: k3f9a01c27b4]> paid with [card: k77b2e10c9d1], phone [phone: k0c5d9a2e3f8]

The same person always gets the same token on this machine, so you can follow one customer through a log, a database row and a ticket without ever seeing who they are.

Use a value without seeing it

Put the token in a command and run it through nl-run. It swaps the real value in inside its own process. What the command prints comes back to you with those values turned into tokens again; output redirected to a file keeps the real values, which is how an export works.

nl-run -- sqlite3 shop.db "select id, status from orders where email = '[email: k3f9a01c27b4]'"
nl-run -- grep -n '[email: k3f9a01c27b4]' logs/app.log

A search or query that holds a token but does not go through nl-run is blocked: run as written it would match the token's text and return nothing.

Rules

  • Never try to recover a value: no decoding, no guessing it from context, no asking the user for it, no reading ~/.cache/no-leaky/vault.json (the guard denies it).
  • Report findings about a person by token: "the checkout for [email: k3f9a01c27b4] fails because...".
  • To change a line that holds a token, do not use Edit (it compares against the real file, so a token never matches). Feed a small script to nl-run on stdin, nl-run -- python3 - < fix.py: tokens are resolved in what nl-run reads, not inside a file it is given by name.
  • Writing a token into a file with Write or Edit is blocked, since the file would hold the token's text instead of the value. A Markdown or text note is the exception: tokens there are fine.
  • Export real values with a redirect: nl-run -- sqlite3 -json shop.db "select ..." > export.json.
  • nl-run refuses network tools (curl, ssh, scp and an inline script that reaches the network) unless every host is in data_hosts. If a task truly needs one, tell the user which host and why; they decide whether to list it.
  • nl-run: unknown token means the token expired (7 days) or came from another machine. Read the source again to get a fresh one.

When a prompt is held

The user pasted data. Suggest they put the rows in a file and give you the path: you will read them as tokens and can still work with them. They can send it anyway by starting the message with secret-ok:.

Settings the user controls

~/.config/no-leaky/config.json:

{
  "data_allow": ["their-own@email.example"],
  "internal_names": ["client or employer names to hide"],
  "data_hosts": ["db.internal.example"],
  "data_packs": ["us", "gb", "iban"]
}

data_allow keeps their own email and name readable. internal_names turns those names into [name: k…] tokens in text (paths, URLs and git remotes are left alone so cd and git keep working). data_hosts lists hosts nl-run may send resolved values to. data_packs limits which national identifiers are tokenized (country codes or iban); leave it out for all of them, [] for none.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning8d3 checks · Risk SAFE
  • Gen Agent Trust Hub8d

    The skill provides instructions for handling sensitive data using a tokenization utility. It describes workflows for processing external data and executing commands on real values while hiding them from the AI provider. Security risks include a surface for indirect prompt injection from processed logs or databases and the potential for data exposure via output redirection.

  • Socket11d

    1 alert: gptSecurity

  • Snyk8d

    Risk: LOW · No issues

Signed by skilld at dc7ebb1. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated last week

README badge

README badge for fajarhide/no-leaky/no-leaky-data