| name | code-hardcode-audit |
| description | Detect hardcoded values, magic numbers, and leaked secrets. TRIGGERS - hardcode audit, magic numbers, PLR2004, secret scanning. |
| allowed-tools | Bash, Read, Write, Glob, Grep |
Code Hardcode Audit
Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.
When to Use This Skill
Use this skill when the user mentions:
- "hardcoded values", "hardcodes", "magic numbers"
- "constant detection", "find constants"
- "duplicate constants", "DRY violations"
- "code audit", "hardcode audit"
- "PLR2004", "semgrep", "jscpd", "gitleaks", "ast-grep", "SSoT violations"
- "secret scanning", "leaked secrets", "API keys", "bandit", "trufflehog", "whispers"
- "passwords in code", "credential leaks", "entropy detection"
- "config file secrets", "hardcoded credentials"
Quick Start
uv run --python 3.14 --script scripts/preflight.py -- .
uv run --python 3.14 --script scripts/audit_hardcodes.py -- src/
uv run --python 3.14 --script scripts/run_bandit.py -- src/
uv run --python 3.14 --script scripts/run_trufflehog.py -- src/
uv run --python 3.14 --script scripts/run_whispers.py -- src/
uv run --python 3.14 --script scripts/run_ast_grep.py -- src/
uv run --python 3.14 --script scripts/run_ruff_plr.py -- src/
uv run --python 3.14 --script scripts/run_semgrep.py -- src/
uv run --python 3.14 --script scripts/audit_env_coverage.py -- src/
uv run --python 3.14 --script scripts/run_jscpd.py -- src/
uv run --python 3.14 --script scripts/run_gitleaks.py -- src/