Official agent skill

Detecting Secrets

by bitwarden in bitwarden/ai-plugins

This skill should be used when the user asks to "find hardcoded secrets", "audit for credential leaks", "check for API keys in code", "review secret scanning alerts", "rotate a leaked secret", or…

OfficialCustom licenceAuto-check: notesDevOps & Cloud

Install Detecting Secrets

skills CLI
$ npx skills add bitwarden/ai-plugins --skill detecting-secrets -a claude-code

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

GitHub CLI
$ gh skill install bitwarden/ai-plugins detecting-secrets --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/bitwarden/ai-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/bitwarden-security-engineer/skills/detecting-secrets .claude/skills/detecting-secrets && 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
detecting-secrets
GitHub stars
154
Token cost
~2.1k tokens
SKILL.md length
661 words
Files
1
Skills in repo
33
Repo updated
First seen
Licence
Custom licence

At a glance

This skill should be used when the user asks to "find hardcoded secrets", "audit for credential leaks", "check for API keys in code", "review secret scanning alerts", "rotate a leaked secret", or…

  • Works in 4 steps: Rotate Immediately → Remove from Code → Remove from Git History (If Needed) → …
  • Asks to find hardcoded secrets
  • SKILL.md covers Secret Patterns, Context-Aware Detection, Common Hiding Spots and GitHub Secret Scanning…, plus 3 more sections
  • Calls gh and git

What it does

Detecting Secrets is an agent skill from bitwarden/ai-plugins, published by the product's own GitHub organization. This skill should be used when the user asks to "find hardcoded secrets", "audit for credential leaks", "check for API keys in code", "review secret scanning alerts", "rotate a leaked secret", or needs to detect hardcoded credentials, review secret handling patterns, or remediate exposed secrets.

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in DevOps & Cloud, covering Secrets management. The repository describes itself as: AI plugin marketplace.

When your agent uses it

  • Asks to find hardcoded secrets
  • Audit for credential leaks
  • Check for API keys in code
  • Review secret scanning alerts

Example prompts

  • “find hardcoded secrets”
  • “audit for credential leaks”
  • “check for API keys in code”
  • “/detecting-secrets”

Requirements

  • Docker

Workflow steps

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

  1. Rotate Immediately
  2. Remove from Code
  3. Remove from Git History (If Needed)
  4. Prevent Recurrence

What it can do on your machine

Read from SKILL.md and the folder at commit 0047fdf. 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:

    • gh
    • git

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

  • Network

    No URLs in SKILL.md. Its commands use gh and git, which can reach the network depending on how they are called.

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

  • Credentials

    Names no API keys, tokens, secrets or passwords.

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

Context cost

Detecting Secrets loads about 2.1k tokens when it runs. Until then it costs about 79 tokens; SKILL.md has 661 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~79
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k

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: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:76
    | `.env` / `.env.local`                               | Environment variable definitions with real values          |
  • NoteMentions a .env fileSKILL.md:143
    r files that should never be committed (`.env`, `*.pfx`, `appsettings.Development.json`)
  • NoteMentions a .env fileSKILL.md:159
    local development, use user-secrets or `.env` files that are `.gitignore`d — never commit them.

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 661 words (~2,096 tokens).

“Look for these categories of hardcoded secrets in code:”

— opening of SKILL.md by bitwarden, Custom licence
name
detecting-secrets

Read the full SKILL.md on GitHub

Files

Just SKILL.md in plugins/bitwarden-security-engineer/skills/detecting-secrets of bitwarden/ai-plugins.

Open the folder on GitHubat commit 0047fdf

Compare with similar skills

Detecting Secrets 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.

Detecting Secrets compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Detecting Secrets this skillbitwarden/ai-plugins154—~2.1kAutomated safety check: NotesCustom licence
Iron Proxy Gateway for NanoClawnanocoai/nanoclaw31k—~4.6kAutomated safety check: NotesMIT
LangBot Deployment Guidelangbot-app/LangBot18k—~1.2kAutomated safety check: NotesApache-2.0
Env Var Conventionssgl-project/sglang37k2 repos~2.9kAutomated safety check: PassApache-2.0
Mac Fleet Maintenancesteipete/agent-scripts7.3k—~4.8kAutomated safety check: PassMIT
Add Config Env Varbaserow/baserow6.1k—~1.1kAutomated safety check: PassCustom licence

