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
- Define the Type: Add the new type to
creditTypeSchemaenum.export const creditTypeSchema = z.enum([ "image_generation", "video_generation", "your_new_credit_type" // Add this ]);