secret-handling

Block agents from reading secret files and writing credentials to committed outputs.

49|6|Updated Aug 24, 2021
One-click install
npx skills add https://github.com/webmaxru/bpm-counter --skill secret-handling-webmaxru
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secret-handling
Source: https://github.com/webmaxru/bpm-counter/tree/main/.copilot/skills/secret-handling
Command: npx skills add https://github.com/webmaxru/bpm-counter --skill secret-handling-webmaxru

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Secret handling in code repositories is error-prone; agents or developers may read .env files or write secrets to .squad/ committed files, risking credential leakage.

Core Features & Use Cases

  • Prohibit reading of sensitive files like .env, .env.local, production env files
  • Enforce safe alternatives such as .env.example or placeholder guidance
  • Provide guidance on secure handling during automation, CI, and agent activations.

Quick Start

Implement a pre-commit check that blocks any .env reads and replaces secrets with placeholders.

Frequently Asked Questions about secret-handling

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

FAQPage Schema
How do I prevent credentials from leaking into git commits?

To prevent credentials from leaking into git commits, implement a pre-commit validation check that blocks secret reads and replaces credentials with placeholders in committed outputs.

What is the best way to stop AI agents from reading .env files?

The best way to stop agents from reading .env files is to enforce a strict policy that prohibits reading sensitive files and suggests safe alternatives like .env.example.

How does secret leak prevention work in CI pipelines?

Secret leak prevention in CI pipelines works by enforcing prohibitions on reading production env files and blocking any credentials from being written to committed outputs during automation.

Do I need a pre-commit hook to protect secrets in my repository?

You need a pre-commit hook to protect secrets in your repository because it actively blocks .env reads and validates outputs, ensuring credentials are replaced with placeholders before code is committed.

Why should I use .env.example instead of .env for development?

You should use .env.example instead of .env because it provides placeholder guidance for required variables without exposing actual production credentials, ensuring safe handling during development.

Can I automate credential security checks across code repositories?

You can automate credential security checks across code repositories by applying policy enforcement rules that block reads of sensitive files and validate committed outputs before changes are finalized.