varlock
Secure environment variable management with Varlock for secrets, API keys, credentials, and sensitive configuration.
pinned to #348a435updated 2 weeks ago
Ask your AI client: “install plugins/varlock”.
Requires the metahub MCP server installed in your client. Set up MCP.
mh install plugins/varlockmetahub onboarded this repo on the author's behalf.
If you own github.com/wrsmith108/varlock-claude-skill on GitHub, claim the listing to take over publishing. Your claim preserves the existing eval history and badges; only the curator label is replaced with verified-publisher on your next publish.
Stars
28
Last commit
2 weeks ago
Latest release
published
- #claude-code
- #claude-code-skills
- #claude-skills
- #environment-variables
- #security
What's bundled
Items extracted from this plugin's manifest + directory tree.
Skills (1)
skills/varlockSecure environment variable management with Varlock. Use when handling secrets, API keys, credentials, or any sensitive configuration. Ensures secrets are never exposed in terminals, logs, traces, …
Evaluation report
WarningsAutomated checks the publisher passed at publish time — structure, docs, safety, and whether the artifact behaves as claimed.348a435· 2 weeks ago
Maintenance
3Recent activitywarn
last push 4 months ago — looks slowing down
Consumers prefer artifacts that are actively maintained (threshold: 90 days, configurable via EVAL_RECENCY_PASS_DAYS).
Tests detectedwarn
no test/tests/__tests__/spec/t/ dirs, no JVM src/test/, and no JS/TS/Python/Go/Ruby/Elixir test files
Add tests (even a smoke test). Consumers gauge maintenance quality by their presence.
CI configuration detectedwarn
no CI config found (looked for GitHub Actions, CircleCI, GitLab CI, etc.)
Add a simple workflow (lint + test on PR) — it tells consumers the artifact is built reproducibly.
Release history
1- releasecurrent348a435warn2 weeks ago
Contents
Secure-by-default environment variable management. Ensures secrets are never exposed in Claude sessions.
Why This Skill?
When working with Claude Code, secrets can accidentally leak into:
- Terminal output
- Claude's input/output context
- Log files or traces
- Git commits or diffs
This skill wraps Varlock to enforce secure patterns and prevent accidental exposure.
Installation
Option A: One-liner (Recommended)
mkdir -p ~/.claude/skills/varlock && curl -sSL https://raw.githubusercontent.com/wrsmith108/varlock-claude-skill/main/skills/varlock/SKILL.md -o ~/.claude/skills/varlock/SKILL.md
Option B: Manual
git clone https://github.com/wrsmith108/varlock-claude-skill /tmp/varlock-skill
cp -r /tmp/varlock-skill/skills/varlock ~/.claude/skills/
rm -rf /tmp/varlock-skill
Prerequisites
Install the Varlock CLI:
curl -sSfL https://varlock.dev/install.sh | sh -s -- --force-no-brew
export PATH="$HOME/.varlock/bin:$PATH"
Core Principle
Secrets must NEVER appear in Claude's context.
| Never Do | Safe Alternative |
|---|---|
cat .env | cat .env.schema |
echo $SECRET | varlock load |
printenv | grep API | varlock load | grep API |
Quick Reference
# Validate all secrets (shows masked values)
varlock load
# Quiet validation (no output on success)
varlock load --quiet
# Run command with secrets injected
varlock run -- npm start
# View schema (safe - no values)
cat .env.schema
Schema File
Create .env.schema to define variable types and sensitivity:
# Global defaults
# @defaultSensitive=true @defaultRequired=infer
# Public config
# @type=enum(development,staging,production) @sensitive=false
NODE_ENV=development
# Sensitive secrets
# @type=string(startsWith=sk_) @required @sensitive
STRIPE_SECRET_KEY=
# @type=url @required @sensitive
DATABASE_URL=
Annotations
| Annotation | Effect |
|---|---|
@sensitive | Value masked in all output |
@sensitive=false | Value shown (for public keys) |
@required | Must be present |
@type=string(startsWith=X) | Prefix validation |
Handling Secret Requests
When users ask Claude to:
- "Check if API key is set" →
varlock load | grep API_KEY - "Debug authentication" →
varlock load(validates all) - "Update a secret" → Decline; ask user to update manually
- "Show me .env" →
cat .env.schemainstead
Credits
This skill wraps Varlock by DMNO.
License
MIT
Reviews
No reviews yet. Be the first.
Related
claude-magic-compact
Lossless context compression for Claude Code.
explanatory-output-style
Adds educational insights about implementation choices and codebase patterns (mimics the deprecated Explanatory output style)
youtube-transcribe-skill
Extract subtitles/transcripts from YouTube videos via CLI or browser automation
mh install plugins/varlock