sdk

Integrate the Cursor SDK to automate programming tasks in TypeScript or Python.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/min-zou/obsidian-doc --skill sdk-min-zou
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sdk
Source: https://github.com/min-zou/obsidian-doc/tree/main/format/areas/system/agent-skills/cursor-builtin/sdk
Command: npx skills add https://github.com/min-zou/obsidian-doc --skill sdk-min-zou

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenges of integrating and using the Cursor SDK, which enables programmatically running Cursor agents in TypeScript or Python.

Core Features & Use Cases

  • Language Variant Selection: Assists in choosing the right programming language (TypeScript or Python) based on user input and codebase context.
  • Voice and Posture Guidance: Provides instructions on the appropriate communication style and design approach for effective use of the SDK.
  • Invocation Patterns: Explains three key invocation patterns for using the SDK, including Agent.prompt, Agent.create with agent.send, and Agent.resume.
  • Troubleshooting: Offers insights into common issues such as incorrect runtime selection, failure to execute, and resource leakage.

Quick Start

Run the following command to start using the Cursor SDK in Python:

agent.send("Start an agent to perform the task")

Frequently Asked Questions about sdk

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

FAQPage Schema
How do I automate programming tasks with the Cursor SDK in TypeScript or Python?

Automate programming tasks with the Cursor SDK by creating and managing agents in TypeScript or Python, selecting the correct language variant based on your codebase context to ensure proper execution and communication.

What invocation patterns are available for running Cursor agents programmatically?

Running Cursor agents programmatically supports three key invocation patterns: Agent.prompt, Agent.create with agent.send, and Agent.resume, enabling flexible automated task execution and session management.

Should I use TypeScript or Python when integrating the Cursor SDK for agent management?

Choose TypeScript or Python for Cursor SDK agent management based on your existing codebase context and input requirements, ensuring correct language selection for effective automated programming execution.

Why does my Cursor SDK agent fail to execute or leak resources during automation?

Cursor SDK agent execution failures and resource leakage often stem from incorrect runtime selection or improper session handling, requiring troubleshooting of invocation patterns and agent lifecycle management.

Can I resume an existing Cursor agent session to continue a programming automation task?

Yes, you can resume an existing Cursor agent session for programming automation using the Agent.resume invocation pattern, allowing you to continue previously started tasks without losing context.

What communication style and posture should I use when sending prompts to Cursor agents?

When sending prompts to Cursor agents, use the appropriate communication style and design posture provided by the SDK guidance to ensure effective interaction and accurate automated task completion.