AgentHubAgentHub

cursor-sdk

SkillSkillsMP

io.github.cursor/plugins/cursor-sdk · vmain

Guide users building apps, scripts, CI pipelines, or automations on top of the Cursor TypeScript SDK (`@cursor/sdk`). Use this skill whenever the user mentions integrating, installing, or writing code against the Cursor SDK; whenever they say `Agent.create`, `Agent.prompt`, `Agent.resume`, `agent.send`, `run.stream`, `CursorAgentError`, or `@cursor/sdk`; whenever they ask to run Cursor agents programmatically from a script, CI/CD pipeline, GitHub Action, backend service, or any other code that isn't the Cursor IDE itself; and whenever they want to pick between local and cloud runtime, configure MCP servers for an SDK agent, or handle streaming, cancellation, or errors from an SDK agent. Also trigger when a user is wiring Cursor into an automation, writing a bot that runs Cursor, or porting REST `/v1/agents` calls to the SDK, even if they don't explicitly name the package. Use this eagerly rather than answering from memory; the SDK surface evolves and this skill plus its references are the source of truth for

概览

cursor-sdk 是一个Agent Skill,收录自 SkillsMP。本页提供 Cursor、Claude Code 等客户端的安装配置片段。

Agent Skill 是带 SKILL.md 的指令包。安装后,AI 会根据 description 在匹配任务时自动加载,无需每次手动粘贴提示词。

安装

选择你的平台查看安装方式

# 通用 CLI(Cursor / Claude Code / Codex 等均支持)
npx skills add cursor/plugins@cursor-sdk

使用方式

安装完成后,在对话中直接描述你的任务(或提及技能名称)。Agent 会先读取 SKILL.md 的 description 判断是否启用,再按其中的步骤执行。可用 /skills(Claude Code)或在设置中查看已加载的 Skills。

相关资源

统一 Manifest

{
  "id": "io.github.cursor/plugins/cursor-sdk",
  "type": "skill",
  "version": "main",
  "displayName": "cursor-sdk",
  "description": "Guide users building apps, scripts, CI pipelines, or automations on top of the Cursor TypeScript SDK (`@cursor/sdk`). Use this skill whenever the user mentions integrating, installing, or writing code against the Cursor SDK; whenever they say `Agent.create`, `Agent.prompt`, `Agent.resume`, `agent.send`, `run.stream`, `CursorAgentError`, or `@cursor/sdk`; whenever they ask to run Cursor agents programmatically from a script, CI/CD pipeline, GitHub Action, backend service, or any other code that isn't the Cursor IDE itself; and whenever they want to pick between local and cloud runtime, configure MCP servers for an SDK agent, or handle streaming, cancellation, or errors from an SDK agent. Also trigger when a user is wiring Cursor into an automation, writing a bot that runs Cursor, or porting REST `/v1/agents` calls to the SDK, even if they don't explicitly name the package. Use this eagerly rather than answering from memory; the SDK surface evolves and this skill plus its references are the source of truth for ",
  "author": {
    "name": "cursor",
    "url": "https://github.com/cursor"
  },
  "repository": {
    "url": "https://github.com/cursor/plugins",
    "source": "github",
    "subfolder": "cursor-sdk/skills/cursor-sdk"
  },
  "homepage": "https://skillsmp.com/skills/cursor-plugins-cursor-sdk-skills-cursor-sdk-skill-md",
  "distribution": {
    "packages": [
      {
        "registryType": "source",
        "identifier": "cursor/plugins@cursor-sdk",
        "version": "main",
        "runtimeHint": "npx skills add"
      }
    ],
    "remotes": []
  },
  "dependencies": [],
  "installTargets": [
    "claude-code",
    "claude-desktop",
    "cursor",
    "codex",
    "vscode"
  ],
  "keywords": [
    "stars:1915"
  ],
  "provenance": {
    "origin": "skillsmp",
    "originalId": "cursor-plugins-cursor-sdk-skills-cursor-sdk-skill-md",
    "originalUrl": "https://skillsmp.com/skills/cursor-plugins-cursor-sdk-skills-cursor-sdk-skill-md",
    "isOfficial": false,
    "status": "active"
  }
}
cursor-sdk — Agent Skill 安装与配置 · AgentHub