spences10/devhub-crm · Archived

error-handling-patterns

Svelte 5 error handling. Use for error boundaries, async await expressions, loading states, and form errors.

First seen Mar 15, 2026

Installation

$ npx skills add spences10/devhub-crm --skill error-handling-patterns

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from spences10/devhub-crm.

npx skills add spences10/devhub-crm

Browse all from spences10/devhub-crm

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 6
Default branch main
Open issues 1
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,176 B
  • docs README.md 447 B
  • docs SUMMARY.md 157 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

Error Handling Patterns

Quick Start

<svelte:boundary>
	<ul>
		{#each await get_contacts() as contact}
			<li>{contact.name}</li>
		{/each}
	</ul>

	{#snippet pending()}
		<div class="loading">Loading...</div>
	{/snippet}

	{#snippet failed(error, reset)}
		<div class="error">
			<p>Error: {error.message}</p>
			<button onclick={reset}>Retry</button>
		</div>
	{/snippet}
</svelte:boundary>

Core Principles

  • Error boundaries: Use <svelte:boundary> to catch component

errors

  • Pending snippet: Show loading state while awaiting data
  • Failed snippet: Display errors with retry via reset function
  • Await expressions: Use {#each await query()} directly in

markup

  • Granular boundaries: Wrap individual features, not entire pages
  • Form errors: Check remote function .error property (e.g.,

create_contact.error)

Reference Files

  • [error-handling-guide.md](references/error-handling-guide.md) -

Complete patterns and examples