get-env-var — Claude Code skill for Infisical secrets
get-env-var is a Claude Code skill that loads Infisical secrets into the shell environment or runs a command with project secrets. It lets scripts access a token or API key.
LicenseRef-Proprietary ★ 7,523 updated 2026-10-29
npx skills add Devin-AXIS/iPolloWork --skill get-env-var -a claude-codeWhat get-env-var does
This skill fetches a secret from the team's Infisical workspace for use by a later shell command. You can assign one secret to an environment variable, or run a process with project secrets using infisical run -- <command>. Run the commands from the repository root.
The CLI needs an authenticated session through infisical login, or INFISICAL_TOKEN for non-interactive use. This repository selects dev when no environment is supplied; use --env <slug> to choose another one and --path /some/folder for secrets stored in a folder. Secret values must stay out of files and logs, so the agent should never print them.
What it helps with
- load a missing token into the shell environment
- run one command with Infisical secrets
- select an environment or folder for a secret
- check CLI access to Infisical secrets
Example prompts for the agent
- Load
BLOB_READ_WRITE_TOKENfrom Infisical into the shell environment. - Run this command with the project's Infisical secrets available to it.
- Fetch
API_KEYfrom thedevenvironment for the next command.
How to install get-env-var
1Skills CLI (Vercel)
npx skills add Devin-AXIS/iPolloWork --skill get-env-var -a claude-code2Manually: put the files in place
~/.claude/skills/get-env-var/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/get-env-var/
1Skills CLI (Vercel)
npx skills add Devin-AXIS/iPolloWork --skill get-env-var -a codex2Manually: put the files in place
.agents/skills/get-env-var/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add Devin-AXIS/iPolloWork --skill get-env-var -a cursor2Manually: put the files in place
.cursor/skills/get-env-var/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Devin-AXIS/iPolloWork .opencode/skills/get-env-var2Manually: put the files in place
.github/skills/get-env-var/SKILL.md1Skills CLI (Vercel)
npx skills add Devin-AXIS/iPolloWork --skill get-env-var -a gemini-cli2Platform CLI
gemini skills install https://github.com/Devin-AXIS/iPolloWork --path .opencode/skills/get-env-varManually: put the files in place
.devin/skills/get-env-var/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about get-env-var
How do I install get-env-var in Claude Code?
Run npx skills add Devin-AXIS/iPolloWork --skill get-env-var -a claude-code. The skill file is located at ~/.claude/skills/get-env-var/SKILL.md.
What does get-env-var do?
It retrieves secrets from Infisical for shell commands, either by setting an environment variable or running a process with project secrets. Secret values should not be written to files or logs.
What does get-env-var need to use Infisical?
The CLI needs an authenticated session, which you can establish with infisical login and the browser flow. For non-interactive runs, set INFISICAL_TOKEN; this repository defaults to the dev environment.