secret-handling

Prevents agents from reading live credentials and blocks committing secrets.

66|41|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/olivomarco/vbd-copilot --skill secret-handling-olivomarco
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secret-handling
Source: https://github.com/olivomarco/vbd-copilot/tree/main/.copilot/skills/secret-handling
Command: npx skills add https://github.com/olivomarco/vbd-copilot --skill secret-handling-olivomarco

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents automated agents from reading live credentials and prevents writing secrets to committed files, reducing credential leakage risk.

Core Features & Use Cases

  • Prohibits reading sensitive files such as .env, .env.local, and other live credentials
  • Provides safe alternatives like using .env.example for schema and prompts for secrets instead of direct reads
  • Integrates with pre-commit validation to scan staged changes for secrets and block commits containing credentials

Quick Start

Configure your agents to read from .env.example and prompt for secrets instead of reading 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 prevent environment variables and secrets from leaking into git commits?

To prevent secret leakage into git commits, use pre-commit validation to scan staged changes for credentials and configure agents to read from .env.example files instead of live environment files.

What is the best way to stop automated agents from reading live credentials?

The best way to stop agents from reading live credentials is to prohibit access to .env files and prompt for secrets directly, ensuring agents only read .env.example for the required schema.

How does pre-commit secret scanning work for credential security?

Pre-commit secret scanning works by checking staged changes before they are finalized, automatically blocking git commits that contain exposed credentials to maintain safe practices and prevent leakage.

Can I use .env.example files to share schema without exposing credentials in repository automation?

Yes, you can use .env.example files to share the environment variable schema safely, allowing team collaboration without exposing live credentials during repository automation workflows.

Why should I redact secrets when generating logs and decisions?

You should redact secrets to ensure access control and safe handling, preventing credential leakage when automated agents generate decisions and logs that might otherwise expose sensitive data.