/major-ai-skills:pulumifrom major-ai-skills
Operate Pulumi stacks with preview gates, encrypted config secrets, protect/retainOnDelete, and replace-aware ups agents routinely mishandle.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Pulumi expresses cloud infrastructure as real programs (TypeScript, Python, Go, C#, YAML). State lives in a backend (Pulumi Cloud or self-managed DIY); each stack is an isolated deployment of the same program (dev, prod). Providers (AWS/Azure/GCP/Kubernetes) use the same cloud auth patterns as CLIs—prefer OIDC / SSO / short-lived roles over long-lived keys. Agents treat pulumi preview as mandatory before up, encrypt secrets with pulumi config set --secret, and flag +- replacements and - deletes as high risk.
┌─────────────────────────────────────────────────────────────┐
│ Pulumi program → stack → cloud │
│ │
│ Program (index.ts / __main__.py / …) │
│ ├── Resources + ComponentResources │
│ ├── Options: protect · retainOnDelete · aliases · dependsOn│
│ └── Stack config + secrets (encrypted in state) │
│ │
│ Engine │
│ ├── preview (--diff / --refresh / --expect-no-changes) │
│ ├── up / destroy (gated) │
│ └── state: Pulumi Cloud or DIY backend │
│ │
│ Providers → AWS · Azure · GCP · Kubernetes · … │
└─────────────────────────────────────────────────────────────┘
Use when
Do not use when
@terraform / @terraform-aws.@aws-cli / @azure-cli / @gcloud-cli.Pulumi.<stack>.yaml or chat → refuse; use --secret or @vault / ESC.pulumi stack select or -s; confirm with pulumi whoami -v.pulumi preview --diff, add --refresh when drift is possible) and summarize create/update/replace/delete before up.pulumi config set --secret; never commit decrypted values; avoid --show-secrets in shared logs.protect: true (and consider retainOnDelete); unprotect deliberately before destroy/replace.+-) that imply downtime/data loss (DBs, disks, clusters).pulumi destroy and for unprotected deletes of stateful resources.pulumi new aws-typescript -y -n api-infra -s dev
pulumi stack select dev
pulumi config set aws:region us-east-1
# Prompt user for value; do not invent passwords:
pulumi config set --secret dbPassword
pulumi whoami -v
pulumi preview --diff
# pulumi up # only after review
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const cfg = new pulumi.Config();
const environment = pulumi.getStack();
const bucket = new aws.s3.BucketV2(
"assets",
{
tags: { service: "api", env: environment },
},
{
protect: environment === "prod",
},
);
const dbPassword = cfg.requireSecret("dbPassword");
export const bucketName = bucket.id;
// Do not export raw secrets
void dbPassword;
Stack ops:
pulumi stack ls
pulumi stack output --json
pulumi preview --refresh --diff
pulumi up --yes # only with explicit approval
pulumi destroy --yes # only with explicit approval
# Import existing
pulumi import aws:s3/bucketV2:BucketV2 assets my-existing-bucket-name
# Protected resource blocking replace/delete:
# pulumi state unprotect <urn> # deliberate; then preview again
CI gate:
pulumi preview --diff --expect-no-changes # assert no drift on protected envs
| Signature | Likely cause | Fix path |
|---|---|---|
| Preview/up errors on protected resource | protect: true blocks delete/replace | Review diff; pulumi state unprotect only if intentional; use --ignore-protect on preview only to inspect |
Unexpected +- replace | Immutable property change | Diff with --diff; add aliases / avoid ForceNew attrs; plan migration |
| Provider auth failure | Wrong cloud identity; CLI≠SDK creds | Fix SSO/OIDC/@aws-cli/@gcloud-cli/@azure-cli context; refresh |
| Secret appears in plaintext state | Set without --secret | config set --secret; rotate leaked value |
| Drift vs Console | Out-of-band change | preview --refresh; import or revert |
| Plugin version skew in CI | Unpinned providers | Lock plugin versions; same Pulumi CLI version locally/CI |
protect: true on prod databases, critical DNS, and KMS keys.@kubernetes for k8s provider workloads; @docker for image refs by digest.@vault when org secret sprawl exceeds stack config.@terraform / @terraform-aws — HCL IaC alternative / AWS specifics@aws-cli / @azure-cli / @gcloud-cli — imperative auth and debug beside stacks@kubernetes — Pulumi Kubernetes provider workloads@docker — image digests referenced by compute@vault — external secrets integrated with stacks@github-actions — OIDC for cloud providers in CIMANDATORY: Select the correct stack; run
pulumi preview(prefer--diff,--refreshwhen needed) and summarize replace/delete risk beforeup. Useconfig set --secretfor credentials; never invent or commit plaintext secrets. Applyprotecton prod stateful resources. Require explicit approval for destroy and for unprotecting resources. Prefer OIDC/SSO over long-lived cloud keys.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization./act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.Other plugins' skills for the same job