# Variables

> Variables is an open-source agent skill for developer tools. Guides an agent to parameterize Postman requests across environments and vault secrets. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/postmanlabs/postman-plugin/tree/main/agent-plugin/skills/variables
- **Repository:** https://github.com/postmanlabs/postman-plugin
- **GitHub stars:** 49
- **License:** Apache-2.0
- **Skill name:** variables
- **Collection:** https://github.com/postmanlabs/postman-plugin
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill explains how to keep one reusable Postman collection working against several targets by moving target-specific values such as base URLs into environments and leaving stable literals alone. It covers how variable scopes resolve when the same name exists in more than one place, including iteration data, environments, collection variables and globals, and how to pick between scoped script accessors when chaining response values into later requests.

For credentials, it directs the agent to store secrets in the shared vault and commit only references in the environment file, marking them with the secret flag so they are not read as plain text. Secret values are meant to be entered by the user through the CLI's masked prompt rather than passed through the conversation or a command argument. Commands shown use the Postman CLI for creating environments, setting variables and creating secrets.

Verification is covered too: the skill recommends linting the saved environment at warning severity, then confirming vault resolution with an authenticated request rather than assuming lint results prove it works. Vault operations need a signed-in Postman CLI.

## When your agent uses it

> Use when parameterizing requests across environments, choosing variable scopes, chaining values in scripts, or referencing credentials without committing or exposing them. Keeps one reusable collection while separating target configuration from secret values. Use for requests such as "where should I put this API key".

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/postmanlabs/postman-plugin/tree/HEAD/agent-plugin/skills/variables)
- [License: Apache-2.0](https://github.com/postmanlabs/postman-plugin/tree/HEAD/agent-plugin/skills/variables)

## Features

- **Variable scope selection:** Explains which scope wins when the same key is defined in several places and when to use each scope.
- **Environment-based targeting:** Shows how to separate target configuration such as base URLs into environment files.
- **Runtime value chaining:** Covers passing values from one response into later requests using scoped script accessors.
- **Vault-backed secret references:** Describes storing credentials in the vault and committing only IDs rather than values.
- **Environment lint and verification:** Recommends linting saved environments and confirming secret resolution with an authenticated request.

## Good for

- Point a collection at staging and production without duplicating requests
- Decide where an API key should live in a Postman environment
- Chain a token from a login response into later requests
- Debug why a variable resolves to an unexpected value
- Store a shared credential in the vault without committing its value

## Install

### Claude Code

This skill ships in the `postman` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add postmanlabs/postman-plugin
/plugin install postman@postman
```

Or copy only this skill to `~/.claude/skills/variables`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/variables &&
cp -R "$tmp/agent-plugin/skills/variables" ~/.claude/skills/variables &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/variables` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/variables` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/variables &&
cp -R "$tmp/agent-plugin/skills/variables" ~/.agents/skills/variables &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/variables` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/variables` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/variables &&
cp -R "$tmp/agent-plugin/skills/variables" ~/.cursor/skills/variables &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/variables` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/postmanlabs/postman-plugin.git --path agent-plugin/skills/variables
```

Or copy the folder to `~/.gemini/skills/variables` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/variables`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/variables &&
cp -R "$tmp/agent-plugin/skills/variables" ~/.copilot/skills/variables &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/variables` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git
```

Then copy `postman-plugin/agent-plugin/skills/variables` into your agent's skills folder as `variables`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to work with secrets?

Vault operations require a signed-in Postman CLI. The user supplies secret values through the CLI's masked prompt.

### How is a variable marked as secret?

The skill says the app treats a variable as secret only when it has secret: true; type: secret alone is read as a plain variable.

### Does linting prove a secret resolves?

No. The skill states lint checks the saved artifact only, and resolution should be confirmed with an authenticated request.

### How do I install Variables in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/variables to use it in all your projects, or to .claude/skills/variables in one project. Or install the postman plugin, which includes it: /plugin marketplace add postmanlabs/postman-plugin, then /plugin install postman@postman.

### Does Variables run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Variables?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Variables?

The closest alternatives to Variables are Collection schema v3, Env vars, Workspaces, Postman collection generator and Ci integration.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Collection schema v3](https://ai-powered.com/skills/collection-schema-v3): Collection schema v3 is an open-source agent skill for developer tools.
- [Env vars](https://ai-powered.com/skills/env-vars): Env vars is an open-source agent skill for cloud and infrastructure.
- [Workspaces](https://ai-powered.com/skills/workspaces): Workspaces is an open-source agent skill for developer tools.
- [Postman collection generator](https://ai-powered.com/skills/postman-collection-generator): Postman collection generator is an open-source agent skill for developer tools.
- [Ci integration](https://ai-powered.com/skills/ci-integration): Ci integration is an open-source agent skill for developer tools.
- [API testing](https://ai-powered.com/skills/api-testing): API testing is an open-source agent skill for developer tools.
- [API engineer](https://ai-powered.com/skills/api-engineer): API engineer is an open-source agent skill for legal and government.
- [API monitoring](https://ai-powered.com/skills/api-monitoring): API monitoring is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/variables
