Rocky Codegen & Schema Sync

•
265
•

Synchronizes Rocky CLI JSON-output schemas across Rust, Python, and TypeScript to prevent API contract drift.

Rocky Codegen manages the complex pipeline of transforming Rust source-of-truth structs into cross-language types. By deriving JSON schemas from Rust CLI output, it automatically regenerates Pydantic v2 models for the Python SDK and TypeScript interfaces for VS Code extensions. This skill ensures that any change to the CLI interface is consistently reflected across all consumers, backed by CI drift detection and local git hooks to maintain a robust, typed contract between the core engine and its integrations.

主要功能

01Pydantic v2 model generation for Python SDK integration
02265 GitHub stars
03Automated Rust-to-JSON schema generation for CLI outputs
04CI-enforced drift detection to prevent breaking API changes
05TypeScript type generation for IDE and editor support
06Pre-commit hook integration for local schema validation

使用场景

01Resolving codegen-drift failures in monorepo CI/CD pipelines
02Modifying or adding fields to Rocky CLI command output structs
03Syncing Python SDK types with core engine changes