pulumi avatar

Pulumi Component

Guide for authoring reusable Pulumi ComponentResource classes with multi-language support and distribution.

skills.sh installs
1.5K
GitHub stars
80
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the component lifecycle: type URN format, args interface design, child resource parenting, and packaging for distribution
  • Includes TypeScript and Python examples that extend ComponentResource, expose Output properties, and call registerOutputs()
  • Enforces Input<T> wrapping on args, flat argument structures, and no union types so SDKs generate in every language
  • Designed for platform teams building shared infrastructure modules, and defers general Pulumi patterns to pulumi-best-practices

Install

$ npx -y skills add pulumi/agent-skills --skill pulumi-component -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Authoring Pulumi Components

A ComponentResource groups related infrastructure resources into a reusable, logical unit. Components make infrastructure easier to understand, reuse, and maintain. Components appear as a single node with children nested underneath in pulumi preview/pulumi up output and in the Pulumi Cloud console.

This skill covers the full component authoring lifecycle. For general Pulumi coding patterns (Output handling, secrets, aliases, preview workflows), use the pulumi-best-practices skill instead.

When to Use This Skill

Invoke this skill when:

  • Creating a new ComponentResource class
  • Designing the args interface for a component
  • Making a component consumable from multiple Pulumi languages
  • Publishing or distributing a component package
  • Refactoring inline resources into a reusable component
  • Debugging component behavior (missing outputs, stuck creating, children at wrong level)

Component Anatomy

Every component has four required elements:

Details

Repository
github.com/pulumi/agent-skills
Category
DevOps & Cloud
First seen
May 16, 2026

More from pulumi/agent-skills

All 12

Similar to Pulumi Component

More DevOps & Cloud