Token导航 LogoToken导航

Agent Skill · 运维和基础设施

kro-rgd-pulumi(克罗吉德普鲁米)

kro-rgd-pulumi 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

kro-rgd-pulumi 是运维和基础设施类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证为 MIT,第三方扫描有未通过项,按安装量在运维和基础设施类的 2,449 个 Skill 里排第 2,183。

总安装 250周安装 10GitHub Stars 40下载 81核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:kro-rgd-pulumi(克罗吉德普鲁米)
来源仓库:https://github.com/tyrchen/claude-skills
仓库路径:skills/kro-rgd-pulumi
安装命令:
npx skills add https://github.com/tyrchen/claude-skills --skill kro-rgd-pulumi
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/tyrchen/claude-skills --skill kro-rgd-pulumi

这个 Skill 是做什么的

运维和基础设施类 Skill 处理部署、监控、日志和云资源,多数需要较高的执行权限。

kro-rgd-pulumi 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态进行整理。适用于代码变更追踪、协作事项管理和仓库状态分析场景。

通过 npx skills add 命令从 GitHub 仓库安装并使用该技能。安装前需确认权限范围和维护状态,注意是否涉及联网或文件操作。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/kro-rgd-pulumi

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/tyrchen/claude-skills --skill kro-rgd-pulumi;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

kro-rgd-pulumi 怎么安装?

在终端执行 npx skills add https://github.com/tyrchen/claude-skills --skill kro-rgd-pulumi。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

kro-rgd-pulumi 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

kro-rgd-pulumi 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

kro-rgd-pulumi 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

kro-rgd-pulumi 用的人多吗?

公开数据是累计安装 250 次,近一周安装 10 次,下载 81 次,GitHub 40 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

kro-rgd-pulumi 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理运维和基础设施类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

运维和基础设施类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
brainstorming

头脑风暴 · Codex、Claude

3,148,776173,131操作浏览器MIT通过
copywriting

文案写作 · Codex、Claude

1,996,72425,583需要联网MIT通过
openclaw-secure-linux-cloud

OpenClaw secure linux cloud 命令行 · Codex、Claude

1,853,08840接触敏感数据未明确未通过
xget

xget 命令行 · Codex、Claude

1,799,28040执行命令未明确未通过
requesting-code-review

代码审查请求 · Codex、Claude

1,590,144173,103权限未标注MIT通过
kro-rgd-pulumi

克罗吉德普鲁米 · 本页

25040接触敏感数据MIT未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

KRO ResourceGraphDefinition with Pulumi TypeScript

Generate production-ready Kubernetes Resource Orchestrator (KRO) ResourceGraphDefinitions using Pulumi TypeScript for creating custom Kubernetes APIs and composing resources with AWS ACK integration.

When to Use This Skill

Use this skill when the user wants to:

  • Create custom Kubernetes APIs using KRO ResourceGraphDefinitions
  • Compose multiple K8s resources as a single declarative unit
  • Integrate AWS resources via ACK (S3, RDS, DynamoDB, etc.) with KRO
  • Build platform abstractions for developer self-service
  • Generate Pulumi TypeScript code for KRO resources
  • Define resource dependencies with automatic orchestration
  • Create reusable application templates with CEL expressions (use CEL skill when necessary)

Overview

What is KRO?

KRO (Kube Resource Orchestrator) is an open-source Kubernetes-native project that allows you to:

  • Define custom Kubernetes APIs without writing Go controllers
  • Compose multiple resources as a directed acyclic graph (DAG)
  • Automatically manage resource dependencies and ordering
  • Use CEL expressions for dynamic configuration
  • Provide lifecycle management with drift detection

What is ResourceGraphDefinition (RGD)?

An RGD is KRO's core custom resource that:

  • Defines a schema for your custom API (apiVersion, kind, spec, status)
  • Lists resources to create with CEL expression templating
  • Automatically generates a CRD when applied
  • Deploys a microcontroller to manage instances

Pulumi Integration

