In short.
The Cursor SDK skill is assistant guidance for developers building Cursor automations, but its authentication and retry examples need correction. Its eight Markdown files explain one-shot requests, ongoing agents, resume, streaming and external tools, with useful detail on local/cloud differences and cleanup. The authentication reference misdescribes TypeScript's non-null assertion, and a retry helper wraps lazy agent creation instead of the operation that starts work. No examples were executed. Package compatibility, performance and service costs remain unknown.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage comprises cursor-sdk/skills/cursor-sdk/SKILL.md and its seven references: advanced.md, auth.md, error-handling.md, mcp.md, patterns.md, runtime-choice.md and streaming.md. The related notice is cursor-sdk/LICENSE. All supplied files belong to revision bf0c7cd80abdbf7fe47b634978a7d1b4071f71a7; the supplied content checksum is cd0175b1edfcaa4eaf85f84c5f824391a768b329957319cda72074b2fab682b3. The wider repository, SDK package and implementation, external documentation, dependency licences, private-worker setup and service terms are outside this evidence. Nothing was executed; installation, compilation, authentication, tool access, local/cloud behavior, output quality, performance and spend remain unassessed.
The overview
Identity
The resource is the cursor-sdk skill folder in Cursor's cursor/plugins repository: [https://github.com/cursor/plugins/tree/main/cursor-sdk/skills/cursor-sdk]. It contains SKILL.md and seven reference files that guide an assistant writing applications against @cursor/sdk.
The skill supplies instructions and TypeScript examples. The SDK package, Cursor agent service and SDK implementation are separate dependencies outside this folder. The enclosing licence notice names Cursor as the copyright holder.
Assessment
The strongest material explains integration mistakes that are easy to overlook: omitting cloud options defaults to local execution, resumed agents lose inline MCP configuration, and a completed event stream still needs a terminal result. These details make the skill useful alongside an API reference.
Some examples need correction. The authentication reference says the TypeScript non-null assertion makes a missing environment variable fail loudly; that assertion adds no runtime validation. The error-handling reference supplies a retry helper around Agent.create, then explains that creation is lazy and startup failures usually surface at send. Its sample delays also fall below its own recommendation to wait at least 30 seconds for a retryable rate-limit failure.
The backend template uses a shared service-account credential and an in-memory user-to-agent map. It does not implement caller authentication, per-user authorization or durable storage. These templates provide starting structures, with additional work required for a live service.
Users
The intended users are developers working with a coding assistant to build repository-analysis scripts, CI jobs, review bots, scheduled triage or backend services using Cursor agents. Beginners get three basic invocation patterns; experienced developers get lifecycle, credential and runtime details.
Readers still need enough TypeScript and Node.js knowledge to handle asynchronous code, environment variables, subprocesses and errors. Developers seeking a non-TypeScript client are directed toward the Cloud Agents REST API; this skill does not supply that integration.
Capabilities
The guide covers Agent.prompt for a single request with automatic disposal, Agent.create plus send for streaming and follow-up requests, and Agent.resume for continuing an existing agent later. It describes observing assistant text, tool calls and status events, waiting for the final result, and cancelling supported runs.
Advanced references cover agent and run inspection, persisted messages, cloud artifacts, model and repository discovery, and named sub-agents. The documented snapshot limits sub-agents and artifact downloads to cloud execution. Five integration templates cover PR review, scheduled triage, local analysis, a backend endpoint and parallel work across repositories.
Using it
Requirements
The examples assume a Node.js-style environment and the separate @cursor/sdk dependency. No package version, minimum Node.js version or minimum TypeScript version is specified. Examples using await using require suitable toolchain support; explicit disposal in finally is another documented approach.
The documentation accepts user API keys and team service-account keys through apiKey or CURSOR_API_KEY. Cloud execution requires an API key and a GitHub connection with access to the target repository. Local execution needs a working directory and an explicit model; most prompts still require remote model access. Local execution does not establish offline operation.
Mechanism
SKILL.md describes when an assistant should consult the skill and routes it to references for runtime choice, authentication, errors, streaming, MCP, advanced operations or integration patterns. An application written against @cursor/sdk performs the actual agent work.
The documented local runtime operates on files in cwd with the caller's permissions. Cloud execution clones a GitHub repository at a chosen reference into a VM and can push a branch and open a PR. Both expose similar interfaces, but capabilities and configuration differ.
MCP, or Model Context Protocol, supplies additional tools through HTTP endpoints or subprocesses. Local ambient settings are opt-in through local.settingSources; cloud execution follows its team, project and plugin configuration. Inline MCP settings must be supplied again when resuming.
Setup
For an integration, the guide starts with a Cursor API key, explicit runtime options and a model choice. Local examples set local.cwd. Cloud examples set cloud.repos with a repository URL and starting reference. The guide recommends discovering accessible model IDs through Cursor.models.list instead of assuming availability.
Validate that credentials exist at runtime, keep them in a secrets store or an ignored local environment file, and pass apiKey explicitly in shared services. The SDK does not itself load .env files. Cloud callers also need the appropriate GitHub connection.
The folder does not provide host-specific skill-installation instructions, a dependency lockfile or a verified installation sequence. Those setup details remain unknown.
Example
The main one-shot example asks the agent to refactor src/utils.ts for readability. It calls Agent.prompt with an API key from the environment, the example model ID composer-2 and local.cwd set to the current directory, then prints the returned status and result. The guide says this pattern handles disposal automatically.
A related command-line template accepts a question as arguments and sets its exit code according to the terminal status. This shows how an analysis request could fit into a shell workflow. Neither example was executed, and no successful refactoring or analysis outcome is established.
Assessment & evidence
Limitations
Runtime parity is incomplete in the documented snapshot. Local execution silently ignores custom sub-agent definitions, lacks artifact downloads and uses only the first cwd entry when given an array. Cloud execution works from a repository reference and cannot see uncommitted local changes. Detached run handles may lack streaming or cancellation, so the guide recommends checking run.supports.
Resume preserves conversation state but does not preserve inline MCP configuration. Local resume depends on the original working-directory data. Replayed conversations and tool payloads may be incomplete, which limits their usefulness for reconstructing earlier work.
Credential placement needs attention. The MCP reference says cloud HTTP authentication is proxied by Cursor, while subprocess environment values enter the cloud VM and are visible to its processes. Cloud subprocess MCP configuration rejects cwd. The advanced reference's suggestion to isolate risky work with a restricted sub-agent prompt provides no evidence of enforced permission isolation.
Compilation, actual SDK behavior, generated-code quality, security controls and performance were not assessed through execution. Private-worker and self-hosted deployment details are outside the captured references.
Reasoning
The skill's practical value comes from connecting API calls to operational consequences. Runtime defaults determine where files are changed; cleanup determines whether processes and handles remain open; failure classification determines whether retrying could repeat work; resume configuration determines whether tools remain available.
Those connections support using the resource as integration guidance. The inconsistent authentication and retry examples reduce confidence in copying templates unchanged. No benchmark, comparative study or executed result establishes faster development, better code or lower costs.
Alternatives
The skill identifies the canonical TypeScript SDK documentation at [https://cursor.com/docs/api/sdk/typescript]. Reading that documentation directly is an alternative for developers who need the API contract without assistant-specific instructions. Its contents were not supplied here.
For non-TypeScript integrations, the skill points to the Cloud Agents REST API documentation at [https://cursor.com/docs/cloud-agent/api]. It explicitly warns against assuming REST and SDK capability parity. No evidence supports a feature, reliability or price comparison with other agent SDKs.
Evidence
The source consists of SKILL.md, seven topic references and the enclosing MIT notice, pinned to repository revision bf0c7cd80abdbf7fe47b634978a7d1b4071f71a7. The immutable main file is available at [https://raw.githubusercontent.com/cursor/plugins/bf0c7cd80abdbf7fe47b634978a7d1b4071f71a7/cursor-sdk/skills/cursor-sdk/SKILL.md].
These files provide first-party instructions and code examples. They do not include SDK implementation code, package metadata, executed test results, benchmarks, bills or service terms. Linked documentation was not included. Behavioral descriptions are documentation claims; no code was executed.
Access & freshness
Costs
Service prices, subscription requirements, included usage, model rates and example bills are not supplied, so operating cost is unknown. The MIT permission for the skill does not establish free access to Cursor's services.
The references warn that retries can repeat agent work and that parallel jobs encounter usage limits. Obtain current account pricing and limits before scheduling jobs or expanding across repositories; no monetary estimate is supported here.
Rights
The enclosing cursor-sdk/LICENSE carries the MIT licence and Copyright (c) 2026 Cursor. It permits use, copying, modification, publication, distribution, sublicensing and sale of the covered software and associated documentation. Copies or substantial portions must retain the copyright and permission notice.
The notice supplies the material without warranty. It supports redistribution of the captured skill with its notice; it does not establish the licence of the separate @cursor/sdk package, third-party dependencies, model outputs or rights under Cursor's service terms.
Freshness
The supplied snapshot was captured on 2026-11-16 at 02:01:58.189 UTC. That timestamp establishes capture time, not the files' last modification date or the release date of a compatible SDK package.
References to composer-2, v1 sub-agent restrictions and current runtime gaps belong to this snapshot. No exact @cursor/sdk version or compatibility matrix is supplied. Confirm model availability and relevant API behavior against the package version intended for use.
Actions
Before adapting a template, add explicit runtime credential validation, place startup retries around send, and reconcile retry delays with the rate-limit guidance. Confirm dependency and toolchain versions, accessible models, service pricing and repository permissions.
Choose local or cloud explicitly and begin with a bounded task in a disposable checkout or review branch. Handle startup exceptions separately from error and cancelled results, await completion, retain agent and run IDs, and ensure disposal. Re-supply inline MCP configuration on resume and check supported run operations.
For a backend service, implement caller authentication, authorization and persistent agent ownership before exposing the example endpoint. Review which credentials enter local processes or cloud VMs before enabling external tools.
