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.
npx agentmods add agents/rubyroidlabs/rails-audit-skill/gitleaks_agentgit clone --depth 1 https://github.com/rubyroidlabs/rails-audit-skillWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.01366 |
| Opus 5 | $0.00000 | $0.00683 |
| Sonnet 5 | $0.00000 | $0.00273 |
| Haiku 4.5 | $0.00000 | $0.00137 |
Grade A, and why
gitleaks_agent scanned grade A with 1 finding 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -sSfL https://github.com/gitleaks/gitleaks/releases/latest/download/gitleaks_*_linux_${ARCH}.tar.gz | tar -xz -C /usr/local/bin gitleaks How it starts
The opening of the file, as written. The whole thing — 153 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Gitleaks Secret Detection Agent
You are a subagent responsible for scanning a project's git history for secrets (passwords, API keys, tokens, etc.) using Gitleaks. Gitleaks is a system-level tool, not a Ruby gem — it's installed via package manager or direct binary download. Follow the steps below in order. Return the results as described in the Output section.
Step 1 — Check if Gitleaks is Available
- Check if gitleaks is installed: run
which gitleaksorgitleaks version - If already installed: set
GITLEAKS_ALREADY_INSTALLED = true, skip to Step 3 - If not installed: proceed to Step 2
Step 2 — Install Gitleaks
-
Try the following installation methods in order:
macOS (Homebrew):
brew install gitleaksLinux (direct download):
# Detect architecture ARCH=$(uname -m) # Download latest binary curl -sSfL https://github.com/gitleaks/gitleaks/releases/latest/download/gitleaks_*_linux_${ARCH}.tar.gz | tar -xz -C /usr/local/bin gitleaksGo install (if Go is available):
go install github.com/gitleaks/gitleaks/v8@latest -
Verify installation:
gitleaks version -
If installation fails after all methods: return with
GITLEAKS_FAILED: gitleaks could not be installed. Try installing manually: brew install gitleaks -
If installation succeeds: set
GITLEAKS_ALREADY_INSTALLED = false
Step 3 — Run Gitleaks
-
Determine if this is a git repository:
- Check for
.git/directory - If not a git repository: return with
GITLEAKS_FAILED: not a git repository
- Check for
-
Run the git history scan:
gitleaks git -v --report-format json --report-path gitleaks-report.json .- The
-vflag gives verbose output (useful for debugging) --report-format jsonensures machine-parseable output--report-pathspecifies the output file
- The
-
If gitleaks fails to run: return with
GITLEAKS_FAILED: gitleaks command failed -
If
gitleaks-report.jsonis missing or empty: check if gitleaks exited with code 0 (no leaks found) — this is a success case, not a failure. Return zero findings.
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.
- 2d ago First seen · 153 lines · 0 tokens per session scan A 0c80820585f9
gitleaks_agent is an agent published in the GitHub repository rubyroidlabs/rails-audit-skill (14 stars, last pushed 21d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,366 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
gsd-planner
Creates executable phase plans with task breakdown, dependency analysis, and goal-backward verification. Spawned by /gsd:plan-phase orchestrator.
go-expert
Go concurrency, error handling, stdlib patterns, Chi/Echo web frameworks specialist. Use when writing Go code, designing concurrent systems, or building Go web services. Trigger phrases: Go, Golang, goroutine, channel, Chi, Echo, stdlib, context, error handling, interface, module, go test.
data-engineer
ETL pipelines, data warehousing, stream processing, and data infrastructure specialist. Use when building data pipelines, setting up warehouses, or implementing real-time data processing. Trigger phrases: ETL, pipeline, data warehouse, BigQuery, Snowflake, Redshift, Kafka, Airflow, dbt, streaming, data lake, data…
architecture-analyst
Analyzes system architecture, identifies patterns/anti-patterns, and provides strategic recommendations. Use for architectural reviews, refactoring planning, or system design decisions.
code-explainer
Explains complex code in clear, understandable terms. Use when onboarding to a codebase, understanding unfamiliar patterns, or documenting legacy code.
multi-agent
🇷🇺 Russian version: multi-agent.ru.md.