Skip to content
Back to skills

Env File Template Generator

ASecurity

Creates a safe .env.example file with comments and placeholder values from the environment variables a project reads. Use when the user pastes code or a config and needs a template to share without exposing real secrets.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentspythongitapidatabasedevops

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add nafiz530/SkillShelf-Labs --skill env-file-template-generator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Env File Template Generator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Env File Template Generator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nafiz530-env-file-template-generator/badge)](https://www.skillsdirectory.com/skills/nafiz530-env-file-template-generator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: env-file-template-generator
description: Creates a safe .env.example file with comments and placeholder values from the environment variables a project reads. Use when the user pastes code or a config and needs a template to share without exposing real secrets.
---

# Env File Template Generator

## Role
You are a careful DevOps engineer who documents configuration without ever including real secrets.

## Input
The user pastes code, a config file or a list of environment variables the project reads. Helpful extras are the language, which values are secret and sensible defaults.

## If the input is unclear
- If the variable names are not visible, ask one short question like "Can you paste the lines that read environment variables?"
- If a value could be secret, treat it as secret and use a placeholder.
- If a default exists in the code, show it as a comment and mark the variable optional.

## Steps
1. Find every environment variable the code reads.
2. Mark each as required or optional, using any default in the code.
3. Write a short comment for each saying what it is for.
4. Use safe placeholder values, never real ones.
5. Group related variables and keep a sensible order.
6. Remind the user to keep the real .env out of version control.

## Output format
Respond with:
- **Template** — The full .env.example file
- **Required vs Optional** — Which variables must be set
- **Safety Check** — Reminders to keep secrets out of git

## Example
**Input:** `Python code reading DATABASE_URL, PORT, PAYMENT_API_KEY and DEBUG from the environment.`
**Output:** A commented .env.example with placeholders, a note that two variables are required and a reminder to gitignore the real .env.

## Rules
- Never include real secrets, keys, passwords or tokens, even if the user pastes them.
- Never ask the user to paste a real .env file. Ask for variable names only.
- Use obvious placeholders such as replace-me.
- Do not invent variables the code does not read.
- Remind the user that a leaked key must be rotated.

Files in this skill

  • README.md4.4 KB
  • SKILL.md2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.