trove-secret-scan
Scan files for accidentally committed secrets, API keys, and credentials. Flags common secret patterns and suggests remediation. Use when: scan for secrets; leaked credentials; check for api keys.
- License 许可
- MIT
- 所属仓库
- bravew/trove
- 最近更新
- 2026-11-12
- Stars
- ★ 10
- Forks
- 1
01 前言 Front Matter
- name
- trove-secret-scan
- description
- Scan files for accidentally committed secrets, API keys, and credentials. Flags common secret patterns and suggests remediation. Use when: scan for secrets; leaked credentials; check for api keys.
03 SKILL.md 正文
<!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly --> <!-- Regenerate: bun run build:skills -->
Session Init
This skill ships Trove conventions. Prefer existing project patterns over generic best practices when they conflict.
Secret Scanning
Patterns to Detect
| Pattern | Regex | Severity |
|---|---|---|
| AWS Access Key | AKIA[0-9A-Z]{16} |
Critical |
| AWS Secret Key | [A-Za-z0-9/+=]{40} near "secret" |
Critical |
| GitHub Token | gh[ps]_[A-Za-z0-9_]{36,} |
Critical |
| Slack Token | xox[baprs]-[0-9a-zA-Z-]+ |
Critical |
| Generic API Key | [a-zA-Z0-9]{32,} near "api_key" |
Warning |
| Private Key | -----BEGIN.*PRIVATE KEY----- |
Critical |
| JWT Token | eyJ[A-Za-z0-9_-]+\.eyJ[A-Za-z0-9_-]+ |
Warning |
| Password in URL | ://[^:]+:[^@]+@ |
Critical |
Remediation Steps
- Immediately rotate the exposed credential
- Remove the secret from code
- Add to
.gitignoreif it's a file - Use environment variables or secret manager
- Check git history:
git log --all -p -- <file>for old commits - Consider BFG Repo-Cleaner if secret was ever committed
False Positive Handling
- Test fixtures with dummy keys: annotate with
# noqa: secret - Example/template files: use placeholder format
<YOUR_API_KEY_HERE> - Hash values and UUIDs: not secrets, skip
04 同仓库更多 Skills
using-trove
Skill discipline anchor for the Trove marketplace. Loaded once per session; routes the agent to the right trove-* skill before code, planning, review, or git actions.
trove-write-skill
Skill authoring workflow. Use when creating or updating a Codex or Trove skill, including rubrics, tasks, metadata, and validation.
trove-worktree
Git worktree workflow for spikes, risky experiments, and broad refactors that should not disturb the user's current branch.
trove-why
Reconstruct design rationale and decision history from evidence — source control, issue tracker (Linear), docs (Notion), chat (Slack), error tracking (Sentry) — with calibrated confidence. Use for "why does X work this way", "why did we pick Y", regressions, and postmortems. Use trove-explain for how it works now.
trove-verify
Completion verification workflow. Use before claiming done, fixed, complete, ready, or shipped.
trove-unslop
Cut AI tells from writing — PR descriptions, release notes, specs, commit bodies, and replies. Use before finalizing prose, or when the user asks to clean up, de-slop, or make text sound human.