Crossplane Specialist
Structured investigation for Crossplane-based infrastructure platforms. Five phases:
gather context, diagnose, design, recommend, verify.
Arguments
$0 — XRD name, Claim name, or problem description. Required.
Phase 1: Context Gathering
- List installed providers and packages:
kubectl get providers
kubectl get configurations
kubectl get functions
- List XRDs and their ready status:
kubectl get xrd
- List Claims and Composites:
kubectl get composite --all-namespaces
kubectl get claim --all-namespaces
- Glob for Crossplane manifests in the working directory:
find . -name "*.yaml" | xargs grep -l "apiVersion: apiextensions.crossplane.io" | sort
Phase 2: Diagnosis
Stuck Claim / Composite trace:
kubectl describe claim <name> -n <namespace>
kubectl describe composite <name>
kubectl get managed --all-namespaces | grep -v "True"
kubectl describe <managed-resource-kind> <name>
Provider health:
kubectl describe provider <name>
kubectl get providerconfig
kubectl describe providerconfig <name>
Composition pipeline:
kubectl get composition <name> -o yaml
kubectl get function --all-namespaces
Phase 3: Design / Root-Cause Analysis
Map symptoms to causes:
| Symptom |
Common Causes |
Check |
Claim stuck Waiting |
Composite not ready, no matching Composition |
kubectl describe composite → events |
Managed resource NotFound |
Wrong external-name annotation, ID mismatch |
Provider docs for external-name format |
Provider Unhealthy |
Bad credentials, missing ProviderConfig |
kubectl describe provider events |
| Composition patch fails |
Wrong fromFieldPath, type mismatch |
kubectl get composite -o yaml patched fields |
| Function pipeline error |
Function pod crash, malformed FunctionIO |
kubectl logs -n crossplane-system function |
| Deletion stuck (finalizer) |
Managed resource Delete policy, cloud resource busy |
Check deletion policy + cloud console |
Cite kind:name or file:line for every finding.
Phase 4: Recommendations
Output findings in priority order:
[CRITICAL] <title>
Resource: <kind:name or file:line>
Issue: <one sentence>
Evidence: <kubectl output or config snippet>
Fix: <specific change, with YAML diff if applicable>
Trade-off: <alternative and its downside, if meaningful>
Order: CRITICAL → WARNING → INFO.
Phase 5: Verification
After fixes are applied:
kubectl get composite <name> — READY: True, SYNCED: True.
kubectl get managed — all managed resources show READY: True.
kubectl describe claim <name> — no error events.
kubectl apply --dry-run=server -f composition.yaml — no schema errors.
- If deletion policy changed: confirm behavior by deleting a test Claim in a non-prod environment.
Reference Docs
| File |
When to use |
xrd-design.md |
XRD schema design, versioning, validation rules |
compositions.md |
Composition patch-and-transform, pipeline mode, Functions |
provider-configs.md |
Credential injection, ProviderConfig patterns |
managed-resources.md |
External-name, deletion policy, resource lifecycle |
gitops-integration.md |
Argo CD / Flux health checks, package management |
1---
2id: crossplane-specialist
3name: crossplane-specialist
4type: skill
5version: 1.0.0
6domain: [infra]
7platform: [crossplane, kubernetes]
8task: [debugging, review]
9maturity: validated
10description: >
11 Deep-dive Crossplane platform review: XRD design, Composition correctness,
12 provider config audit, managed resource health, and GitOps integration.
13 Use for structured investigations of stuck Claims, composition pipeline bugs,
14 and credential injection patterns. Triggers on: "Crossplane audit", "XRD review",
15 "Composition debug", "stuck Claim", "managed resource stuck", "provider config
16 review", "Crossplane GitOps".
17argument-hint: "<XRD name, Claim name, or problem description>"
18tools: Read, Grep, Glob, Bash
19effort: max
20model: opus
21metadata:
22 source: https://skillmd.com/skills/aibot88/crossplane-specialist
23---
24
25# Crossplane Specialist
26
27Structured investigation for Crossplane-based infrastructure platforms. Five phases:
28gather context, diagnose, design, recommend, verify.
29
30## Arguments
31
32- `$0` — XRD name, Claim name, or problem description. Required.
33
34---
35
36## Phase 1: Context Gathering
37
381. List installed providers and packages:
39 ```bash
40 kubectl get providers
41 kubectl get configurations
42 kubectl get functions
43 ```
442. List XRDs and their ready status:
45 ```bash
46 kubectl get xrd
47 ```
483. List Claims and Composites:
49 ```bash
50 kubectl get composite --all-namespaces
51 kubectl get claim --all-namespaces
52 ```
534. Glob for Crossplane manifests in the working directory:
54 ```bash
55 find . -name "*.yaml" | xargs grep -l "apiVersion: apiextensions.crossplane.io" | sort
56 ```
57
58---
59
60## Phase 2: Diagnosis
61
62**Stuck Claim / Composite trace:**
63
64```bash
65kubectl describe claim <name> -n <namespace>
66kubectl describe composite <name>
67kubectl get managed --all-namespaces | grep -v "True"
68kubectl describe <managed-resource-kind> <name>
69```
70
71**Provider health:**
72
73```bash
74kubectl describe provider <name>
75kubectl get providerconfig
76kubectl describe providerconfig <name>
77```
78
79**Composition pipeline:**
80
81```bash
82kubectl get composition <name> -o yaml
83kubectl get function --all-namespaces
84```
85
86---
87
88## Phase 3: Design / Root-Cause Analysis
89
90Map symptoms to causes:
91
92| Symptom | Common Causes | Check |
93| --------------------------- | ----------------------------------------------------- | ---------------------------------------------- |
94| Claim stuck `Waiting` | Composite not ready, no matching Composition | `kubectl describe composite` → events |
95| Managed resource `NotFound` | Wrong external-name annotation, ID mismatch | Provider docs for external-name format |
96| Provider `Unhealthy` | Bad credentials, missing `ProviderConfig` | `kubectl describe provider` events |
97| Composition patch fails | Wrong `fromFieldPath`, type mismatch | `kubectl get composite -o yaml` patched fields |
98| Function pipeline error | Function pod crash, malformed `FunctionIO` | `kubectl logs -n crossplane-system` function |
99| Deletion stuck (finalizer) | Managed resource `Delete` policy, cloud resource busy | Check deletion policy + cloud console |
100
101Cite `kind:name` or `file:line` for every finding.
102
103---
104
105## Phase 4: Recommendations
106
107Output findings in priority order:
108
109```
110[CRITICAL] <title>
111Resource: <kind:name or file:line>
112Issue: <one sentence>
113Evidence: <kubectl output or config snippet>
114Fix: <specific change, with YAML diff if applicable>
115Trade-off: <alternative and its downside, if meaningful>
116```
117
118Order: CRITICAL → WARNING → INFO.
119
120---
121
122## Phase 5: Verification
123
124After fixes are applied:
125
1261. `kubectl get composite <name>` — `READY: True`, `SYNCED: True`.
1272. `kubectl get managed` — all managed resources show `READY: True`.
1283. `kubectl describe claim <name>` — no error events.
1294. `kubectl apply --dry-run=server -f composition.yaml` — no schema errors.
1305. If deletion policy changed: confirm behavior by deleting a test Claim in a non-prod environment.
131
132---
133
134## Reference Docs
135
136| File | When to use |
137| ----------------------- | --------------------------------------------------------- |
138| `xrd-design.md` | XRD schema design, versioning, validation rules |
139| `compositions.md` | Composition patch-and-transform, pipeline mode, Functions |
140| `provider-configs.md` | Credential injection, `ProviderConfig` patterns |
141| `managed-resources.md` | External-name, deletion policy, resource lifecycle |
142| `gitops-integration.md` | Argo CD / Flux health checks, package management |