agentleFS
d-oitd-oit/rust-2026-template/.agents/skills/privacy-first/SKILL.md

privacy-first

Skill15 starsChanged 5 months agoMITView on GitHub

Prevent email addresses and personal data from entering the codebase. Use when user asks to "prevent emails", "remove personal data", "privacy check", "no email", or when writing/editing any Rust code, Cargo.toml, config, or documentation files. Also triggers during code review, quality gate checks, or when adding contact information.

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

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 4 are distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before writing any new code, Cargo.toml, config, or documentation file

    line 24
  2. Distinctive:

    When adding contact information to any file

    line 26
  3. Distinctive:

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

    line 32
  4. Very specific:

    Never hardcode email addresses in const, static, or fn bodies

    line 75
  5. Very specific:

    Use placeholder example.com domain only in #[cfg(test)] blocks

    line 76
  6. Very specific:

    Keep deny.toml and CI configs free of personal email addresses

    line 77
  7. Very specific:

    Test data in tests/ or #[cfg(test)] using standard test domains:

    line 83
  8. Very specific:

    Add to scripts/quality-gates.sh or CI:

    line 91
  9. Very specific:

    Add authors = ["Name <email>"] in Cargo.toml

    line 112
  10. Very specific:

    Write contact@example.com in any markdown

    line 113
  11. Distinctive:

    Use real email addresses in examples

    line 114
  12. Distinctive:

    Use GitHub Issues URLs for support

    line 119
  13. Very specific:

    Remove email from Cargo.toml authors field

    line 120
  14. Very specific:

    Use test domains (example.com) only in #[cfg(test)] blocks

    line 121

≈ “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

When to Activate

  • User asks: "prevent emails", "remove personal data", "privacy check", "never use email"
  • Before writing any new code, Cargo.toml, 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
Cargo.toml authorsauthors = ["Name <email@example.com>"]authors = ["Name"]
README contactcontact@example.comGitHub Issues link
CONTRIBUTING.mdhelp@example.comhttps://github.com/owner/repo/issues
Code of Conductconduct@example.com"Report via GitHub Issues"
Examples in testsuser@gmail.comuser@example.com (test domain only)

3. Rust-Specific Rules

Cargo.toml

# Bad
[package]
authors = ["Dominik Oswald <user@example.com>"]

# Good
[package]
authors = ["Dominik Oswald"]

README.md / CONTRIBUTING.md

# Bad
Contact: support@example.com

# Good
Report issues: https://github.com/owner/repo/issues

Rust source code

  • Never hardcode email addresses in const, static, or fn bodies
  • Use placeholder example.com domain only in #[cfg(test)] blocks
  • Keep deny.toml and CI configs free of personal email addresses

4. Exceptions (Allowed)

The following are permitted and should NOT be flagged:

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

Quality Gate Integration

Add to scripts/quality-gates.sh or CI:

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

# Check source files
if grep -rE "$EMAIL_PATTERN" \
  --include="*.rs" --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 authors = ["Name <email>"] in Cargo.toml
  • Write contact@example.com in any markdown
  • Use real email addresses in examples
  • Include personal emails in deny.toml or CI configs

Always do:

  • Use GitHub Issues URLs for support
  • Remove email from Cargo.toml authors field
  • Use test domains (example.com) only in #[cfg(test)] blocks
  • Link to SECURITY.md for vulnerability reporting

Rationalizations

RationalizationReality
"It's just a test email, not real."Test emails in non-test code set a bad precedent. Use example.com only in #[cfg(test)].
"The email is in a comment, not code."Comments are copied. Emails in comments end up in copy-paste across the codebase.
"We need a contact email somewhere."Use GitHub Issues URLs, not personal emails.

Red Flags

  • Email addresses in Cargo.toml authors field
  • Personal emails in README.md or CONTRIBUTING.md
  • Real emails in Rust source code (not in #[cfg(test)] blocks)

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.