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

  1. Parse OpenAPI spec for Enums/GetAll* endpoints (auto-detects namespace)
  2. Extract enum names from endpoint paths
  3. Fetch {Key, Value} pairs from Materal API (Chinese values)
  4. Output JSON for AI batch translation

generate - Generate TypeScript files

  1. Read AI-translated enum data (with English names)
  2. Validate data structure
  3. Generate TypeScript enum files (one per enum, overwrites existing)
  4. Note: Does NOT generate index.ts - already exists from generate-ts-models
Installs
4
GitHub Stars
1
First Seen
Feb 6, 2026
materal-enum-adapter — haibaraaiaptx/frontend-openapi-skills