[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74XCMVZ91ZB0BX7GSJR2DPX":3,"skill-same:01M74XCMVZ91ZB0BX7GSJR2DPX":43},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M74XCMVZ91ZB0BX7GSJR2DPX","github-repo-go-public-preflight-scan",null,"Scan for secrets in BOTH the working tree and the full git history before flipping a GitHub repo from private to public. Use when the user asks to run \"gh repo edit --visibility public\", \"make this repo public\", \"open-source this\", \"publish this repo\" on a repo that was ever private, or is about to accept the \"--accept-visibility-change-consequences\" prompt. Also fires when open-sourcing an internal\u002Fforked project, or publishing a repo other people have committed to. A working-tree-only scan (or a prior code review of just the diff) is not enough — secrets committed and later deleted remain fully cloneable\u002Findexable the instant the repo goes public, and flipping back to private does not undo it.","abhijitbansal\u002Fclaude-skills","abhijitbansal","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F271802621?v=4","01M74XA5M33XYNJ2D2TJDS7W9E","01M74XA5MQ8GMWJW10ZJ4V0NVG",1,"MIT","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fcore-workflow\u002Fskills\u002Fgithub-repo-go-public-preflight-scan\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: github-repo-go-public-preflight-scan\ndescription: Scan for secrets in BOTH the working tree and the full git history before flipping a GitHub repo from private to public. Use when the user asks to run \"gh repo edit --visibility public\", \"make this repo public\", \"open-source this\", \"publish this repo\" on a repo that was ever private, or is about to accept the \"--accept-visibility-change-consequences\" prompt. Also fires when open-sourcing an internal\u002Fforked project, or publishing a repo other people have committed to. A working-tree-only scan (or a prior code review of just the diff) is not enough — secrets committed and later deleted remain fully cloneable\u002Findexable the instant the repo goes public, and flipping back to private does not undo it.\n---\n\n# GitHub repo private → public: scan history, not just HEAD\n\n## When to use\n\n- Any request to run `gh repo edit --visibility public` (or the GitHub UI\n  equivalent) on a repo that was ever private.\n- Open-sourcing an internal tool or a fork.\n- Publishing a repo that other people also committed to — you likely don't\n  know everything they added and removed.\n- Anywhere `gh` is about to require `--accept-visibility-change-consequences`.\n  That flag existing at all is the signal this is a one-way door: treat it\n  like a production deploy gate, not a formality.\n\nDo this even if a code review \"already found nothing\" — that review almost\ncertainly covered the current diff or `HEAD`, not every commit ever made.\n\n## Steps\n\n1. **Scan the current tree** for high-signal secret shapes and sensitive\n   filenames still present today:\n   ```bash\n   git grep -nIE '(AKIA[0-9A-Z]{16}|-----BEGIN [A-Z ]*PRIVATE KEY-----|ghp_[A-Za-z0-9]{36}|xox[baprs]-[0-9A-Za-z-]{10,}|sk-(live|proj|ant)[A-Za-z0-9_-]{16,})'\n   git ls-files | grep -iE '(^|\u002F)(\\.env($|\\.)|.*\\.(pem|p12|key|keystore)$|id_rsa|secrets?\\.(json|ya?ml|toml))'\n   ```\n\n2. **Scan the full history**, across all branches, for any sensitive file\n   path that was *ever added* — including files later deleted. This is the\n   step a working-tree-only scan skips entirely:\n   ```bash\n   git log --all --diff-filter=A --name-only --pretty=format: \\\n     | sort -u \\\n     | grep -iE '(^|\u002F)(\\.env($|\\.)|.*\\.(pem|p12|key|keystore)$|id_rsa|credential|secrets?\\.(json|ya?ml|toml))'\n   ```\n\n3. **Scan the full history for secret CONTENT.** Step 2 checks file *names*\n   only; a secret committed in an ordinary file and later removed is invisible\n   to it. Search every commit's diffs for the same secret shapes as step 1:\n   ```bash\n   git log --all -p -E -G'(AKIA[0-9A-Z]{16}|-----BEGIN [A-Z ]*PRIVATE KEY-----|ghp_[A-Za-z0-9]{36}|xox[baprs]-[0-9A-Za-z-]{10,}|sk-(live|proj|ant)[A-Za-z0-9_-]{16,})'\n   # or, per-commit tree search (same regex as above):\n   git rev-list --all | xargs -n 50 git grep -nIE '(AKIA[0-9A-Z]{16}|-----BEGIN [A-Z ]*PRIVATE KEY-----|ghp_[A-Za-z0-9]{36}|xox[baprs]-[0-9A-Za-z-]{10,}|sk-(live|proj|ant)[A-Za-z0-9_-]{16,})'\n   ```\n   `-E` is required: without it, glibc BRE treats `(`, `|` and `{16}`\n   literally and matches nothing. In the `xargs` form, do not read the exit\n   status: `xargs` exits 123 when ANY batch exits 1, and `git grep` exits 1\n   on no match. Judge by printed output: any printed line is a finding.\n\n4. **PII sweep (working tree only)** — emails other than the intended public\n   contact. Plain `git grep` reads the current tree, not history; for history,\n   reuse the step 3 `git log --all -p -E -G'\u003Cemail regex>'` form:\n   ```bash\n   git grep -hoIE '[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}' \\\n     | sort -u | grep -viE '(your-public-contact@|noreply|example\\.com)'\n   ```\n\n5. **Prefer a real scanner over the greps above when one is installed** —\n   `gitleaks detect` or `trufflehog` (both scan full history by default) catch\n   secret shapes the regexes above don't enumerate. Treat the greps as the\n   always-available fallback, not the ceiling.\n\n6. **If anything turns up in history**: stop before flipping visibility.\n   - Rotate the exposed credential regardless of how old the commit is —\n     assume it's burned the moment it could go public.\n   - Remove it from history (`git filter-repo` or equivalent) or recreate the\n     repo from a clean history before publishing. Deleting the file in a new\n     commit is not sufficient; the old commit is still reachable.\n\n7. **Only once all scans above are clean**, flip visibility with explicit consent\n   and verify it took effect:\n   ```bash\n   gh repo edit OWNER\u002FREPO --visibility public --accept-visibility-change-consequences\n   gh repo view OWNER\u002FREPO --json visibility -q .visibility   # expect PUBLIC\n   ```\n\n## Hard rules\n\n- Never treat a working-tree\u002Fdiff scan as sufficient for this decision — the\n  threat model is \"every commit ever made,\" not \"what's on disk now.\"\n- Never flip visibility while steps 2-3 (history scans) are still pending or\n  have unresolved hits.\n- If history contains a secret, rotating it is mandatory even if you plan to\n  scrub history — don't rely on the scrub alone.\n- This step is irreversible in practice: flipping back to private after\n  exposure does not un-clone, un-cache, or un-index the history that was\n  public in the interim. Treat it as a one-way door and get explicit user\n  confirmation before proceeding, not just before typing the command.\n\n## Related skills\n\n- `core-workflow:github-solo-branch-protection-codeowners` — harden `main`\n  at the same go-public moment.\n","# GitHub repo private → public: scan history, not just HEAD\n\n## When to use\n\n- Any request to run `gh repo edit --visibility public` (or the GitHub UI\n  equivalent) on a repo that was ever private.\n- Open-sourcing an internal tool or a fork.\n- Publishing a repo that other people also committed to — you likely don't\n  know everything they added and removed.\n- Anywhere `gh` is about to require `--accept-visibility-change-consequences`.\n  That flag existing at all is the signal this is a one-way door: treat it\n  like a production deploy gate, not a formality.\n\nDo this even if a code review \"already found nothing\" — that review almost\ncertainly covered the current diff or `HEAD`, not every commit ever made.\n\n## Steps\n\n1. **Scan the current tree** for high-signal secret shapes and sensitive\n   filenames still present today:\n   ```bash\n   git grep -nIE '(AKIA[0-9A-Z]{16}|-----BEGIN [A-Z ]*PRIVATE KEY-----|ghp_[A-Za-z0-9]{36}|xox[baprs]-[0-9A-Za-z-]{10,}|sk-(live|proj|ant)[A-Za-z0-9_-]{16,})'\n   git ls-files | grep -iE '(^|\u002F)(\\.env($|\\.)|.*\\.(pem|p12|key|keystore)$|id_rsa|secrets?\\.(json|ya?ml|toml))'\n   ```\n\n2. **Scan the full history**, across all branches, for any sensitive file\n   path that was *ever added* — including files later deleted. This is the\n   step a working-tree-only scan skips entirely:\n   ```bash\n   git log --all --diff-filter=A --name-only --pretty=format: \\\n     | sort -u \\\n     | grep -iE '(^|\u002F)(\\.env($|\\.)|.*\\.(pem|p12|key|keystore)$|id_rsa|credential|secrets?\\.(json|ya?ml|toml))'\n   ```\n\n3. **Scan the full history for secret CONTENT.** Step 2 checks file *names*\n   only; a secret committed in an ordinary file and later removed is invisible\n   to it. Search every commit's diffs for the same secret shapes as step 1:\n   ```bash\n   git log --all -p -E -G'(AKIA[0-9A-Z]{16}|-----BEGIN [A-Z ]*PRIVATE KEY-----|ghp_[A-Za-z0-9]{36}|xox[baprs]-[0-9A-Za-z-]{10,}|sk-(live|proj|ant)[A-Za-z0-9_-]{16,})'\n   # or, per-commit tree search (same regex as above):\n   git rev-list --all | xargs -n 50 git grep -nIE '(AKIA[0-9A-Z]{16}|-----BEGIN [A-Z ]*PRIVATE KEY-----|ghp_[A-Za-z0-9]{36}|xox[baprs]-[0-9A-Za-z-]{10,}|sk-(live|proj|ant)[A-Za-z0-9_-]{16,})'\n   ```\n   `-E` is required: without it, glibc BRE treats `(`, `|` and `{16}`\n   literally and matches nothing. In the `xargs` form, do not read the exit\n   status: `xargs` exits 123 when ANY batch exits 1, and `git grep` exits 1\n   on no match. Judge by printed output: any printed line is a finding.\n\n4. **PII sweep (working tree only)** — emails other than the intended public\n   contact. Plain `git grep` reads the current tree, not history; for history,\n   reuse the step 3 `git log --all -p -E -G'\u003Cemail regex>'` form:\n   ```bash\n   git grep -hoIE '[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}' \\\n     | sort -u | grep -viE '(your-public-contact@|noreply|example\\.com)'\n   ```\n\n5. **Prefer a real scanner over the greps above when one is installed** —\n   `gitleaks detect` or `trufflehog` (both scan full history by default) catch\n   secret shapes the regexes above don't enumerate. Treat the greps as the\n   always-available fallback, not the ceiling.\n\n6. **If anything turns up in history**: stop before flipping visibility.\n   - Rotate the exposed credential regardless of how old the commit is —\n     assume it's burned the moment it could go public.\n   - Remove it from history (`git filter-repo` or equivalent) or recreate the\n     repo from a clean history before publishing. Deleting the file in a new\n     commit is not sufficient; the old commit is still reachable.\n\n7. **Only once all scans above are clean**, flip visibility with explicit consent\n   and verify it took effect:\n   ```bash\n   gh repo edit OWNER\u002FREPO --visibility public --accept-visibility-change-consequences\n   gh repo view OWNER\u002FREPO --json visibility -q .visibility   # expect PUBLIC\n   ```\n\n## Hard rules\n\n- Never treat a working-tree\u002Fdiff scan as sufficient for this decision — the\n  threat model is \"every commit ever made,\" not \"what's on disk now.\"\n- Never flip visibility while steps 2-3 (history scans) are still pending or\n  have unresolved hits.\n- If history contains a secret, rotating it is mandatory even if you plan to\n  scrub history — don't rely on the scrub alone.\n- This step is irreversible in practice: flipping back to private after\n  exposure does not un-clone, un-cache, or un-index the history that was\n  public in the interim. Treat it as a one-way door and get explicit user\n  confirmation before proceeding, not just before typing the command.\n\n## Related skills\n\n- `core-workflow:github-solo-branch-protection-codeowners` — harden `main`\n  at the same go-public moment.\n",{"name":5,"description":7},"main","153711dd9432743d97f0b33b080ada5798ea623c","plugins\u002Fcore-workflow\u002Fskills\u002Fgithub-repo-go-public-preflight-scan","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills","https:\u002F\u002Fgithub.com\u002Fabhijitbansal","2026-11-07 12:59:51",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add abhijitbansal\u002Fclaude-skills --skill github-repo-go-public-preflight-scan",{"tool":35,"command":36},"bunx","bunx skills add abhijitbansal\u002Fclaude-skills --skill github-repo-go-public-preflight-scan",{"tool":38,"command":39},"pnpm","pnpm dlx skills add abhijitbansal\u002Fclaude-skills --skill github-repo-go-public-preflight-scan","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fcore-workflow\u002Fskills\u002Fgithub-repo-go-public-preflight-scan\u002FSKILL.md",true,[],[44,51,58,65,72,79],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":18},"01M74XTV2V7GZM8FDBXQZZ74VX","second-wind","Orchestrate long unattended Claude Code runs across multiple repos with the wind CLI. Use when the user wants to run Claude Code overnight, resume sessions after the 5-hour usage limit, run Claude in many repos at once via tmux, or says \"set up second wind\", \"wind up\", \"overnight run\", \"resume after limit\", \"usage limit orchestrator\".","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fsecond-wind\u002Fskills\u002Fsecond-wind\u002FSKILL.md",[],[],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M74XTPGN1HDQSKGCZZX0AZPC","structured-output-adaptive-thinking-token-bloat","A Claude API call using output_config.format (json_schema structured outputs) with thinking:{type:\"adaptive\"} burns most of its output budget on thinking (observed ~21k of ~24k tokens) without improving JSON quality, making the run up to ~5x more expensive than the same call with thinking omitted — use when calling the Messages API with a json_schema output format for extraction, ranking, classification, or summarization tasks, or when a schema-constrained call's usage.output_tokens is far larger than the returned JSON.","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprompt-craft\u002Fskills\u002Fstructured-output-adaptive-thinking-token-bloat\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M74XTKTRHAMC2JFHQ1P1E6GR","review","Apply a code-review lens to a diff, branch, or file — find correctness bugs, security issues, and quality problems, ranked by severity, with a concrete fix for each. Use when the user says \"review this\", \"review my diff\", \"check this PR\", \"look this over before I commit\", or \"is this safe\". Skip when the user wants the code written, not reviewed.","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprompt-craft\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M74XTGGCW7GWDDHPEMJQC7Y1","refresh","Rebuild the prompt-craft command registry and usage profile, and print a summary of installed commands and your personalized recommendations. Use when you install or update plugins and want the advisor to pick them up immediately, or say \"refresh prompt-craft\", \"rebuild the command registry\".","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprompt-craft\u002Fskills\u002Frefresh\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M74XTCNGNR4G19P3Z95KTHQJ","refactor","Apply a refactoring lens — restructure code without changing behavior, guarded by tests that pass before and after. Use when the user says \"refactor\", \"clean this up\", \"extract this\", \"simplify this\", \"reduce duplication\", or \"make this readable\" on existing working code. Skip when the change is meant to alter behavior (that's a feature or a fix).","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprompt-craft\u002Fskills\u002Frefactor\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M74XT9FKXN3N106G7Q3X56XR","plan","Decompose a non-trivial task into an explicit, tracked plan with goals and per-step acceptance criteria before writing code. Use when the user says \"plan this\", \"break this down\", \"what's the plan\", or asks for a multi-step feature\u002Frefactor that touches more than one file. Pairs with plan mode. Skip for single-edit changes that need no decomposition.","https:\u002F\u002Fgithub.com\u002Fabhijitbansal\u002Fclaude-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fprompt-craft\u002Fskills\u002Fplan\u002FSKILL.md",[],[]]