跳到正文
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
许可证
Apache-2.0
最近提交
2026年12月1日

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

在 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.

相似的 Skill

reverse-engineer-anything

MOmorluto/rea486k近 7 天新增 8,943 个 star

reverse-engineer-anything

MOmorluto/rea486k近 7 天新增 8,943 个 star

test-driven-development

OBobra/superpowers331k近 7 天新增 4,772 个 star

精选

accessibility

审计 Web、iOS、Android 的无障碍合规,支持键盘导航与屏幕阅读器。

AFaffaan-m/ECC315k近 7 天新增 4,381 个 star

ai-regression-testing

AFaffaan-m/ECC315k近 7 天新增 4,381 个 star

agent-runtime-gateway-smoke-test

AFaffaan-m/ECC315k近 7 天新增 4,381 个 star