AGENT SKILL

pulumi-specialist

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".

License 许可
MIT
最近更新
2026-10-26
Stars
★ 0
Forks
0

01 前言 Front Matter

name
pulumi-specialist
description
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".
allowed-tools
Read Grep Glob Bash
argument-hint
<stack name, project path, or problem description>

02 资源文件 5

03 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:

Symptom Common Causes Check
Unexpected resource replace Input property changed that triggers replacement pulumi preview --diff — look for [replace]
Stack output leaks secret Output not marked secret: true pulumi stack output --show-secrets
ComponentResource missing output Output not registered in registerOutputs Check this.registerOutputs({...}) call
Automation API stack timeout Long provisioning, no timeout configured Add OnEvent handler + timeout options
ESC env not loaded esc env open not called; ESC not linked to stack pulumi 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

File When to use
stack-design.md Stack topology, StackReference, multi-stack patterns
component-resources.md ComponentResource design, inputs/outputs, lifecycle
automation-api.md Embedding pulumi up/destroy in Node/Python/Go
secrets.md Config secrets, ESC, output sensitivity, encryption
testing.md Unit mocks, integration tests, Automation API test harness

04 同仓库更多 Skills

kaiohenricunha
kaiohenricunha/dotbabel

yolo

Start temporary autonomy for the current task or an explicit scope with a required --for expiry. Codex permits scoped pushes, merges, deploys, and releases after strict testing and validation; Full access is a separate runtime setting. Claude Code uses a session permission hook with a protected-action denylist.

开发工程师
★ 0
kaiohenricunha
kaiohenricunha/dotbabel

veracity-audit

Audit a data pipeline for Veracity and Value. Dispatches data-scientist, compliance-auditor, and data-engineer agents with project context injected at dispatch time. All source paths are supplied via flags — no defaults, no project assumptions. Subcommands: audit (full pipeline walk), score-check (scoring math only), gate-check (gate coverage only), source-trace <label> (single source end-to-end). Invoke when: "audit pipeline", "veracity check", "scoring math correct?", "check gates", "trace source", "verify quality gates", "formula correct?".

律师与法务Skill与智能体开发
★ 0
kaiohenricunha
kaiohenricunha/dotbabel

validate-spec

Audit an already-implemented spec against the codebase. Walks each constraint (ARCH-N, PERF-N, KD-N, etc.) and acceptance criterion, grounds findings in file:line evidence, runs the spec.json acceptance_commands, and writes a single audit doc to docs/audits/. Use whenever the user asks to "validate a spec", "audit a spec", "check if spec is implemented", "verify the spec is done", "is this spec really done", or otherwise wants closure on spec-driven work. Read-only against the spec — produces an audit, never modifies the spec itself.

★ 0
kaiohenricunha
kaiohenricunha/dotbabel

terragrunt-specialist

Deep-dive Terragrunt hierarchy review, DRY pattern audits, and run-all orchestration analysis. Use for structured investigations of multi-environment Terragrunt layouts, dependency graphs, remote state config, and hook correctness. Triggers on: "Terragrunt audit", "run-all review", "dependency block", "DRY pattern review", "env hierarchy audit", "mock_outputs", "terragrunt hooks".

运维与部署
★ 0
kaiohenricunha
kaiohenricunha/dotbabel

terraform-specialist

Deep-dive Terraform architecture review, module design, state management, and migration. Use for structured investigations of Terraform workspaces, provider configuration, module coupling, import workflows, and test coverage. Triggers on: "Terraform audit", "module review", "state management", "Terraform import", "workspace design", "provider config review", "Terraform testing".

测试与质量运维与部署
★ 0
kaiohenricunha
kaiohenricunha/dotbabel

spec

Create structured engineering specs through interactive pairing. Use when the user wants to create a spec, design doc, technical specification, architecture document, RFC, or engineering plan. Triggers on "let's spec this out", "create a spec", "design doc", "write a technical plan", "plan the architecture". Works for greenfield and brownfield projects. Outputs to docs/specs/.

设计师视觉设计
★ 0