# Package usage

> Package usage is an open-source agent skill for cloud and infrastructure. Lists which Pulumi org stacks use a given package and at what version. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/pulumi/agent-skills/tree/main/pulumi/skills/package-usage
- **Repository:** https://github.com/pulumi/agent-skills
- **GitHub stars:** 82
- **License:** Apache-2.0
- **Skill name:** package-usage
- **Collection:** https://github.com/pulumi/agent-skills
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill helps an agent audit a Pulumi organization for a specific package across many stacks. It queries the Pulumi Cloud API through the pulumi api command, which reuses existing Pulumi credentials and returns JSON. The agent first looks up the latest published version of the package in the registry, then pulls each stack that uses it along with the version it runs and the last update time.

The skill compares every stack's version against the latest release and presents the findings as a markdown table with a short summary of how many stacks are outdated. It is intended for read-only reporting; it does not change any project. When an actual version bump is needed in a single project, the skill points the agent to a separate provider-upgrade skill.

It expects an organization name, which it can take from context, a PULUMI_ORG variable, or by asking the user, and it works one package at a time. The skill itself ships as Markdown instructions with no scripts.

## When your agent uses it

> Track which stacks across a Pulumi organization use a specific package and at what versions. Use for cross-stack audits, identifying outdated or unmaintained package versions across many stacks, finding affected stacks before publishing breaking changes to a component package, or planning coordinated upgrade rollouts. Do NOT use for upgrading a cloud provider package (pulumi-aws, pulumi-azure-native, pulumi-gcp, pulumi-kubernetes, etc.) in a single project — use skill `provider-upgrade` instead. Do NOT use for general infrastructure creation, resource provisioning, or how-to questions about a package.

## What it can access

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

- [Instructions only, no scripts](https://github.com/pulumi/agent-skills/tree/HEAD/pulumi/skills/package-usage)
- [License: Apache-2.0](https://github.com/pulumi/agent-skills/tree/HEAD/pulumi/skills/package-usage)

## Features

- **Latest version lookup:** Finds the newest published version of a package in the Pulumi registry for the organization.
- **Cross-stack usage report:** Lists each stack that depends on the package with its project, version and last update.
- **Outdated stack detection:** Compares each stack's version to the latest release to flag stale deployments.
- **Markdown status table:** Formats results as a table with a status column and a one-line summary.
- **Read-only auditing:** Reports on usage without editing projects or performing upgrades.
- **Upgrade handoff:** Directs single-project provider bumps to the separate provider-upgrade skill.

## Good for

- Find every stack in our org still on an old version of a component package
- Check which stacks would be affected before publishing a breaking change to our package
- Plan a staged rollout of a library upgrade across all production stacks
- List all packages visible to our Pulumi organization and their latest versions

## Install

### Claude Code

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

```sh
/plugin marketplace add pulumi/agent-skills
/plugin install pulumi@pulumi-agent-skills
```

Or copy only this skill to `~/.claude/skills/package-usage`:

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

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

### Codex

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

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

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

### Cursor

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

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

For one project only, put the folder in `.cursor/skills/package-usage` 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/pulumi/agent-skills.git --path pulumi/skills/package-usage
```

Or copy the folder to `~/.gemini/skills/package-usage` yourself.

### VS Code

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

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

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/pulumi/agent-skills.git
```

Then copy `agent-skills/pulumi/skills/package-usage` into your agent's skills folder as `package-usage`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It uses the pulumi api CLI subcommand, which authenticates with your existing Pulumi credentials, and it needs your organization name.

### Does Package usage change any of my stacks or projects?

No. It queries usage and version data and reports on it. Actual upgrades are left to the provider-upgrade skill.

### When should Package usage not be used?

It should not be used for upgrading a cloud provider package in one project, or for general infrastructure creation or how-to questions about a package.

### Can Package usage check several packages at once?

Usage queries cover one package at a time, though it can list all packages visible to the organization.

### How do I install Package usage in Claude Code?

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

### Does Package usage 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 Package usage?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Package usage?

The closest alternatives to Package usage are Provider upgrade, Pulumi automation API, Pulumi migrate from discovered stack, Pulumi debug failed operation and Pulumi overview.

## Where this comes from

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

## Alternatives

- [Provider upgrade](https://ai-powered.com/skills/provider-upgrade): Provider upgrade is an open-source agent skill for cloud and infrastructure.
- [Pulumi automation API](https://ai-powered.com/skills/pulumi-automation-api): Pulumi automation API is an open-source agent skill for cloud and infrastructure.
- [Pulumi migrate from discovered stack](https://ai-powered.com/skills/pulumi-migrate-from-discovered-stack): Pulumi migrate from discovered stack is an open-source agent skill for cloud and infrastructure.
- [Pulumi debug failed operation](https://ai-powered.com/skills/pulumi-debug-failed-operation): Pulumi debug failed operation is an open-source agent skill for cloud and infrastructure.
- [Pulumi overview](https://ai-powered.com/skills/pulumi-overview): Pulumi overview is an open-source agent skill for cloud and infrastructure.
- [Pulumi upgrade provider](https://ai-powered.com/skills/pulumi-upgrade-provider): Pulumi upgrade provider is an open-source agent skill for developer tools.
- [Pulumi delivery](https://ai-powered.com/skills/pulumi-delivery): Pulumi delivery is an open-source agent skill for cloud and infrastructure.
- [Pulumi context API](https://ai-powered.com/skills/pulumi-context-api): Pulumi context API is an open-source agent skill for cloud and infrastructure.

---
Source: https://ai-powered.com/skills/package-usage
