svelte-component-generator
Generate Svelte components with TypeScript and scoped styles. Triggers on "create svelte component", "generate svelte file", "svelte module", ".svelte component".
When & Why to Use This Skill
The Svelte Component Generator is a specialized Claude skill designed to accelerate frontend development by automatically creating high-quality Svelte 5 components. It leverages TypeScript for type safety and implements scoped CSS to ensure modular, maintainable code, streamlining the transition from UI concepts to functional, production-ready code.
Use Cases
- Rapid UI Prototyping: Instantly generate reusable UI elements like buttons, modals, or navigation bars from simple natural language descriptions.
- TypeScript Scaffolding: Automatically create Svelte components with pre-defined TypeScript interfaces and props to ensure type safety across your project.
- Standardized Component Creation: Maintain consistent coding standards by generating Svelte 5 files that follow best practices for scoped styling and modern syntax.
- Design-to-Code Workflow: Quickly convert UI design requirements into functional .svelte files, reducing manual boilerplate coding time.
| name | svelte-component-generator |
|---|---|
| description | Generate Svelte components with TypeScript and scoped styles. Triggers on "create svelte component", "generate svelte file", "svelte module", ".svelte component". |
Svelte Component Generator
Generate Svelte components with TypeScript and scoped CSS.
Output Requirements
File Output: *.svelte component files
Format: Valid Svelte 5
Standards: Svelte 5 with TypeScript
When Invoked
Immediately generate a complete Svelte component with props and styles.
Example Invocations
Prompt: "Create Svelte button component"
Output: Complete Button.svelte with variants.