check-security

Scan code repositories for committed secrets using detect-secrets.

Updated Jul 9, 2026
One-click install
npx skills add https://github.com/albertoirurueta/ai-catalog --skill check-security-albertoirurueta
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: check-security
Source: https://github.com/albertoirurueta/ai-catalog/tree/main/.claude/skills/check-security
Command: npx skills add https://github.com/albertoirurueta/ai-catalog --skill check-security-albertoirurueta

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires detect-secrets, and includes scripts (resource) components.

What problem does it solve?

This Skill ensures that your repository does not contain sensitive information like API keys or passwords that could be exposed.

Core Features & Use Cases

  • Secret Detection: Automatically scans for secrets that may have been committed to the repository.
  • Installation Check: Verifies if the detect-secrets tool is installed and attempts to install it if not.
  • Scope Selection: Allows scanning the entire repository or a specific path.
  • Baseline Management: Maintains a .secrets.baseline file to keep track of previously found secrets.

Quick Start

Run /check-security to scan the entire repository for secrets.

Frequently Asked Questions about check-security

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

FAQPage Schema
How do I scan a repository for committed secrets?

To scan a repository for committed secrets, you can use this tool to automatically check your codebase for sensitive information like API keys or passwords and prevent accidental exposure.

What is a secrets baseline file and how does it work?

A secrets baseline is a `.secrets.baseline` file used to track previously found secrets. It works by recording known secrets so that subsequent repository scans only flag newly introduced sensitive information.

Can I scan a specific directory path instead of the whole repository?

Yes, you can scan a specific directory path instead of the whole repository. The tool supports scope selection, allowing you to target either the entire codebase or a specific path for secret detection.

Do I need to install detect-secrets before scanning my codebase?

You do not need to manually install detect-secrets before scanning. The tool verifies if the detect-secrets CLI is installed during execution and automatically attempts to install it if it is missing.

What is the best way to prevent API keys from leaking in my code?

The best way to prevent API keys from leaking is to perform regular secret detection scans. This identifies accidentally committed sensitive information across your entire repository so you can remove it before exposure.