npx skills add https://github.com/pproenca/dot-skills --skill pulumi面向 AI 代理和 LLM 的 Pulumi 基础设施即代码全面性能和可靠性指南。包含 8 个类别共 46 条规则,按影响优先级排序,以指导自动化重构和代码生成。
在以下情况下参考这些指南:
| 优先级 | 类别 | 影响 | 前缀 |
|---|---|---|---|
| 1 | 状态管理与后端 | 关键 | pstate- |
| 2 | 资源图优化 | 关键 | graph- |
| 3 | 组件设计 | 高 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
pcomp-| 4 | 密钥与配置 | 高 | secrets- |
| 5 | 堆栈组织 | 中高 | stack- |
| 6 | 资源选项与生命周期 | 中 | lifecycle- |
| 7 | 测试与验证 | 中 | test- |
| 8 | 自动化与 CI/CD | 低中 | auto- |
pstate-backend-selection - 为生产堆栈使用托管后端pstate-checkpoint-skipping - 为大型堆栈启用检查点跳过pstate-stack-size - 保持堆栈资源数在 500 个以下pstate-refresh-targeting - 使用目标刷新而非全栈刷新pstate-export-import - 使用状态导出/导入进行迁移pstate-import-existing - 在管理前导入现有资源graph-parallel-resources - 构建资源以实现最大并行度graph-output-dependencies - 使用输出来表达真实的依赖关系graph-explicit-depends - 仅对外部依赖使用 dependsOngraph-avoid-apply-side-effects - 避免在 apply 函数中产生副作用graph-conditional-resources - 在资源级别使用条件逻辑graph-stack-references-minimal - 最小化堆栈引用深度pcomp-component-resources - 使用 ComponentResource 实现可复用的抽象pcomp-parent-child - 将父选项传递给子资源pcomp-unique-naming - 使用名称前缀模式确保资源名称唯一pcomp-register-outputs - 显式注册组件输出pcomp-multi-language - 设计支持多语言使用的组件pcomp-transformations - 使用转换处理横切关注点secrets-use-secret-config - 对敏感值使用密钥配置secrets-avoid-state-exposure - 防止密钥在状态中泄露secrets-external-providers - 在生产环境中使用外部密钥管理器secrets-generate-random - 使用随机提供程序生成密钥secrets-provider-rotation - 团队成员离开时轮换密钥提供程序secrets-environment-isolation - 按环境隔离密钥stack-separation-by-lifecycle - 按部署生命周期分离堆栈stack-references-parameterized - 参数化堆栈引用stack-output-minimal - 仅导出必需的输出stack-naming-conventions - 使用一致的堆栈命名约定lifecycle-protect-stateful - 保护有状态资源lifecycle-delete-before-replace - 对唯一约束使用 deleteBeforeReplacelifecycle-retain-on-delete - 对共享资源使用 retainOnDeletelifecycle-ignore-changes - 对由外部管理的属性使用 ignoreChangeslifecycle-replace-on-changes - 对不可变依赖使用 replaceOnChangeslifecycle-aliases - 使用别名安全地重命名资源lifecycle-custom-timeouts - 为长时间运行的资源设置自定义超时test-unit-mocking - 使用模拟进行快速单元测试test-property-policies - 使用策略即代码进行属性测试test-integration-ephemeral - 使用临时堆栈进行集成测试test-preview-assertions - 在部署前对预览结果进行断言test-stack-reference-mocking - 在单元测试中模拟堆栈引用auto-automation-api-workflows - 对复杂工作流使用 Automation APIauto-inline-programs - 对动态基础设施使用内联程序auto-ci-cd-preview - 在 PR 检查中运行预览auto-deployments-api - 对 GitOps 使用 Pulumi Deploymentsauto-review-stacks - 对 PR 环境使用评审堆栈auto-drift-detection - 为生产环境启用漂移检测阅读单独的参考文件以获取详细说明和代码示例:
获取包含所有规则详情的完整指南:AGENTS.md
每周安装量
97
代码仓库
GitHub 星标数
86
首次出现
2026 年 1 月 20 日
安全审计
安装于
gemini-cli80
opencode78
codex77
claude-code75
cursor73
github-copilot72
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.
Reference these guidelines when:
| 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- |
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 managinggraph-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 depthpcomp-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 concernssecrets-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 environmentstack-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 conventionlifecycle-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 resourcestest-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 testsauto-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 productionRead individual reference files for detailed explanations and code examples:
For the complete guide with all rules expanded: AGENTS.md
Weekly Installs
97
Repository
GitHub Stars
86
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli80
opencode78
codex77
claude-code75
cursor73
github-copilot72
Azure Data Explorer (Kusto) 查询技能:KQL数据分析、日志遥测与时间序列处理
133,300 周安装
流行病学分析师技能:疾病调查、风险分析与公共卫生决策指南
169 周安装
TanStack Devtools - 统一调试面板,整合Query、Router、AI等开发者工具
84 周安装
FastAPI微服务开发实战:构建高性能REST API与异步服务架构指南
172 周安装
Dockerfile 优化器:遵循最佳实践,构建安全、高效、缓存优化的生产级镜像
172 周安装
NoSQL数据库设计指南:MongoDB与DynamoDB模式优化与最佳实践
171 周安装
部署自动化指南:Helm、GitHub Actions、ArgoCD实现CI/CD与蓝绿部署
171 周安装