git-safety

Community

Secure your code, prevent Git blunders.

Authormountaintop1
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Accidentally committing sensitive data, large files, or pushing to the wrong branch can lead to severe security vulnerabilities, repository bloat, and broken deployments. This skill acts as your vigilant guardian, automatically performing comprehensive safety checks before critical Git operations to prevent these common and costly mistakes.

Core Features & Use Cases

  • Secrets Detection: Scans staged changes for API keys, passwords, tokens, and other sensitive credentials, stopping commits before exposure.
  • Large File Prevention: Warns or blocks commits of excessively large files, suggesting Git LFS to maintain a lean repository.
  • Protected Branch Safeguards: Alerts and requires explicit confirmation before pushing to critical branches like main or production, preventing accidental history rewrites.
  • Use Case: Before you commit, this skill automatically scans your changes. If it detects a .env file or a hardcoded API key, it will immediately stop the commit and warn you, providing actionable advice to prevent a security incident.

Quick Start

Check my current git changes for any secrets or large files.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: git-safety
Download link: https://github.com/mountaintop1/myclaude/archive/main.zip#git-safety

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.