leeovery/agentic-skills/nuxt-enums

Claude Code and agent skill by leeovery/agentic-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

TypeScript enum pattern with Castable interface for model integration. Use when creating enums with behavior methods (colors, labels), defining fixed value sets, or integrating enums with the model casting system.

Install

npx vskill@latest install leeovery/agentic-skills/nuxt-enums

SKILL.md

The same SKILL.md was published earlier as majiayu000/claude-skill-registry/nuxt-enums.

Nuxt Enums

Class-based enums with behavior methods and model casting integration.

Core Concepts

[enums.md](references/enums.md) - Complete enum patterns, behavior methods, UI integration

Basic Enum

typescript
// app/enums/PostStatus.ts
import Enum from '#layers/base/app/enums/Enum'
import type { Castable } from '#layers/base/app/types'
export default class PostStatus extends Enum implements Castable {
// Static enum values
static readonly Draft = PostStatus.create('draft')
static readonly PendingReview = PostStatus.create('pending review')
static readonly Published = PostStatus.create('published')
static readonly Archived = PostStatus.create('archived')
// Cast method for model system
static cast(value: string): PostStatus {
return PostStatus.coerce(value)
}
// Behavior methods
color(): string {
switch (this.value) {
case 'draft': return 'neutral'
case 'pending review': return 'warning'
case 'published': return 'success'
case 'archived': return 'error'
default: return 'neutral'
}
}
get text(): string {
return this.value
}
}

Usage

typescript
// In models (auto-cast from API string)
status: PostStatus
// Comparisons
post.status.is(PostStatus.Published)
// Get all values
PostStatus.values()
// In templates
<UBadge :color="post.status.color()">{{ post.status.text }}</UBadge>

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/leeovery/agentic-skills/nuxt-enums/badge)](https://verified-skill.com/skills/leeovery/agentic-skills/nuxt-enums)

Something wrong with this skill or its page? Tell us.