generate-schema
CommunityRegenerate schema and client SDK for StateTree.
Authorgmliao
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill automates the generation of JSON schema from LandDefinitions and the TypeScript client SDK from the schema for the Swift StateTree project.
Core Features & Use Cases
- Generate JSON Schema from LandDefinitions to ensure a machine-readable contract
- Generate TypeScript Client SDK from the generated schema for client-server integration
- Use Case: After modifying LandDefinitions, regenerate the schema and client SDK to keep server and client in sync.
Quick Start
Run the following steps to regenerate schema and client SDK:
- cd Examples/HummingbirdDemo && swift run SchemaGen --output schema.json
- cd Examples/HummingbirdDemo/WebClient && npm run codegen
- ls -la Examples/HummingbirdDemo/WebClient/src/generated/
- cat Examples/HummingbirdDemo/schema.json | jq .
- git add Examples/HummingbirdDemo/schema.json
- git add Examples/HummingbirdDemo/WebClient/src/generated/
- git commit -m "chore: regenerate schema and client SDK"
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-schema Download link: https://github.com/gmliao/swift-state-tree/archive/main.zip#generate-schema 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 223,000+ vetted skills library on demand.