One-click install
npx skills add https://github.com/elbruno/md-to-slides --skill secret-handling-elbruno
Or copy as Structured Prompt for Agentβ–Ό
Please help me install this Agent Skill.
Skill: secret-handling
Source: https://github.com/elbruno/md-to-slides/tree/main/.copilot/skills/secret-handling
Command: npx skills add https://github.com/elbruno/md-to-slides --skill secret-handling-elbruno

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents AI agents from reading sensitive credential files and from writing secrets into committed .squad/ artifacts that can be pushed to remote git history.

Core Features & Use Cases

  • Prohibits live secret file reads: blocks reading .env* files except explicitly safe templates like .env.example or .env.sample.
  • Prohibits secret writes to .squad/: blocks committing content matching common secret patterns (API keys, passwords, connection strings, JWTs, private keys, cloud credentials, and email-like PII).
  • Fails loud with pre-commit validation: requires a staged-files scan before git commit, stops commits on detection, removes offending files from staging, and reports the exact detected pattern.
  • Remediates discovered leaks safely: instructs immediate alerting, credential rotation, and history cleanup without attempting automatic fixes.

Quick Start

Use the secret-handling skill to ensure any AI-generated .squad/ decisions and logs never include credentials from .env by relying on .env.example and enforcing a blocking pre-commit scan.

Frequently Asked Questions about secret-handling

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

FAQPage Schema
How do I prevent AI agents from committing credentials into git history?β–Ό

To prevent credential leakage into git history, a pre-commit validation mechanism scans staged `.squad/` files for secret patterns and blocks the commit. This skill enforces that by removing offending files from staging and reporting the exact detected pattern.

How does pre-commit secret scanning work for `.env` files?β–Ό

Pre-commit secret scanning blocks AI agents from reading sensitive `.env*` files except explicitly allowlisted templates like `.env.example`. It applies regex-based staged-content scanning to prevent writing API keys, passwords, and private keys into auto-committed artifacts.

Can I use automated commit blocking to stop PII and API key exposure?β–Ό

Yes, automated commit blocking stops PII and API key exposure by applying fail-loud validation with clear user reporting. It detects common secret patterns, cloud credentials, and email-like PII in staged content before they reach remote history.

What is the best way to handle discovered credential leaks in repository history?β–Ό

The best way to handle discovered credential leaks is immediate alerting, credential rotation, and history cleanup. This skill instructs safe remediation for discovered leaks without attempting automatic fixes to ensure sensitive data is properly invalidated.

Why does my AI agent read `.env` files during spawned-agent workflows?β–Ό

AI agents read `.env` files during spawned-agent workflows because repository-wide read access can expose live credentials. This skill prohibits live secret file reads and requires explicit allowlisted config templates to prevent unintended credential disclosure.