One-click install
npx skills add https://github.com/Cogni-AI-OU/cogni-ai-agent-skills --skill pulumi-cli-cogni-ai-ou
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pulumi-cli
Source: https://github.com/Cogni-AI-OU/cogni-ai-agent-skills/tree/main/pulumi-cli
Command: npx skills add https://github.com/Cogni-AI-OU/cogni-ai-agent-skills --skill pulumi-cli-cogni-ai-ou

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It eliminates the friction and risk of running Pulumi infrastructure automation manually by standardizing how an agent previews, deploys, and safely tears down stacks.

Core Features & Use Cases

  • Non-interactive automation: Prevents agent sessions from hanging by requiring --non-interactive and, where needed, --yes.
  • Predictable outputs: Encourages --output=json to keep results stable and easy to parse for subsequent agent steps.
  • Repeatable stack operations: Covers common workflows for previews, deployments, destruction, stack selection, and configuration management, plus direct Pulumi Cloud API calls.
  • Use Case: A CI-driven agent needs to verify an infrastructure change with preview, apply it with up, and roll it back with destroy while producing machine-readable results.

Quick Start

Use the pulumi-cli skill to preview and then deploy the selected stack in non-interactive mode when I provide the target stack name and change intent.

Frequently Asked Questions about pulumi-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Pulumi stack deployment in a non-interactive CI pipeline?

Automate Pulumi stack deployment by using non-interactive flags like `--non-interactive` and `--yes` to prevent hanging. This standardizes how agents preview, deploy, and safely tear down infrastructure without requiring manual input prompts.

What is the best way to parse Pulumi CLI output for automated infrastructure workflows?

Parse Pulumi CLI output reliably by using the `--output=json` flag. This produces stable, machine-readable JSON results that are easy for subsequent agent steps to process during infrastructure deployment automation.

How does Pulumi handle deterministic error handling for infrastructure deployment?

Pulumi handles deterministic error handling by relying on specific CLI exit codes. This allows automation agents to reliably verify infrastructure changes and determine if preview, deployment, or destruction actions succeeded or failed.

Can I use the Pulumi Cloud API for stack management and deployment automation?

Yes, you can use the Pulumi Cloud API for stack management and deployment automation. The automation approach covers direct API interactions alongside standard CLI commands for stack selection, configuration, and destruction.

Why does my Pulumi deployment hang when running in an automated agent session?

Pulumi deployments hang in automated agent sessions when interactive prompts wait for user input. Prevent this by applying the `--non-interactive` flag, and use `--yes` where needed to automatically approve infrastructure changes.