Skip to content
Skill

Secret scanning

Guide for configuring and managing GitHub secret scanning, push protection, custom patterns, and secret alert remediation

Install
Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
41.3K
Last commit
1 day ago
License
MIT
Listing updated
today

When your agent uses it

Guide for configuring and managing GitHub secret scanning, push protection, custom patterns, and secret alert remediation. For pre-commit secret scanning in AI coding agents via the GitHub MCP Server, this skill references the Advanced Security plugin (`advanced-security@copilot-plugins`). Use this skill when enabling secret scanning, setting up push protection, defining custom patterns, triaging alerts, resolving blocked pushes, or when an agent needs to scan code for secrets before committing.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 4 files (28 KB) on GitHub on 17 November 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Install

Copy the skill folder to ~/.claude/skills/secret-scanning to use it in all your projects:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/secret-scanning &&
cp -R "$tmp/skills/secret-scanning" ~/.claude/skills/secret-scanning &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/secret-scanning inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/secret-scanning to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/secret-scanning &&
cp -R "$tmp/skills/secret-scanning" ~/.agents/skills/secret-scanning &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/secret-scanning inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/secret-scanning to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/secret-scanning &&
cp -R "$tmp/skills/secret-scanning" ~/.cursor/skills/secret-scanning &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/secret-scanning inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/github/awesome-copilot.git --path skills/secret-scanning

Or copy the folder to ~/.gemini/skills/secret-scanning yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/secret-scanning:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/secret-scanning &&
cp -R "$tmp/skills/secret-scanning" ~/.copilot/skills/secret-scanning &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/secret-scanning inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/github/awesome-copilot.git

Then copy awesome-copilot/skills/secret-scanning into your agent's skills folder as secret-scanning. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

Secret scanning FAQ

How do I install Secret scanning in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/secret-scanning to use it in all your projects, or to .claude/skills/secret-scanning in one project.

Does Secret scanning run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Secret scanning?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Secret scanning?

The closest alternatives to Secret scanning are Tm7 threat model, Spring security, Threat model analyst, Security review and MCP implementation security review.

More from github/awesome-copilot

  1. Design or review infrastructure, deployment, CI/CD, Docker, Kubernetes, health checks, rollback, feature flags, production readiness, and mo

    • Open source
    • 41.3K GitHub stars
    • Cloud and infrastructure
  2. Stop coding agents from shipping generic UI

    • Open source
    • 41.3K GitHub stars
  3. Cross-references C# Web API controllers/DTOs against their TypeScript/JavaScript consumers (React, Angular, Vue, Svelte, Node.js, or hand-wr

    • Open source
    • 41.3K GitHub stars
  4. Serves as a reviewer of the codebase with instructions on looking for Apple App Store optimizations or rejection reasons.

    • Open source
    • 41.3K GitHub stars
  5. Triage and resolve Arch Linux issues with pacman, systemd, and rolling-release best practices.

    • Open source
    • 41.3K GitHub stars

Alternatives to Secret scanning

  1. Creates valid Microsoft Threat Modeling Tool (.tm7) files compatible with the Microsoft Threat Modeling Tool v7.3+

    • Open source
    • 41.3K GitHub stars
    • Security
  2. Configure, test and review Spring Security 6/7 in Spring Boot 3/4 apps: SecurityFilterChain lambda DSL, method security, OAuth2 resource ser

    • Open source
    • 41.3K GitHub stars
    • Security
  3. Full STRIDE-A threat model analysis and incremental update skill for repositories and systems

    • Open source
    • 41.3K GitHub stars
    • Security
  4. AI-powered codebase security scanner that reasons about code like a security researcher — tracing data flows, understanding component intera

    • Open source
    • 41.3K GitHub stars
    • Security
  5. Review the implementation source code of MCP (Model Context Protocol) servers, clients, and tool handlers against a security baseline — auth

    • Open source
    • 41.3K GitHub stars
    • Security
  6. Security hardening reviewer for GitHub Actions workflow files (.github/workflows/*.yml)

    • Open source
    • 41.3K GitHub stars
    • Developer tools