sveltekit-page-generator
Generate SvelteKit page files with load functions and form actions. Triggers on "create sveltekit page", "generate svelte route", "sveltekit load", "+page.svelte".
When & Why to Use This Skill
This Claude skill automates the creation of SvelteKit route files, specifically generating '+page.svelte' and '+page.server.ts' boilerplate. It streamlines the development workflow by automatically setting up load functions and form actions according to SvelteKit 2.x standards, helping developers move from idea to functional route in seconds.
Use Cases
- Rapidly scaffolding new web pages with pre-configured server-side data loading logic.
- Generating complex form actions for user authentication, contact forms, or data submission routes.
- Creating dynamic content routes, such as blog post templates or product detail pages, with integrated SvelteKit lifecycle methods.
- Ensuring consistent coding standards and boilerplate structure across a SvelteKit project.
| name | sveltekit-page-generator |
|---|---|
| description | Generate SvelteKit page files with load functions and form actions. Triggers on "create sveltekit page", "generate svelte route", "sveltekit load", "+page.svelte". |
SvelteKit Page Generator
Generate SvelteKit pages with load functions and form actions.
Output Requirements
File Output: +page.svelte, +page.server.ts
Format: Valid SvelteKit
Standards: SvelteKit 2.x
When Invoked
Immediately generate complete SvelteKit page files.
Example Invocations
Prompt: "Create SvelteKit page for blog posts"
Output: Complete +page.svelte and +page.server.ts.