What problem does it solve?
This Skill solves the problem of KCC resource identity and external reference code drifting from the canonical gcpurls.Template pattern, which can break normalization and downstream identity/ref resolution.
Core Features & Use Cases
- Creates or updates KCC identity implementations: Generates or refreshes the resource’s
<kind>_identity.go to implement identity.IdentityV2 using the canonical gcpurls.Template.
- Creates or updates KCC reference implementations: Generates or refreshes the resource’s
<kind>_reference.go to implement refs.Ref, including GVK registration and external parsing.
- Ensures correct URL formatting and field mapping: Uses
docs/ai/metadata/cloudassetinventory_names.jsonl (or existing implementations) to derive exact GCP URL segments and enforce struct-field/template-variable alignment.
- Handles normalization inputs safely: Ensures
getIdentityFrom<Kind>Spec can handle both typed objects and *unstructured.Unstructured during Normalize.
Quick Start
Ask the AI to update the identity and reference for MemoryStoreInstance so the _identity.go and _reference.go files match the canonical gcpurls.Template and implement IdentityV2 and refs.Ref.