[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CAWG22WEHXM1JK5HTRAGY0":3,"skill-same:01M6CAWG22WEHXM1JK5HTRAGY0":125},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":61,"linkOnly":62,"markdownContent":63,"markdownBody":64,"frontMatter":65,"refName":40,"commitSha":80,"skillDirectory":81,"forksCount":82,"repositoryHtmlUrl":83,"repositoryHomepageUrl":13,"ownerHtmlUrl":84,"ownerBlogUrl":13,"ownerDescription":13,"updatedAt":85,"install":86,"resources":99},"01M6CAWG22WEHXM1JK5HTRAGY0","sanitize-personal-content-for-public-publishing","个人文件脱敏与公开发布","Sanitize a working personal file (CLAUDE.md, AGENTS.md, skill, README, dotfile)\ninto a publishable public example and ship it to a public repo via a clean\nPR — replacing every personal\u002Finternal reference with clearly-marked\nplaceholders, embedding a reusable sanitization checklist in the published\nfile, and verifying zero leaks before push. Distinct from\n`outbound-secret-redaction-gate` (credential-leak prevention at send time)\nand `backup-folder-leak-purge` (force-purging an unintentional repo leak).\nTrigger phrases: \"publish a sanitized version\", \"make a public example\",\n\"strip the personal refs\", \"share this publicly\", \"publish my CLAUDE.md\nas an example\", \"fork this for the public repo\", \"make a template\nversion\", \"I want to share my config without leaking private infra\".","对工作用个人文件（CLAUDE.md、AGENTS.md、skill、README、dotfile）进行脱敏，\n将其转化为可公开发布的示例，并通过干净的 PR 推送到公开仓库——用明确标记的占位符替换每一处个人\u002F内部引用，在发布文件中嵌入可复用的脱敏清单，并在推送前验证零泄漏。区别于 `outbound-secret-redaction-gate`（发送时的凭证泄漏防护）和 `backup-folder-leak-purge`（强制清除意外的仓库泄漏）。\n触发短语：\"publish a sanitized version\"、\"make a public example\"、\"strip the personal refs\"、\"share this publicly\"、\"publish my CLAUDE.md as an example\"、\"fork this for the public repo\"、\"make a template version\"、\"I want to share my config without leaking private infra\"。","jleechanorg\u002Fjleechan-skills","jleechanorg","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F221404966?v=4","01M6C1VJ99XG950X1DWPEBCBGX",null,"01M6C1VJDK5YVDNT3362RT5WSB",6,"MIT","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fworkflow\u002Fsanitize-personal-content-for-public-publishing\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BRK82SYBDNZ3SG8YAH5A3D","凭证与密钥管理","SCENARIO","使用场景",[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60],"for","personal","publishing","content","public","sanitize personal content for public publishing","sanitize","outbound","example","clean","main","repo","ship it","time","embedding","at","send","version","README","branch","history","before push","template","credential-leak","ZeRO","publish","file","push","share","pr","workflow","2026-11-10 10:12:30",false,"---\nname: sanitize-personal-content-for-public-publishing\ndescription: |\n  Sanitize a working personal file (CLAUDE.md, AGENTS.md, skill, README, dotfile)\n  into a publishable public example and ship it to a public repo via a clean\n  PR — replacing every personal\u002Finternal reference with clearly-marked\n  placeholders, embedding a reusable sanitization checklist in the published\n  file, and verifying zero leaks before push. Distinct from\n  `outbound-secret-redaction-gate` (credential-leak prevention at send time)\n  and `backup-folder-leak-purge` (force-purging an unintentional repo leak).\n  Trigger phrases: \"publish a sanitized version\", \"make a public example\",\n  \"strip the personal refs\", \"share this publicly\", \"publish my CLAUDE.md\n  as an example\", \"fork this for the public repo\", \"make a template\n  version\", \"I want to share my config without leaking private infra\".\nmetadata:\n  hermes:\n    tags: [publishing, sanitization, github, pr-workflow, personal-content, examples]\n    related_skills:\n      - github-pr-workflow\n      - outbound-secret-redaction-gate\n      - backup-folder-leak-purge\n      - pr-clean-branch-from-main-no-history-bloat\n---\n\n# Sanitize personal content for public publishing\n\nClass-level skill for the recurring workflow of taking a working personal file\nthat contains private infra references and shipping a **publishable public\nexample** to a public repo. Distinct from credential-leak prevention at send\ntime (`outbound-secret-redaction-gate`) and from purging an accidental leak\n(`backup-folder-leak-purge`) — this is the *intentional* publishing case\nwhere the user explicitly wants to share a working artifact.\n\n## When to use this skill\n\n- User says \"publish a sanitized version of X\", \"make a public example\",\n  \"strip the personal refs from this\", \"share this publicly\",\n  \"publish my CLAUDE.md as an example\", \"fork this for the public repo\",\n  \"I want to share my config without leaking private infra\".\n- You are about to publish a working `~\u002F.claude\u002FCLAUDE.md`, `~\u002F.bashrc`,\n  `~\u002F.zshrc`, AGENTS.md, skill, README, or other personal file that\n  contains references to: home paths, machine names, GitHub org names,\n  Slack\u002FDiscord channel IDs, internal skill names, private memory entries,\n  specific PR\u002Fissue numbers pointing to private work, OAuth tokens or\n  keychain service names, beads IDs.\n- The user has a working artifact they want to share with the world but\n  the source contains enough personal context that a direct `cp` would\n  leak.\n\n## Failure pattern (what goes wrong without this skill)\n\n1. **Sanitization is under-specified.** The agent substitutes generic\n   language and the published file loses the value of the working original.\n   Or the agent treats \"sanitize\" as \"delete stuff\" and the resulting\n   example is too generic to be useful.\n2. **Personal references slip through.** Common leaks:\n   - Home paths (`~\u002F.claude\u002Fskills\u002F...`, `~\u002Fprojects\u002FX`)\n   - GitHub org\u002Frepo names (`jleechanorg`, internal orgs)\n   - Internal tool\u002FCLI names (`agento`, `ao spawn`, `vpython`,\n     `mcp_mail`) that imply private infrastructure\n   - Slack\u002FDiscord channel IDs that are searchable on the public archive\n   - PR\u002Fissue numbers pointing to private work\n   - Memory entries with session-local evidence (dates, session IDs)\n   - Bashrc wrapper function names (`claudem`, `claudeg`, etc.)\n3. **No reusable recipe.** The published file has the right content but\n   no embedded checklist, so a future agent cannot reproduce the workflow.\n4. **Wrong base branch.** The PR was branched from `main` (3 commits\n   behind `origin\u002Fmain`) instead of from `origin\u002Fmain` directly, so the\n   diff contains 3 unrelated commits and the reviewer sees noise.\n\n## Recipe — 5 phases (execute in order)\n\n### Phase 0 — Clarify \"sanitized\" upfront (DO NOT SKIP)\n\nThe phrase \"sanitized public example\" has at least three materially\ndifferent outcomes. Ask the user to pick before you write a single line.\nUse `clarify` with the three options as choices.\n\nThe three flavors (pick one):\n\n| Flavor | What it does | When to use |\n|---|---|---|\n| **Structure + placeholders** | Show the structure with `\u003CPLACEHOLDER>` markers where personal refs go. Voice\u002Frule shape preserved exactly. | Default. Best as a fill-in-the-blank template. |\n| **Rewrite with generic wording** | Take the strongest rules, rewrite them generically, drop everything tied to private infra. Stands on its own. | When the source has too much private context to template. |\n| **Hybrid (structure + minimal generic rules + placeholders)** | Mostly structure + a few generic rules + clearly-marked placeholder sections. | Easiest for users to fork and adapt. |\n\nIf the user does not respond within ~60 min or says \"Continue\", default\nto **Structure + placeholders** — most defensible: voice preserved,\nrisk of over-sanitization minimized, leak risk bounded by clearly\nvisible markers.\n\n### Phase 1 — Pre-write leak inventory\n\nBefore writing any sanitized content, build a list of what *would* leak\nif you just copied the source. Run these greps against the source file\n(adapt patterns to your file type):\n\n```bash\n# Personal identifiers\ngrep -nEi \\\n  '$USER|jeffrey|\u003Cfirst_name>|\u003Cmachine_name>|homebrew' \\\n  \u003Csource_file>\n\n# GitHub orgs \u002F repos\ngrep -nEi 'jleechanorg|\u003Cyour-org>|hermes-agent|browserclaw' \u003Csource_file>\n\n# Internal tool\u002FCLI names\ngrep -nEi 'agento|ao spawn|vpython|mcp_mail|claudem|claudeg' \u003Csource_file>\n\n# Channel IDs \u002F numeric IDs\ngrep -nE 'C[0-9A-Z]{8,}|U[0-9A-Z]{8,}|launchd|beads|\\.jsonl' \u003Csource_file>\n\n# Path leaks\ngrep -nE '~\u002F(\\.claude|\\.hermes|\\.codex|projects|repos)' \u003Csource_file>\n\n# Memory references (private feedback files)\ngrep -nE 'feedback_[0-9]{4}-[0-9]{2}-[0-9]{2}|MEMORY\\.md' \u003Csource_file>\n```\n\nAdapt the patterns to your actual source. The output is your **leak\ninventory** — every line that grep returned must be either (a) replaced\nwith a placeholder, (b) removed, or (c) explicitly justified in the\nsanitization checklist at the bottom of the published file.\n\n### Phase 2 — Write the sanitized file\n\nApply the chosen Phase 0 flavor. Universal rules to include (most\npersonal CLAUDE.md\u002FAGENTS.md examples cover these):\n\n- File location & layering (user-scope vs repo-scope)\n- Core behavior (full absolute paths, state-the-deliverable-first,\n  verify-before-reporting)\n- Zero-framework cognition (never hand-roll intent classification)\n- Working directory lock (don't silently switch cwd)\n- Large file read discipline (prevent context thrash)\n- Proactive issue tracking (create by default, cite provenance)\n- Parallel subagents (fan out independent work; check independence first)\n- Subagent model routing (set `model` explicitly on every spawn)\n- Git workflow (branch from `origin\u002Fmain`, one logical commit per PR)\n- Force-push safety (explicit human approval required)\n- Browser default (headless unless asked)\n- Commit often (push after every green unit)\n- PR description: follow `~\u002F.codex\u002FAGENTS.md` § PR descriptions (canonical owner), then the target repository's `AGENTS.md`\u002F`CLAUDE.md` and PR template when present.\n- Merge safety (literal approval phrase required)\n- Disk \u002F resource discipline (three-lane diagnosis, structural preconditions)\n- Time-boxing (3-hour wall-clock cap)\n- Skill discovery & creation\n\n**Critical: at the bottom of the published file, embed a\n**`## Sanitization checklist for public examples`** section that lists\nwhat to grep for, what to remove, what to keep, and what to verify.\nThis makes the workflow reproducible — anyone forking your example can\napply the same recipe.\n\nUse `\u003CPLACEHOLDER>`-style markers wrapped in angle brackets (e.g.\n`\u003CYOUR_GITHUB_ORG>`, `\u003Cskill-name>`, `\u003Cprotected-branch>`). They are\neasy to grep for and self-document:\n\n```bash\nrg '\u003C[A-Z_0-9]+>' -n \u003Cpublished_file>\n```\n\n### Phase 3 — Pre-write verification (run BEFORE push)\n\nBefore `git add` + commit, verify zero leaks in the file you are about\nto publish:\n\n```bash\n# Run the Phase 1 inventory greps against the sanitized file\ngrep -nEi '$USER|jeffrey|homebrew|jleechanorg|hermes-agent|...' \u003Csanitized_file>\n# Expected: zero matches. If any match, fix the file before continuing.\n\n# Count placeholders (sanity check — should be >0 if you used structure+placeholder flavor)\ngrep -cE '\u003C[A-Z_0-9]+>' \u003Csanitized_file>\n```\n\nDocument the verification result in the PR body under `## Testing` so\nthe reviewer can confirm the check happened.\n\n### Phase 4 — Ship via clean PR\n\n1. **Branch from `origin\u002Fmain`, not local `main`.** Even if your local\n   `main` is ahead, base the PR on `origin\u002Fmain` so the diff is only\n   your new file — exactly per `pr-clean-branch-from-main-no-history-bloat`.\n\n   ```bash\n   git fetch origin\n   git checkout -B docs\u002F\u003Ctopic>-public-example origin\u002Fmain\n   ```\n\n2. **Verify the diff is clean:**\n\n   ```bash\n   git log --oneline origin\u002Fmain..HEAD      # should be empty before commit\n   git diff --stat origin\u002Fmain..HEAD         # after commit, should be 1 file \u002F +N\n   ```\n\n3. **Commit + push:**\n\n   ```bash\n   git add \u003Csanitized_file>\n   git commit -m \"docs: add sanitized public example \u003Cname>\n\n   Reference template derived from a working personal \u003Csource_type>.\n   Personal references replaced with \u003CPLACEHOLDER> markers; sanitization\n   checklist embedded at the bottom of the file.\"\n\n   git push -u origin docs\u002F\u003Ctopic>-public-example\n   ```\n\n4. **The pre-push secret-guard hook will scan automatically.** If it\n   finds anything credential-shaped, it will block the push — fix and\n   retry. (Per `outbound-secret-redaction-gate`.)\n\n5. **Open the PR with `gh pr create` and a body that includes:**\n\n   - Follow `~\u002F.codex\u002FAGENTS.md` § PR descriptions and the target repository's\n     policy and PR template. Keep the example-specific leak-check results\n     (`0 matches`, placeholder count, and `git diff --stat`) in the test plan\n     and evidence. Do not add a separate Low-level details section; put naming\n     and exclusion rationale with the relevant change area or risks.\n\n6. **Do NOT merge.** Wait for the user's review. Per the project's\n   merge-safety rules, a public-facing file needs human eyes before\n   it ships.\n\n## Pitfalls\n\n1. **Don't substitute the opposite extreme.** The user asked for a\n   *sanitized example*, not a stripped-down generic stub. Preserve the\n   voice, rule shape, and rule categories — that's the value.\n2. **Don't skip Phase 0.** Without the upfront clarification, you will\n   guess wrong about which flavor the user wanted. 60 minutes of waiting\n   for clarification is cheaper than rewriting a 300-line file twice.\n3. **`rg '\u003C[A-Z_]+>'` only matches UPPERCASE placeholders.** If you use\n   mixed-case or include digits, adapt the pattern. The point is that\n   the placeholder scheme is greppable.\n4. **The pre-push secret-guard is a credential scanner, not a\n   personal-reference scanner.** It catches PATs\u002Ftokens but will NOT\n   catch `jleechanorg` or `~\u002F.claude\u002Fskills\u002F...`. Phase 3 grep is the\n   actual leak gate.\n5. **`.example` suffix vs `CLAUDE.md`.** Naming the file\n   `CLAUDE.md.example` (or `AGENTS.md.example`) keeps it from being\n   picked up as an actual policy file by Claude Code, while signaling\n   intent to readers. Users copy it to the real path and edit.\n6. **Branch from `origin\u002Fmain` even when local main is behind.** The\n   commit count ahead\u002Fbehind does not matter — what matters is the\n   diff in the PR. Base the PR on the canonical tip.\n7. **Don't put secrets in the sanitization checklist example\n   greps.** Use synthetic patterns (`jleechanorg` is fine as a sample\n   pattern because it's a public org name; `[REDACTED_GITHUB_TOKEN]...` is fine\n   because it's a synthetic prefix).\n8. **The sanitization checklist itself is example-meta content**, not\n   policy. It inflates the line count but is essential for\n   reproducibility. Note this in the PR body so reviewers don't ask\n   \"why is this so long?\"\n9. **Embedding the checklist makes the file ~2x larger than a\n   minimal policy file.** That is OK for a *public example* — the goal\n   is reproducibility, not brevity. For an actual user-scope policy\n   file, move the checklist to a separate doc.\n10. **Multi-machine personal files** — if you have the same content on\n    multiple machines (e.g. via a sync script), the sanitized version\n    must also strip machine-specific paths. Test on a clean clone, not\n    on the original host.\n\n## Companion skills\n\n- `outbound-secret-redaction-gate` — handles *credential* leaks at the\n  send boundary. Run that gate's pre-send scan as a final check before\n  push, even though the secret-guard pre-push hook covers most cases.\n- `backup-folder-leak-purge` — handles *unintentional* leaks where a\n  backup cron pushed private content to a public repo. Different\n  trigger (accidental vs intentional); if you find one of those, this\n  skill's checklist can help identify what should have been redacted,\n  but the fix is in `backup-folder-leak-purge`.\n- `github-pr-workflow` — covers the standard PR lifecycle (branch,\n  commit, push, open PR). Phase 4 of this skill references its branch\n  creation and PR-creation patterns.\n- `pr-clean-branch-from-main-no-history-bloat` — Phase 4's\n  \"branch from `origin\u002Fmain`\" requirement is straight from this rule.\n\n## Support files\n\n- [`templates\u002Fsanitization-checklist.md`](templates\u002Fsanitization-checklist.md)\n  — the embedded checklist to drop at the bottom of any published\n  example, with the canonical grep patterns and a what-to-keep \u002F\n  what-to-remove \u002F what-to-verify matrix.\n- [`scripts\u002Fverify-no-personal-leaks.sh`](scripts\u002Fverify-no-personal-leaks.sh)\n  — re-runnable harness that runs the Phase 1 inventory greps against\n  a target file and exits 0 only when zero matches found. Use as a\n  pre-push gate (similar in spirit to `outbound-secret-redaction-gate`'s\n  PAT scanner, but for personal references rather than credentials).\n\n### Example usage\n\n```bash\n# After writing your sanitized file, run the gate before push\n.\u002Fscripts\u002Fverify-no-personal-leaks.sh .claude\u002FCLAUDE.md.example\n\n# Drop the checklist at the bottom of any example file you publish\ncat templates\u002Fsanitization-checklist.md >> \u003Cyour-example-file>\n```\n\n## Provenance\n\n- **First verified:** 2026-07-24, claude-commands PR #342\n  (`docs\u002Fclaude-md-public-example`). Source: `~\u002F.claude\u002FCLAUDE.md`\n  (562 lines \u002F 57 KB). Output: `.claude\u002FCLAUDE.md.example` (296 lines\n  with embedded sanitization checklist). Branched from\n  `origin\u002Fmain` @ `b72956aac`, commit `2938e4f1d`. Pre-push\n  secret-guard clean. PR opened, awaiting user review.\n","# Sanitize personal content for public publishing\n\nClass-level skill for the recurring workflow of taking a working personal file\nthat contains private infra references and shipping a **publishable public\nexample** to a public repo. Distinct from credential-leak prevention at send\ntime (`outbound-secret-redaction-gate`) and from purging an accidental leak\n(`backup-folder-leak-purge`) — this is the *intentional* publishing case\nwhere the user explicitly wants to share a working artifact.\n\n## When to use this skill\n\n- User says \"publish a sanitized version of X\", \"make a public example\",\n  \"strip the personal refs from this\", \"share this publicly\",\n  \"publish my CLAUDE.md as an example\", \"fork this for the public repo\",\n  \"I want to share my config without leaking private infra\".\n- You are about to publish a working `~\u002F.claude\u002FCLAUDE.md`, `~\u002F.bashrc`,\n  `~\u002F.zshrc`, AGENTS.md, skill, README, or other personal file that\n  contains references to: home paths, machine names, GitHub org names,\n  Slack\u002FDiscord channel IDs, internal skill names, private memory entries,\n  specific PR\u002Fissue numbers pointing to private work, OAuth tokens or\n  keychain service names, beads IDs.\n- The user has a working artifact they want to share with the world but\n  the source contains enough personal context that a direct `cp` would\n  leak.\n\n## Failure pattern (what goes wrong without this skill)\n\n1. **Sanitization is under-specified.** The agent substitutes generic\n   language and the published file loses the value of the working original.\n   Or the agent treats \"sanitize\" as \"delete stuff\" and the resulting\n   example is too generic to be useful.\n2. **Personal references slip through.** Common leaks:\n   - Home paths (`~\u002F.claude\u002Fskills\u002F...`, `~\u002Fprojects\u002FX`)\n   - GitHub org\u002Frepo names (`jleechanorg`, internal orgs)\n   - Internal tool\u002FCLI names (`agento`, `ao spawn`, `vpython`,\n     `mcp_mail`) that imply private infrastructure\n   - Slack\u002FDiscord channel IDs that are searchable on the public archive\n   - PR\u002Fissue numbers pointing to private work\n   - Memory entries with session-local evidence (dates, session IDs)\n   - Bashrc wrapper function names (`claudem`, `claudeg`, etc.)\n3. **No reusable recipe.** The published file has the right content but\n   no embedded checklist, so a future agent cannot reproduce the workflow.\n4. **Wrong base branch.** The PR was branched from `main` (3 commits\n   behind `origin\u002Fmain`) instead of from `origin\u002Fmain` directly, so the\n   diff contains 3 unrelated commits and the reviewer sees noise.\n\n## Recipe — 5 phases (execute in order)\n\n### Phase 0 — Clarify \"sanitized\" upfront (DO NOT SKIP)\n\nThe phrase \"sanitized public example\" has at least three materially\ndifferent outcomes. Ask the user to pick before you write a single line.\nUse `clarify` with the three options as choices.\n\nThe three flavors (pick one):\n\n| Flavor | What it does | When to use |\n|---|---|---|\n| **Structure + placeholders** | Show the structure with `\u003CPLACEHOLDER>` markers where personal refs go. Voice\u002Frule shape preserved exactly. | Default. Best as a fill-in-the-blank template. |\n| **Rewrite with generic wording** | Take the strongest rules, rewrite them generically, drop everything tied to private infra. Stands on its own. | When the source has too much private context to template. |\n| **Hybrid (structure + minimal generic rules + placeholders)** | Mostly structure + a few generic rules + clearly-marked placeholder sections. | Easiest for users to fork and adapt. |\n\nIf the user does not respond within ~60 min or says \"Continue\", default\nto **Structure + placeholders** — most defensible: voice preserved,\nrisk of over-sanitization minimized, leak risk bounded by clearly\nvisible markers.\n\n### Phase 1 — Pre-write leak inventory\n\nBefore writing any sanitized content, build a list of what *would* leak\nif you just copied the source. Run these greps against the source file\n(adapt patterns to your file type):\n\n```bash\n# Personal identifiers\ngrep -nEi \\\n  '$USER|jeffrey|\u003Cfirst_name>|\u003Cmachine_name>|homebrew' \\\n  \u003Csource_file>\n\n# GitHub orgs \u002F repos\ngrep -nEi 'jleechanorg|\u003Cyour-org>|hermes-agent|browserclaw' \u003Csource_file>\n\n# Internal tool\u002FCLI names\ngrep -nEi 'agento|ao spawn|vpython|mcp_mail|claudem|claudeg' \u003Csource_file>\n\n# Channel IDs \u002F numeric IDs\ngrep -nE 'C[0-9A-Z]{8,}|U[0-9A-Z]{8,}|launchd|beads|\\.jsonl' \u003Csource_file>\n\n# Path leaks\ngrep -nE '~\u002F(\\.claude|\\.hermes|\\.codex|projects|repos)' \u003Csource_file>\n\n# Memory references (private feedback files)\ngrep -nE 'feedback_[0-9]{4}-[0-9]{2}-[0-9]{2}|MEMORY\\.md' \u003Csource_file>\n```\n\nAdapt the patterns to your actual source. The output is your **leak\ninventory** — every line that grep returned must be either (a) replaced\nwith a placeholder, (b) removed, or (c) explicitly justified in the\nsanitization checklist at the bottom of the published file.\n\n### Phase 2 — Write the sanitized file\n\nApply the chosen Phase 0 flavor. Universal rules to include (most\npersonal CLAUDE.md\u002FAGENTS.md examples cover these):\n\n- File location & layering (user-scope vs repo-scope)\n- Core behavior (full absolute paths, state-the-deliverable-first,\n  verify-before-reporting)\n- Zero-framework cognition (never hand-roll intent classification)\n- Working directory lock (don't silently switch cwd)\n- Large file read discipline (prevent context thrash)\n- Proactive issue tracking (create by default, cite provenance)\n- Parallel subagents (fan out independent work; check independence first)\n- Subagent model routing (set `model` explicitly on every spawn)\n- Git workflow (branch from `origin\u002Fmain`, one logical commit per PR)\n- Force-push safety (explicit human approval required)\n- Browser default (headless unless asked)\n- Commit often (push after every green unit)\n- PR description: follow `~\u002F.codex\u002FAGENTS.md` § PR descriptions (canonical owner), then the target repository's `AGENTS.md`\u002F`CLAUDE.md` and PR template when present.\n- Merge safety (literal approval phrase required)\n- Disk \u002F resource discipline (three-lane diagnosis, structural preconditions)\n- Time-boxing (3-hour wall-clock cap)\n- Skill discovery & creation\n\n**Critical: at the bottom of the published file, embed a\n**`## Sanitization checklist for public examples`** section that lists\nwhat to grep for, what to remove, what to keep, and what to verify.\nThis makes the workflow reproducible — anyone forking your example can\napply the same recipe.\n\nUse `\u003CPLACEHOLDER>`-style markers wrapped in angle brackets (e.g.\n`\u003CYOUR_GITHUB_ORG>`, `\u003Cskill-name>`, `\u003Cprotected-branch>`). They are\neasy to grep for and self-document:\n\n```bash\nrg '\u003C[A-Z_0-9]+>' -n \u003Cpublished_file>\n```\n\n### Phase 3 — Pre-write verification (run BEFORE push)\n\nBefore `git add` + commit, verify zero leaks in the file you are about\nto publish:\n\n```bash\n# Run the Phase 1 inventory greps against the sanitized file\ngrep -nEi '$USER|jeffrey|homebrew|jleechanorg|hermes-agent|...' \u003Csanitized_file>\n# Expected: zero matches. If any match, fix the file before continuing.\n\n# Count placeholders (sanity check — should be >0 if you used structure+placeholder flavor)\ngrep -cE '\u003C[A-Z_0-9]+>' \u003Csanitized_file>\n```\n\nDocument the verification result in the PR body under `## Testing` so\nthe reviewer can confirm the check happened.\n\n### Phase 4 — Ship via clean PR\n\n1. **Branch from `origin\u002Fmain`, not local `main`.** Even if your local\n   `main` is ahead, base the PR on `origin\u002Fmain` so the diff is only\n   your new file — exactly per `pr-clean-branch-from-main-no-history-bloat`.\n\n   ```bash\n   git fetch origin\n   git checkout -B docs\u002F\u003Ctopic>-public-example origin\u002Fmain\n   ```\n\n2. **Verify the diff is clean:**\n\n   ```bash\n   git log --oneline origin\u002Fmain..HEAD      # should be empty before commit\n   git diff --stat origin\u002Fmain..HEAD         # after commit, should be 1 file \u002F +N\n   ```\n\n3. **Commit + push:**\n\n   ```bash\n   git add \u003Csanitized_file>\n   git commit -m \"docs: add sanitized public example \u003Cname>\n\n   Reference template derived from a working personal \u003Csource_type>.\n   Personal references replaced with \u003CPLACEHOLDER> markers; sanitization\n   checklist embedded at the bottom of the file.\"\n\n   git push -u origin docs\u002F\u003Ctopic>-public-example\n   ```\n\n4. **The pre-push secret-guard hook will scan automatically.** If it\n   finds anything credential-shaped, it will block the push — fix and\n   retry. (Per `outbound-secret-redaction-gate`.)\n\n5. **Open the PR with `gh pr create` and a body that includes:**\n\n   - Follow `~\u002F.codex\u002FAGENTS.md` § PR descriptions and the target repository's\n     policy and PR template. Keep the example-specific leak-check results\n     (`0 matches`, placeholder count, and `git diff --stat`) in the test plan\n     and evidence. Do not add a separate Low-level details section; put naming\n     and exclusion rationale with the relevant change area or risks.\n\n6. **Do NOT merge.** Wait for the user's review. Per the project's\n   merge-safety rules, a public-facing file needs human eyes before\n   it ships.\n\n## Pitfalls\n\n1. **Don't substitute the opposite extreme.** The user asked for a\n   *sanitized example*, not a stripped-down generic stub. Preserve the\n   voice, rule shape, and rule categories — that's the value.\n2. **Don't skip Phase 0.** Without the upfront clarification, you will\n   guess wrong about which flavor the user wanted. 60 minutes of waiting\n   for clarification is cheaper than rewriting a 300-line file twice.\n3. **`rg '\u003C[A-Z_]+>'` only matches UPPERCASE placeholders.** If you use\n   mixed-case or include digits, adapt the pattern. The point is that\n   the placeholder scheme is greppable.\n4. **The pre-push secret-guard is a credential scanner, not a\n   personal-reference scanner.** It catches PATs\u002Ftokens but will NOT\n   catch `jleechanorg` or `~\u002F.claude\u002Fskills\u002F...`. Phase 3 grep is the\n   actual leak gate.\n5. **`.example` suffix vs `CLAUDE.md`.** Naming the file\n   `CLAUDE.md.example` (or `AGENTS.md.example`) keeps it from being\n   picked up as an actual policy file by Claude Code, while signaling\n   intent to readers. Users copy it to the real path and edit.\n6. **Branch from `origin\u002Fmain` even when local main is behind.** The\n   commit count ahead\u002Fbehind does not matter — what matters is the\n   diff in the PR. Base the PR on the canonical tip.\n7. **Don't put secrets in the sanitization checklist example\n   greps.** Use synthetic patterns (`jleechanorg` is fine as a sample\n   pattern because it's a public org name; `[REDACTED_GITHUB_TOKEN]...` is fine\n   because it's a synthetic prefix).\n8. **The sanitization checklist itself is example-meta content**, not\n   policy. It inflates the line count but is essential for\n   reproducibility. Note this in the PR body so reviewers don't ask\n   \"why is this so long?\"\n9. **Embedding the checklist makes the file ~2x larger than a\n   minimal policy file.** That is OK for a *public example* — the goal\n   is reproducibility, not brevity. For an actual user-scope policy\n   file, move the checklist to a separate doc.\n10. **Multi-machine personal files** — if you have the same content on\n    multiple machines (e.g. via a sync script), the sanitized version\n    must also strip machine-specific paths. Test on a clean clone, not\n    on the original host.\n\n## Companion skills\n\n- `outbound-secret-redaction-gate` — handles *credential* leaks at the\n  send boundary. Run that gate's pre-send scan as a final check before\n  push, even though the secret-guard pre-push hook covers most cases.\n- `backup-folder-leak-purge` — handles *unintentional* leaks where a\n  backup cron pushed private content to a public repo. Different\n  trigger (accidental vs intentional); if you find one of those, this\n  skill's checklist can help identify what should have been redacted,\n  but the fix is in `backup-folder-leak-purge`.\n- `github-pr-workflow` — covers the standard PR lifecycle (branch,\n  commit, push, open PR). Phase 4 of this skill references its branch\n  creation and PR-creation patterns.\n- `pr-clean-branch-from-main-no-history-bloat` — Phase 4's\n  \"branch from `origin\u002Fmain`\" requirement is straight from this rule.\n\n## Support files\n\n- [`templates\u002Fsanitization-checklist.md`](templates\u002Fsanitization-checklist.md)\n  — the embedded checklist to drop at the bottom of any published\n  example, with the canonical grep patterns and a what-to-keep \u002F\n  what-to-remove \u002F what-to-verify matrix.\n- [`scripts\u002Fverify-no-personal-leaks.sh`](scripts\u002Fverify-no-personal-leaks.sh)\n  — re-runnable harness that runs the Phase 1 inventory greps against\n  a target file and exits 0 only when zero matches found. Use as a\n  pre-push gate (similar in spirit to `outbound-secret-redaction-gate`'s\n  PAT scanner, but for personal references rather than credentials).\n\n### Example usage\n\n```bash\n# After writing your sanitized file, run the gate before push\n.\u002Fscripts\u002Fverify-no-personal-leaks.sh .claude\u002FCLAUDE.md.example\n\n# Drop the checklist at the bottom of any example file you publish\ncat templates\u002Fsanitization-checklist.md >> \u003Cyour-example-file>\n```\n\n## Provenance\n\n- **First verified:** 2026-07-24, claude-commands PR #342\n  (`docs\u002Fclaude-md-public-example`). Source: `~\u002F.claude\u002FCLAUDE.md`\n  (562 lines \u002F 57 KB). Output: `.claude\u002FCLAUDE.md.example` (296 lines\n  with embedded sanitization checklist). Branched from\n  `origin\u002Fmain` @ `b72956aac`, commit `2938e4f1d`. Pre-push\n  secret-guard clean. PR opened, awaiting user review.\n",{"name":5,"metadata":66,"description":79},{"hermes":67},{"tags":68,"related_skills":74},[32,69,70,71,72,73],"sanitization","github","pr-workflow","personal-content","examples",[75,76,77,78],"github-pr-workflow","outbound-secret-redaction-gate","backup-folder-leak-purge","pr-clean-branch-from-main-no-history-bloat","Sanitize a working personal file (CLAUDE.md, AGENTS.md, skill, README, dotfile)\ninto a publishable public example and ship it to a public repo via a clean\nPR — replacing every personal\u002Finternal reference with clearly-marked\nplaceholders, embedding a reusable sanitization checklist in the published\nfile, and verifying zero leaks before push. Distinct from\n`outbound-secret-redaction-gate` (credential-leak prevention at send time)\nand `backup-folder-leak-purge` (force-purging an unintentional repo leak).\nTrigger phrases: \"publish a sanitized version\", \"make a public example\",\n\"strip the personal refs\", \"share this publicly\", \"publish my CLAUDE.md\nas an example\", \"fork this for the public repo\", \"make a template\nversion\", \"I want to share my config without leaking private infra\".\n","05df7380981a2c4af868ce0fa57962ae0eea62a9","hermes\u002Fskills\u002Fworkflow\u002Fsanitize-personal-content-for-public-publishing",0,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills","https:\u002F\u002Fgithub.com\u002Fjleechanorg","2026-11-14 14:55:35",{"source":9,"skillName":5,"commands":87,"prompt":97,"zipAvailable":98},[88,91,94],{"tool":89,"command":90},"npx","npx skills add jleechanorg\u002Fjleechan-skills --skill sanitize-personal-content-for-public-publishing",{"tool":92,"command":93},"bunx","bunx skills add jleechanorg\u002Fjleechan-skills --skill sanitize-personal-content-for-public-publishing",{"tool":95,"command":96},"pnpm","pnpm dlx skills add jleechanorg\u002Fjleechan-skills --skill sanitize-personal-content-for-public-publishing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fworkflow\u002Fsanitize-personal-content-for-public-publishing\u002FSKILL.md",true,[100,105,111,117,121],{"path":101,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":103,"sourceHtmlUrl":104},"LICENSE","许可证",10770,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fchains\u002Fdfinity-official-deploy-to-cloud-engine\u002FLICENSE",{"path":106,"resourceType":107,"resourceTypeDesc":108,"sizeBytes":109,"sourceHtmlUrl":110},"scripts\u002Fverify-no-personal-leaks.sh","SCRIPT","脚本",2830,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fworkflow\u002Fsanitize-personal-content-for-public-publishing\u002Fscripts\u002Fverify-no-personal-leaks.sh",{"path":112,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":115,"sourceHtmlUrl":116},"SOURCE.md","REFERENCE","参考文档",340,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fchains\u002Fdfinity-official-deploy-to-cloud-engine\u002FSOURCE.md",{"path":118,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":119,"sourceHtmlUrl":120},"templates\u002Fsanitization-checklist.md",2320,"https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002Fhermes\u002Fskills\u002Fworkflow\u002Fsanitize-personal-content-for-public-publishing\u002Ftemplates\u002Fsanitization-checklist.md",{"path":122,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":123,"sourceHtmlUrl":124},"TRUST.auto.yaml",2207,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fchains\u002Fdfinity-official-deploy-to-cloud-engine\u002FTRUST.auto.yaml",[126,134,141,148,156,165],{"skillNo":127,"name":128,"nameZh":13,"description":129,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":133},"01M7DRVZXXMGY4G81K5GVF4V20","disk-reclaim-playbook","Use Disk Magician to diagnose disk growth or qualify cleanup on macOS or Linux.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fdisk-reclaim-playbook\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":135,"name":136,"nameZh":13,"description":137,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":133},"01M7B63PNTT2TY78RFKHD8SP3X","claudea-bench","Compare `claudea` and normal `claude` on a fair split of comparable work by default; use `--strict` for duplicate runs of the exact same task.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fclaudea-bench\u002FSKILL.md",[],[],{"skillNo":142,"name":59,"nameZh":13,"description":143,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":147},"01M7622KQJ32AV4K5BXEMVSSEB","Alias for the canonical pr-lifecycle PR workflow skill (\u002Fpr-workflow, \u002Fprw).","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fpr\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":149,"name":150,"nameZh":13,"description":151,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":155},"01M7432W92AKC4D1TKJ00VCMMT","whisper","OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwhisper\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":157,"name":158,"nameZh":13,"description":159,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":160,"licenseFileUrl":161,"sourceHtmlUrl":162,"categories":163,"keywords":164,"publishedAt":155},"01M7432T6BN1A9SHB8RBQR5EMP","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":166,"name":167,"nameZh":13,"description":168,"descriptionZh":13,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":169,"categories":170,"keywords":171,"publishedAt":155},"01M7432NDC7S6C6MX7M6RW8CTT","pr-report","This skill should be used when the user asks for a PR report, PR audit, PR delta analysis, \u002Fpr-report, or wants per-PR summary with delta files\u002Flines. Generates a structured report for one or more open PRs covering purpose, files changed, +\u002F− line counts, \u002Fcode-standards + \u002Fthermo review findings, \u002Fponytail simplification opportunities, file-overlap combination candidates, and \u002Fgreen status per pr-green-definition. Output: machine-readable JSONL + human-readable markdown. Read-only by default; can apply simplifications if user opts in.","https:\u002F\u002Fgithub.com\u002Fjleechanorg\u002Fjleechan-skills\u002Fblob\u002Fmain\u002F.claude\u002Fskills_archive\u002F2026-11-09-no-usage-evidence\u002Fpr-report\u002FSKILL.md",[],[]]