Skip to content
Skill

Pulumi best practices

Guides agents through Pulumi code reviews covering outputs, components, aliases

Pulumi best practices is an open-source agent skill for cloud and infrastructure. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
82
Last commit
License
Apache-2.0
Listing updated

Similar skills

About Pulumi best practices

This skill gives an agent a set of Pulumi infrastructure-as-code practices to apply when writing, reviewing or debugging TypeScript and Python programs. It covers seven areas: keeping resource creation out of apply() callbacks, passing Outputs directly between resources, grouping related resources into ComponentResource classes with the correct parent, storing credentials as secrets, using aliases during refactors, and running preview before every deployment. Each practice explains the reasoning, shows a wrong and a right code example, and lists signals for spotting the problem.

The skill also includes a short quick-reference table and a validation checklist the agent can run through during a code review. It points to related Pulumi skills for deeper component authoring, the overview entry point, Automation API orchestration and ESC-based configuration.

The examples use the TypeScript SDK with AWS resources, and the CI section shows a GitHub Actions workflow using the pulumi/actions step. No scripts are bundled with the skill; it is guidance the agent reads and applies to the user's own project.

When your agent uses it

Load when the user is writing, reviewing, or debugging Pulumi TypeScript/Python programs; asks about Output<T> or apply() usage; wants to create ComponentResource classes; needs to refactor resources without destroying them (aliases); is setting up secrets or config; or is configuring a pulumi preview/up CI workflow. Also load for questions about resource dependency order, parent/child resource relationships, or pulumi.interpolate.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 3 files (16 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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

Or copy only this skill to ~/.claude/skills/pulumi-best-practices:

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

For one project only, put the folder in .claude/skills/pulumi-best-practices inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/pulumi-best-practices to use it in every repository:

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

For one repository only, put the folder in .agents/skills/pulumi-best-practices inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/pulumi-best-practices to use it in every project:

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

For one project only, put the folder in .cursor/skills/pulumi-best-practices inside it instead.

Cursor docs on skills

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

gemini skills install https://github.com/pulumi/agent-skills.git --path pulumi/skills/pulumi-best-practices

Or copy the folder to ~/.gemini/skills/pulumi-best-practices yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/pulumi-best-practices:

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

For one project only, put the folder in .github/skills/pulumi-best-practices inside it instead.

VS Code docs on skills

Get the folder:

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

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

The SKILL.md format

What it does

Apply callback pitfalls
Explains why creating resources inside apply() breaks previews and dependency tracking, with fixes.
Output passing rules
Shows how to pass Outputs directly as inputs and use interpolate or concat for strings.
Component structure
Covers ComponentResource design, parent relationships and calling registerOutputs.
Secret handling
Covers encrypting config with --secret, requireSecret and marking values as secret in code.
Safe refactoring with aliases
Describes how to rename or move resources without destroying them, including protected resources.
Preview-first deployment
Explains reading preview output symbols and a CI workflow that previews before deploying.

Good for

  • Review my Pulumi TypeScript program for misuse of apply()
  • Refactor these top-level resources into a ComponentResource without recreating them
  • Move my database password from plain config to a Pulumi secret
  • Set up a GitHub Actions pipeline that runs pulumi preview on pull requests
  • Explain why my preview shows a resource being replaced

Pulumi best practices FAQ

When does Pulumi best practices get loaded?

It loads when the user writes, reviews or debugs Pulumi TypeScript or Python programs, asks about Output<T> or apply(), wants components, needs aliases, sets up secrets or config, or configures a preview/up CI workflow.

Does Pulumi best practices run any scripts or change my infrastructure?

No scripts are included. It gives the agent guidance and code patterns to apply to the user's project.

Which AI clients does Pulumi best practices work with?

The content does not tie it to specific clients, so it follows the shared agent skills format used by the listed clients.

Does Pulumi best practices cover Pulumi component authoring in depth?

Only as an overview. It points to the separate pulumi-component skill for args design, multi-language support, testing and distribution.

How do I install Pulumi best practices in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/pulumi-best-practices to use it in all your projects, or to .claude/skills/pulumi-best-practices 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 Pulumi best practices 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 Pulumi best practices?

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 Pulumi best practices?

The closest alternatives to Pulumi best practices are Pulumi component, Pulumi delivery, Pulumi automation API, Pulumi overview and Pulumi debug failed operation.

Where this comes from

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

More from pulumi/agent-skills

  1. Hands the current coding thread off to a new Pulumi Neo task

    • Open source
    • 82 GitHub stars
    • Cloud and infrastructure
  2. Guides an agent through converting AWS CloudFormation stacks into Pulumi programs

    • Open source
    • 82 GitHub stars
    • Cloud and infrastructure
  3. Guides an agent through converting or importing Azure ARM and Bicep templates into Pulumi

    • Open source
    • 82 GitHub stars
    • Cloud and infrastructure
  4. Guides an agent through migrating an AWS CDK app to Pulumi with a PR-ready report

    • Open source
    • 82 GitHub stars
    • Cloud and infrastructure
  5. Guides an agent through migrating Terraform or OpenTofu projects and state into Pulumi

    • Open source
    • 82 GitHub stars
    • Cloud and infrastructure