Using Pulumi TypeScript to deploy KRO resources provides:

  • Type safety for resource definitions
  • IDE support with autocomplete and error checking
  • Programmatic logic for complex configurations
  • GitOps-friendly workflow
  • Multi-stack architecture for separation of concerns

Prerequisites

Required Components

# 1. Kubernetes cluster (1.25+ for CEL support)
kubectl version

# 2. KRO installed in cluster
helm install kro oci://ghcr.io/kubernetes-sigs/kro/charts/kro \
  --namespace kro-system \
  --create-namespace

# 3. ACK controllers (if using AWS resources)
helm install ack-s3-controller \
  oci://public.ecr.aws/aws-controllers-k8s/s3-chart \
  --namespace ack-system \
  --create-namespace

# 4. Pulumi CLI and Node.js
pulumi version
node --version

Pulumi Project Setup

# Create new Pulumi project
mkdir my-kro-project && cd my-kro-project
pulumi new kubernetes-typescript

# Install dependencies
npm install @pulumi/kubernetes @pulumi/pulumi

Instructions

Step 1: Understand the Requirements

Before generating code, gather:

  1. Custom API design: What kind/apiVersion? What fields in spec?
  2. Resources to compose: Deployments, Services, ConfigMaps, ACK resources?
  3. Dependencies: Which resources depend on others?
  4. Conditions: Any conditional resource creation (includeWhen)?
  5. Status fields: What status to expose to users?

Step 2: Design the Schema

Define the user-facing API:

// Schema design principles:
// - Use descriptive field names
// - Provide sensible defaults
// - Group related fields in nested objects
// - Add validation rules for constraints

Step 3: Generate Pulumi TypeScript Code

Use this structure for KRO RGD:

import * as k8s from "@pulumi/kubernetes";
import * as pulumi from "@pulumi/pulumi";

// Create the ResourceGraphDefinition
const rgd = new k8s.apiextensions.CustomResource("my-app-rgd", {
    apiVersion: "kro.run/v1alpha1",
    kind: "ResourceGraphDefinition",
    metadata: {
        name: "my-application",
        namespace: "default",
    },
    spec: {
        schema: {
            apiVersion: "v1alpha1",
            kind: "Application",
            spec: {
                // Define user-configurable fields
                name: "string",
                image: "string | default=\"nginx:latest\"",
                replicas: "integer | default=3",
            },
            status: {
                // Auto-populated status fields
                ready: "${deployment.status.conditions.exists(c, c.type == 'Available' && c.status == 'True')}",
                availableReplicas: "${deployment.status.availableReplicas}",
            },
            validation: [
                {
                    expression: "self.replicas >= 1 && self.replicas <= 100",
                    message: "Replicas must be between 1 and 100",
                },
            ],
        },
        resources: [
            {
                id: "deployment",
                template: {
                    apiVersion: "apps/v1",
                    kind: "Deployment",
                    metadata: {
                        name: "${schema.spec.name}",
                    },
                    spec: {
                        replicas: "${schema.spec.replicas}",
                        selector: {
                            matchLabels: {
                                app: "${schema.spec.name}",
                            },
                        },
                        template: {
                            metadata: {
                                labels: {
                                    app: "${schema.spec.name}",
                                },
                            },
                            spec: {
                                containers: [
                                    {
                                        name: "app",
                                        image: "${schema.spec.image}",
                                    },
                                ],
                            },
                        },
                    },
                },
                readyWhen: [
                    "${deployment.status.conditions.exists(c, c.type == 'Available' && c.status == 'True')}",
                ],
            },
            {
                id: "service",
                template: {
                    apiVersion: "v1",
                    kind: "Service",
                    metadata: {
                        name: "${schema.spec.name}-service",
                    },
                    spec: {
                        selector: {
                            app: "${schema.spec.name}",
                        },
                        ports: [
                            {
                                port: 80,
                                targetPort: 8080,
                            },
                        ],
                    },
                },
            },
        ],
    },
});

export const rgdName = rgd.metadata.name;

Step 4: Add ACK Resources (AWS Integration)

For AWS resources via ACK:

