一键导入
reviewgen-brownfield-new-types
Provides provides clear review criteria for reviewing PRs that add new KCC types for Brownfield resources.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Provides provides clear review criteria for reviewing PRs that add new KCC types for Brownfield resources.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Automate the initial scaffolding of a KCC "direct" resource, including CRD types and generation scripts. Use this when starting a new "direct" implementation for a GCP resource.
Creates or updates the _identity.go and _reference.go files for a Config Connector resource, ensuring they follow the canonical gcpurls.Template pattern. Use this when you need to make sure the identity and reference is up to date for a KCC resource or when implementing IdentityV2 and refs.Ref for a resource.
Standards and workflows for creating direct KRM Go types for an existing CRD while maintaining strict schema compatibility.
Comprehensive review guide and criteria for PRs adding or modifying features in legacy resources (TF patches, DCL patches, CRD changes, MockGCP alignment, and Direct Controller alignment).
Implement the controller, mappers, and fuzzer for a direct KCC resource, ensuring package isolation and CI compliance. Use this when implementing the main reconciliation logic for a "direct" resource.
Guides modifying, patching, and updating resources and fields managed by the Terraform/legacy controller, including patching the local/vendored Terraform Google Beta provider.
| name | reviewgen-brownfield-new-types |
| description | Provides provides clear review criteria for reviewing PRs that add new KCC types for Brownfield resources. |
Please respect the following review criteria and invariants when reviewing.
v1beta1 (or matching their existing version in the master branch).spec.versions[].name) matches the existing CRD version (typically v1beta1).apis/${resource_group}/${version}/ (typically v1beta1)..go and .sh files must contain a copyright header. For all new files the copyright year must be 2026.${resource_name}_types.go, review the field comments (e.g., Kubebuilder tags indicating required or optional).string, bool, int, int32, int64, float64), it must be a pointer (e.g., *string, *bool).string, bool, int, int32, int64, float64).[]string) or map fields (e.g., map[string]string) pointers (i.e., do not write *[]string or *map[string]string).master branch.
status block located at the end of the CRD yaml file is fine and should not be flagged in the review:
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
./dev/tasks/diff-crds --base master from the repository root. If the output shows any added or removed fields under spec or status (excluding comments or description text updates), fail the review..build/third_party/googleapis/google/... matching the service named in the resource's generate.sh (e.g., google.cloud.apihub.v1).status Mapping: Fields containing (google.api.field_behavior) = OUTPUT_ONLY in the proto must map only to Go's Status struct (represented as status in the CRD).spec Mapping: Fields without OUTPUT_ONLY behavior in the proto must map to Go's Spec struct (represented as spec in the CRD).When proposing changes or stating LGTM, format the review description as follows:
### KCC Auto-Review Results
* **Trigger criteria matched**: [Yes/No]
* **API Version Check**: [Pass/Fail] - (Specify paths/versions checked)
* **Go Type Pointers**: [Pass/Fail] - (List any non-pointer primitives found)
* **Schema Compatibility**: [Pass/Fail] - (List any diff-crds issues)
* **References/Identity**: [Pass/Fail] - (List any missing resource references)
#### Detailed Findings / Actions Required:
1. [Specify file, line number, and exact issue]