Agent skill

Secrets Gitleaks

by AgentSecOps in AgentSecOps/SecOpsAgentKit

Hardcoded secret detection and prevention in git repositories and codebases using Gitleaks.

Custom licenceAuto-check passedDevOps & Cloud

Install Secrets Gitleaks

skills CLI
$ npx skills add AgentSecOps/SecOpsAgentKit --skill secrets-gitleaks -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install AgentSecOps/SecOpsAgentKit secrets-gitleaks --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/AgentSecOps/SecOpsAgentKit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/devsecops/secrets-gitleaks .claude/skills/secrets-gitleaks && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
secrets-gitleaks
GitHub stars
220
Used in
2 other repos
Token cost
~4.1k tokens
SKILL.md length
1,068 words
Files
13 (incl. references, assets)
Skills in repo
24
Repo updated
First seen
Licence
Custom licence

At a glance

Hardcoded secret detection and prevention in git repositories and codebases using Gitleaks.

  • Works in 5 steps: Repository Scanning → Pre-Commit Hook Protection → CI/CD Pipeline Integration → …
  • Scanning repositories for exposed secrets and credentials
  • SKILL.md covers Overview, Quick Start, Core Workflows and Security Considerations, plus 4 more sections
  • Calls gitleaks, git and brew; reaches github.com; needs GITHUB_TOKEN

What it does

Secrets Gitleaks is an agent skill from AgentSecOps/SecOpsAgentKit. Hardcoded secret detection and prevention in git repositories and codebases using Gitleaks. Identifies passwords, API keys, tokens, and credentials through regex-based pattern matching and entropy analysis. Use when: (1) Scanning repositories for exposed secrets and credentials, (2) Implementing pre-commit hooks to prevent secret leakage, (3) Integrating secret detection into CI/CD pipelines, (4) Auditing codebases for compliance violations (PCI-DSS, SOC2, GDPR), (5) Establishing baseline secret detection and…

Its SKILL.md is about 4.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 14 other files, including reference files and assets (for example `assets/github-action.yml`, `assets/gitlab-ci.yml` and `assets/precommit-config.yaml`).

It sits in DevOps & Cloud, covering Secrets management, CI/CD and Git workflow. It works with Git. The repository describes itself as: Security operations toolkit for AI coding agents. Give Claude Code 25+ skills to catch vulnerabilities, scan containers, detect secrets, and enforce policies automatically.

