calopsys/baudrier/pull-env-vars
Claude Code and agent skill by calopsys/baudrier
- community
Checking that the SKILL.md file is still in the repository.
Internal helper to pull environment variables from Scaleway Secret Manager and return them as JSON or merge them into the local .env.local. Delegates to the bundled scripts/pull-env-vars.mjs. Used by skills that need to read current secret state - rotate-secret (verify before rotation), debug flows ("why is this var weird in prod"), disaster recovery (restore .env.local from Secret Manager). Not meant to be invoked directly by users.
Install
npx vskill@latest install calopsys/baudrier/pull-env-varsSKILL.md
The same SKILL.md was published earlier as calopsys/baudrier/pull-env-vars.
Pull Env Vars - Internal helper
Communication
- Detect the user's language from their messages and ALWAYS reply in that language (default: English). This applies to every user-facing message: questions, progress, confirmations, summaries, errors.
- Use plain, non-technical business language. Never expose internal script names (*.mjs) or jargon; describe actions in human terms.
- When generating user-facing content for the scaffolded project (UI labels, emails, copy), write it in the user's language too.
- Show progress as a short natural-language checklist (in-progress and done states).
Pull env vars FROM Scaleway Secret Manager for inspection or restoration. Delegates to a bundled Node script - never reimplement the pull logic inline.
Secret Manager holds one canonical value per key (CONTRACT.md §2 "Secret Manager naming": a secret's name IS the env var name, one Scaleway Project per app). There is no per-environment target on the read side - that concept lives on the write side (which container gets which value, see _push-env-vars), not on read-back.
Invocation
From the project root, call:
Flags
--keys=KEY1,KEY2,...- optional. Only fetch these secret names. If omitted, lists and pulls every secret in the project's Secret Manager.--write-to-local- optional. Merge the pulled values into.env.local(apps/web/.env.localin a Turborepo; preserves existing keys not in the pull, adds new ones, updates values for keys present in both).--json- optional. Output machine-readable JSON{KEY: value, ...}. Default is human-readable text suitable for relay to the user (without showing the values for sensitive keys, only key names + presence).
Output modes
Default (text, safe to relay):
With `--json` (full values, NOT to relay verbatim to chat):
⚠️ If you use `--json`, capture the output into a shell variable, process it, and NEVER relay it in plain text to the user. The JSON output is meant for programmatic use on the script side (for example: comparing a value before/after rotation, restoring a lost .env.local).
Rules
- Always use this helper (never call
scripts/scaleway/secrets.mjsinline for this purpose) so the merge logic and quoting are uniform. - Requires Scaleway operator credentials (
SCW_ACCESS_KEY/SCW_SECRET_KEY) - check with_check-deps'sscalewaycheck first if unsure. - The
--write-to-localmerge never deletes keys that are present in.env.localbut absent from the pull. Handle removals by hand if needed. - Keys requested via
--keysthat don't exist in Secret Manager are silently excluded from the output (noted on stderr only) - not a failure. - If the script fails, relay the error message - do not try to reimplement it.
Security
The pulled values are written only:
- To
.env.localif--write-to-local(this file is.gitignored by default) - To stdout as JSON if
--json(to be handled with care)
Never displayed in plain text on stderr or in the logs.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/_pull-env-vars/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
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/calopsys/baudrier/pull-env-vars)