commit-security-review

Detect leaked credentials and block unsafe git commits at commit and merge time.

Updated May 19, 2026
One-click install
npx skills add https://github.com/zxc1a1a1/Multi_Agent-AgentHub --skill commit-security-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit-security-review
Source: https://github.com/zxc1a1a1/Multi_Agent-AgentHub/tree/main/.agents/skills/commit-security-review
Command: npx skills add https://github.com/zxc1a1a1/Multi_Agent-AgentHub --skill commit-security-review

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents accidental leakage of credentials, tokens, private keys, and unsafe networking information by enforcing deterministic commit-time and PR merge-time security checks.

Core Features & Use Cases

  • Commit message guardrails: Rejects forbidden terms (case-insensitive) in commit subject/body and trailers, ensuring messages remain audit-safe.
  • Sensitive data & credential leak scanning: Detects high- and medium-confidence secret patterns such as API keys, JWTs, passwords, PEM private keys, and common webhook formats.
  • High-risk file type enforcement: Blocks the addition of sensitive file types and credential artifacts like .env (non-example) and private key files.

Quick Start

Use the commit-security-review Skill to review a proposed commit and automatically determine whether it must be blocked due to forbidden message patterns, leaked secrets, or high-risk files.

Frequently Asked Questions about commit-security-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent credentials and API keys from leaking in git commits?

Secret scanning in git commits works by applying deterministic pattern matching to staged diffs and commit messages to detect high- and medium-confidence secret patterns like API keys, JWTs, and PEM private keys. It then applies hard failure semantics to block the commit.

Can I block high-risk file types like .env files from being committed?

Yes, you can block high-risk file types like .env files and private key artifacts from being committed by enforcing high-risk file type blocking at commit time. This applies hard failure semantics to prevent sensitive credential artifacts from landing in your repository.

What is the best way to enforce compliance checks on commit messages?

The best way to enforce compliance checks on commit messages is to use commit message guardrails that reject forbidden terms case-insensitently in the subject, body, and trailers. This ensures messages remain audit-safe before merging.

Does pre-commit secret scanning also detect internal IP addresses?

Yes, pre-commit secret scanning can detect internal IP and internal network addresses alongside credential leakage. It enforces deterministic checks across staged diffs, commit messages, and PR checks to prevent sensitive data exposure.

How do I set up a CI gate to block unsafe commits before merge?

You can set up a CI gate to block unsafe commits by enforcing PR merge-time security checks that scan for forbidden message patterns, leaked secrets, and high-risk files. This applies hard failure semantics to stop unsafe commits before they land.