Community生產力與協作github.com

pulumi/pulumi-best-practices

當使用者在撰寫、審查或除錯 Pulumi TypeScript/Python 程式時載入;詢問 Output<T> 或 apply() 的使用方式;想要建立 ComponentResource 類別;需要在不銷毀資源的情況下重構資源(別名);設定 secret 或 config;或是配置 pulumi preview/up CI 工作流程時。也適用於有關資源相依順序、父/子資源關係或 pulumi.interpolate 的問題。

pulumi-best-practices 是什麼?

這個技能專為使用 Pulumi 的開發者設計,提供 TypeScript 和 Python 程式撰寫、審查及除錯的最佳實踐指南。它能協助處理 Pulumi 中 Output<T> 和 apply() 的正確使用方式,避免常見陷阱,並引導使用者建立 ComponentResource 類別來組織和管理基礎設施。此外,技能涵蓋資源重構技巧,例如使用別名(aliases)來避免資源銷毀,以及設定 secret 和 config 的安全做法。它也支援配置 pulumi preview/up 的 CI/CD 工作流程,並解釋資源相依順序和父/子關係,特別是在使用 pulumi.interpolate 時確保正確的資源間依賴。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/pulumi/agent-skills/tree/main/skills/pulumi-best-practices

Installed? Explore more 生產力與協作 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

pulumi-best-practices 是做什麼的?

當使用者在撰寫、審查或除錯 Pulumi TypeScript/Python 程式時載入;詢問 Output 或 apply() 的使用方式;想要建立 ComponentResource 類別;需要在不銷毀資源的情況下重構資源(別名);設定 secret 或 config;或是配置 pulumi preview/up CI 工作流程時。也適用於有關資源相依順序、父/子資源關係或 pulumi.interpolate 的問題。

Individual skills in this repo

This repo contains 1 individual skill — each has its own dedicated page.

相關技能