1k-error-handling

Installation
SKILL.md

Error Handling

Best practices for error handling in OneKey codebase.

Core Principles

  • Use try/catch blocks for async operations that might fail
  • Provide appropriate error messages and fallbacks
  • Use useAsyncCall hook for operations needing loading/error states
  • Never swallow errors silently

Quick Reference

Basic Try/Catch

async function fetchData() {
  try {
    const result = await apiCall();
    return result;
Related skills
Installs
56
GitHub Stars
2.4K
First Seen
Feb 1, 2026