Logo: Anonymize Repo

Anonymize Repo

Communautéit
yy
anonymize-repo

Export an anonymized, history-free snapshot of a research repository for double-blind review — drop internal files, scrub names from text and Office/PDF metadata, scan for anything identifying, and check that the snapshot still builds. Use when a paper under anonymous review needs a code-and-data link, or the user asks to anonymize a repo, prepare an anonymous or private review repo, or link code for reviewers.

Iwwersiicht

Editeuryy
Repositoryscholar-kit
Skill-Nummanonymize-repo
Stären
39
Forks
4
Matgeliwwert Dateien
2
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 2 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    yy huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Anonymize Repo an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/yy/scholar-kit/tree/main/skills/anonymize-repo
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/yy/scholar-kit.git /tmp/scholar-kit
mkdir -p .claude/skills
cp -r /tmp/scholar-kit/skills/anonymize-repo .claude/skills/anonymize-repo
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Anonymize Repo an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Anonymize Repo automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Anonymize Repo net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Anonymize a repository for review

Make a clean copy for reviewers; never edit or push the original repository or its history. The bundled scripts/anonymize_repo.py does the mechanical work and fails on anything it can still find; the identity list and what to leave out are judgment calls for you and the user.

1. List what identifies the authors

Collect candidates and confirm them with the user:

  • names, initials used as names, and usernames: git log --format='%an %ae' | sort -u, the README, \author, \affiliation, and \email in the paper, acknowledgements, the GitHub owner, the local user name;
  • e-mail addresses, affiliations, lab and grant names, personal URLs;
  • local paths (/Users/<name>/) that notebooks and logs pick up.

2. Write the config

Put anonymize.toml at the repository root (it is never exported; the format is in the script's docstring):

  • exclude: agent and editor instructions (CLAUDE.md, AGENTS.md), internal notes, earlier review rounds, .github/ (CODEOWNERS names people), slide decks, anything not needed to reproduce the paper.
  • [[replace]]: author blocks in the README, \author lines, clone URLs. Every rule must match at least once, so a moved heading fails loudly instead of leaking.
  • [identity]: the patterns from step 1 (use \b word boundaries for short names), and allow entries for false positives in data, scoped by path.

Commit the config, or pass --config from outside the repository.

3. Export and iterate

bash
uv run <skill-dir>/scripts/anonymize_repo.py export <repo> <scratch>/anon --ref HEAD

It exports only tracked files at the ref, with no git history; drops the exclusions; applies the replacements; blanks author fields in Office metadata and PDF /Author; and scans text files, Office document parts, .xls bytes, and PDF text (with pdftotext). Fix every hit at its source, in the config, or as a scoped allow, and re-export until the scan is clean. Ask the user before allowing a hit in anything but raw third-party data.

4. Check the snapshot stands alone

Run the project's tests and build inside the export, for example uv run pytest and a workflow dry run. A link that does not reproduce the paper's numbers is worse than none.

5. Publish (only with the user's approval)

As the user prefers:

  • Anonymous GitHub (anonymous.4open.science): create an empty private GitHub repository under the user's account (no README or license; GitHub would commit them under the user's name), then export straight to it:
    bash
    uv run <skill-dir>/scripts/anonymize_repo.py export <repo> <scratch>/anon --ref HEAD --push <mirror-url>
    --push commits the export as "Anonymous" and pushes it to main (--branch for another). Register the repository on Anonymous GitHub; private repositories need its GitHub App. Enter the identity patterns as terms to replace, as a second layer.
  • OSF: upload the export to a private project and make a view-only link with Anonymize ticked. That hides contributor names in OSF itself, not in files, which is why the export comes first. The project title must not identify anyone.

Open the link in a logged-out browser before it goes into the paper.

To re-publish after a change to the code or data, run the same --push command into a fresh directory. It commits the new tree as "Anonymous" on top of the mirror's head and pushes without force. It skips the commit when nothing changed, and refuses to push when the scan finds anything or the mirror has a commit by anyone else (as the original repository would). Anonymous GitHub keeps serving the old snapshot until the owner clicks Refresh on the repository in its dashboard; then check the link logged out again. On OSF, replace the uploaded files. Never push the original repository.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Anonymize Repo?

Export an anonymized, history-free snapshot of a research repository for double-blind review — drop internal files, scrub names from text and Office/PDF metadata, scan for anything identifying, and check that the snapshot still builds. Use when a paper under anonymous review needs a code-and-data link, or the user asks to anonymize a repo, prepare an anonymous or private review repo, or link code for reviewers.

Firwat Anonymize Repo op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Anonymize Repo besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Anonymize Repo an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/yy/scholar-kit/tree/main/skills/anonymize-repo an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Anonymize Repo benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Anonymize Repo benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Anonymize Repo domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Anonymize Repo gratis?

Jo. yy huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