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
This Claude skill automates the creation of Svelte 5 components, integrating TypeScript for robust type safety and scoped CSS for modular styling. It streamlines the frontend development workflow by generating production-ready boilerplate code instantly based on natural language prompts, ensuring adherence to modern Svelte standards.
Use Cases
- Rapid UI Prototyping: Quickly generate reusable UI components like buttons, modals, and navigation bars with predefined props and styles.
- TypeScript Integration: Automatically set up Svelte components with proper TypeScript interfaces and type definitions to reduce runtime errors and improve maintainability.
- Standardized Component Scaffolding: Ensure consistent project architecture by generating scoped CSS blocks and Svelte 5 syntax for every new module.
- Boilerplate Reduction: Save time by converting simple descriptions into fully functional .svelte files, allowing developers to focus on complex business logic.
| 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.