anonymization
Skill2 starsChanged 5 days agoMITView on GitHub
Sanitizes repository code, paths, comments, and documentation before supplementary material submission or public open-sourcing. Scans for absolute paths, replaces them with placeholders, updates README configuration notes, logs non-anonymous entities (nicknames, non-English comments) in ANON.md, and handles supplementary `.git` removal notices.
- Deletes or force-pushes
In this repository15 other files it gives its agents.
- research_agentAGENTS.md
- ai-checklistSkill
- code-reviewSkill
- competitor-analysisSkill
- conventional-commitSkill
- documentation-and-adrsSkill
- edaSkill
- github-pagesSkill
- huggingface-spaceSkill
- idea-roastSkill
- ml-experiment-launchSkill
- paper-draftingSkill
- refactorSkill
- research-notesSkill
- security-and-hardeningSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Ask or confirm the target mode:
- Very specific: line 27
Verify from the user, whether they need to submit logs/.
- Distinctive: line 48
Add a dedicated subsection instructing users how to configure their local environment paths:
- Distinctive: line 59
Create or update ANON.md in the root of the project to document entities that require manual review or cleanup before publication:
- Distinctive: line 88
If running in supplementary mode:
- Distinctive: line 90
Add a prominent notice at the very beginning of README.md:
- Very specific: line 93
Verify that the .git folder is excluded or provide explicit shell commands for the user to delete it before packaging:
- Distinctive: line 103
Before finalizing the package or push:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.
Files
Repository Anonymization & De-identification
Overview
A systematic procedure for preparing a research repository for peer-review supplementary material submission or public release. This skill ensures compliance with double-blind review guidelines and data privacy standards by purging system-specific paths, personal identifiers, internal cluster references, and non-English commentary.
When to Use
- Supplementary Submission: Preparing a
.zipor archive for double-blind conference review (e.g., ICLR, Interspeech, NeurIPS). - Public Open-Sourcing: Transitioning a private enterprise or laboratory repository to a public GitHub/GitLab organization.
Execution Workflow
Step 1: Determine Anonymization Mode
Ask or confirm the target mode:
supplementaryMode: Scans every file in the repository (including untracked files, local configs, and build outputs). Prepares notes for removing the.gitdirectory.publicMode: Scans only Git-tracked files (git ls-files) to avoid leaking uncommitted scratch work, leaving.gitintact.
Verify from the user, whether they need to submit logs/. In case of yes, remove configs and files with metrics from .gitignore.
Step 2: Absolute Path Scanning & Replacement
- Scan for Hardcoded Absolute Paths:
- Linux/macOS paths:
/home/username/,/Users/username/,/mnt/,/nfs/,/scratch/,/data/ - Windows paths:
C:\Users\,D:\ - Internal server IPs, cluster paths, or absolute virtual environment prefixes.
- Linux/macOS paths:
- Replace with Placeholders:
- Replace absolute paths in code, configuration files (
pyproject.toml,pixi.toml, Hydra configs inconfigs/), and scripts with clear, parameterized placeholders:- Data directories:
<PATH_TO_DATA>or${DATA_ROOT} - Checkpoint/Output directories:
<PATH_TO_CHECKPOINTS>or${CHECKPOINT_DIR} - Home/Workspace roots:
<WORKSPACE_ROOT>
- Data directories:
- Replace absolute paths in code, configuration files (
Step 3: Update README.md (Getting Started / Setup)
- Locate the Getting Started or Configuration section of
README.md. - Add a dedicated subsection instructing users how to configure their local environment paths:
### Environment Configuration
Before running training or evaluation scripts, update the placeholder paths in your configuration files or environment variables:
- `DATA_ROOT`: Point to your local dataset directory.
- `CHECKPOINT_DIR`: Point to your model weight storage directory.Step 4: Audit Non-Anonymous Entities (ANON.md)
Create or update ANON.md in the root of the project to document entities that require manual review or cleanup before publication:
- Nicknames & Personal Names: Authors, lab members, or system usernames found in code comments, docstrings, or commit logs.
- Non-English Comments: Comments, debug logs, or documentation written in local languages (e.g., Russian, Chinese) that should either be translated to English or scrubbed for anonymous review.
- Internal URLs / Endpoints: Proprietary intranet links, internal slack channels, or private API endpoints.
ANON.md Template Structure
# Anonymization & Review Log
The following items were identified during the automated repository audit and require manual verification or removal before final publication:
## 1. Non-English Comments / Localized Text
- [ ] `src/data/loader.py:45` — Comment in Cyrillic: `# TODO: дописать проверку сэмплов`
- [ ] `src/models/audio.py:112` — Log message in local language
## 2. Personal Identifiers & Nicknames
- [ ] `configs/train.yaml:12` — Author username found in default logging path (`/home/artem/`)
## 3. Internal Endpoints / Infrastructure
- [ ] `scripts/submit.sh:8` — Internal cluster scheduler address (`slurm.internal.lab`)Step 5: Supplementary Submission Safeguards (If Applicable)
If running in supplementary mode:
- Add a prominent notice at the very beginning of
README.md: - Important Notice for Reviewers: This archive has been stripped of its
.githistory to ensure double-blind review compliance.
Verify that the .git folder is excluded or provide explicit shell commands for the user to delete it before packaging:
rm -rf .git .gitignore .github/Same for __pycache__ and other files and folders, that are created during run.
Verification Checklist
Before finalizing the package or push:
- All absolute system paths replaced with environment variables or clear placeholders (
<...>) - README.md updated with setup instructions for configuring paths
ANON.mdcreated in root and populated with flagged nicknames, comments, and internal links- (Supplementary Mode)
.gitdirectory removal instructions or execution verified
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
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.

