crossplane

Generate Crossplane compositions with schema validation and security defaults.

Updated Oct 6, 2025
One-click install
npx skills add https://github.com/andisab/casdk-harness --skill crossplane-andisab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: crossplane
Source: https://github.com/andisab/casdk-harness/tree/main/tests/smoke/iac-team/skills/crossplane
Command: npx skills add https://github.com/andisab/casdk-harness --skill crossplane-andisab

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires crossplane, kubectl, opa, trivy, checkov, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides expert guidance for creating secure, cost-optimized Crossplane compositions, eliminating the need for manual infrastructure management and improving development efficiency.

Core Features & Use Cases

  • XRD Generation: Automatically create CompositeResourceDefinitions (XRDs) with robust schema validation and security defaults.
  • Composition Patterns: Generate complex compositions for infrastructure as code, including managed resources, connection secrets, and dependencies.
  • ProviderConfig Security: Securely configure provider authentication using OIDC/IRSA, Workload Identity, and least privilege principles.
  • Multi-Phase Validation: Ensures all AI-generated compositions pass technical, intent, and security validations before deployment.
  • Cost Optimization: Implements cost-saving strategies like spot instances and savings plans for infrastructure resources.
  • Modern Kubernetes Patterns: Integrates Gateway API and native sidecars for modern application deployment.
  • Error Pattern Recognition: Identifies common errors in AI-generated compositions and provides solutions.
  • Validation Requirements: Enforces schema validation, connection secrets, status conditions, security scanning, and hallucination detection.
  • Common Patterns: Provides templates and examples for multi-resource compositions, environment-specific compositions, and provider abstractions.
  • Integration with iac-generator: Seamlessly integrates with the iac-generator agent for infrastructure as code generation.

Quick Start

To generate a Crossplane composition for a PostgreSQL database, use the crossplane skill with the following command:

crossplane generate database postgresql

Frequently Asked Questions about crossplane

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

FAQPage Schema
How do I generate production-ready Crossplane compositions with security defaults?

Generate production-ready Crossplane compositions by automatically creating XRDs with robust schema validation and applying security defaults like least privilege ProviderConfig authentication using OIDC and Workload Identity.

How do I secure ProviderConfig authentication for Crossplane managed resources?

Secure ProviderConfig authentication for Crossplane managed resources by configuring OIDC, IRSA, and Workload Identity integrations based on least privilege principles to prevent unauthorized cloud API access.

Can I validate AI-generated Crossplane compositions for security and hallucinations?

You can validate AI-generated Crossplane compositions using a multi-phase validation process that enforces schema validation, security scanning with Trivy and Checkov, and hallucination detection before Kubernetes deployment.

What is the best way to optimize cloud costs in infrastructure-as-code compositions?

Optimize cloud costs in infrastructure-as-code compositions by implementing cost-saving strategies such as spot instances and savings plans directly within your Crossplane managed resource definitions.

How do I fix common errors in Crossplane compositions and XRD schemas?

Fix common errors in Crossplane compositions by identifying pattern mismatches in XRD schemas, resolving missing connection secrets, and correcting status conditions using provided error recognition solutions.

Do I need kubectl and OPA to validate cloud-native Crossplane deployments?

You need kubectl for deployment and OPA for policy enforcement to technically validate cloud-native Crossplane deployments, ensuring managed resources meet security and intent requirements before applying.