agentleFS
d-o-hubd-o-hub/github-template-ai-agents/.agents/skills/privacy-first/SKILL.md

privacy-first

Skill2 starsChanged 11 days agoMITView on GitHub

Prevent email addresses and personal data from entering the codebase. Use this skill when the user asks to prevent emails, remove personal data, run a privacy check, scan for PII, or ensure no email addresses leak into source code or documentation — even if they just say "no email" or "check for personal data". Not for security audits (use security-code-auditor), EU AI Act compliance (use eu-ai-act-compliance), hardcoded secrets (use secrets-management), or sanitizing local prompt context before sending to external models (use local-context-sanitization).

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 8 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before writing any new code, config, or documentation file

    line 30
  2. Distinctive:

    When adding contact information to any file

    line 32
  3. Distinctive:

    Before creating or editing any file, check for email patterns:

    line 38
  4. Distinctive:

    Never add email fields

    line 78
  5. Distinctive:

    Use URLs to GitHub instead

    line 79
  6. Very specific:

    Test data in tests/ directories using standard test domains:

    line 85
  7. Very specific:

    Add email = "..." to any config file

    line 114
  8. Very specific:

    Write contact@project.com in any markdown

    line 115
  9. Distinctive:

    Use real email addresses in examples

    line 116
  10. Distinctive:

    Use GitHub Issues URLs for support

    line 120
  11. Distinctive:

    Remove email fields from package metadata

    line 121
  12. Very specific:

    Use test domains (example.com) only in test files

    line 122

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Privacy First

This skill ensures no email addresses or personal data leak into the codebase. It provides detection, prevention, and automated checking.

When to Use

  • User asks: "prevent emails", "remove personal data", "privacy check", "never use email"
  • Before writing any new code, config, or documentation file
  • During code review or quality gate checks
  • When adding contact information to any file

Agent Workflow

1. Before Writing Any File

Before creating or editing any file, check for email patterns:

# Scan the file being edited for email patterns
grep -E '[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}' <file> || true

2. Replacement Rules

ContextInstead ofUse
Author/contactsupport@project.comGitHub Issues link
Supporthelp@project.comhttps://github.com/owner/repo/issues
Code of Conductcontact@project.com"Report via GitHub Issues"
Package metadataemail = "..."Remove email field entirely
Examplesuser@gmail.comTest domain: user@example.com (only in tests)

3. File-Type Specific Rules

Python (pyproject.toml, setup.py)

# Bad
authors = [{name = "Author", email = "author@example.com"}]

# Good
authors = [{name = "Author"}]

Markdown (README.md, CONTRIBUTING.md)

<!-- Bad -->
Contact: support@project.com

<!-- Good -->
Report issues: https://github.com/owner/repo/issues

Configuration files

  • Never add email fields
  • Use URLs to GitHub instead

4. Exceptions (Allowed)

The following are permitted and should NOT be flagged:

  • Test data in tests/ directories using standard test domains:
    • example.com, example.org, test.com, localhost
  • URLs in documentation pointing to external services
  • Git history (cannot modify)
  • Skill reference files with generic examples (for demonstration)

Quality Gate Integration

To add automated checks to pre-commit or CI:

# Add to scripts/quality_gate.sh or .pre-commit-config.yaml

# Scan for email patterns (exclude test data and git)
EMAIL_PATTERN='[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}'

# Exclude patterns (test domains, git, node_modules)
EXCLUDE_PATTERN='example\.com|example\.org|test\.com|\.git|node_modules'

# Check source files
if grep -rE "$EMAIL_PATTERN" --include="*.py" --include="*.toml" --include="*.yaml" --include="*.json" --include="*.md" . 2>/dev/null | grep -vE "$EXCLUDE_PATTERN"; then
    echo "ERROR: Email address detected in codebase"
    exit 1
fi

Quick Reference

Never do:

  • Add email = "..." to any config file
  • Write contact@project.com in any markdown
  • Use real email addresses in examples
  • Include personal emails in commit messages

Always do:

  • Use GitHub Issues URLs for support
  • Remove email fields from package metadata
  • Use test domains (example.com) only in test files
  • Link to SECURITY.md for vulnerability reporting

See Also

  • security-code-auditor — General security audits
  • eu-ai-act-compliance — EU AI Act compliance
  • local-context-sanitization — Sanitize prompt context before external forwarding

Rationalizations

RationalizationReality
"It's just a README, no one cares about emails in docs"Scrapers harvest emails from public repos; any address becomes a phishing target.
"We need a real contact email for support"Use GitHub Issues or a web form; email addresses in repos are permanent even after deletion.
"This is an internal tool, privacy doesn't apply"Internal repos get leaked; personal data in source code violates privacy-by-design principles.

Red Flags

  • Adding email fields to package metadata or config files
  • Using real email addresses in documentation examples
  • Skipping email scans in CI because "it's just a test file"

Voice & Context

  • Default: professional + blog
  • Reference: voice-profiles skill for definitions and auto-detection.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.