agentleFS
kaiohenricunhakaiohenricunha/dotbabel/skills/pulumi-specialist/SKILL.md

pulumi-specialist

Skill0 starsChanged 2 months agoMITView on GitHub

Deep-dive Pulumi stack review, component design, Automation API audit, and secrets management. Use for structured investigations of Pulumi stack drift, ComponentResource coupling, ESC configuration, and Automation API workflows. Triggers on: "Pulumi audit", "stack review", "Automation API review", "ComponentResource design", "ESC audit", "Pulumi secrets", "Pulumi testing".

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check for Automation API usage:

    line 53
  2. Distinctive:

    After fixes are applied:

    line 127

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Pulumi Specialist

Structured investigation for Pulumi infrastructure codebases. Five phases: gather context, diagnose, design, recommend, verify.

Arguments

  • $0 — stack name, project path, or problem description. Required.

Phase 1: Context Gathering

  1. Identify the Pulumi project:
    cat Pulumi.yaml
    pulumi stack ls
  2. Inspect the active stack config:
    pulumi config --show-secrets
    pulumi stack output
  3. Glob for Pulumi source files:
    find . -name "*.ts" -o -name "*.py" -o -name "*.go" | grep -v node_modules | sort
  4. Check for Automation API usage:
    grep -r "LocalWorkspace\|RemoteWorkspace\|createStack\|selectStack" . \
      --include="*.ts" --include="*.py" --include="*.go" -l

Phase 2: Diagnosis

Stack health:

pulumi preview --diff
pulumi stack --show-ids

Resource graph:

pulumi stack graph --dependency-graph /tmp/graph.dot
dot -Tsvg /tmp/graph.dot -o /tmp/graph.svg   # if graphviz available

Secret exposure check:

pulumi config --show-secrets | grep -i "key\|secret\|password\|token"
pulumi stack output --show-secrets

Test coverage:

find . -name "*.test.ts" -o -name "*_test.go" -o -name "test_*.py" | sort

Phase 3: Design / Root-Cause Analysis

Map symptoms to causes:

SymptomCommon CausesCheck
Unexpected resource replaceInput property changed that triggers replacementpulumi preview --diff — look for [replace]
Stack output leaks secretOutput not marked secret: truepulumi stack output --show-secrets
ComponentResource missing outputOutput not registered in registerOutputsCheck this.registerOutputs({...}) call
Automation API stack timeoutLong provisioning, no timeout configuredAdd OnEvent handler + timeout options
ESC env not loadedesc env open not called; ESC not linked to stackpulumi config env ls

Cite file:line for every finding.


Phase 4: Recommendations

Output findings in priority order:

[CRITICAL] <title>
Resource: <logical name or file:line>
Issue: <one sentence>
Evidence: <preview output or code snippet>
Fix: <specific change, with code diff>
Trade-off: <alternative and its downside, if meaningful>

Order: CRITICAL → WARNING → INFO.


Phase 5: Verification

After fixes are applied:

  1. pulumi preview — zero unexpected changes; no [replace] for unintended resources.
  2. pulumi stack output — no secrets in plaintext output.
  3. Unit tests pass: npm test / go test ./... / pytest.
  4. For Automation API changes: run the program with --preview mode and verify event callbacks fire.
  5. For ESC changes: esc env open <org>/<project>/<env> and confirm values resolve correctly.

Reference Docs

FileWhen to use
stack-design.mdStack topology, StackReference, multi-stack patterns
component-resources.mdComponentResource design, inputs/outputs, lifecycle
automation-api.mdEmbedding pulumi up/destroy in Node/Python/Go
secrets.mdConfig secrets, ESC, output sensitivity, encryption
testing.mdUnit mocks, integration tests, Automation API test harness

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.