Skip to content
FunCoding

public-repo-privacy-scrub

Scan and scrub public ML and GPU repositories of private hostnames, IP addresses, live GPU UUIDs, local workstation paths, and private Typefully or browser workspace dumps while preserving JSON/Python validity, denylist tests, and research SHA-256 manifests. Use before pushing audits, research packages, cluster records, or profiler captures to a public repo.

Star
2,269
License
Apache-2.0
Last commit
Dec 1, 2026

.agents/skills/public-repo-privacy-scrub/SKILL.md

View on GitHub

Public Repository Privacy Scrub

Run every step in order before committing or pushing audit logs, research companions, profiler captures, or social-copy bundles to a public repository.

1. Run the tracked-file privacy scanner

Run scripts/privacy_scan.py across git ls-files (pass extra local hostnames, IPs, or account IDs via --extra-pattern name=regex or --extra-file so private patterns stay out of git):

python3 .agents/skills/public-repo-privacy-scrub/scripts/privacy_scan.py \
  --repo . \
  --check-syntax

Review both TEXT HITS and BINARY HITS. Also list all .png / .jpg files under social/ or rendered-preview/ directories and visually inspect any preview images so private draft-sidebar screenshots never ship publicly.

Completion criterion: every text hit, binary hit, and suspicious screenshot is classified as real private data, assertion-only denylist test, or synthetic placeholder.

2. Remove private workspace dumps and redact text safely

  1. Delete purely private workspace artifacts rather than trying to partially sanitize them:
    • Private draft inventories, account readbacks, and media-ID receipts (existing-typefully-drafts.json, typefully-receipt.json, profile-preview.json, current-conversation-snapshot.json, typefully-readback.json, native-validation.json)
    • Private UI screenshots (rendered-preview/*-proof.png) showing draft sidebars or unpublished queues
    • Raw browser accessibility-tree and DOM dumps (AXWebArea, Browser tab:, radix-_r_, Auto-Plug / Auto-Retweet modal captures)
  2. Redact private identifiers in retained text, JSON, log, markdown, and test files using consistent placeholders:
    • Live GPU UUIDs -> GPU-00000000-0000-0000-0000-000000000001 (and ...0002, etc.)
    • Private hosts and IPs -> <gpu-host> and <gpu-host-ip>
    • Local workstation, venv, and campaign paths -> <repo>, <home>, <python-venv>, <campaign-dir>
    • Captured PATH env entries containing .codex/ or .cursor-server/ -> strip those segments cleanly
    • Private Typefully draft URLs in both query-param orders (?a=...&d=... and ?d=...&a=...) -> <redacted-typefully-draft-url>
    • Private numeric JSON IDs -> replace with a valid JSON string ("<redacted>") or null, never bare unquoted text inside JSON
  3. Preserve assertion-only denylist tests (tests asserting that private hostnames or tokens are rejected) so security coverage never weakens.
  4. Remove dangling relative links and manifest pointers to deleted private files in manifest.json, VERIFICATION.md, tweets.md, and social/CHRONOLOGY.md.

Completion criterion: every modified .json file passes json.loads() and every modified .py file passes ast.parse().

3. Resync bottom-up SHA-256 manifests and verify all tests

Read references/manifest-resync.md when scrubbing inside research/ directories that pin SHA-256 hashes or byte lengths.

  1. Recompute sha256 and bytes fields bottom-up (leaf captures -> intermediate manifests -> top-level provenance, layout manifests, and pinned test digests such as profiles/test_captures.py).
  2. Re-run privacy_scan.py --repo . --check-syntax and confirm zero real private text hits remain.
  3. Run every affected test suite:
    • research/post-workflow/tools/check_profile_conventions.py <package_dir>
    • Every test_*.py under research/ (grouped by parent directory so relative imports resolve)
    • Affected code/tests/ suites, ruff check on modified Python files, and python -m core.scripts.refresh_readmes --check

Completion criterion: zero real private text hits, all manifest hashes match disk, and 100% of affected unit and convention tests pass.

4. Report binary capture and git-history boundaries explicitly

Never edit binary NVIDIA Nsight files (.nsys-rep, .ncu-rep, .sqlite) in place because byte substitution corrupts binary captures and breaks pinned native digests. In the final summary, state plainly:

  1. Exact list of any binary profiler captures still embedding capture-time host/IP/UUID metadata (so the owner can decide whether to keep or remove the raw captures).
  2. That prior git commits before HEAD still contain earlier versions unless the owner requests a git filter-repo history rewrite and force-push.

Similar Skills

reverse-engineer-anything

MOmorluto/rea486k8,943 new stars in the last 7 days

reverse-engineer-anything

MOmorluto/rea486k8,943 new stars in the last 7 days

test-driven-development

OBobra/superpowers331k4,772 new stars in the last 7 days

Featured

accessibility

Audit accessibility on Web, iOS, and Android to meet WCAG 2.2, with keyboard navigation and screen-reader support.

AFaffaan-m/ECC315k4,381 new stars in the last 7 days

ai-regression-testing

AFaffaan-m/ECC315k4,381 new stars in the last 7 days

agent-runtime-gateway-smoke-test

AFaffaan-m/ECC315k4,381 new stars in the last 7 days