When your agent uses it

  • Scanning repositories for exposed secrets and credentials
  • Implementing pre-commit hooks to prevent secret leakage
  • Integrating secret detection into CI/CD pipelines
  • Auditing codebases for compliance violations (PCI-DSS

Example prompts

  • “/secrets-gitleaks”

Requirements

  • Docker
  • A credential in GITHUB_TOKEN

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Repository Scanning
  2. Pre-Commit Hook Protection
  3. CI/CD Pipeline Integration
  4. Baseline and Incremental Scanning
  5. Configuration Customization

What it can do on your machine

Read from SKILL.md and the folder at commit 6e25a4b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gitleaks
    • git
    • brew

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    Also links to:

    • cwe.mitre.org
    • owasp.org
    • pcisecuritystandards.org
    • aicpa.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • GITHUB_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Secrets Gitleaks loads about 4.1k tokens when it runs, and up to ~17k if it reads all its reference files. Until then it costs about 154 tokens; SKILL.md has 1,068 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~154
When it runs · the whole SKILL.md, loaded when a task matches
~4.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~17k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,068 words (~4,139 tokens).

“Gitleaks is a secret detection tool that scans git repositories, files, and directories for hardcoded credentials including passwords, API keys, tokens, and other sensitive information. It uses regex-based pattern matching combined with Shannon entropy analysis to identify secrets that could…”

— opening of SKILL.md by AgentSecOps, Custom licence
name
secrets-gitleaks
version
0.1.0
maintainer
SirAppSec
category
devsecops
tags
secrets, gitleaks, secret-scanning, devsecops, ci-cd, credentials, api-keys, compliance
frameworks
OWASP, CWE, PCI-DSS, SOC2, GDPR
dependencies.tools
gitleaks, git
references
https://github.com/gitleaks/gitleaks, https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures/…

Read the full SKILL.md on GitHub

Files

SKILL.md and 12 other files (references, assets) in skills/devsecops/secrets-gitleaks of AgentSecOps/SecOpsAgentKit.

  • SKILL.md
  • assets/.gitkeep
  • assets/config-balanced.toml
  • assets/config-custom.toml
  • assets/config-strict.toml
  • assets/github-action.yml
  • assets/gitlab-ci.yml
  • assets/precommit-config.yaml
  • references/EXAMPLE.md
  • references/compliance_mapping.md
  • references/detection_rules.md
  • references/false_positives.md
  • references/remediation_guide.md

Open the folder on GitHubat commit 6e25a4b

Used in 2 other repositories

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in AgentSecOps/SecOpsAgentKit, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Secrets Gitleaks next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Secrets Gitleaks compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Secrets Gitleaks this skillAgentSecOps/SecOpsAgentKit2202 repos~4.1kAutomated safety check: PassCustom licence
GitLab ExplorerWide-Moat/open-computer-use126—~891Automated safety check: PassCustom licence
Vibe CI Supply Chainmistralai/mistral-vibe5.1k—~1kAutomated safety check: PassApache-2.0
KubeSphere DevOps Credentialskubesphere/kubesphere17k—~4.2kAutomated safety check: PassCustom licence
Gpg Multi KeyProrise-cool/Claude-Code-Multi-Agent305—~3.2kAutomated safety check: WarnNone
Performing Container Security Scanning With Trivymukul975/Anthropic-Cybersecurity-Skills34k—~818Automated safety check: PassApache-2.0

Similar skills

  • GitLab Explorer

    Wide-Moat/open-computer-use

    Explore GitLab repositories using glab CLI and git commands.

    126 GitHub stars~891 tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed
  • Vibe CI Supply Chain

    mistralai/mistral-vibe

    Official

    Git workflow, CI/GitHub Actions, and supply-chain pinning rules for Mistral Vibe.

    5.1k GitHub stars~1k tokensUpdated today
    DevOps & CloudAuto-check passed
  • KubeSphere DevOps Credentials

    kubesphere/kubesphere

    Covers creating and managing KubeSphere DevOps credentials as typed Kubernetes Secrets that sync to Jenkins, including the API endpoints and a common pitfall.

    17k GitHub stars~4.2k tokensUpdated 2 mo ago
    DevOps & CloudAuto-check passed
  • Gpg Multi Key

    Prorise-cool/Claude-Code-Multi-Agent

    Advanced GPG multi-key management strategies for consultants, CI/CD automation, and enterprise teams.

    305 GitHub stars~3.2k tokensUpdated 22 days ago
    DevOps & CloudAuto-check: warnings
  • Performing Container Security Scanning With Trivy

    mukul975/Anthropic-Cybersecurity-Skills

    Runs Trivy across every target type it supports - container images, filesystems, Git repositories, and Kubernetes clusters - for OS and dependency vulnerabilities, IaC misconfiguration, exposed…

    34k GitHub stars~818 tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed
  • Leaked Secrets

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing client-side JavaScript, HTML source, or git history for exposed credentials, API keys, or tokens.

    74k GitHub stars~596 tokensUpdated 2 days ago
    DevOps & CloudAuto-check: notes

More from AgentSecOps/SecOpsAgentKit

All 24 skills in this repo
  • Sast Semgrep

    AgentSecOps/SecOpsAgentKit

    Static application security testing (SAST) using Semgrep for vulnerability detection, security code review, and secure coding guidance with OWASP and CWE framework mapping.

    220 GitHub starsUsed in 2 repos~2.4k tokens
    Auto-check passed
  • DefectDojo Vulnerability Management

    AgentSecOps/SecOpsAgentKit

    Aggregates scanner results into DefectDojo, deduplicates findings, tracks remediation SLAs and prepares compliance reports across products and pipelines.

    220 GitHub stars~2.3k tokensUpdated 5 mo ago
    Auto-check passed
  • TShark Traffic Analysis

    AgentSecOps/SecOpsAgentKit

    Guides authorized packet capture and analysis with TShark, Wireshark's command-line tool, for security investigations, malware detection and forensic examination of network traffic.

    220 GitHub starsUsed in 1 repo~4.8k tokens
    Auto-check: notes
  • Container Scanning with Grype

    AgentSecOps/SecOpsAgentKit

    Scans container images, filesystems and SBOMs with Grype for known vulnerabilities, ranks them by CVSS, EPSS and CISA KEV, and wires scans into CI/CD thresholds.

    220 GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • Hadolint Dockerfile Security Linting

    AgentSecOps/SecOpsAgentKit

    Lints Dockerfiles with Hadolint for security misconfigurations and best-practice violations, locally and in CI, with strict, balanced and permissive rule templates.

    220 GitHub starsUsed in 1 repo~4.4k tokens
    Auto-check passed
  • Hashcat Password Recovery Workflow

    AgentSecOps/SecOpsAgentKit

    Guides authorized password-hash recovery with hashcat for security audits, forensic cases and policy testing, starting with an explicit authorization check before any cracking runs.

    220 GitHub starsUsed in 1 repo~3.3k tokens
    Auto-check: notes

Works with

Questions about Secrets Gitleaks

What does Secrets Gitleaks do?

Hardcoded secret detection and prevention in git repositories and codebases using Gitleaks. Secrets Gitleaks is an agent skill from AgentSecOps/SecOpsAgentKit. Hardcoded secret detection and prevention in git repositories and codebases using Gitleaks.

When should I use Secrets Gitleaks?

Secrets Gitleaks fits situations like: scanning repositories for exposed secrets and credentials; implementing pre-commit hooks to prevent secret leakage; integrating secret detection into CI/CD pipelines; auditing codebases for compliance violations (PCI-DSS.

How do I install Secrets Gitleaks in Claude Code?

Run `npx skills add AgentSecOps/SecOpsAgentKit --skill secrets-gitleaks -a claude-code`. Or copy the skill folder (skills/devsecops/secrets-gitleaks in AgentSecOps/SecOpsAgentKit) into .claude/skills/secrets-gitleaks in your project. Claude Code loads it when a task matches its description.

How do I install Secrets Gitleaks in Codex?

Run `npx skills add AgentSecOps/SecOpsAgentKit --skill secrets-gitleaks -a codex`. Or copy the skill folder (skills/devsecops/secrets-gitleaks in AgentSecOps/SecOpsAgentKit) into .agents/skills/secrets-gitleaks in your project. Codex loads it when a task matches its description.

Can I use Secrets Gitleaks in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add AgentSecOps/SecOpsAgentKit --skill secrets-gitleaks -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/secrets-gitleaks, .gemini/skills/secrets-gitleaks, .github/skills/secrets-gitleaks and .opencode/skills/secrets-gitleaks in your project.

What does Secrets Gitleaks need to run?

Going by SKILL.md and its folder, Secrets Gitleaks needs the command-line tools its instructions call (gitleaks, git and brew) and credentials named GITHUB_TOKEN. Our summary lists: Docker; A credential in GITHUB_TOKEN.

Does Secrets Gitleaks access the network?

SKILL.md names 5 domains. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. As links in the text: cwe.mitre.org, owasp.org, pcisecuritystandards.org and aicpa.org. This is read from the text; nothing was executed.

Is Secrets Gitleaks safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Secrets Gitleaks use?

Secrets Gitleaks has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Secrets Gitleaks use?

About 4.1k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 13k tokens, read only when the agent opens those files.

What are the alternatives to Secrets Gitleaks?

Skills that share tags, products or a category with Secrets Gitleaks: GitLab Explorer (Wide-Moat/open-computer-use, 126 stars), Vibe CI Supply Chain (mistralai/mistral-vibe, 5.1k stars), KubeSphere DevOps Credentials (kubesphere/kubesphere, 17k stars) and Gpg Multi Key (Prorise-cool/Claude-Code-Multi-Agent, 305 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Secrets Gitleaks?

AgentSecOps (a GitHub organization) maintains it in AgentSecOps/SecOpsAgentKit, which has 220 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on April 15, 2026.

Source: AgentSecOps/SecOpsAgentKit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.