const rgdWithAws = new k8s.apiextensions.CustomResource("app-with-aws-rgd", {
    apiVersion: "kro.run/v1alpha1",
    kind: "ResourceGraphDefinition",
    metadata: {
        name: "application-with-storage",
    },
    spec: {
        schema: {
            apiVersion: "v1alpha1",
            kind: "AppWithStorage",
            spec: {
                name: "string",
                image: "string",
                bucketName: "string",
            },
            status: {
                bucketArn: "${bucket.status.ackResourceMetadata.arn}",
                ready: "${deployment.status.conditions.exists(c, c.type == 'Available' && c.status == 'True')}",
            },
        },
        resources: [
            // ACK S3 Bucket
            {
                id: "bucket",
                template: {
                    apiVersion: "s3.services.k8s.aws/v1alpha1",
                    kind: "Bucket",
                    metadata: {
                        name: "${schema.spec.bucketName}",
                    },
                    spec: {
                        name: "${schema.spec.bucketName}",
                        tagging: {
                            tagSet: [
                                {
                                    key: "ManagedBy",
                                    value: "KRO",
                                },
                            ],
                        },
                    },
                },
                readyWhen: [
                    "${bucket.status.ackResourceMetadata.?arn != null}",
                ],
            },
            // Deployment referencing bucket
            {
                id: "deployment",
                template: {
                    apiVersion: "apps/v1",
                    kind: "Deployment",
                    metadata: {
                        name: "${schema.spec.name}",
                    },
                    spec: {
                        replicas: 3,
                        selector: {
                            matchLabels: {
                                app: "${schema.spec.name}",
                            },
                        },
                        template: {
                            metadata: {
                                labels: {
                                    app: "${schema.spec.name}",
                                },
                            },
                            spec: {
                                containers: [
                                    {
                                        name: "app",
                                        image: "${schema.spec.image}",
                                        env: [
                                            {
                                                name: "S3_BUCKET",
                                                value: "${schema.spec.bucketName}",
                                            },
                                            {
                                                name: "S3_BUCKET_ARN",
                                                value: "${bucket.status.ackResourceMetadata.arn}",
                                            },
                                        ],
                                    },
                                ],
                            },
                        },
                    },
                },
            },
        ],
    },
});

Step 5: Deploy and Test

# Deploy the RGD
pulumi up

# Verify RGD is active
kubectl get resourcegraphdefinition
kubectl describe resourcegraphdefinition my-application

# Check generated CRD
kubectl get crd | grep kro

# Create an instance of your custom API
kubectl apply -f - <<EOF
apiVersion: v1alpha1
kind: Application
metadata:
  name: my-test-app
spec:
  name: my-test-app
  image: nginx:1.21
  replicas: 5
EOF

# Monitor instance
kubectl get application
kubectl describe application my-test-app

CEL Expression Reference

Referencing Schema Fields

${schema.spec.name}              // User-provided spec field
${schema.metadata.name}          // Instance name
${schema.metadata.namespace}     // Instance namespace
${schema.metadata.uid}           // Unique ID

Referencing Other Resources

${deployment.metadata.name}      // Resource name
${deployment.spec.replicas}      // Spec field
${deployment.status.?endpoint}   // Optional status field (use ? for null safety)

Operators and Functions

// Ternary conditional
${schema.spec.env == 'prod' ? 10 : 3}

// String concatenation
${"prefix-" + schema.spec.name}

// Null coalescing
${deployment.status.?ready ?? false}

// List operations
${deployment.status.conditions.exists(c, c.type == 'Available' && c.status == 'True')}
${schema.spec.containers.map(c, c.name)}

// Type conversion
${string(schema.spec.replicas)}
${int(schema.spec.replicasString)}

Conditional Resource Inclusion

resources:
  - id: ingress
    includeWhen:
      - ${schema.spec.ingress.enabled}
    template:
      apiVersion: networking.k8s.io/v1
      kind: Ingress
      # ...

Common Patterns

Pattern 1: Web Application Stack

