[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M757VRPMRF4VXV4EBBY046Q5":3,"skill-same:01M757VRPMRF4VXV4EBBY046Q5":60},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"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":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":41,"ownerHtmlUrl":42,"ownerBlogUrl":43,"ownerDescription":44,"updatedAt":45,"install":46,"resources":59},"01M757VRPMRF4VXV4EBBY046Q5","secret-scan",null,"Find committed secrets before they ship. gitleaks over full history + staged, Vanta's own secret-scan, plus the remediation order (rotate FIRST, then scrub). Run before any repo goes public or any release tag.","jpoindexter\u002FVanta","jpoindexter","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2729617?v=4","01M72VRRYY1CP7RPF3B7GHH0CR","01M757GWDBT6RD147ZZ79N4MEX",4,"MIT","https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta\u002Fblob\u002Fmain\u002Fsecurity-skills\u002Fsecret-scan\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: secret-scan\ndescription: \"Find committed secrets before they ship. gitleaks over full history + staged, Vanta's own secret-scan, plus the remediation order (rotate FIRST, then scrub). Run before any repo goes public or any release tag.\"\ncreated: 2026-06-27\nupdated: 2026-06-27\ntags: [security, secrets, gitleaks, credentials, pre-commit, leak, scan]\ntriggers: [{\"event\":\"PreToolUse\",\"match\":\"git_push\"}]\n---\n\n# Secret Scan\n\nA leaked secret in git history is leaked **forever** — anyone who cloned has it, and deleting the file in a new commit does nothing. So this scan runs over the WHOLE history, not just the working tree, and the remediation order is **rotate first, scrub second** (scrubbing a still-valid key is theater).\n\n## When to run\n\n- Before a repo goes **public** (the highest-stakes moment — history is about to be world-readable).\n- Before any **release tag** (a tagged commit is what people audit).\n- As a **pre-commit hook** (catch it before it ever lands).\n- After anyone pastes a real secret into a file \"just to test.\"\n\n## Run it\n\n```bash\n# 1. Full HISTORY scan — the authoritative one (every commit, not just HEAD).\ngitleaks detect --no-banner --redact\n\n# 2. Staged-only — fast, for the pre-commit hook.\ngitleaks protect --staged --no-banner --redact\n\n# 3. What's actually TRACKED that shouldn't be (config the regex scan can miss).\ngit ls-files | grep -iE '(^|\u002F)\\.env$|\\.pem$|id_rsa|\\.p12$|credentials|api-token|\\.key$'\n```\n\nA clean run prints `no leaks found` and lists the commit count scanned. **Read the count** — `0 commits scanned` means you pointed it at the wrong place, not that you're clean.\n\n## Triage what it finds\n\n- **A real, live secret** → STOP. Rotate it at the provider NOW (revoke + reissue). Only then scrub. A scrubbed-but-valid key is still compromised.\n- **A test\u002Fexample value** → add the file to `.gitleaks.toml` `allowlists` (paths or a regex), don't disable the hook. Example\u002Ffixture files (`*.example`, `__fixtures__\u002F`) belong here.\n- **A false positive** (npm integrity hash, a UUID, a base64 blob) → allowlist the specific pattern. Don't widen the rule so far it stops catching real keys.\n\n## Remediate (in order)\n\n1. **Rotate** the credential at the source. Non-negotiable, first.\n2. **Stop tracking** it: add to `.gitignore`, `git rm --cached \u003Cfile>`, commit.\n3. **Scrub history** only if the secret was committed: `git filter-repo --invert-paths --path \u003Cfile>` (or BFG), force-push, and tell anyone with a clone to re-clone. Back up the repo first.\n4. **Prevent recurrence**: install the pre-commit hook so `gitleaks protect --staged` runs on every commit.\n\n## The boundary\n\ngitleaks is **pattern-based** — it catches credential SHAPES (AWS keys, tokens, private-key headers), not a password that looks like a normal word. It is a strong net, not a proof of cleanliness. Pair it with: `.env` gitignored, secrets fetched at use-time (not persisted), and never echoing a secret in logs. See `[[dependency-audit]]` and `[[security-preflight]]`.\n","# Secret Scan\n\nA leaked secret in git history is leaked **forever** — anyone who cloned has it, and deleting the file in a new commit does nothing. So this scan runs over the WHOLE history, not just the working tree, and the remediation order is **rotate first, scrub second** (scrubbing a still-valid key is theater).\n\n## When to run\n\n- Before a repo goes **public** (the highest-stakes moment — history is about to be world-readable).\n- Before any **release tag** (a tagged commit is what people audit).\n- As a **pre-commit hook** (catch it before it ever lands).\n- After anyone pastes a real secret into a file \"just to test.\"\n\n## Run it\n\n```bash\n# 1. Full HISTORY scan — the authoritative one (every commit, not just HEAD).\ngitleaks detect --no-banner --redact\n\n# 2. Staged-only — fast, for the pre-commit hook.\ngitleaks protect --staged --no-banner --redact\n\n# 3. What's actually TRACKED that shouldn't be (config the regex scan can miss).\ngit ls-files | grep -iE '(^|\u002F)\\.env$|\\.pem$|id_rsa|\\.p12$|credentials|api-token|\\.key$'\n```\n\nA clean run prints `no leaks found` and lists the commit count scanned. **Read the count** — `0 commits scanned` means you pointed it at the wrong place, not that you're clean.\n\n## Triage what it finds\n\n- **A real, live secret** → STOP. Rotate it at the provider NOW (revoke + reissue). Only then scrub. A scrubbed-but-valid key is still compromised.\n- **A test\u002Fexample value** → add the file to `.gitleaks.toml` `allowlists` (paths or a regex), don't disable the hook. Example\u002Ffixture files (`*.example`, `__fixtures__\u002F`) belong here.\n- **A false positive** (npm integrity hash, a UUID, a base64 blob) → allowlist the specific pattern. Don't widen the rule so far it stops catching real keys.\n\n## Remediate (in order)\n\n1. **Rotate** the credential at the source. Non-negotiable, first.\n2. **Stop tracking** it: add to `.gitignore`, `git rm --cached \u003Cfile>`, commit.\n3. **Scrub history** only if the secret was committed: `git filter-repo --invert-paths --path \u003Cfile>` (or BFG), force-push, and tell anyone with a clone to re-clone. Back up the repo first.\n4. **Prevent recurrence**: install the pre-commit hook so `gitleaks protect --staged` runs on every commit.\n\n## The boundary\n\ngitleaks is **pattern-based** — it catches credential SHAPES (AWS keys, tokens, private-key headers), not a password that looks like a normal word. It is a strong net, not a proof of cleanliness. Pair it with: `.env` gitignored, secrets fetched at use-time (not persisted), and never echoing a secret in logs. See `[[dependency-audit]]` and `[[security-preflight]]`.\n",{"name":5,"tags":23,"created":31,"updated":31,"triggers":32,"description":7},[24,25,26,27,28,29,30],"security","secrets","gitleaks","credentials","pre-commit","leak","scan",1782518400000,[33],{"event":34,"match":35},"PreToolUse","git_push","main","4911ae44bbb35beef4511ba298475ba5a82b7e1c","security-skills\u002Fsecret-scan",0,"https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta","https:\u002F\u002Fdocs.vanta.theft.studio","https:\u002F\u002Fgithub.com\u002Fjpoindexter","jason.theft.studio","Just some guy trying to build stuff","2026-11-12 17:11:35",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add jpoindexter\u002FVanta --skill secret-scan",{"tool":52,"command":53},"bunx","bunx skills add jpoindexter\u002FVanta --skill secret-scan",{"tool":55,"command":56},"pnpm","pnpm dlx skills add jpoindexter\u002FVanta --skill secret-scan","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta\u002Fblob\u002Fmain\u002Fsecurity-skills\u002Fsecret-scan\u002FSKILL.md",true,[],[61,68,75,82,89,95],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7582PEM7XM8B98VFRDV0C0J","write-changelog","Turn a range of commits into a user-facing changelog","https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta\u002Fblob\u002Fmain\u002Fvanta-ts\u002Fsrc\u002Fmigrate\u002F__fixtures__\u002Fopenclaw\u002Fskills\u002Fwrite-changelog\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M7582KTQJMP5Y7GS83MS1C7Z","debug-flaky-test","Reproduce and isolate a flaky test before fixing it","https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta\u002Fblob\u002Fmain\u002Fvanta-ts\u002Fsrc\u002Fmigrate\u002F__fixtures__\u002Fopenclaw\u002Fskills\u002Fdebug-flaky-test\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M7582HG7XFM4Z5NGG1YFECT8","triage-incident","First 10 minutes of an incident — stabilize, then diagnose","https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta\u002Fblob\u002Fmain\u002Fvanta-ts\u002Fsrc\u002Fmigrate\u002F__fixtures__\u002Fhermes\u002Fskills\u002Ftriage-incident\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M7582DQABK7A96XHMB770KQZ","writing-plans","Write implementation plans: bite-sized tasks, paths, code.","https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta\u002Fblob\u002Fmain\u002Fvanta-ts\u002Fskills-library\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M7582BBK8H0HGSXKK08FCXJ1","vanta-port-adapter","https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta\u002Fblob\u002Fmain\u002Fvanta-ts\u002Fskills-library\u002Fvanta-port-adapter\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":18},"01M75828P8PX5XSBMJ2BVVDA9Y","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002Fjpoindexter\u002FVanta\u002Fblob\u002Fmain\u002Fvanta-ts\u002Fskills-library\u002Ftest-driven-development\u002FSKILL.md",[],[]]