pulumi-component

Author Pulumi ComponentResource classes with multi-language support and distribution guidance.

1|Updated Apr 14, 2025
One-click install
npx skills add https://github.com/mattwyskiel/dotfiles --skill pulumi-component-mattwyskiel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pulumi-component
Source: https://github.com/mattwyskiel/dotfiles/tree/main/agents/.agents/skills/pulumi-component
Command: npx skills add https://github.com/mattwyskiel/dotfiles --skill pulumi-component-mattwyskiel

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pulumi, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill helps developers efficiently author and manage Pulumi ComponentResources, enabling the creation of reusable infrastructure components with robust interfaces and multi-language support.

Core Features & Use Cases

  • Component Authoring: Guide for writing ComponentResource classes, with examples in TypeScript and Python.
  • Multi-Language Support: Enables consumption of components in multiple Pulumi languages (TypeScript, Python, Go, C#, Java, YAML).
  • Distribution: Instruction on publishing components to the Pulumi private registry or package managers.

Quick Start

Use the pulumi-component skill to create a new Pulumi ComponentResource for a database server with the following prompt: 'Create a Pulumi ComponentResource for a database server in TypeScript with the following details: instance type: "db.t2.micro", storage size: 100GB, backup enabled: true.'

Frequently Asked Questions about pulumi-component

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

FAQPage Schema
How do I create reusable infrastructure as code components with Pulumi?

Pulumi ComponentResources allow you to encapsulate cloud resources into reusable infrastructure as code components with defined args interfaces and outputs. This enables defining modular infrastructure blocks once and consuming them across multiple projects.

Can I use a Pulumi ComponentResource across multiple programming languages?

Yes, Pulumi ComponentResources support multi-language consumption across TypeScript, Python, Go, C#, Java, and YAML. You author the component once and distribute it, enabling teams using different programming languages to consume the same infrastructure component.

What is the best way to distribute Pulumi components to other teams?

The best way to distribute Pulumi components is by publishing them to the Pulumi private registry or standard package managers. This enables versioned sharing and consumption of your ComponentResources across different projects and teams.

Do I need the Pulumi SDK installed to author ComponentResource classes?

Yes, you need the Pulumi SDK installed in your environment to execute and author ComponentResource classes. The SDK provides the necessary framework and runtime support for defining and managing infrastructure as code components.

How do I define inputs and outputs for a Pulumi ComponentResource in TypeScript?

To define inputs and outputs for a Pulumi ComponentResource in TypeScript, create an args interface for input properties and register output properties on the component instance. This establishes a robust contract for infrastructure component consumption.