What problem does it solve?
This Skill prevents inconsistent or missing generate.sh automation in the Config Connector apis/ directories, which can lead to broken generation workflows, stale generated code, and harder-to-review pull requests.
Core Features & Use Cases
- Scans for missing generate scripts: Detects
apis/<service>/<version>/ directories (typically v1alpha1/v1beta1) that contain Go API types but lack a generate.sh.
- Extracts generation context from source: Reads
api_types.go and groupversion_info.go to determine the required proto service, group/version, and resource mappings.
- Creates consistent, PR-ready generation scripts: Produces a
generate.sh following the existing generate-proto/generate-types/generate-mapper/CRD update pipeline and includes guidance for multi-version edge cases.
- Handles common generation gotchas: Covers naming expectations, hand-written
types.generated.go protection, pointer-field preservation, and acronym ref-field fixes.
Quick Start
Run the generate-sh-checker workflow to scan apis/ for missing generate.sh files and generate them following the standard pattern from #7293.