hktitan/cursor-sdk · Archived

cursor-errors

CursorAgentError class hierarchy, isRetryable, and recovery patterns. Use when classifying SDK failures, building retry logic, or surfacing actionable messages.

First seen May 3, 2026

Installation

$ npx skills add hktitan/cursor-sdk --skill cursor-errors

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 hktitan/cursor-sdk · top by installs.

npx skills add hktitan/cursor-sdk

Browse all from hktitan/cursor-sdk

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 Declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 1
License LICENSE
Default branch main
Open issues 0
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Declared agents cursor
More metadata
internal
source
https://cursor.com/docs/sdk/typescript

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,294 B
  • docs SUMMARY.md 181 B

History

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

SKILL.md

cursor-errors

Every SDK throw is a CursorAgentError (or subclass). The isRetryable flag is your routing decision: retry transient errors, surface terminal ones.

Base class

  • [[references/cursor-agent-error]] — isRetryable, code, cause, protoErrorCode

Subclasses

  • [[references/auth-error]] — AuthenticationError
  • [[references/rate-limit]] — RateLimitError
  • [[references/configuration]] — ConfigurationError
  • [[references/integration-not-connected]] — IntegrationNotConnectedError
  • [[references/network]] — NetworkError
  • [[references/unknown-agent]] — UnknownAgentError
  • [[references/unsupported-op]] — UnsupportedRunOperationError

Patterns

  • [[references/retry-pattern]] — backoff using isRetryable
  • [[references/schema-stability]] — defensive parsing of tool call args/result

Cross-links

  • Run status terminal-error vs throw — [[../cursor-runs/references/wait]]
  • Operation gating — [[../cursor-runs/references/operation-support]]