
Pulumi debug failed operation
Diagnoses a failed Pulumi update or preview by reading its recorded errors and fixing
Pulumi debug failed operation 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 debug failed operation
This skill guides an agent through finding out why a Pulumi update or preview failed. It starts by confirming which operation the user means, then pulls the engine's recorded diagnostic and policy events from Pulumi Cloud through the pulumi api command, along with the run's environment details such as targets and commit.
The workflow separates the first real error from the cascade of follow-on messages that a failure usually produces, such as shutdown and connection-closed traces. It then traces that error back to the resource, the program code, and the inputs behind it. A bundled reference file lists common failure patterns and their fixes, and the skill sorts each problem into one of six places to fix it: program, command, stack config, workspace, state, or environment.
The skill expects the Pulumi CLI with access to a Pulumi Cloud stack, and jq and sed available in the shell. It asks for confirmation before deleting or replacing resources, deploying, or changing permissions.
When your agent uses it
Debug a Pulumi update or preview that failed: read the failure Pulumi already recorded, find what caused it, and fix it. Load this skill when the user asks to debug, diagnose, or fix a failed update or preview, or points at a failing `pulumi up` or `pulumi preview`. Don't load it for authoring new infrastructure, migrations, or provider upgrades; those have their own skills.
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 4 files (29 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-skillsOr copy only this skill to ~/.claude/skills/pulumi-debug-failed-operation:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pulumi/agent-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/pulumi-debug-failed-operation &&
cp -R "$tmp/pulumi/skills/pulumi-debug-failed-operation" ~/.claude/skills/pulumi-debug-failed-operation &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/pulumi-debug-failed-operation inside it instead.
Copy the skill folder to ~/.agents/skills/pulumi-debug-failed-operation 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-debug-failed-operation &&
cp -R "$tmp/pulumi/skills/pulumi-debug-failed-operation" ~/.agents/skills/pulumi-debug-failed-operation &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/pulumi-debug-failed-operation inside it instead.
Copy the skill folder to ~/.cursor/skills/pulumi-debug-failed-operation 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-debug-failed-operation &&
cp -R "$tmp/pulumi/skills/pulumi-debug-failed-operation" ~/.cursor/skills/pulumi-debug-failed-operation &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/pulumi-debug-failed-operation inside it instead.
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-debug-failed-operationOr copy the folder to ~/.gemini/skills/pulumi-debug-failed-operation yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/pulumi-debug-failed-operation:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pulumi/agent-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/pulumi-debug-failed-operation &&
cp -R "$tmp/pulumi/skills/pulumi-debug-failed-operation" ~/.copilot/skills/pulumi-debug-failed-operation &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/pulumi-debug-failed-operation inside it instead.
Get the folder:
git clone --depth 1 https://github.com/pulumi/agent-skills.gitThen copy agent-skills/pulumi/skills/pulumi-debug-failed-operation into your agent's skills folder as pulumi-debug-failed-operation. Agents that support SKILL.md read one folder per skill.
What it does
- Operation identification
- Works out which failed update or preview the user means, filling in org, project, stack and version from context.
- Event retrieval
- Fetches diagnostic and policy events for a failed run through the Pulumi Cloud API.
- Root cause isolation
- Separates the first real error from downstream shutdown and cancellation messages.
- Fix location triage
- Decides whether the fix belongs in code, the command, config, workspace, state or environment.
- Common failures reference
- Includes a searchable reference of known failure messages and their resolutions.
- Safe change guidance
- Requires user confirmation before destructive or production-affecting changes.
Good for
- Diagnose why my last pulumi up failed on the staging stack
- Explain the error from a failed pulumi preview in CI
- Find which resource caused update 161 to fail
- Check whether a policy violation blocked my deployment
- Fix a missing stack config key that broke a preview
Pulumi debug failed operation FAQ
What does Pulumi debug failed operation need to run?
It uses the Pulumi CLI's pulumi api subcommand to reach Pulumi Cloud, and the shell commands rely on jq and sed.
When should Pulumi debug failed operation be loaded?
When the user asks to debug, diagnose or fix a failed update or preview, or points at a failing pulumi up or pulumi preview. It is not for authoring new infrastructure, migrations or provider upgrades.
Does Pulumi debug failed operation change anything without asking?
No. It asks the user before deleting or replacing resources, deploying another stack or to production, or changing permissions.
Does Pulumi debug failed operation work on a local run that isn't in Pulumi Cloud?
The event lookup targets Pulumi Cloud stack records; for local runs the skill suggests rerunning the preview with --debug and reading that output.
How do I install Pulumi debug failed operation in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/pulumi-debug-failed-operation to use it in all your projects, or to .claude/skills/pulumi-debug-failed-operation 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 debug failed operation 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 debug failed operation?
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 debug failed operation?
The closest alternatives to Pulumi debug failed operation are Pulumi best practices, Pulumi delivery, Pulumi overview, Provider upgrade and Pulumi automation API.
Where this comes from
- Description: from the skill's own SKILL.md.
More from pulumi/agent-skills

Hands the current coding thread off to a new Pulumi Neo task
- Open source
- 82 GitHub stars
- Cloud and infrastructure

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

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

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

Guides an agent to import a discovered CloudFormation or ARM stack into Pulumi
- Open source
- 82 GitHub stars
- Cloud and infrastructure

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

