svelte-patterns

Standardize Svelte 5 patterns and TypeScript practices for template projects.

11|1|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/mindcockpit-ai/cognitive-core --skill svelte-patterns-mindcockpit-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: svelte-patterns
Source: https://github.com/mindcockpit-ai/cognitive-core/tree/main/skills/cellular/templates/svelte
Command: npx skills add https://github.com/mindcockpit-ai/cognitive-core --skill svelte-patterns-mindcockpit-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Modern Svelte patterns and TypeScript best practices to standardize and accelerate Svelte 5 projects.

Core Features & Use Cases

  • Modern Svelte 5 patterns with runes for reactive state
  • Typed props, events, and components patterns
  • Reusable patterns for stores, component structure, and practices to enforce best practices

Quick Start

Copy this template into your project and tailor patterns for your codebase.

Frequently Asked Questions about svelte-patterns

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

FAQPage Schema
How do I manage state in Svelte 5 using runes?

Svelte 5 runes manage reactive state by explicitly declaring reactive variables, derived state, and effects. This approach standardizes component reactivity, ensuring typed props and clean effect cleanup for robust web development.

What is the best way to structure TypeScript props in Svelte 5 components?

The best way to structure TypeScript props in Svelte 5 is using typed props patterns. This enforces strict type checking across component boundaries, ensuring modular component patterns and high-quality app development.

How do I handle keyed iterations and effect cleanup in Svelte 5?

Handle keyed iterations and effect cleanup by applying standardized Svelte 5 patterns. These patterns ensure proper resource management during reactivity updates, preventing memory leaks and maintaining robust application state.

Can I use these Svelte 5 patterns for teams adopting runes-based state management?

Yes, these Svelte 5 patterns are designed for teams adopting runes-based state management. They standardize TypeScript practices, component structure, and testing guidelines to accelerate high-quality, template-driven project development.

When do I need derived state in Svelte 5 component patterns?

You need derived state in Svelte 5 component patterns when computing values from other reactive variables. Using runes for derived state ensures automatic recalculation when dependencies change, maintaining robust reactivity.