env-security

Scan codebases for secrets and generate .env.example scaffolds with dummy values.

Updated Jan 21, 2026
One-click install
npx skills add https://github.com/lshtram/core_dev --skill env-security
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: env-security
Source: https://github.com/lshtram/core_dev/tree/main/.agent/skills/env-security
Command: npx skills add https://github.com/lshtram/core_dev --skill env-security

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Secret hygiene and monitoring across code and deployments to prevent leakage of credentials and improve error observability.

Core Features & Use Cases

  • Secret hygiene: Scan for secrets in code/config, enforce .env safety, and maintain .env.example scaffolds.
  • Observability: Integrate standardized error handling patterns and ensure monitoring hooks (e.g., Sentry) are present in project scaffolds.
  • Use Case: When onboarding a new project, run the setup to guard secrets and set up basic monitoring to catch errors early.

Quick Start

Run the setup command to generate a .env.example with dummy values and verify that secret scanning and error monitoring hooks are configured.

Frequently Asked Questions about env-security

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

FAQPage Schema
How do I scan for environment secrets in my codebase before committing?

To scan for environment secrets before committing, the setup verifies secret scanning hooks are configured and generates a .env.example scaffold with dummy values. This prevents credential leakage across code and config files during development.

How do I set up Sentry error monitoring hooks when scaffolding a new project?

To set up Sentry error monitoring hooks when scaffolding a new project, run the initialization setup. This ensures standardized error handling patterns and observability hooks are present in the project generator to catch production errors early.

What is the best way to maintain a .env.example file with dummy values?

The best way to maintain a .env.example file with dummy values is to use an automated scaffolding tool. This skill generates and updates the .env.example scaffold automatically, ensuring your environment variable documentation stays synchronized without exposing real secrets.

Can I integrate secret scanning into my CI/CD and deployment workflows?

Yes, you can integrate secret scanning into your CI/CD and deployment workflows. The skill applies secret hygiene across deployment pipelines by verifying that scanning hooks and error monitoring configurations are present before code reaches production environments.

Why do I need a .env.example scaffold if I already have a .env file?

You need a .env.example scaffold to document required environment variables without exposing actual production secrets. It provides a safe template with dummy values for onboarding, preventing accidental credential leakage while ensuring developers know which configurations are required.

Does this secret scanning approach work with existing production environments?

Yes, this secret scanning approach works with existing production environments by identifying and preventing secret leakage across codebases and live deployments. It verifies that monitoring hooks are properly configured to maintain observability and security hygiene.