Similar skills

  • Installs or refreshes Iron Proxy and its Iron Control web console for NanoClaw, with a local Docker setup, database, credentials and a human approval bridge.

    31k GitHub stars~4.6k tokensUpdated yesterday
    DevOps & CloudAuto-check: notes
  • LangBot Deployment Guide

    langbot-app/LangBot

    Deploys and configures a LangBot instance with Docker Compose or Kubernetes, covering config.yaml, the Box sandbox runtime, the plugin runtime and the global API key.

    18k GitHub stars~1.2k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Env Var Conventions

    sgl-project/sglang

    Conventions for SGLang environment variables — where to define, how to access, how to name, and how to deprecate.

    37k GitHub starsUsed in 2 repos~2.9k tokens
    DevOps & CloudAuto-check passed
  • Mac Fleet Maintenance

    steipete/agent-scripts

    Inventories and maintains a fleet of Macs from a desired-state file: package updates, repo and Xcode sync, and disk, backup and security health reports.

    7.3k GitHub stars~4.8k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed
  • Add Config Env Var

    baserow/baserow

    Add a Baserow configuration environment variable for the backend, frontend, or both, and propagate it through settings, Nuxt runtime config, Docker Compose, documentation, consumers, and tests as…

    6.1k GitHub stars~1.1k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Edgeone Makers CLI

    TencentEdgeOne/edgeone-makers-tools

    EdgeOne Makers CLI command reference. An agent skill from TencentEdgeOne/edgeone-makers-tools.

    1.9k GitHub starsUsed in 1 repo~739 tokens
    DevOps & CloudAuto-check: notes

More from bitwarden/ai-plugins

All 33 skills in this repo
  • Reviewing Claude Config

    bitwarden/ai-plugins

    Official

    Reviews Claude configuration files for security, structure, and prompt engineering quality.

    154 GitHub stars~4.2k tokensUpdated today
    Auto-check passed
  • Managing Workflow Secrets

    bitwarden/ai-plugins

    Official

    Bitwarden's canonical pattern for using a secret inside a GitHub Actions job: authenticate to Azure with the OIDC triad, pull the secret from an Azure Key Vault via the bitwarden/gh-actions…

    154 GitHub stars~4k tokensUpdated today
    Auto-check passed
  • Official

    This skill should be used when the user asks to "review the security architecture", "check authentication patterns", "evaluate trust boundaries", "review encryption implementation", "assess…

    154 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Official

    Audits an external (third-party) Claude Code plugin pinned in this marketplace for security risk before it is vendored, and writes the report to a file for downstream posting.

    154 GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Action Audit

    bitwarden/ai-plugins

    Official

    Audit GitHub Actions action usage across an org. An agent skill from bitwarden/ai-plugins.

    154 GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Action Remediate

    bitwarden/ai-plugins

    Official

    Remediate GitHub Actions action findings identified by the action-audit skill.

    154 GitHub stars~1.1k tokensUpdated today
    Auto-check passed

Categories

Questions about Detecting Secrets

What does Detecting Secrets do?

This skill should be used when the user asks to "find hardcoded secrets", "audit for credential leaks", "check for API keys in code", "review secret scanning alerts", "rotate a leaked secret", or…. Detecting Secrets is an agent skill from bitwarden/ai-plugins, published by the product's own GitHub organization. This skill should be used when the user asks to "find hardcoded secrets", "audit for credential leaks", "check for API keys in code", "review secret scanning alerts", "rotate a leaked secret", or needs to detect hardcoded credentials, review secret handling patterns, or remediate exposed secrets.

When should I use Detecting Secrets?

Detecting Secrets fits situations like: asks to find hardcoded secrets; audit for credential leaks; check for API keys in code; review secret scanning alerts.

How do I install Detecting Secrets in Claude Code?

Run `npx skills add bitwarden/ai-plugins --skill detecting-secrets -a claude-code`. Or copy the skill folder (plugins/bitwarden-security-engineer/skills/detecting-secrets in bitwarden/ai-plugins) into .claude/skills/detecting-secrets in your project. Claude Code loads it when a task matches its description.

How do I install Detecting Secrets in Codex?

Run `npx skills add bitwarden/ai-plugins --skill detecting-secrets -a codex`. Or copy the skill folder (plugins/bitwarden-security-engineer/skills/detecting-secrets in bitwarden/ai-plugins) into .agents/skills/detecting-secrets in your project. Codex loads it when a task matches its description.

Can I use Detecting Secrets 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 bitwarden/ai-plugins --skill detecting-secrets -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/detecting-secrets, .gemini/skills/detecting-secrets, .github/skills/detecting-secrets and .opencode/skills/detecting-secrets in your project.

What does Detecting Secrets need to run?

Going by SKILL.md and its folder, Detecting Secrets needs the command-line tools its instructions call (gh and git). Our summary lists: Docker.

Does Detecting Secrets access the network?

SKILL.md contains no URLs. Its commands use gh and git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Detecting Secrets safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Detecting Secrets use?

Detecting Secrets 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 Detecting Secrets use?

About 2.1k tokens (SKILL.md is roughly 8.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Detecting Secrets?

Skills that share tags, products or a category with Detecting Secrets: Iron Proxy Gateway for NanoClaw (nanocoai/nanoclaw, 31k stars), LangBot Deployment Guide (langbot-app/LangBot, 18k stars), Env Var Conventions (sgl-project/sglang, 37k stars) and Mac Fleet Maintenance (steipete/agent-scripts, 7.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Detecting Secrets?

bitwarden (a GitHub organization, an official publisher) maintains it in bitwarden/ai-plugins, which has 154 GitHub stars. The repository holds 33 skills in this directory. The repository was last updated on October 6, 2026.

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