Secrets and Credential Hygiene
Scan diffs and repository context for leaked secrets, risky credential placement, and over-broad environment exposure.
Use when diffs or repository context need secret scanning and credential exposure review.
Inputs
- diff or file set
- environment and config file paths
- scanner output if available
Outputs
- Secret findings
- Severity matrix
- Remediation steps
Before you begin
- Reading and copying the procedure require no terminal setup. Check requirements for any packaged programs separately.
Try this first
Read the procedure and supply its documented inputs. Use the full text in an agent app or chat that supports pasted instructions, following that host's guidance.
Limits for this step
- Instruction package only; it does not provide or authorize an executable runtime capability.
- May run local secret scanners and redact findings; require human approval before revocation or rotation actions.
Read full instructionsHide full instructions
Secrets and Credential Hygiene
When to use
- Use on diffs that touch config, CI, auth, or environment files.
- Use during repo security review or before sharing code externally.
- Use when a token, key, or secret may have leaked into logs or source.
Inputs required
- diff or file set
- environment and config file paths
- scanner output if available
Workflow
- Inspect changed files for hard-coded credentials or risky placeholders.
- Review environment and config patterns for scope, storage, and exposure.
- Classify findings by severity and remediation urgency.
- Recommend rotation, redaction, or secret-manager migration as needed.
- Escalate immediately on confirmed secret leakage.
Output format
- Findings Summary
- Exposed Secret Candidates
- Risky Storage Patterns
- Remediation Steps
- Escalation Status
Guardrails
- Do not print or repeat full secrets in output.
- Redact suspected credential values.
- Treat uncertain findings as sensitive until reviewed.
- Require human review for any credential rotation or revocation action.
Failure modes
- If scanner tools are missing, do a manual pattern review and note it.
- If a value is truncated or partial, mark confidence accordingly.
- If logs contain secrets, recommend cleanup and retention review.
View file metadata
---
name: secrets-and-credential-hygiene
description: Review code, config, and environment conventions for secret
leakage, risky storage, and over-broad credential scope.
---Install instruction files
These commands copy guidance into the selected runtime directories. Confirm that your agent app discovers it. Any packaged programs need separate setup and verification.
Install (Codex)
./bin/skills-hub install security/[email protected] --runtime codex
Install (Claude)
./bin/skills-hub install security/[email protected] --runtime claude
Install (Generic)
./bin/skills-hub install security/[email protected] --runtime generic --target ./my-agent/skills