new-enum
CommunityCreate cross-boundary AppEnum types.
Authorweiloon1234
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill standardizes the process of adding a new app-owned enum (forge::AppEnum) so that the Rust code, DB bindings, and TypeScript types stay consistent across the stack, including wire keys and i18n labels.
Core Features & Use Cases
- Enables a new AppEnum with defined variants that serialize to string keys for DB storage and TS export.
- Ensures i18n label keys exist for every locale, and regenerates TS bindings via make types.
- Use cases include adding Priority, TopUpStatus, or OrderStatus enums that cross the Rust/DTO/TS boundaries.
Quick Start
Define the new enum in Rust using #[derive(forge::AppEnum)], add any required #[forge(key = "...")] wire keys, update i18n keys for locales, and run make types to produce the frontend bindings.
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: new-enum Download link: https://github.com/weiloon1234/Forge-Starter/archive/main.zip#new-enum 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.