secrets-gitleaks

secrets-gitleaks is a skill for Claude Code from JoaoEquer/Oficina. It costs 130 tokens per session (3,610 once invoked), scanned A, original, MIT.

A secret-scanning guide for Gitleaks, a tool that searches code and Git repositories for exposed passwords, API keys, tokens, and other credentials. It uses text patterns and randomness analysis to flag likely secrets.

In plain words
What is it for?
Use it to scan existing repositories, inspect specific folders, create reports, and add secret checks to pre-commit hooks or CI/CD pipelines.
Why use it?
It helps find credentials that were accidentally committed before they can be misused. It also describes ways to check code before commits and in automated build checks.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the oficina plugin — 17 skills, 6 commands shipped together

Good fit Use it to scan existing repositories, inspect specific folders, create reports, and add secret checks to pre-commit hooks or CI/CD pipelines.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/joaoequer/oficina/secrets-gitleaks
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add JoaoEquer/Oficina --skill secrets-gitleaks
Clone the repo
git clone --depth 1 https://github.com/JoaoEquer/Oficina

Made for: Claude Code.

Or install oficina, the plugin that ships this one along with the rest of its 17 skills, 6 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for secrets-gitleaks

README.md
[![agentmods](https://agentmods.dev/badge/skills/joaoequer/oficina/secrets-gitleaks.svg)](https://agentmods.dev/skills/joaoequer/oficina/secrets-gitleaks)
Your own site
<a href="https://agentmods.dev/skills/joaoequer/oficina/secrets-gitleaks"><img src="https://agentmods.dev/badge/skills/joaoequer/oficina/secrets-gitleaks.svg" alt="Measured on agentmods" height="20"></a>
Per session 130 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,610 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00130 $0.03610
Opus 5 $0.00065 $0.01805
Sonnet 5 $0.00026 $0.00722
Haiku 4.5 $0.00013 $0.00361

Measured 2d ago against content hash 8a7e46ea6151, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

secrets-gitleaks scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/secrets-gitleaks/SKILL.md · 437 lines

How it starts

The opening of the file, as written. The whole thing — 437 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Secrets Detection with Gitleaks

Overview

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 lead to unauthorized access if exposed.

This skill provides comprehensive guidance for integrating Gitleaks into DevSecOps workflows, from pre-commit hooks to CI/CD pipelines, with emphasis on preventing secret leakage before code reaches production.

Quick Start

Scan current repository for secrets:

# Install gitleaks
brew install gitleaks  # macOS
# or: docker pull zricethezav/gitleaks:latest

# Scan current git repository
gitleaks detect -v

# Scan specific directory
gitleaks detect --source /path/to/code -v

# Generate report
gitleaks detect --report-path gitleaks-report.json --report-format json

Core Workflows

1. Repository Scanning

Scan existing repositories to identify exposed secrets:

Read the full file on GitHub · 437 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 437 lines · 130 tokens per session scan A 8a7e46ea6151

Subscribe to this mod's changes

secrets-gitleaks is a skill published in the GitHub repository JoaoEquer/Oficina (2 stars, last pushed 5d ago), licensed MIT. It adds 130 tokens to every session and 3,610 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

secrets-gitleaks

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…

AgentSecOps/SecOpsAgentKit · 130 tokens

secrets-gitleaks

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…

rohunj/claude-build-workflow · 130 tokens

implementing-secret-scanning-with-gitleaks

This skill covers implementing Gitleaks for detecting and preventing hardcoded secrets in git repositories. It addresses configuring pre-commit hooks, CI/CD pipeline integration, custom rule authoring for organization-specific secrets, baseline management for existing repositories, and remediation workflows for…

xalgorix/xalgorix · 63 tokens

implementing-secret-scanning-with-gitleaks

This skill covers implementing Gitleaks for detecting and preventing hardcoded secrets in git repositories. It addresses configuring pre-commit hooks, CI/CD pipeline integration, custom rule authoring for organization-specific secrets, baseline management for existing repositories, and remediation workflows for…

KunanonJ/ai-skills-hub · 63 tokens

aih-betterdoc

Create, edit, and review ai-harness public documentation with BetterDoc's claim-first, evidence-aware workflow. Use for README and website copy, quickstarts, reference docs, architecture and ADRs, security and assurance docs, runbooks, migration guides, changelogs, release notes, PR summaries, or any other public…

samartomar/ai-harness · 113 tokens

aih-bugbounty

Scan open PRs and generated ECC/agent artifacts for high-coverage review risks before they are accepted. Use when a PR adds or changes agent bootloaders, Codex or Claude skills, MCP config, generated workflow commands, auto-learning instincts, repository review runbooks, or multi-agent review configuration; also use…

samartomar/ai-harness · 84 tokens