senrecep/tsentials/tsentials-enums
Claude Code and agent skill by senrecep/tsentials
- community
Checking that the SKILL.md file is still in the repository.
Use when you need enums with wire names, aliases and safe parsing — defineEnum() declares members with explicit or derived wire names, numeric values, aliases and an optional fallback member; parse/parseNumber return Result<T> instead of throwing, format converts back to wire text or number.
Install
npx vskill@latest install senrecep/tsentials/tsentials-enumsSKILL.md
tsentials/enums
Enum definitions with wire names, aliases, a fallback member and Result-returning parsing. Subpath-only: not exported from the root tsentials entry.
Installation
Import
Define
Member options: wire, value (int32; later members continue from it), aliases, fallback, description, obsolete. Third argument: { naming } — 'snake_case_lower' (default), 'snake_case_upper', 'kebab-case-lower', 'kebab-case-upper', 'camelCase', 'PascalCase'.
Parse
EnumParseOptions: mode ('input' default | 'data'), path, acceptNumbers, acceptMemberNames, caseInsensitive, unknownValue ('useFallback' | 'reject').
Format and inspect
Patterns and pitfalls
- Import from
tsentials/enums— never from the roottsentialsentry. defineEnumthrows (programmer error): empty member list, more than one fallback, duplicate wire names or aliases, non-int32 values.parsenever throws; invalid text is aValidationfailureEnum.InvalidValue. Use{ mode: 'data' }only for trusted persisted data where an unknown value should degrade to the fallback.- Declare
type Status = EnumMember<typeof Status>next to the const so one name serves as both value and type. - Combine with
tsentials/validation(isDefinedEnum) orResult.thenfor request validation.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.well-known/agent-skills/tsentials-enums/SKILL.md
Popularity
- Repository stars
- 59
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/senrecep/tsentials/tsentials-enums)