materal-enum-adapter
Installation
SKILL.md
Materal Framework Enum Adapter
Detects Materal Framework's enum endpoints and fetches real enum data from the API for efficient enum generation.
How It Works
Two-command workflow for fast, batch-style enum generation:
fetch - Get enum data from API
- Parse OpenAPI spec for
Enums/GetAll*endpoints (auto-detects namespace) - Extract enum names from endpoint paths
- Fetch
{Key, Value}pairs from Materal API (Chinese values) - Output JSON for AI batch translation
generate - Generate TypeScript files
- Read AI-translated enum data (with English names)
- Validate data structure
- Generate TypeScript enum files (one per enum, overwrites existing)
- Note: Does NOT generate
index.ts- already exists fromgenerate-ts-models