用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/andrewyng/openworker --skill secret-scan命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | secret-scan |
| description | Hunt committed secrets with gitleaks and drive safe rotation |
Find committed credentials and get them rotated and removed — without ever exposing them further yourself.
ABSOLUTE RULE: never print a secret's value — not in output, notes, todo items, commits, or PRs. Refer to every hit as " in : (commit )".
gitleaks version. If it's missing, do NOT skip this scan and do not
stop the review — ask for it with request_tool("gitleaks", …). If the user declines,
or no pinned build exists for their platform, fall back to step 2b and say in your
report that the sweep was manual.gitleaks detect --source . --report-format json --report-path /tmp/gitleaks.json
b. Without it, do the same job by hand, and say so:
git grep -nIE '(api[_-]?key|secret|token|password|BEGIN [A-Z ]*PRIVATE KEY|AKIA[0-9A-Z]{16}|sk_(live|test)_[0-9a-zA-Z]{16,}|xox[baprs]-)'git log -p --all -S 'AKIA' --pickaxe-all
and git log --diff-filter=D --name-only --pretty=format:%h -- '*.env*' '*credential*' '*secret*',
then read the removed contents with git show <sha>^:<path>.sed -E "s/[A-Za-z0-9_\\-]{16,}/[REDACTED]/g" — the no-printing rule still applies..gitignore for local secret files and offer a
.gitleaks.toml baseline plus a pre-commit hook.
d. History purge (git filter-repo/BFG) is DESTRUCTIVE and rewrites shared history —
describe the trade-off and only proceed if the user explicitly asks.