typespec-enums
CommunityDefine and emit TypeSpec enums across languages.
Authorhafley66
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill automates the creation and cross-language emission of TypeSpec enums, eliminating manual boilerplate and ensuring consistent enum behavior across targets.
Core Features & Use Cases
- Enum declarations with members and values (auto, explicit, string, numeric).
- Enum-to-union conversions for stricter typing and flexible usage.
- Support for common decorators like @doc, @summary, @fixed, @flags.
- Multi-language emission: C#, Java, TypeScript, Go, Rust, and additional targets.
- Replication of legacy codegen enum patterns and extension scenarios.
- Use cases include API schema definitions, code generation pipelines, and ensuring consistent enum metadata across languages.
Quick Start
Define an enum with a mix of member value types, then emit corresponding enums to multiple languages.
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: typespec-enums Download link: https://github.com/hafley66/claude-research/archive/main.zip#typespec-enums 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 471,000+ vetted skills library on demand.