secret-detector

Scan code repositories for hardcoded secrets using gitleaks, truffleHog, and git-secrets.

Updated May 13, 2026
One-click install
npx skills add https://github.com/Mekann2904/mekann --skill secret-detector
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secret-detector
Source: https://github.com/Mekann2904/mekann/tree/main/.pi/lib/skills/secret-detector
Command: npx skills add https://github.com/Mekann2904/mekann --skill secret-detector

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents sensitive information like API keys, passwords, and tokens from being accidentally exposed in code repositories, safeguarding against data breaches and unauthorized access.

Core Features & Use Cases

  • Automated Secret Scanning: Integrates with popular tools like git-secrets, truffleHog, and gitleaks to scan code for known secret patterns.
  • Pattern Matching: Utilizes regular expressions to identify common formats of API keys, database credentials, private keys, and JWTs.
  • Use Case: Before committing code, run this Skill to automatically scan for any hardcoded API keys, ensuring they are not pushed to a public repository.

Quick Start

Run the secret-detector skill to scan the current directory for any exposed secrets.

Frequently Asked Questions about secret-detector

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

FAQPage Schema
How do I scan code for hardcoded API keys and passwords before committing?

To scan code for hardcoded API keys and passwords before committing, run an automated secret scanning tool over the current directory. This process integrates tools like gitleaks and truffleHog to identify exposed credentials.

What is automated secret scanning and how does it detect exposed tokens?

Automated secret scanning is the process of inspecting code repositories for sensitive data like API keys and JWTs. It detects exposed tokens by utilizing regular expressions to identify common credential formats and known secret patterns.

Does secret scanning work with git-secrets, truffleHog, and gitleaks?

Yes, secret scanning works with git-secrets, truffleHog, and gitleaks. It integrates these tools to perform pattern matching and identify common formats of database credentials, private keys, and API keys in your development workflow.

Can I use code scanning to check for database credentials in a local directory?

Yes, you can use code scanning to check for database credentials in a local directory. Running the scan automatically inspects the current directory's files for hardcoded secrets, addressing security risks associated with accidental credential exposure.

Why do I need to scan repositories for secrets for compliance?

You need to scan repositories for secrets to satisfy requirements for proactive security auditing and compliance with data protection policies. Detecting hardcoded credentials prevents data breaches and unauthorized access to sensitive systems.

What types of secrets can pattern matching identify in code?

Pattern matching can identify common formats of API keys, database credentials, private keys, and JWTs in code. It uses regular expressions to find these specific secret patterns and prevent sensitive information from being exposed.