varlock

Validate .env files against .env.schema and mask secrets during command execution.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/maxwalser001-del/shieldpilot --skill varlock-maxwalser001-del
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: varlock
Source: https://github.com/maxwalser001-del/shieldpilot/tree/main/.claude/skills/varlock
Command: npx skills add https://github.com/maxwalser001-del/shieldpilot --skill varlock-maxwalser001-del

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Secure environment variable management to ensure secrets never appear in terminal output, Claude context, logs, git commits, or error messages. It enforces .env.schema validation over direct .env access, reducing risk of accidental exposure during development and deployment.

Core Features & Use Cases

  • Environment secret masking: prevents leaking values across command outputs, logs, and prompts.
  • Schema-driven access: validates .env against .env.schema before use, blocking unvalidated secrets.
  • Safe execution workflow: recommends using varlock run wrappers to inject secrets without printing them or storing them in history.
  • Use Case: when handling API keys or tokens in automated tasks, varlock ensures they never appear in CLI traces.

Quick Start

Run varlock load to validate environment and then execute your command with secrets masked.

Frequently Asked Questions about varlock

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

FAQPage Schema
How do I prevent environment secrets from leaking in terminal output and logs during command execution?

To prevent environment secret leakage during command execution, use strict environment variable masking across terminal outputs, logs, and prompts. This ensures secrets like API keys never appear in CLI traces or error messages.

What is .env.schema validation and how does it secure dotenv files?

Env.schema validation secures dotenv files by validating variables against a defined schema before access. This schema-driven approach blocks unvalidated secrets from being loaded into the environment, reducing accidental exposure risks.

Can I use masked execution workflows for API keys in CI pipelines?

Yes, masked execution workflows support CI pipelines by injecting secrets without printing them or storing them in command history. This prevents sensitive credentials from appearing in automated task logs.

How do I ensure gitignore compliance when managing credentials in version control?

To ensure gitignore compliance when managing credentials in version control, enforce environment variable handling workflows that prevent secrets from entering git commits. This blocks unvalidated environment files from being tracked.

Does varlock work without external dependencies for environment variable handling?

Yes, varlock operates without external dependencies to handle environment variable security. It enforces standard workflows including .env.schema validation, masked execution, and gitignore compliance independently.