leptos

Guide Leptos development across components, signals, SSR, and routing.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/HadiCherkaoui/opencode-config --skill leptos
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: leptos
Source: https://github.com/HadiCherkaoui/opencode-config/tree/main/skills/leptos
Command: npx skills add https://github.com/HadiCherkaoui/opencode-config --skill leptos

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ensures Leptos development stays correct, idiomatic, and aligned with the framework's reactive model by guiding developers through standard patterns across components, signals, SSR, routing, and deployment.

Core Features & Use Cases

  • Guides on using #[component], #[island], signals (signal, RwSignal, ReadSignal, WriteSignal), memos, and effects.
  • Covers server functions (#[server]), router configuration (leptos_router), SSR hydration, and deployment workflows.
  • Provides a mandatory workflow requiring reading guideline files before coding to maintain consistency and safety across Leptos projects.

Quick Start

Read the relevant guideline files before editing Leptos code.

Frequently Asked Questions about leptos

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

FAQPage Schema
How do I manage signals and reactivity correctly in Leptos components?

To manage signals correctly in Leptos components, follow idiomatic patterns using `signal`, `RwSignal`, `ReadSignal`, and `WriteSignal` to maintain the framework's reactive model. The workflow requires reading specific guideline files before coding to ensure consistency and safety across your project's reactive state.

What is the best way to configure routing and server functions for a Leptos SSR app?

The best way to configure routing and server functions for a Leptos SSR app is to apply standard patterns using `leptos_router` for routes and `#[server]` for server functions. Reading the relevant guideline files before editing ensures correct SSR hydration and deployment setup.

How do I create idiomatic Leptos components using macros?

Creating idiomatic Leptos components requires using `#[component]` and `#[island]` macros properly within the framework's reactive model. You must read specific guideline files before coding to validate usage against structured guidelines for safe and consistent component creation.

Does Leptos work with standard web deployment workflows for SSR hydration?

Yes, Leptos works with standard web deployment workflows for SSR hydration by implementing server functions and configuring routes through `leptos_router`. The mandatory workflow ensures you read guideline files before coding to maintain correct SSR hydration and deployment alignment.

Why does my Leptos reactivity break when using memos and effects?

Leptos reactivity breaks when memos and effects deviate from the framework's reactive model. To fix this, enforce idiomatic development by reading specific guideline files before coding and validating your usage against the structured guidelines for signals and effects.