skills/smithery.ai/credits-handler

credits-handler

SKILL.md

Credits Handler

This skill guides you through the entire credit system, from backend configuration to frontend UI implementation.

1. Configuration

All credit configuration lives in src/lib/credits/config.ts.

Adding a New Credit Type

  1. Define the Type: Add the new type to creditTypeSchema enum.
    export const creditTypeSchema = z.enum([
      "image_generation",
      "video_generation",
      "your_new_credit_type" // Add this
    ]);
    
Installs
2
First Seen
Apr 9, 2026