// Creates: Deployment + Service + optional Ingress + optional HPA
const webAppRgd = createWebAppRgd({
    name: "webapp",
    supportsIngress: true,
    supportsAutoscaling: true,
});

Pattern 2: Database Application

// Creates: ACK RDS Instance + Secret + ConfigMap + Deployment
const dbAppRgd = createDatabaseAppRgd({
    name: "dbapp",
    dbEngine: "postgres",
    withBackup: true,
});

Pattern 3: Microservices Bundle

// Creates: Multiple Deployments + Services + NetworkPolicies
const microservicesRgd = createMicroservicesRgd({
    name: "platform",
    services: ["api", "worker", "scheduler"],
});

Pattern 4: Multi-Environment App

// Creates environment-specific resources with quotas
const envAppRgd = createEnvironmentAppRgd({
    name: "envapp",
    environments: ["dev", "staging", "prod"],
});

ACK Resource Integration

Supported ACK Resources

ServiceResource TypesACK Controller
S3Buckets3-controller
RDSDBInstance, DBCluster, DBSubnetGrouprds-controller
DynamoDBTable, GlobalTabledynamodb-controller
SQSQueuesqs-controller
SNSTopic, Subscriptionsns-controller
LambdaFunctionlambda-controller
ElastiCacheCacheCluster, ReplicationGroupelasticache-controller

ACK Status Fields

// Common ACK status patterns
${bucket.status.ackResourceMetadata.arn}           // AWS ARN
${bucket.status.ackResourceMetadata.ownerAccountID} // AWS Account
${dbinstance.status.endpoint.address}               // RDS endpoint
${dbinstance.status.endpoint.port}                  // RDS port
${queue.status.queueURL}                            // SQS URL

Best Practices

1. Schema Design

# Good: Clear, intuitive fields with defaults
spec:
  name: string
  image: string | default="nginx:latest"
  replicas: integer | default=3
  environment: string | default="dev"

# Bad: Cryptic field names, no defaults
spec:
  n: string
  i: string
  r: integer

2. Validation Rules

validation:
  - expression: "self.replicas >= 1 && self.replicas <= 100"
    message: "Replicas must be between 1 and 100"
  - expression: "self.environment in ['dev', 'staging', 'prod']"
    message: "Environment must be dev, staging, or prod"
  - expression: "self.environment == 'prod' ? self.replicas >= 3 : true"
    message: "Production requires at least 3 replicas"

3. Readiness Conditions

readyWhen:
  - ${deployment.status.conditions.exists(c, c.type == 'Available' && c.status == 'True')}
  - ${deployment.status.readyReplicas == deployment.spec.replicas}

4. Status Exposure

status:
  ready: ${deployment.status.conditions.exists(c, c.type == 'Available' && c.status == 'True')}
  availableReplicas: ${deployment.status.availableReplicas}
  endpoint: ${service.spec.clusterIP}
  bucketArn: ${bucket.status.ackResourceMetadata.?arn ?? 'pending'}

5. Naming Conventions

# Consistent naming pattern
metadata:
  name: ${schema.spec.name}
  labels:
    app.kubernetes.io/name: ${schema.spec.name}
    app.kubernetes.io/managed-by: kro

Reference Files

Current Status

KRO Status: v1alpha1 (Alpha)

  • Not yet production-ready
  • Breaking changes may occur
  • Kubernetes 1.25+ required
  • Latest release: v0.7.1 (December 2025)

Recommendation: Use in development/testing environments while awaiting v1beta1 for production readiness.

Output Format

When generating KRO RGD with Pulumi, always provide:

  1. Complete Pulumi TypeScript code with proper types
  2. RGD specification with schema, resources, and validations
  3. Example instance YAML showing how to use the custom API
  4. Deployment instructions for both Pulumi and kubectl
  5. Testing commands to verify the deployment

平台分布

Claude Code

31.04%
按下载量换算25

windsurf

23.32%
按下载量换算19

Antigravity

15.82%
按下载量换算13

Codex

12.84%
按下载量换算10

Gemini CLI

7.47%
按下载量换算6

OpenCode

3.75%
按下载量换算3

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills