Security / Runtime Hardening

Secrets and Credential Hygiene

Scan diffs and repository context for leaked secrets, risky credential placement, and over-broad environment exposure.

DocumentationAgent instructionsRequirements & limits

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 instructionsSKILL.md · v0.1.0

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

  1. Inspect changed files for hard-coded credentials or risky placeholders.
  2. Review environment and config patterns for scope, storage, and exposure.
  3. Classify findings by severity and remediation urgency.
  4. Recommend rotation, redaction, or secret-manager migration as needed.
  5. 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.
---

Summary sources · Catalogue metadata, skill.yaml, SKILL.md, examples/input.json, examples/output.json · v0.1.0 · Release package

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

How You Can Use This

Documentation

Resource form: Agent instructions

Read or copy the guidance. Any packaged programs have separate execution requirements and evidence.

First run: Read SKILL.md and follow the documented workflow.

Current limits

  • Instruction package only; it does not provide or authorize an executable runtime capability.
What installation and verification mean
File installation
Places package files and generated configuration in the selected directories.
Native discovery
Your agent app finds and accepts the instructions, tools or plugin registrations.
Mock execution
Exercises sample fixtures. Connected data and provider effects need a separate check.
Connected operation
Requires current configuration, provider authentication, scoped permissions and a successful operation in your intended environment.

Declared compatibility

Compatibility unknown: versions and capabilities have not been declared.

Classification: declared

Technical details and release files

Operational Summary

Execution mode: may-run-local-verification

Approval boundary: May run local secret scanners and redact findings; require human approval before revocation or rotation actions.

Review and lifecycle

Review maturity: Experimental

Security review declaration: Not declared

Lifecycle: Active

These release declarations are separate from evidence that a workflow operates in your environment.

Runtime & Dependencies

ID: security/secrets-and-credential-hygiene

Tags: secrets, credentials, hygiene, audit

Runtimes: codex, claude, generic

Tool dependencies: 1

API dependencies: 0

Dependencies

Tools: gitleaks

APIs: Not documented

Outputs

  • Secret findings
  • Severity matrix
  • Remediation steps