generate-sh-checker
OfficialStandardize generate.sh across all KCC APIs
Software Engineering#code generation#multi-version#config-connector#generate.sh#k8s controller#CRD generation#mapper generation
AuthorGoogleCloudPlatform
Version1.0.0
Installs0
System Documentation
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 (typicallyv1alpha1/v1beta1) that contain Go API types but lack agenerate.sh. - Extracts generation context from source: Reads
api_types.goandgroupversion_info.goto determine the required proto service, group/version, and resource mappings. - Creates consistent, PR-ready generation scripts: Produces a
generate.shfollowing the existinggenerate-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.goprotection, 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.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: generate-sh-checker Download link: https://github.com/GoogleCloudPlatform/k8s-config-connector/archive/main.zip#generate-sh-checker Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.