# get-env-var

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 7523 repo stars
- Author: Devin-AXIS
- License: LicenseRef-Proprietary · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Devin-AXIS/iPolloWork/tree/HEAD/.opencode/skills/get-env-var/SKILL.md
- Updated: 2026-10-29
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/get-env-var

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add Devin-AXIS/iPolloWork --skill get-env-var -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/get-env-var/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/get-env-var/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add Devin-AXIS/iPolloWork --skill get-env-var -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/get-env-var/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add Devin-AXIS/iPolloWork --skill get-env-var -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/get-env-var/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install Devin-AXIS/iPolloWork .opencode/skills/get-env-var
```

2. **Manually: put the files in place**
- File: `.github/skills/get-env-var/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add Devin-AXIS/iPolloWork --skill get-env-var -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/Devin-AXIS/iPolloWork --path .opencode/skills/get-env-var
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/get-env-var/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/Devin-AXIS/iPolloWork/tree/HEAD/.opencode/skills/get-env-var/SKILL.md

## When to use it
- 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
- Load `BLOB_READ_WRITE_TOKEN` from Infisical into the shell environment.
- Run this command with the project's Infisical secrets available to it.
- Fetch `API_KEY` from the `dev` environment for the next command.

## Similar
- [env-and-assets-bootstrap](https://affpapa.org/en/nevibecode/skills/env-and-assets-bootstrap.md) — skill · 502200 installs
- [convex-env](https://affpapa.org/en/nevibecode/skills/convex-env.md) — skill · 44000 installs
- [orca-per-workspace-env](https://affpapa.org/en/nevibecode/skills/orca-per-workspace-env.md) — skill · 12600 installs
- [om-prepare-test-env](https://affpapa.org/en/nevibecode/skills/om-prepare-test-env.md) — skill · 3900 installs
- [platform-docs-get](https://affpapa.org/en/nevibecode/skills/platform-docs-get.md) — skill · 6900 installs
- [platform-metadata-api-context-get](https://affpapa.org/en/nevibecode/skills/platform-metadata-api-context-get.md) — skill · 6200 installs

From the same set: [devin-axis/ipollowork](https://affpapa.org/en/nevibecode/by/devin-axis/ipollowork.md) — 42 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
