svelte-core-bestpractices

Guide Svelte developers to write fast, robust components with best practices.

Updated Nov 7, 2025
One-click install
npx skills add https://github.com/junwonp/portfolio --skill svelte-core-bestpractices-junwonp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: svelte-core-bestpractices
Source: https://github.com/junwonp/portfolio/tree/main/.agents/skills/svelte-core-bestpractices
Command: npx skills add https://github.com/junwonp/portfolio --skill svelte-core-bestpractices-junwonp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Guidance for writing fast, robust, modern Svelte code to help developers produce maintainable components and reliable UI behavior.

Core Features & Use Cases

  • Clear guidance on reactivity with $state, $derived, and $effect, including practical patterns for event handling and data flow.
  • Styling, component composition, and library integration best practices to improve performance and maintainability in real projects.
  • Real-world use cases: when refactoring a complex Svelte app, assessing component boundaries, and improving testability.

Quick Start

Load this skill in your Svelte project and apply its guidelines when writing or analyzing a component to ensure best practices.

Frequently Asked Questions about svelte-core-bestpractices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the best practices for Svelte reactivity using $state, $derived, and $effect?

Svelte best practices for reactivity involve using $state for mutable values, $derived for computed values, and $effect for side effects to ensure fast, robust component data flow. This skill provides vetted guidance on applying these patterns correctly.

How do I structure Svelte components for better maintainability and performance?

Structuring Svelte components for maintainability requires following vetted best practices for component composition, styling, and event handling. This skill offers guidance on assessing component boundaries and improving testability during refactoring.

Can I use these Svelte best practices when refactoring an existing web application?

Yes, you can apply these Svelte best practices when refactoring an existing web application. The skill is designed to guide developers during writing, reviewing, or analyzing components to improve performance and reliable UI behavior.

What is the best way to handle event handling and data flow in Svelte?

The best way to handle events and data flow in Svelte is by applying practical reactivity patterns using $state, $derived, and $effect. This skill provides clear guidance on these patterns for robust component design.

Does this guidance cover library integration for Svelte projects?

Yes, this guidance covers library integration best practices for Svelte projects. It provides vetted recommendations to improve performance and maintainability when integrating external libraries into your components.

Why do I need YAML frontmatter for Svelte component best practices?

YAML frontmatter with a name and description is required for discovery and linking to optional references, scripts, or assets. It ensures the Svelte best-practice guidance is properly structured and accessible when analyzing components.