Skip to content
Back to skills

Secure Development

ASecurity

Enforces strict 'Zero-Leak' security practices, including secret management, gitignore rules, and environment variable protocols. Use when starting new projects or rigorously auditing existing ones.

  • 42 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added June 12, 2026
developmentgogitapifrontendbackendsecurity

Works with

  • cli
  • api

Security analysis

A100/100

Scanned June 12, 2026

npx -y skills add jchavezar/vertex-ai-samples --skill secure-development --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Secure Development?

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

Security grade badge for Secure Development
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jchavezar-secure-development/badge)](https://www.skillsdirectory.com/skills/jchavezar-secure-development)

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: secure-development
description: Enforces strict 'Zero-Leak' security practices, including secret management, gitignore rules, and environment variable protocols. Use when starting new projects or rigorously auditing existing ones.
---

# Secure Development & Zero-Leak Protocol

## When to use this skill
- Starting ANY new project (backend, frontend, or tools).
- When the user mentions "Security", "Secrets", "API Keys", or "Leaks".
- Before deploying or committing code.

## Instructions

### 1. The Zero-Leak Policy
**NEVER** commit secrets, API keys, credentials, or `.env` files to git.
If a secret is committed, it is considered compromised and must be revoked immediately.

### 2. Global Exclusion Rules (.gitignore)
You MUST ensure the `.gitignore` file includes the following "Ironclad" section:
```gitignore
# Data & Secrets (MANDATORY)
.env
.env.*
!.env.example
*.pem
*.key
*.p12
*.pfx
client_secret*.json
credentials.json
*_token.json
```
**Exception**: `.env.example` must be tracked, but meaningful values must be empty.

### 3. Variable Management: The "Accumulate" Rule
- **Single Source of Truth**: The `.env` file is the source of truth for secrets.
- **Template Sync**: Every time you add a variable to `.env`, you **MUST** immediately add it to `.env.example` with an empty value.
- **Verification**: Run `diff <(grep -o '^[^=]*' .env | sort) <(grep -o '^[^=]*' .env.example | sort)` to ensure parity.

### 4. Code Scanning
- Generally avoid hardcoding keys (e.g., `AIza...`) in source code.
- Use `os.environ.get("KEY")` or `process.env.KEY` strictly.

### 5. Remediation (If a leak occurs)
1. **Revoke** the key at the provider immediately.
2. **Rotate** the key (generate new).
3. **Scrub** historical commits if necessary (git filter-repo).

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 development →

Comments

Loading comments…

Newsletter

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