generate-sh-checker

Official

Standardize generate.sh across all KCC APIs

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 (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.

Dependency Matrix

Required Modules

None required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.