What problem does it solve?
This Skill provides a standardized set of conventions and best practices for building SvelteKit/Svelte 5 frontends, ensuring consistency, maintainability, and developer efficiency.
Core Features & Use Cases
- Project Structure Guidance: Defines a clear and organized directory layout for components, utilities, state management, and API interactions.
- API Client & Auth Handling: Outlines patterns for creating a typed API client, managing authentication tokens, and handling errors gracefully.
- Component Best Practices: Enforces rules for props, component organization, and integration with UI libraries like shadcn.
- Styling & Theming: Mandates the use of logical CSS properties, mobile-first responsive design, and consistent theming.
- Routing & Permissions: Details the flow for routing, server-side data loading, and implementing permission-based access control.
- i18n & State Management: Provides guidelines for internationalization and managing reactive state.
- Security: Specifies essential security headers and Content Security Policy (CSP) configurations.
Quick Start
Consult the frontend conventions skill for guidance on structuring your SvelteKit project and implementing its API client.