crossplane-composition-authoring

Author and validate Crossplane XEnvironment XRD and Composition configurations.

1|Updated Mar 20, 2025
One-click install
npx skills add https://github.com/asanexample/platform --skill crossplane-composition-authoring
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: crossplane-composition-authoring
Source: https://github.com/asanexample/platform/tree/main/.claude/skills/crossplane-composition-authoring
Command: npx skills add https://github.com/asanexample/platform --skill crossplane-composition-authoring

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps in authoring and editing the Crossplane XEnvironment XRD + Composition, which is crucial for extending the provisioning capabilities of environments, modifying how the Composition renders, and validating changes before applying them.

Core Features & Use Cases

  • Authoring XEnvironment XRD + Composition: Customize the internal provisioner logic for environment claims.
  • Extend Provisioning Capabilities: Add new composed resources, spec/status fields, provider services, and Pod Identity/IAM configurations.
  • Change Rendering Logic: Modify how the go-templating Composition renders.
  • Validate Changes: Ensure Composition/XRD changes are correct before applying.
  • Use Case: If you need to create a new composed resource or modify the status fields of an environment, this Skill provides the necessary tools and guidelines.

Quick Start

Run the script to validate the Composition and XRD for the 'crossplane' module using the command: infra/modules/crossplane/.environment-api-tests/run.sh.

Frequently Asked Questions about crossplane-composition-authoring

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I author and validate a Crossplane Composition for environment provisioning?

You can validate Crossplane XRD and Composition changes by running the environment API tests script, which checks your infrastructure provisioning configurations for correctness before you apply them to the cluster.

How do I add new provider services and IAM configurations to a Crossplane XEnvironment?

You add new provider services and IAM configurations by extending the XEnvironment XRD spec and status fields, then modifying the Composition to include the new composed resources within your environment provisioning logic.

How does go-templating work when modifying Crossplane Composition rendering logic?

Modifying Crossplane Composition rendering logic with go-templating requires understanding go-templating syntax and Crossplane architecture to dynamically customize how your environment provisioner generates composed resources.

Do I need to know Kubernetes and Crossplane architecture to modify an XRD?

Yes, modifying an XRD requires knowledge of Kubernetes-based infrastructure management and Crossplane architecture to properly structure environment claims, composed resources, and provisioning logic.

What is the best way to validate XRD and Composition changes before applying them?

The best way to validate XRD and Composition changes before applying them is to run the dedicated environment API tests script, ensuring your infrastructure modifications are correct without impacting live resources.