# Pulumi component

> Pulumi component is an open-source agent skill for cloud and infrastructure. Guides an agent in writing reusable Pulumi ComponentResource classes and packaging them. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/pulumi/agent-skills/tree/main/pulumi/skills/pulumi-component
- **Repository:** https://github.com/pulumi/agent-skills
- **GitHub stars:** 82
- **License:** Apache-2.0
- **Skill name:** pulumi-component
- **Collection:** https://github.com/pulumi/agent-skills
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill walks an agent through authoring Pulumi ComponentResource classes, which group related infrastructure into a single reusable unit that shows as one node with nested children in preview and console output. It covers the constructor anatomy, type URN naming, child resource naming, flat args interfaces with Input wrappers, and which outputs to expose.

The guidance includes TypeScript and Python examples and a list of common anti-patterns such as missing registerOutputs, missing parent links, union types and functions in args. It also explains when a component needs multi-language packaging, with PulumiPlugin.yaml setup and entry points for Python, Go and C#, plus distribution through git tags, the private registry and package managers. It points to the pulumi-best-practices skill for general Output and secrets patterns.

Using it assumes familiarity with Pulumi and the relevant cloud provider packages. Publishing to the private registry requires Pulumi Cloud and, for automated publishing, GitHub OIDC integration.

## When your agent uses it

> Guide for authoring Pulumi ComponentResource classes. Use when creating reusable infrastructure components, designing component interfaces, setting up multi-language support, or distributing component packages.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/pulumi/agent-skills/tree/HEAD/pulumi/skills/pulumi-component)
- [License: Apache-2.0](https://github.com/pulumi/agent-skills/tree/HEAD/pulumi/skills/pulumi-component)

## Features

- **Component constructor anatomy:** Covers the required super call with a type URN, parent linking for children, and registerOutputs placement.
- **Args interface design:** Guides flat, serializable argument objects wrapped in Input types, with defaults applied in the constructor.
- **Output exposure rules:** Explains which child values to surface as public outputs and how to compose derived values.
- **Multi-language packaging:** Describes PulumiPlugin.yaml setup and entry points for TypeScript, Python, Go and C#.
- **Distribution and publishing:** Covers git tag versioning, private registry publishing and package manager options.
- **Anti-pattern checklist:** Lists common component mistakes with their problems and fixes.

## Good for

- Turn repeated inline infrastructure into a reusable component
- Design a configurable args interface for a shared component
- Make a TypeScript component usable from Python or YAML programs
- Publish a component to a private registry with version tags
- Debug a component stuck in creating or with children at the wrong level

## Install

### Claude Code

This skill ships in the `pulumi` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add pulumi/agent-skills
/plugin install pulumi@pulumi-agent-skills
```

Or copy only this skill to `~/.claude/skills/pulumi-component`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pulumi/agent-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/pulumi-component &&
cp -R "$tmp/pulumi/skills/pulumi-component" ~/.claude/skills/pulumi-component &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/pulumi-component` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/pulumi-component` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pulumi/agent-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/pulumi-component &&
cp -R "$tmp/pulumi/skills/pulumi-component" ~/.agents/skills/pulumi-component &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/pulumi-component` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/pulumi-component` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pulumi/agent-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/pulumi-component &&
cp -R "$tmp/pulumi/skills/pulumi-component" ~/.cursor/skills/pulumi-component &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/pulumi-component` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/pulumi/agent-skills.git --path pulumi/skills/pulumi-component
```

Or copy the folder to `~/.gemini/skills/pulumi-component` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/pulumi-component`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pulumi/agent-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/pulumi-component &&
cp -R "$tmp/pulumi/skills/pulumi-component" ~/.copilot/skills/pulumi-component &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/pulumi-component` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/pulumi/agent-skills.git
```

Then copy `agent-skills/pulumi/skills/pulumi-component` into your agent's skills folder as `pulumi-component`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Pulumi component trigger?

It is meant for tasks such as creating a new ComponentResource class, designing component interfaces, setting up multi-language support, or distributing component packages.

### Do I need multi-language packaging for every component?

No. A component used only inside one language and project can be imported directly. Packaging with PulumiPlugin.yaml is needed when other languages, including YAML, must consume it.

### Are scripts included?

No scripts are bundled with this skill; it consists of instructions and examples.

### How do I install Pulumi component in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/pulumi-component to use it in all your projects, or to .claude/skills/pulumi-component in one project. Or install the pulumi plugin, which includes it: /plugin marketplace add pulumi/agent-skills, then /plugin install pulumi@pulumi-agent-skills.

### Does Pulumi component run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Pulumi component?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Pulumi component?

The closest alternatives to Pulumi component are Pulumi best practices, Pulumi automation API, Pulumi overview, Pulumi delivery and Pulumi create agent.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Pulumi best practices](https://ai-powered.com/skills/pulumi-best-practices): Pulumi best practices is an open-source agent skill for cloud and infrastructure.
- [Pulumi automation API](https://ai-powered.com/skills/pulumi-automation-api): Pulumi automation API is an open-source agent skill for cloud and infrastructure.
- [Pulumi overview](https://ai-powered.com/skills/pulumi-overview): Pulumi overview is an open-source agent skill for cloud and infrastructure.
- [Pulumi delivery](https://ai-powered.com/skills/pulumi-delivery): Pulumi delivery is an open-source agent skill for cloud and infrastructure.
- [Pulumi create agent](https://ai-powered.com/skills/pulumi-create-agent): Pulumi create agent is an open-source agent skill for cloud and infrastructure.
- [Cloudformation to pulumi](https://ai-powered.com/skills/cloudformation-to-pulumi): Cloudformation to pulumi is an open-source agent skill for cloud and infrastructure.
- [Pulumi cdk to pulumi](https://ai-powered.com/skills/pulumi-cdk-to-pulumi): Pulumi cdk to pulumi is an open-source agent skill for cloud and infrastructure.
- [Pulumi esc](https://ai-powered.com/skills/pulumi-esc): Pulumi esc is an open-source agent skill for cloud and infrastructure.

---
Source: https://ai-powered.com/skills/pulumi-component
