pulumi
БесплатноБез исполняемых скриптовНе проверенPulumi infrastructure as code performance and reliability guidelines. This skill should be used when writing, reviewing, or refactoring Pulumi code to ensure…
от pproenca★ 231 звезда на GitHubОб этом скилле
Pulumi Best Practices
Comprehensive performance and reliability guide for Pulumi infrastructure as code, designed for AI agents and LLMs. Contains 46 rules across 8 categories, prioritized by impact to guide automated refactoring and code generation.
When to Apply
Reference these guidelines when:
- Writing new Pulumi infrastructure code
- Designing component abstractions for reuse
- Configuring secrets and sensitive values
- Organizing stacks and cross-stack references
- Setting up CI/CD pipelines for infrastructure
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | State Management and Backend | CRITICAL | pstate- |
| 2 | Resource Graph Optimization | CRITICAL | graph- |
| 3 | Component Design | HIGH | pcomp- |
| 4 | Secrets and Configuration | HIGH | secrets- |
| 5 | Stack Organization | MEDIUM-HIGH | stack- |
| 6 | Resource Options and Lifecycle | MEDIUM | lifecycle- |
| 7 | Testing and Validation | MEDIUM | test- |
| 8 | Automation and CI/CD | LOW-MEDIUM | auto- |
Quick Reference
1. State Management and Backend (CRITICAL)
pstate-backend-selection- Use managed backend for production stackspstate-checkpoint-skipping- Enable checkpoint skipping for large stackspstate-stack-size- Keep stacks under 500 resourcespstate-refresh-targeting- Use targeted refresh instead of full stackpstate-export-import- Use state export/import for migrationspstate-import-existing- Import existing resources before managing
2. Resource Graph Optimization (CRITICAL)
graph-parallel-resources- Structure resources for maximum parallelismgraph-output-dependencies- Use outputs to express true dependenciesgraph-explicit-depends- Use dependsOn only for external dependenciesgraph-avoid-apply-side-effects- Avoid side effects in apply functionsgraph-conditional-resources- Use conditional logic at resource levelgraph-stack-references-minimal- Minimize stack reference depth
3. Component Design (HIGH)
pcomp-component-resources- Use ComponentResource for reusable abstractionspcomp-parent-child- Pass parent option to child resourcespcomp-unique-naming- Use name prefix pattern for unique resource namespcomp-register-outputs- Register component outputs explicitlypcomp-multi-language- Design components for multi-language consumptionpcomp-transformations- Use transformations for cross-cutting concerns
4. Secrets and Configuration (HIGH)
secrets-use-secret-config- Use secret config for sensitive valuessecrets-avoid-state-exposure- Prevent secret leakage in statesecrets-external-providers- Use external secret managers for productionsecrets-generate-random- Generate secrets with random providersecrets-provider-rotation- Rotate secrets provider when team members leavesecrets-environment-isolation- Isolate secrets by environment
5. Stack Organization (MEDIUM-HIGH)
stack-separation-by-lifecycle- Separate stacks by deployment lifecyclestack-references-parameterized- Parameterize stack referencesstack-output-minimal- Export only required outputsstack-naming-conventions- Use consistent stack naming convention
6. Resource Options and Lifecycle (MEDIUM)
lifecycle-protect-stateful- Protect stateful resourceslifecycle-delete-before-replace- Use deleteBeforeReplace for unique constraintslifecycle-retain-on-delete- Use retainOnDelete for shared resourceslifecycle-ignore-changes- Use ignoreChanges for externally managed propertieslifecycle-replace-on-changes- Use replaceOnChanges for immutable dependencieslifecycle-aliases- Use aliases for safe resource renaminglifecycle-custom-timeouts- Set custom timeouts for long-running resources
7. Testing and Validation (MEDIUM)
test-unit-mocking- Use mocks for fast unit teststest-property-policies- Use policy as code for property testingtest-integration-ephemeral- Use ephemeral stacks for integration teststest-preview-assertions- Assert on preview results before deploymenttest-stack-reference-mocking- Mock stack references in unit tests
8. Automation and CI/CD (LOW-MEDIUM)
auto-automation-api-workflows- Use Automation API for complex workflowsauto-inline-programs- Use inline programs for dynamic infrastructureauto-ci-cd-preview- Run preview in PR checksauto-deployments-api- Use Pulumi Deployments for GitOpsauto-review-stacks- Use review stacks for PR environmentsauto-drift-detection- Enable drift detection for production
How to Use
Read individual reference files for detailed explanations and code examples:
- Section definitions - Category structure and impact levels
- Rule template - Template for adding new rules
Full Compiled Document
For the com
Установить pulumi в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл pulumi?
Pulumi infrastructure as code performance and reliability guidelines. This skill should be used when writing, reviewing, or refactoring Pulumi code to ensure optimal deployment performance and infrastructure reliability. Triggers on tasks involving Pulumi stacks, components, state management, secrets configuration, resource lifecycle options, or CI/CD automation.
Как установить скилл pulumi?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pulumi запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic