secret-handling

Block commits and redact credentials when inspecting repository files.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/sachinnair90/gitgloss --skill secret-handling-sachinnair90
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secret-handling
Source: https://github.com/sachinnair90/gitgloss/tree/main/.copilot/skills/secret-handling
Command: npx skills add https://github.com/sachinnair90/gitgloss --skill secret-handling-sachinnair90

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents accidental exposure of live credentials during repository analysis and commit preparation, especially when agents can read sensitive environment files.

Core Features & Use Cases

  • Safe file access: Avoids reading .env and similar secret-bearing files while still allowing safe schema sources like example or template env files.
  • Secure documentation: Replaces real credentials with placeholders and redacted references when writing notes, decisions, or logs.
  • Commit protection: Scans staged changes for secret patterns and blocks commits if passwords, keys, tokens, or private data are detected.

Quick Start

Use this skill to review the repository for secret-handling risks and write a safe summary of the required environment variables without exposing any live credentials.

Frequently Asked Questions about secret-handling

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

FAQPage Schema
How do I keep secrets out of git history when committing environment files?

To keep secrets out of git history, this Skill scans staged content for credential patterns and blocks commits if passwords, keys, or tokens are detected. It enforces strict avoidance of .env files and replaces real credentials with placeholders in documentation.

How does credential redaction work when documenting repository findings?

Credential redaction works by replacing live secrets with placeholders and redacted references when writing notes, decisions, or logs. This prevents accidental exposure of credentials from environment files while still allowing you to document required environment variables safely.

Can I use template environment files without exposing live secrets during repository analysis?

Yes, you can use template environment files safely. The Skill enforces strict avoidance of live .env files while allowing access to safe schema sources like example or template env files for reviewing environment variable requirements without exposing credentials.

What is the best way to block commits containing secrets in collaborative Git projects?

The best way to block commits containing secrets is to scan staged changes for credential patterns before output. This Skill blocks commits when staged content matches passwords, keys, tokens, or private data, ensuring commit safety in collaborative Git projects.

Why should I use placeholder-based documentation for environment variables instead of real values?

You should use placeholder-based documentation because agents reading configuration files can accidentally expose live credentials. Replacing real values with placeholders ensures secure documentation of findings and required environment variables without leaking sensitive data into committed notes.

What happens if staged changes match credential patterns during commit preparation?

If staged changes match credential patterns during commit preparation, the commit is blocked entirely. The Skill detects passwords, keys, tokens, and private data in staged content to enforce strict commit safety and prevent secret exposure in git history.