secrets

Scan directories for exposed secrets and report masked findings.

2|1|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/rad-security/claude-code-plugin --skill secrets-rad-security
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secrets
Source: https://github.com/rad-security/claude-code-plugin/tree/main/plugins/clawkeeper-code/skills/secrets
Command: npx skills add https://github.com/rad-security/claude-code-plugin --skill secrets-rad-security

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scan the current working directory for exposed secrets, API keys, private keys, and credentials. Run when the user wants to find leaked credentials or check for secret exposure in their project. Never prints actual secret values.

Core Features & Use Cases

  • Scan for common secret files (env files, private keys) and secret patterns in source code.
  • Provide masked previews and a structured report that distinguishes git-tracked vs gitignored secrets.
  • Use cases include auditing a project before sharing or committing code to ensure credentials are not exposed.

Quick Start

Run the secret scan in your project directory to locate exposed credentials locally without exposing actual secret values.

Frequently Asked Questions about secrets

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan my codebase for exposed API keys and credentials locally?

To scan for exposed API keys and credentials locally, run a secret scan in your current working directory. It identifies leaked credentials in source code and common secret files while never displaying actual secret values.

Does local secret scanning mask actual credential values in the report?

Yes, local secret scanning masks actual credential values in the report. It enforces safety by restricting output to file paths, line numbers, pattern types, and masked previews, ensuring secrets are never exposed during the scan.

Can I check for git-tracked versus gitignored secrets before committing code?

Yes, you can check for git-tracked versus gitignored secrets before committing code. The scan provides a structured report distinguishing git-tracked vs gitignored secrets, enabling quick remediation and credential rotation before sharing.

What types of secret files and patterns can a local code scanner detect?

A local code scanner detects common secret files like env files and private keys, along with secret patterns in source code. It applies to codebases of varying sizes and project types by scanning common secret file patterns.

Why should I audit my project for secret exposure before sharing my code?

You should audit for secret exposure before sharing code to ensure credentials are not exposed. The scan locates exposed secrets locally and reports findings with masked previews, enabling quick remediation and credential rotation to prevent leaks.