sickn33/antigravity-awesome-skills/varlock
- community
Checking that the SKILL.md file is still in the repository.
Secure-by-default environment variable management for Claude Code sessions.
Install
npx vskill@latest install sickn33/antigravity-awesome-skills/varlockSKILL.md
Varlock Security Skill
Secure-by-default environment variable management for Claude Code sessions.
Repository: https://github.com/dmno-dev/varlockDocumentation: https://varlock.dev
When to Use
- You need to work with environment variables or secrets in a Claude Code session without exposing their values.
- The task involves validating, loading, or auditing secrets while keeping them out of logs, diffs, and assistant context.
- You want a secure-by-default workflow built around Varlock instead of direct
.envinspection.
Core Principle: Secrets Never Exposed
When working with Claude, secrets must NEVER appear in:
- Terminal output
- Claude's input/output context
- Log files or traces
- Git commits or diffs
- Error messages
This workflow reduces exposure only when sensitivity annotations and the invoked programs are correct; it cannot guarantee that child processes, errors or rendered application output never disclose secrets.
CRITICAL: Security Rules for Claude
Rule 1: Never Echo Secrets
Rule 2: Never Read .env Directly
Rule 3: Use Varlock for Validation
Rule 4: Never Include Secrets in Commands
Quick Start
Installation
Initialize Project
Schema File: .env.schema
The schema defines types, validation, and sensitivity for each variable.
Basic Structure
Security Annotations
| Annotation | Effect | Use For | |
|---|---|---|---|
@sensitive | Redacted in all output | API keys, passwords, tokens | |
@sensitive=false | Shown in logs | Public keys, non-secret config | |
@defaultSensitive=true | All vars sensitive by default | High-security projects |
Type Annotations
| Type | Validates | Example | |
|---|---|---|---|
string | Any string | @type=string | |
string(startsWith=X) | Prefix validation | @type=string(startsWith=sk_) | |
string(contains=X) | Substring validation | @type=string(contains=+clerk_test) | |
url | Valid URL | @type=url | |
port | 1-65535 | @type=port | |
boolean | true/false | @type=boolean | |
enum(a,b,c) | One of values | @type=enum(dev,prod) |
A schema may contain default values or executable expressions and is not automatically safe to print. Inspect metadata through a redacting workflow before exposing file contents. varlock load does not export variables into the parent shell: use varlock run -- npm run build when the build needs them. Validate actual CLI syntax against the pinned version; the rotation helper and external skill paths below are examples, not bundled files. Installer output in a Docker build is not a human review gate: pin and review the installer before the build.
Safe Commands for Claude
Validating Environment
Running Commands with Secrets
Checking Schema (Safe)
Common Patterns
Pattern 1: Validate Before Operations
Pattern 2: Safe Secret Rotation
Pattern 3: CI/CD Integration
Pattern 4: Docker Integration
Handling Secret-Related Tasks
When User Asks to "Check if API key is set"
When User Asks to "Debug authentication"
When User Asks to "Update a secret"
When User Asks to "Show me the .env file"
External Secret Sources
1Password Integration
AWS Secrets Manager
Environment-Specific Values
Troubleshooting
"varlock: command not found"
"Schema validation failed"
"Sensitive value exposed in logs"
npm Scripts
Add these to your package.json:
Security Checklist for New Projects
- [ ] Install Varlock CLI
- [ ] Create
.env.schemawith all variables defined - [ ] Mark all secrets with
@sensitiveannotation - [ ] Add
@defaultSensitive=trueto schema header - [ ] Add
.envto.gitignore - [ ] Commit
.env.schemato version control - [ ] Add
npm run env:validateto CI/CD - [ ] Document secret rotation procedure
- [ ] Never use
cat .envorecho $SECRETin Claude sessions
Quick Reference Card
| Task | Safe Command | ||
|---|---|---|---|
| Validate all env vars | varlock load | ||
| Quiet validation | varlock load --quiet | ||
| Run with env | varlock run -- <cmd> | ||
| View schema | cat .env.schema | ||
| Check specific var | `varlock load \ | grep VAR_NAME` |
| Never Do | Why | ||
|---|---|---|---|
cat .env | Exposes all secrets | ||
echo $SECRET | Exposes to Claude context | ||
| `printenv \ | grep` | Exposes matching secrets | |
| Read .env with tools | Secrets in Claude's context | ||
| Hardcode in commands | In shell history |
Integration with Other Skills
Clerk Skill
- Test user passwords are
@sensitive - Test emails are
@sensitive=false(contain +clerk_test, not secret) - See:
~/.claude/skills/clerk/SKILL.md
Docker Skill
- Mount
.envfile, never copy secrets to image - Use
varlock runas entrypoint - See:
~/.claude/skills/docker/SKILL.md
Last updated: December 22, 2025 Secure-by-default environment management for Claude Code
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/varlock/SKILL.md
Popularity
- Repository stars
- 22,874
- Repository forks
- 3,943
- Repository npm downloads, 7 days
- 11,772
- 7-day trend score
- 72
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 19 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sickn33/antigravity-awesome-skills/varlock)